/* ================================================================
   Garamond Goods — atelier menswear color analysis
   ================================================================
   Design system:
     • Cream paper (#f2ebdc) over warm ink (#1a1714)
     • EB Garamond serif (incl. italic emphasis)
     • JetBrains Mono for small caps, plate numbers, hex labels
     • Editorial-spread layout with § section numbering
     • Hover-reveal hex strips on the twelve-season grid
   ============================================================== */

:root {
  --cream: #f2ebdc;
  --cream-deep: #ebe3d1;
  --ink: #1a1714;
  --ink-soft: #433c33;
  --ink-mute: #8a8070;
  --rule: rgba(26, 23, 20, 0.14);
  --rule-soft: rgba(26, 23, 20, 0.08);
  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
}

/* ----- Layout ----- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-soft { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; }

/* ----- Type primitives ----- */
.sc {
  font-variant: all-small-caps;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ----- Nav ----- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
nav.top .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
nav.top .brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
nav.top ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav.top a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
nav.top a:hover { color: var(--ink-soft); }
nav.top .status { font-size: 13px; color: var(--ink-mute); white-space: nowrap; text-decoration: none; transition: color .15s; }
nav.top a.status:hover { color: var(--ink); }
nav.top .status .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #6b7a4a; margin-right: 8px; vertical-align: middle;
}

/* ----- Hero ----- */
section.hero { padding: 96px 0 112px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.kicker {
  font-size: 12px;
  margin-bottom: 36px;
  color: var(--ink-soft);
}
.kicker .bullet {
  display: inline-block;
  width: 4px; height: 4px; background: var(--ink-soft);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 10px 2px;
}
h1.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
  text-wrap: balance;
}
h1.display em { font-style: italic; font-weight: 400; }

.subline {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 44px;
  text-wrap: pretty;
}

.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-link {
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-flex; align-items: baseline; gap: 10px;
  transition: color .2s, border-color .2s, gap .2s;
  cursor: pointer;
  background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit;
  white-space: nowrap;
}
.cta-link:hover { gap: 14px; }
.cta-link .arr { font-family: var(--mono); font-size: 13px; }
.cta-aside { font-size: 13px; color: var(--ink-mute); white-space: nowrap; }

