/* Earthlings: warm paper, white product stages, one ink, one moss. */
:root {
  --paper: #f6f3ec;
  --paper-2: #eee9de;
  --card: #ffffff;
  --ink: #191815;
  --ink-2: #3a3832;
  --muted: #77736a;
  --line: #e4ded2;
  --line-2: #d6cfc0;
  --moss: #2f4a33;
  --clay: #a4532c;
  --glass: rgba(246, 243, 236, 0.84);
  --shadow-sm: 0 1px 2px rgba(25, 24, 21, 0.05);
  --shadow: 0 1px 2px rgba(25, 24, 21, 0.04), 0 12px 32px -14px rgba(25, 24, 21, 0.16);
  --shadow-lg: 0 2px 4px rgba(25, 24, 21, 0.04), 0 28px 64px -26px rgba(25, 24, 21, 0.26);
  --r-xl: 28px;
  --r-lg: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#siteScroll { height: 100%; overflow-x: hidden; overflow-y: auto; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
.ic { flex: none; }

/* Type */
.display { font: 600 clamp(46px, 7.6vw, 96px)/0.98 var(--display); letter-spacing: -0.045em; margin: 0; max-width: 11ch; }
.display-md { font-size: clamp(38px, 5.6vw, 72px); max-width: 14ch; }
.h1 { font: 600 clamp(32px, 4.2vw, 52px)/1.04 var(--display); letter-spacing: -0.035em; margin: 0; }
.h2 { font: 600 clamp(26px, 3vw, 38px)/1.08 var(--display); letter-spacing: -0.03em; margin: 0; }
.h3 { font: 600 21px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.h4 { font: 600 15px/1.3 var(--sans); margin: 36px 0 14px; }
.eyebrow { font: 600 12.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow-light { color: rgba(246, 243, 236, 0.62); }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-2); max-width: 34em; margin: 24px 0 0; }
.sub { color: var(--muted); font-size: 17px; margin: 10px 0 0; max-width: 40em; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 12px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; margin-right: 10px; font: 650 21px/1 var(--display); letter-spacing: -0.035em; text-decoration: none; }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }

.search { position: relative; display: flex; align-items: center; }
.search > .ic { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; padding: 0 18px 0 44px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font: 400 15px var(--sans);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--line-2); box-shadow: 0 0 0 4px rgba(47, 74, 51, 0.1); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-top { flex: 1; max-width: 340px; margin-left: auto; }