/* ----- Full-bleed hero (image fills the viewport; copy in cream over a scrim) ----- */
.hero-full {
  position: relative;
  height: calc(100svh - 64px);
  min-height: 540px;
  max-height: 940px;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  display: block;
  pointer-events: none; /* background loop never intercepts taps / long-press */
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(26,23,20,0.60) 0%, rgba(26,23,20,0.16) 40%, rgba(26,23,20,0) 62%),
    linear-gradient(to top, rgba(26,23,20,0.52), rgba(26,23,20,0.12) 52%, rgba(26,23,20,0) 78%);
}
.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 66px;
  /* Pull the hero copy out of the centred column to hug the left gutter. */
  max-width: none;
  margin: 0;
  padding-left: clamp(22px, 4.5vw, 72px);
}
.hero-copy { max-width: 640px; }
.hero-full h1.display { color: var(--cream); margin: 0 0 22px; text-shadow: 0 1px 2px rgba(26,23,20,0.35), 0 2px 26px rgba(26,23,20,0.5); }
.hero-full .subline { color: rgba(242,235,220,0.94); margin: 0 0 30px; max-width: 38ch; text-shadow: 0 1px 12px rgba(26,23,20,0.5); }
.hero-full .cta-link { color: var(--cream); border-color: rgba(242,235,220,0.55); }
.hero-full .cta-link.primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero-full .cta-link.primary:hover { background: #fbf6ea; border-color: #fbf6ea; }
.hero-full .cta-aside { color: rgba(242,235,220,0.72); margin-top: 18px; white-space: normal; }
.hero-full .cta-aside .linkish { color: rgba(242,235,220,0.9); border-color: rgba(242,235,220,0.4); }
.hero-full .cta-aside .linkish:hover { color: #fff; border-color: #fff; }
@media (max-width: 880px) {
  .hero-full { height: calc(100svh - 56px); min-height: 460px; }
  .hero-inner { padding-bottom: 56px; }
  .hero-full h1.display { font-size: 48px; }
  .hero-copy { max-width: 100%; }
}

/* ----- "Shot" placeholder cards (pre-image) -----
   Shows a Pantone-style monospace shot-list framing the prompt that will
   be sent to GPT Image once wired up. The intent is that these cards stay
   recognisable as production placeholders — diagonal stripe + plate label. */
.shot {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  aspect-ratio: 5 / 4;
  position: relative;
  overflow: hidden;
}
.shot.tall { aspect-ratio: 2 / 3; }
.shot.wide { aspect-ratio: 3 / 2; }
.shot::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(26,23,20,0.025) 14px 15px
  );
  pointer-events: none;
}
.shot .label {
  position: absolute;
  left: 16px; top: 16px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.shot .num {
  position: absolute; right: 16px; top: 16px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
}
.shot .prompt {
  position: absolute;
  left: 24px; right: 24px; bottom: 20px;
  font-family: var(--mono); font-size: 11px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}
.shot .prompt .k { color: var(--ink-mute); }

/* Generated still-life covers the placeholder; the diagonal stripe + prompt
   drop away, and the mono plate labels ride on top in a small cream chip. */
.shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.shot:has(.shot-img) { background: var(--ink); border: none; }
.shot:has(.shot-img)::before { display: none; }
.shot:has(.shot-img) .prompt { display: none; }
.shot:has(.shot-img) .label,
.shot:has(.shot-img) .num {
  z-index: 2;
  background: rgba(242, 235, 220, 0.82);
  padding: 3px 7px;
  border-radius: 2px;
  color: var(--ink-soft);
}

/* ----- Editorial spreads ----- */
section.spread {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}
.spread-head {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  align-items: baseline;
}
.spread-head .num { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.spread-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.spread-head h2 em { font-style: italic; }
.spread-head .deck {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 52ch;
  text-wrap: pretty;
}

/* ----- How it works ----- */
.how-grid {
  display: grid;
  grid-template-columns: 160px 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.step {
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
}
.step:last-child { border-bottom: 1px solid var(--rule-soft); }
.step .n { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); padding-top: 3px; }
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

.figure-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 10px;
  text-align: right;
}

/* ----- Twelve seasons specimen grid ----- */
.seasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
/* Each major season (Spring/Summer/Autumn/Winter) is boxed with its three
   sub-seasons stacked inside, so the twelve read as four approachable groups. */
.season-family {
  border: 1px solid var(--rule);
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
}
.season-family-head {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule-soft);
}
.season-family-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.season {
  padding: 0;
  background: transparent;
  position: relative;
}
.season-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.season-head .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
}
.season-head .name em { font-style: italic; font-weight: 400; color: var(--ink-soft); }
.season-head .ref { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); }

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.sw {
  aspect-ratio: 1 / 1.2;
  position: relative;
  cursor: default;
}
.sw .hex {
  position: absolute;
  inset: auto 0 0 0;
  padding: 6px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  background: rgba(242, 235, 220, 0.92);
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
}
.sw:hover .hex,
.swatches:hover .sw .hex { opacity: 1; transform: translateY(0); }

.season-note-wrap {
  height: 32px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.season-note {
  position: absolute;
  inset: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.season:hover .season-note { opacity: 1; transform: translateY(0); }

.seasons-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ----- Catalog filters ----- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 0;
  align-items: center;
  justify-content: center;
}
.filters:first-of-type { padding-top: 24px; }
.filters .label { font-size: 12px; color: var(--ink-mute); margin-right: 8px; }
.chip {
  font-family: var(--serif);
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip.on {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.color-filter {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 36px;
  min-height: 55px;
}
.color-filter .label { font-size: 12px; color: var(--ink-mute); margin-right: 4px; }
.color-swatch {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .15s;
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch .cs-fill {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.10);
  background: var(--fill, #888);
  transition: inset .15s;
}
.color-swatch.on .cs-fill { inset: 0; }
.color-swatch.on::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}
.color-swatch .cs-tip {
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(2px);
  white-space: nowrap;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 10;
}
.color-swatch .cs-tip .cs-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  margin-right: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.color-swatch:hover .cs-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.color-all {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s;
}
.color-all:hover { border-color: var(--ink-soft); color: var(--ink); }
.color-all.on {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ----- Catalog grid ----- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px 22px;
}
.product { cursor: pointer; transition: opacity .25s; }
.product.dimmed { opacity: 0.28; }
.product .photo {
  background: var(--cream-deep);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}
.product .photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(26,23,20,0.025) 14px 15px
  );
}
.product .swatch-dot {
  position: absolute;
  right: 14px; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.product .plabel {
  position: absolute; left: 16px; top: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-mute); text-transform: uppercase;
}
.product .pprompt {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-soft);
  line-height: 1.5;
}
.product .pprompt .k { color: var(--ink-mute); }
.product .alt {
  position: absolute; inset: 0;
  background: #2d2a26;
  opacity: 0;
  transition: opacity .25s;
  display: flex; align-items: center; justify-content: center;
  color: rgba(242,235,220,0.6);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
}
.product:hover .alt { opacity: 1; }
.product .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 0;
  gap: 12px;
}
.product .name { font-size: 17px; }
.product .sub { font-size: 14px; color: var(--ink-mute); font-style: italic; }
.product .price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.35;
  transition: opacity .25s;
}
.product:hover .price { opacity: 1; }

.catalog-foot {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  gap: 20px;
  flex-wrap: wrap;
}

/* ----- Methodology ----- */
.method-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.method-side .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 48px;
}
.method-side h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.method-side h2 em { font-style: italic; }
.method-figure {
  margin: 36px 0 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  background: var(--cream-deep);
}
.method-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.method-layout .body {
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.method-layout .body p + p { margin-top: 1em; }
.method-layout .body em { color: var(--ink); font-style: italic; }
.method-layout .body .signoff {
  font-style: italic;
  margin-top: 1.4em;
  color: var(--ink);
}

/* ----- Footer ----- */
/* ----- Footer digest signup ----- */
.foot-digest {
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px 48px; flex-wrap: wrap;
  padding-bottom: 32px; margin-bottom: 44px;
  border-bottom: 1px solid var(--rule-soft);
}
.fd-copy h4 { font-family: var(--serif); font-size: 17px; font-weight: 500; margin: 0 0 6px; }
.fd-copy p { font-size: 14px; color: var(--ink-soft); margin: 0; max-width: 44ch; }
.fd-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 320px; max-width: 460px; }
.fd-form .gate-input { flex: 1 1 200px; }
.fd-done { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-soft); margin: 0; }

footer.foot {
  border-top: 1px solid var(--rule);
  padding: 64px 0 48px;
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.foot-grid h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 14px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 4px 0; font-size: 14px; color: var(--ink-soft); }
.foot-grid a { color: inherit; text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-blurb {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 34ch;
  line-height: 1.5;
}
.foot-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}
.foot-line {
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--ink-mute);
  gap: 16px;
  flex-wrap: wrap;
}
.foot-line .tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ----- Scroll fade-in ----- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* ----- Find-your-season analyzer (its own /find-your-season page) ----- */
.analyzer-page { padding-top: 40px; padding-bottom: 24px; }
.analyzer { max-width: 680px; }
.drop {
  border: 1px dashed rgba(26,23,20,0.3);
  padding: 40px 24px;
  text-align: center;
  background: var(--cream-deep);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.drop.hover { border-color: var(--ink); background: #ede5d0; }
.drop .glyph {
  font-family: var(--serif); font-size: 32px; font-style: italic; color: var(--ink-soft);
  margin-bottom: 8px;
}
.drop .t { font-size: 16px; margin-bottom: 4px; }
.drop .s { font-size: 13px; color: var(--ink-mute); }
.drop .browse {
  display: inline-block; margin-top: 14px;
  font-size: 14px; border-bottom: 1px solid var(--ink);
  padding-bottom: 2px; cursor: pointer;
}

.analyzer .specs {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; margin-top: 24px;
  padding-top: 20px; border-top: 1px solid var(--rule-soft);
}
.analyzer .specs .item .l { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.1em; margin-bottom: 4px; }
.analyzer .specs .item .v { font-size: 14px; color: var(--ink-soft); }

.analyzer .thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-top: 20px;
}
.analyzer .thumb {
  aspect-ratio: 1;
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
}
.analyzer .thumb.filled {
  background-color: #8a7e5c;
  background-size: cover;
  background-position: center;
  border-color: rgba(0,0,0,0.1);
  color: transparent;
  position: relative;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.analyzer .thumb-x {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 23, 20, 0.62);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px; line-height: 1;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .15s;
}
.analyzer .thumb.filled:hover .thumb-x,
.analyzer .thumb.filled:focus-visible .thumb-x { opacity: 1; }

/* Analyze action row + inline error */
.upload-actions {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 16px; margin-top: 22px;
}
#upload-go:disabled { opacity: 0.45; cursor: not-allowed; }
#upload-go[aria-busy="true"] { cursor: progress; }
.upload-error { font-size: 13px; font-style: italic; color: #9a3b2e; }

/* ----- Analysis result panel (rendered into the modal by app.js) ----- */
.result-panel { animation: result-in .3s ease both; }
@keyframes result-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.result-kicker {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.result-season {
  font-family: var(--serif); font-weight: 400;
  font-size: 40px; line-height: 1.02; letter-spacing: -0.01em;
  margin: 4px 0 8px;
}
.result-season em { font-style: italic; }
.result-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-conf {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--rule); border-radius: 999px;
  padding: 3px 9px;
}
.result-headline {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--ink-soft);
}
.result-swatches { display: flex; gap: 6px; margin: 18px 0 4px; }
.result-swatches .rsw {
  flex: 1 1 0; height: 26px; border-radius: 2px;
  background: var(--fill); border: 1px solid rgba(26, 23, 20, 0.10);
}
.vitals {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin: 20px 0;
  background: var(--rule-soft); border: 1px solid var(--rule-soft);
}
.vital { background: var(--cream); padding: 12px 14px; }
.vital .vl {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 3px;
}
.vital .vv { font-size: 16px; color: var(--ink); }
.result-reasoning {
  font-family: var(--serif); font-size: 17px; line-height: 1.55;
  color: var(--ink-soft); margin: 0 0 18px;
}
.close-calls { border-top: 1px solid var(--rule-soft); padding-top: 14px; margin-bottom: 18px; }
.close-calls .cc-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.close-calls .cc { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.close-calls .cc-name { color: var(--ink); }
.close-calls .cc-why { font-style: italic; }
.result-figure {
  margin: 0 0 20px; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--cream-deep); border: 1px solid var(--rule-soft);
}
.result-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* "Your colors, worn" — palette rendered as tinted tees when no lookbook
   photo has been generated (img/result-<season>.jpg). */
.result-worn { display: flex; align-items: center; justify-content: center; padding: 22px 26px; }
.worn-strip {
  display: flex; gap: 4%;
  width: 100%; align-items: flex-end; justify-content: center;
}
.worn-tee { flex: 1 1 0; max-width: 96px; }
.worn-tee svg.tee {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 6px 14px rgba(26, 23, 20, 0.16));
}
.result-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ----- Email gate (shown once, before the analysis reveal) ----- */
.email-gate { animation: result-in .3s ease both; max-width: 60ch; }
.gate-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 40px; line-height: 1.02; letter-spacing: -0.01em;
  margin: 4px 0 10px;
}
.gate-title em { font-style: italic; }
.gate-copy {
  font-size: 17px; line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 20px;
}
.gate-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.gate-input {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  background: transparent; border: 1px solid var(--rule);
  padding: 11px 14px; border-radius: 0;
}
.gate-input::placeholder { color: var(--ink-mute); font-style: italic; }
.gate-input:focus { outline: none; border-color: var(--ink-soft); }
.gate-skip { margin-top: 14px; }