.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s; }
.cart-btn:hover { background: #000; }
.cart-btn:active { transform: scale(0.97); }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-count[hidden] { display: none; }
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; }
.mnav { border-top: 1px solid var(--line); padding: 14px 0 20px; }
.mnav[hidden] { display: none; }
.mnav .wrap { display: grid; gap: 2px; }
.mnav .search { margin-bottom: 10px; }
.mnav a { display: flex; align-items: center; min-height: 52px; padding: 0 2px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; }
@media (max-width: 900px) {
  .nav, .search-top { display: none; }
  .menu-btn { display: inline-grid; }
  .cart-btn { margin-left: auto; }
}
@media (max-width: 420px) { .cart-label { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font: 600 15px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s, transform 0.15s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-dark.is-added { background: var(--moss); }
.btn-quiet { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--line-2); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-wide { flex: 1 1 200px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-btn { min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 124px); padding-bottom: clamp(36px, 5vw, 56px); }
.search-hero { max-width: 600px; margin-top: 36px; }
.search-hero input { height: 60px; padding: 0 132px 0 50px; font-size: 17px; box-shadow: var(--shadow); }
.search-hero > .ic { left: 20px; }
.search-hero .btn { position: absolute; top: 6px; right: 6px; min-height: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip[aria-current="page"] .n { color: rgba(246, 243, 236, 0.66); }

/* Sections */
.section { padding-top: clamp(56px, 7vw, 104px); }
.section-tight { padding-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head { padding-top: clamp(40px, 6vw, 80px); }
.search-inline { max-width: 460px; margin-top: 26px; }

/* Product stage, built for no-background art */
.stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(110% 85% at 50% 36%, #ffffff 0%, #fbfaf6 55%, #f1ede4 100%); }
.stage img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(25, 24, 21, 0.14)) drop-shadow(0 4px 6px rgba(25, 24, 21, 0.06)); }
/* Empty stage: a lit pedestal waiting for its product shot. */
.stage .ph { display: none; }
.stage.no-img .ph { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.stage.no-img::before { content: ""; position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -54%); background: radial-gradient(circle at 50% 38%, #ffffff 0%, #f7f4ee 62%, #efeadf 100%); box-shadow: inset 0 -10px 24px rgba(25, 24, 21, 0.05), 0 26px 36px -22px rgba(25, 24, 21, 0.22); }
.stage.no-img::after { content: ""; position: absolute; left: 50%; bottom: 17%; width: 38%; height: 14px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(25, 24, 21, 0.1), rgba(25, 24, 21, 0)); }
.ph-brand { font: 600 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); transform: translateY(-0.4em); }
.ph-name { display: none; }
.stage-xl .ph-brand { font-size: 13px; }
.stage-sm.no-img::after { display: none; }
.stage-sm.no-img::before { width: 58%; }
.stage-sm .ph-brand { font-size: 7px; letter-spacing: 0.16em; }
.spotlight-media, .line-media { text-decoration: none; }

.badge { position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--moss); color: #fff; font: 600 12px/1 var(--sans); letter-spacing: 0.01em; }
.badge.also { background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge.made { background: var(--clay); }

/* Provider chip */
.provider { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 500 13px/1 var(--sans); letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle; }
.provider .ic { width: 15px; height: 15px; color: var(--ink); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .stage { border-bottom: 1px solid #f1eee7; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.card-brand { color: var(--muted); font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.card-name { margin: 2px 0 0; font: 600 19px/1.2 var(--display); letter-spacing: -0.02em; }
.card-job { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; }
.card-cat { color: var(--muted); font-size: 13px; }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding: clamp(14px, 2vw, 22px); border-radius: var(--r-xl); background: var(--card); box-shadow: var(--shadow); }
.spotlight-media { display: block; overflow: hidden; border-radius: 22px; }
.spotlight-copy { padding: 16px clamp(8px, 3vw, 40px) 16px 0; }
.brand-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 0; color: var(--muted); font: 600 12.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.verdict { margin: 18px 0 0; color: var(--ink); font: 500 clamp(19px, 1.8vw, 22px)/1.4 var(--display); letter-spacing: -0.015em; }
.ticks { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.ticks .ic { margin-top: 3px; color: var(--moss); }
@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-copy { padding: 4px 8px 14px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 32px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font: 600 14px/1 var(--sans); }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 4px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* Earthlings Made band */
.band { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 100px) clamp(24px, 6vw, 84px); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 85% 0%, #3e5f42 0%, #2a422e 45%, #1f3123 100%); color: var(--paper); }
.band::after { content: ""; position: absolute; right: -14%; bottom: -60%; width: 72%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(246, 243, 236, 0.16); box-shadow: 0 0 0 64px rgba(246, 243, 236, 0.035), 0 0 0 128px rgba(246, 243, 236, 0.02); pointer-events: none; }
.band-copy { position: relative; z-index: 1; max-width: 560px; }
.band .h2 { color: #fff; }
.band p { margin: 16px 0 28px; color: rgba(246, 243, 236, 0.8); font-size: 18px; }

/* Product page */
.crumbs { display: flex; align-items: center; gap: 4px; padding-top: 18px; color: var(--muted); font-size: 14px; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 80px); padding: 6px 0 12px; }
.pdp-media { position: sticky; top: 92px; }
.pdp-media .stage { border-radius: var(--r-xl); box-shadow: var(--shadow); }
.pdp-info { padding-top: 10px; }
.pdp-info .brand-line { margin: 0 0 14px; }
.why { margin: 14px 0 0; color: var(--ink-2); font-size: 16.5px; }
.buybox { margin-top: 28px; padding: 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.buybox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.buybox-note { color: var(--muted); font-size: 13.5px; }
.buybox .actions { margin-top: 16px; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: relative; top: 0; }
}

/* Cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 32px; padding-top: 32px; }
.cart-group { padding: 22px 24px 8px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.cart-group + .cart-group { margin-top: 20px; }
.cart-group-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.cart-group-note { max-width: 34em; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.lines { margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.line-media { display: block; overflow: hidden; border-radius: 14px; }
.line-info { display: grid; gap: 2px; min-width: 0; }
.line-brand { color: var(--muted); font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.line-name { display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/1.25 var(--display); letter-spacing: -0.015em; text-decoration: none; }
.line-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-controls { display: flex; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.qty button:hover { background: var(--paper); }
.qty span { min-width: 22px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.cart-aside { position: sticky; top: 92px; padding: 24px; border-radius: var(--r-lg); background: var(--paper-2); }
.cart-aside .h4 { margin-top: 0; }
.cart-aside p { margin: 0; color: var(--ink-2); font-size: 15px; }
.cart-aside .fine { margin-top: 18px; color: var(--muted); font-size: 12.5px; }
.seller-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.seller-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; }
.seller-list li > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.seller-list .ic { width: 15px; height: 15px; color: var(--moss); }
@media (max-width: 960px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-aside { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .cart-group { padding: 18px 16px 6px; }
  .cart-group-head .btn { width: 100%; }
  .line { grid-template-columns: 64px minmax(0, 1fr); }
  .line > .btn { grid-column: 1 / -1; }
}

/* Empty states and prose */
.empty { display: grid; justify-items: center; gap: 4px; padding: clamp(32px, 6vw, 64px); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); text-align: center; }
.empty p { margin: 0 0 20px; color: var(--muted); }
.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.principle { padding: 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.principle p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .prose-grid { grid-template-columns: 1fr; } }

/* Footer */
#view { display: block; min-height: 60vh; }
.foot { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 32px; padding-top: 40px; padding-bottom: 20px; }
.foot-brand p { margin: 4px 0 0; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }
.foot-legal p { margin: 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14.5px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 160%); transition: transform 0.45s var(--ease), opacity 0.3s var(--ease); }
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.toast:empty { display: none; }

/* Route entrance */
#view.enter { animation: enter 0.5s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #view.enter { animation: none; }
  .card, .btn, .toast, .cart-btn { transition: none; }
}