@media (max-width: 880px) {
  .result-season { font-size: 32px; }
  .gate-title { font-size: 32px; }
}

/* ================================================================
   Responsive — single tablet/mobile breakpoint.
   The artifact was designed at 1440 desktop. We don't try to
   re-imagine the layout for phones; we just stack and scale so
   the page is usable below 800px.
   ============================================================== */
/* Mid-width step-downs for the denser catalog + season grids */
@media (max-width: 1180px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .seasons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  body { font-size: 17px; }
  .wrap { padding: 0 22px; }

  /* Nav — drop the link list on small screens; keep brand + status */
  nav.top .inner { height: 56px; }
  nav.top ul { display: none; }
  nav.top .status { font-size: 12px; }

  /* Hero */
  section.hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  h1.display { font-size: 52px; line-height: 1.0; }
  .subline { font-size: 18px; }

  /* Spreads */
  section.spread { padding: 64px 0; }
  .spread-head {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 36px;
  }
  .spread-head h2 { font-size: 36px; }

  /* How it works */
  .how-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Seasons — 2 columns on tablet, 1 on phone */
  .seasons { grid-template-columns: repeat(2, 1fr); }
  .season-note-wrap { height: 40px; }
  .seasons-meta { flex-direction: column; gap: 4px; }

  /* Catalog */
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .filters { justify-content: flex-start; }
  .color-filter { justify-content: flex-start; }

  /* Method */
  .method-layout { grid-template-columns: 1fr; gap: 32px; }
  .method-side h2 { font-size: 36px; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-line { flex-direction: column; align-items: flex-start; }

  /* Modal */
  .analyzer .specs { grid-template-columns: 1fr; gap: 14px; }
  .analyzer .thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 500px) {
  .seasons { grid-template-columns: 1fr; }
  h1.display { font-size: 44px; }
  .season-hero h1.display { font-size: 38px; }
  .spread-head h2 { font-size: 30px; }
  .method-side h2 { font-size: 30px; }
}

/* ================================================================
   Aggregator + two-door hero — added with the live catalog build
   ============================================================== */

/* Primary hero door — filled pill; secondary stays an underline link */
.cta-link.primary {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 24px;
}
.cta-link.primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

/* Inline text-link button (e.g. "preview it →") */
.linkish {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 1px;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
}
.linkish:hover { color: var(--ink); border-color: var(--ink); }

/* Season cards are links to the per-season pages */
a.season {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .15s;
}
.season:hover { background: rgba(26, 23, 20, 0.035); }

/* Season cards carry their flat-lay photo above the palette (bleeds to edges) */
.season-photo {
  margin: 0 0 11px;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--cream-deep);
}
.season-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}
.season:hover .season-photo img { transform: scale(1.035); }

/* Full-bleed spectrum band — one bold photographic moment */
.band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream-deep);
  position: relative;
}
.band-figure { margin: 0; aspect-ratio: 18 / 5; overflow: hidden; }
.band-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 14px 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(242, 235, 220, 0.92);
  background: linear-gradient(to top, rgba(26, 23, 20, 0.5), rgba(26, 23, 20, 0));
  pointer-events: none;
}
@media (max-width: 880px) {
  .band-figure { aspect-ratio: 3 / 2; }
  .band-cap { padding: 10px 22px; font-size: 10px; }
}

/* Product cards are now outbound affiliate links; the "photo" is the
   garment color itself until product-feed imagery is wired. */
a.product { text-decoration: none; color: inherit; display: block; }
.product .plabel {
  background: rgba(242, 235, 220, 0.88);
  padding: 3px 7px;
  border-radius: 2px;
  color: var(--ink-soft);
}

/* Tinted tee mockup — revealed on hover (shown by default on touch) */
.product .preview {
  position: absolute;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  opacity: 0;
  transition: opacity .25s;
}
.product:hover .preview { opacity: 1; }
.product .preview .tee-wrap { width: 64%; max-width: 150px; }
.product .preview svg.tee {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 7px 16px rgba(26, 23, 20, 0.18));
}
.product .preview .preview-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (hover: none) {
  .product .preview { opacity: 1; }
}

/* FTC affiliate disclosure under the catalog */
.disclosure {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  max-width: 54ch;
  text-align: right;
}

/* Catalog "lookbook" lede — sleek single + the rail, as a two-up.
   .wide carries a 3:2 aspect so the rail is shown uncropped and drives the row
   height; the grid stretches .tall to match, cropping the close-up to its center. */
.boho-pair {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  margin: 8px 0 44px;
  align-items: stretch;
}
.boho-pair > div {
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  background: var(--cream-deep);
}
.boho-pair .wide { aspect-ratio: 3 / 2; }
.boho-pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 880px) {
  .boho-pair { grid-template-columns: 1fr; }
  .boho-pair .tall { aspect-ratio: 4 / 5; }
  .boho-pair .wide { aspect-ratio: 3 / 2; }
}

/* Catalog lede — one calm full-width band (the flat-lay), not a busy pair */
.catalog-lede {
  margin: 0 0 44px;
  overflow: hidden;
  background: var(--cream-deep);
}
.catalog-lede img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* Empty state when a color filter has no matches */
.catalog-empty {
  grid-column: 1 / -1;
  padding: 36px 0;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 16px;
}

/* "Don't know your season?" CTA, sits between the spread-head and the
   filter chips inside the catalog. Editorial italic band with a thin
   rule above and below — a soft pull-quote, not a marketing banner. */
.catalog-find-cta {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 20px 24px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
}
.catalog-find-cta .linkish {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  border-bottom-color: var(--ink);
  padding-bottom: 2px;
}
.catalog-find-cta .linkish:hover {
  color: var(--ink-soft);
  border-bottom-color: var(--ink-soft);
}
@media (max-width: 880px) {
  .catalog-find-cta { padding: 18px 16px; font-size: 15px; gap: 8px; }
  .catalog-find-cta .linkish { font-size: 15px; }
}

/* Offset anchor / scroll targets so the two-door jumps clear the sticky nav */
section[id] { scroll-margin-top: 84px; }

/* ----- Per-season SEO pages ----- */
.season-page { padding-top: 40px; padding-bottom: 24px; }
.season-hero-figure { margin: 0 0 36px; border: 1px solid var(--rule-soft); overflow: hidden; background: var(--cream-deep); }
.season-hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); margin-bottom: 28px; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 8px; }
.season-hero { padding-bottom: 44px; border-bottom: 1px solid var(--rule); margin-bottom: 44px; }
.season-hero .kicker { margin-bottom: 14px; }
.season-hero h1.display { font-size: 72px; margin: 0 0 18px; }
.season-hero .subline { margin: 0; max-width: 46ch; }
.season-strip { max-width: 540px; margin-top: 30px; }
.season-prose { max-width: 64ch; margin-bottom: 60px; }
.season-prose p { font-size: 18px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 1em; }
.season-page h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -0.01em; margin: 0 0 10px; }
.season-page h2 em { font-style: italic; }
.season-shop { margin-bottom: 64px; }
.season-shop .deck { color: var(--ink-soft); font-size: 16px; margin: 0 0 32px; max-width: 58ch; }
.season-shop .disclosure { text-align: left; margin-top: 22px; }
.season-cross { border-top: 1px solid var(--rule); padding-top: 40px; }
.cross-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.cross { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 10px; border: 1px solid var(--rule-soft); transition: border-color .15s, background .15s; }
.cross:hover { border-color: var(--ink-soft); background: rgba(26, 23, 20, 0.02); }
.cross-sw { display: inline-flex; flex-shrink: 0; }
.cross-sw span { width: 8px; height: 20px; display: inline-block; }
.cross-nm { font-size: 14px; }

/* ----- Static doc pages (about / privacy / disclosure / contact) ----- */
.season-prose.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: -0.01em; color: var(--ink); margin: 1.9em 0 0.45em; }
.season-prose.doc h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); margin: 1.6em 0 0.3em; }
.season-prose.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.season-prose.doc a:hover { color: var(--ink-soft); }
.doc .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-mute); margin-bottom: 1.8em; }
.doc .signoff { font-style: italic; color: var(--ink-mute); margin-top: 2.2em; }
.contact-list { margin: 0.5em 0 1.6em; }
.contact-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); margin-top: 1.5em; }
.contact-list dd { margin: 0.25em 0 0; font-size: 19px; }

/* ----- /shop index ----- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 40px; }
.shop-card { display: flex; flex-direction: column; gap: 11px; padding: 16px; border: 1px solid var(--rule-soft); text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.shop-card:hover { border-color: var(--ink-soft); background: rgba(26,23,20,0.02); }
.shop-sw { display: flex; height: 30px; border-radius: 2px; overflow: hidden; }
.shop-sw span { flex: 1 1 0; }
.shop-nm { font-family: var(--serif); font-size: 21px; line-height: 1; }
.shop-n { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.04em; }
.shop-card.mine { border-color: var(--ink); }
.shop-mine {
  align-self: flex-start;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink); color: var(--cream);
  padding: 3px 8px;
}
.shop-foot { margin-top: 4px; }
.shop-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 880px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shop-grid { grid-template-columns: 1fr; } }

@media (max-width: 880px) {
  .season-hero h1.display { font-size: 48px; }
  .cross-grid { grid-template-columns: repeat(2, 1fr); }
}
