/* PLAINSONG site styles
   One stylesheet for every page. Section blocks are named after the Shopify
   section files they will become (sections/<name>.liquid). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-300-400.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Identity palette (closed system) */
  --bone: #F4EFE6;
  --cream: #EDE6D8;
  --stone: #A9A195;      /* thread and non-functional details only: 2.2:1 on bone */
  --charcoal: #33302B;   /* replaces black in all text and UI: 11.4:1 on bone */
  --ink-2: #6E675D;      /* secondary text token: 4.9:1 on bone, 4.6:1 on cream */
  --field: #E4DCCC;      /* one tone step below cream, for image placeholders */
  /* Product colors: garments only, never interface */
  --wild-green: #283E33;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --w-light: 300;
  --w-regular: 400;

  --step-text: 1.125rem;                         /* 18px running text */
  --step-small: 0.9375rem;                       /* 15px notes */
  --step-sub: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  --step-display: clamp(3rem, 1rem + 6.3vw, 7.25rem);
  --step-value: var(--step-display);

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 12vw, 200px);
  --max: 1440px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--charcoal);
  font-family: var(--font);
  font-weight: var(--w-regular);
  font-size: var(--step-text);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: var(--w-light); }
dl, dd { margin: 0; }
::selection { background: var(--charcoal); color: var(--bone); }
html { scrollbar-color: var(--stone) var(--bone); accent-color: var(--charcoal); caret-color: var(--charcoal); }
.spec-value, .variant-meta, .qa dd { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--bone); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--charcoal); color: var(--bone); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.secondary { color: var(--ink-2); }
.pending { color: var(--charcoal); font-weight: var(--w-regular); }

/* ---------- header (sections/header.liquid) ---------- */
.site-header { background: var(--bone); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.wordmark {
  font-weight: var(--w-regular);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  line-height: 1;
  padding: 8px 0;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 3vw, 40px); }
.site-nav a { text-decoration: none; font-size: 1rem; padding: 12px 0; display: inline-block; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- button ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--charcoal); color: var(--bone);
  font: inherit; font-size: 1rem; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.button:hover { background: #45413A; }
.button:active { transform: translateY(1px) scale(.99); }

/* ---------- hero (sections/hero-garment.liquid) ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  min-height: calc(100svh - 72px);
  padding-bottom: clamp(32px, 5vw, 72px);
}
.hero-copy { grid-column: 1 / span 6; grid-row: 1; padding-bottom: 8px; }
.hero-figure { grid-column: 7 / span 6; grid-row: 1; margin: 0; align-self: center; }
.hero-figure img { width: 100%; }
.hero-statement {
  font-weight: var(--w-light);
  font-size: var(--step-display);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 6.4em;
  text-wrap: balance;
}
.hero-h1 {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--step-sub);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22em;
}
.hero-entity { margin-top: 16px; max-width: 34em; }
.hero-action { margin-top: clamp(28px, 3vw, 40px); }
.render-note { margin-top: 12px; font-size: var(--step-small); color: var(--ink-2); }
.hero-figure .render-note { text-align: right; }

/* ---------- spec (sections/spec-bands.liquid) ---------- */
.spec { background: var(--cream); padding: var(--section) 0; }
.spec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end; margin-bottom: clamp(56px, 8vw, 120px);
}
.spec-head h2 {
  grid-column: 1 / span 7;
  font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em;
}
.spec-head p { grid-column: 8 / span 5; max-width: 30em; }

.spec-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  row-gap: clamp(48px, 6vw, 96px);
}
.spec-list > .spec-row { grid-column: 1 / -1; }
.spec-list > .spec-row.is-mark { grid-column: span 4; display: block; }
.spec-list > .spec-row.is-mark:nth-child(n+7) { margin-top: clamp(32px, 5vw, 80px); }
.is-mark .mark-figure { margin: 0 0 clamp(20px, 2.4vw, 32px); }
.is-mark .spec-value { margin-bottom: 18px; }
.is-mark .spec-text { padding: 0; max-width: 26em; }
.mark-cap { display: block; margin-top: 6px; font-size: var(--step-small); }
.spec-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end;
}
.spec-value {
  grid-column: 1 / span 6;
  font-weight: var(--w-light);
  font-size: var(--step-value);
  line-height: 0.9;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.spec-value small {
  font-size: var(--step-sub); letter-spacing: 0; margin-left: 0.18em; font-weight: var(--w-regular);
}
.spec-text { grid-column: 7 / span 3; padding-bottom: 6px; }
.spec-term { font-size: var(--step-text); line-height: 1.4; font-weight: var(--w-regular); }
.spec-desc { color: var(--ink-2); margin-top: 6px; }
.spec-desc strong { color: var(--charcoal); font-weight: var(--w-regular); }
.spec-macro { grid-column: 10 / span 3; margin: 0; }
.spec-macro .media-caption { font-size: var(--step-small); }
.spec-row.no-macro .spec-text { grid-column: 7 / span 6; }

/* fixed-ratio media and named placeholders */
.media { position: relative; margin: 0; background: var(--field); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ph {
  display: flex; align-items: flex-end;
  padding: 14px;
  font-size: var(--step-small); line-height: 1.35;
}
.ph span { display: block; }
.ph { color: var(--charcoal); }
.ph code { font: inherit; }
.media-caption { margin-top: 10px; font-size: var(--step-small); }
.media-caption .secondary { display: block; }

.detail-strip { margin-top: clamp(80px, 10vw, 160px); }
.detail-strip h3 { font-size: var(--step-sub); line-height: 1.2; margin-bottom: 28px; }
.detail-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter);
}
.spec-note { margin-top: 28px; font-size: var(--step-small); color: var(--ink-2); max-width: 38em; }

/* ---------- inspection loupe (snippets/loupe.liquid) ---------- */
.inspect {
  --lens: clamp(150px, 17vw, 250px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end; margin-bottom: clamp(96px, 12vw, 180px);
}
.inspect-figure { grid-column: 1 / span 7; margin: 0; }
.inspect-stage { position: relative; touch-action: pan-y; cursor: zoom-in; }
.inspect-stage img { width: 100%; }
.inspect-figure .render-note { margin-top: calc(var(--lens) / 2 + 12px); }
.loupe {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--lens); height: var(--lens); border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--cream); background-repeat: no-repeat;
  border: 3px solid var(--bone); outline: 2px solid var(--charcoal);
  pointer-events: none;
}
.loupe.glide { transition: left .6s cubic-bezier(.16, 1, .3, 1), top .6s cubic-bezier(.16, 1, .3, 1), background-position .6s cubic-bezier(.16, 1, .3, 1); }
.inspect-side { grid-column: 9 / span 4; padding-bottom: calc(var(--lens) / 2 + 12px); }
.inspect-lede { max-width: 26em; }
.inspect-targets { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 24px; }
.inspect-targets button {
  font: inherit; font-size: var(--step-sub); line-height: 1.15; font-weight: var(--w-light);
  background: none; border: 0; padding: 6px 0; color: var(--ink-2); cursor: pointer;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.inspect-targets button:hover { color: var(--charcoal); transform: translateX(4px); }
.inspect-targets button[aria-pressed="true"] { color: var(--charcoal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.no-js .loupe, .no-js .inspect-targets, .no-js .inspect-lede { display: none; }
.no-js .inspect-figure .render-note { margin-top: 12px; }

/* ---------- faq (sections/faq.liquid) ---------- */
.qa { padding: var(--section) 0; background: var(--cream); }
.qa .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.qa h2 { grid-column: 1 / span 5; font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; }
.qa-list { grid-column: 7 / span 6; display: grid; gap: clamp(32px, 4vw, 56px); }
.qa dt { font-size: var(--step-sub); line-height: 1.2; letter-spacing: -0.01em; }
.qa dd { margin-top: 12px; max-width: 34em; }

/* ---------- collection (sections/collection-variants.liquid) ---------- */
.collection { padding: var(--section) 0; }
.collection-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
.collection-head h2 {
  grid-column: 1 / span 6;
  font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em;
}
.collection-head .lede { grid-column: 7 / span 4; }
.collection-head .lede p + p { margin-top: 16px; }

.view-toggle { display: inline-flex; margin-top: 28px; background: var(--cream); padding: 4px; }
.view-toggle button {
  font: inherit; font-size: 1rem; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 0; background: transparent; color: var(--charcoal); cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.view-toggle button[aria-pressed="true"] { background: var(--charcoal); color: var(--bone); }
.view-toggle button:hover:not([aria-pressed="true"]) { background: var(--field); }
.no-js .view-toggle { display: none; }

.variants {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter);
}
.variant a { display: block; text-decoration: none; }
.variant-figure { position: relative; margin: 0; aspect-ratio: 1194 / 1164; }
.variant-figure picture { position: absolute; inset: 0; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.variant-figure .back { opacity: 0; }
.show-back .variant-figure .front { opacity: 0; }
.show-back .variant-figure .back { opacity: 1; }
.variant a:hover .variant-figure picture { transform: translateY(-6px); }
.variant-name { margin-top: 20px; font-size: var(--step-sub); line-height: 1.2; }
.variant a:hover .variant-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.variant-meta { margin-top: 4px; color: var(--ink-2); }
.collection-foot {
  margin-top: clamp(48px, 6vw, 88px);
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between;
}
.text-link { font-size: var(--step-sub); line-height: 1.2; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- size table and notify ---------- */
.hero-status { margin-top: 16px; font-size: var(--step-small); color: var(--ink-2); max-width: 34em; }
.hero-status a { color: var(--charcoal); }
.sizes {
  margin-top: clamp(80px, 9vw, 140px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px;
}
.sizes-head { grid-column: 1 / span 4; }
.sizes-head h3 { font-size: var(--step-sub); line-height: 1.2; margin-bottom: 12px; }
.sizes-head p { color: var(--ink-2); font-size: var(--step-small); }
.sizes-head strong { color: var(--charcoal); font-weight: var(--w-regular); }
.table-wrap { grid-column: 6 / span 7; overflow-x: auto; min-width: 0; }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { text-align: left; padding: 16px 20px 16px 0; vertical-align: baseline; font-weight: var(--w-regular); }
.size-table thead th { font-size: var(--step-small); color: var(--ink-2); padding-bottom: 12px; }
.size-table tbody th { font-size: var(--step-sub); font-weight: var(--w-light); padding-left: 16px; }
.size-table tbody tr:nth-child(odd) { background: var(--cream); }
.size-table td span { display: block; font-size: var(--step-small); color: var(--ink-2); }
.notify {
  margin-top: clamp(64px, 8vw, 120px); padding: clamp(32px, 4vw, 56px);
  background: var(--cream);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gutter); row-gap: 12px; align-items: center;
}
.notify-text { font-size: var(--step-sub); line-height: 1.25; max-width: 24em; }
.notify-note { grid-column: 1 / -1; font-size: var(--step-small); color: var(--ink-2); max-width: 38em; }

/* ---------- footer (sections/footer.liquid) ---------- */
.site-footer { background: var(--charcoal); color: var(--bone); padding: clamp(72px, 9vw, 140px) 0 40px; }
.footer-top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px;
}
.footer-contact { grid-column: 1 / span 6; }
.footer-contact p { color: #CFC7B8; max-width: 28em; }
.footer-email {
  display: inline-block; margin-top: 20px;
  font-size: var(--step-sub); line-height: 1.2; text-decoration: none;
}
.footer-email:hover { text-decoration: underline; }
.copy-btn {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: 16px; padding: 0 14px;
  font: inherit; font-size: var(--step-small); color: var(--bone); background: #45413A; border: 0; cursor: pointer;
  transition: background-color .18s var(--ease);
}
.copy-btn:hover { background: #56514A; }
.no-js .copy-btn { display: none; }
.footer-cols { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-cols h2 { font-size: 1rem; font-weight: var(--w-regular); color: #CFC7B8; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li + li { margin-top: 6px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-base {
  margin-top: clamp(72px, 9vw, 140px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: var(--step-small); color: #CFC7B8;
}
.footer-mark { width: 56px; color: var(--bone); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero-figure img { animation: settle 1.4s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loupe.glide, .inspect-targets button { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-figure img { animation: none; }
  .variant-figure picture, .button, .view-toggle button { transition: none; }
  .variant a:hover .variant-figure picture { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .spec-value { grid-column: 1 / span 7; }
  .spec-text { grid-column: 8 / span 5; }
  .spec-macro { grid-column: 8 / span 3; grid-row: 2; margin-top: 20px; }
  .spec-row.no-macro .spec-text { grid-column: 8 / span 5; }
  .inspect-figure { grid-column: 1 / span 8; }
  .inspect-side { grid-column: 9 / span 4; }
}

@media (max-width: 900px) {
  .hero .wrap { min-height: 0; padding-top: 8px; row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { grid-column: 1 / -1; }
  .hero-statement { grid-row: 1; margin-top: 16px; }
  .hero-figure { grid-column: 1 / -1; grid-row: 2; margin-top: 24px; }
  .hero-figure img { max-height: 40svh; width: auto; margin: 0 auto; }
  .hero-h1 { grid-row: 3; margin-top: 16px; }
  .hero-action { grid-row: 4; margin-top: 20px; }
  .hero-entity { grid-row: 5; margin-top: 24px; }
  .hero-figure .render-note { text-align: left; }
  .spec-head h2, .spec-head p,
  .collection-head h2, .collection-head .lede { grid-column: 1 / -1; }
  .spec-head p, .collection-head .lede { margin-top: 24px; }
  .variants { grid-template-columns: 1fr; gap: 56px; }
  .variant-figure { max-width: 560px; }
  .footer-contact, .footer-cols { grid-column: 1 / -1; }
  .inspect-figure, .inspect-side { grid-column: 1 / -1; }
  .inspect-side { margin-top: 8px; padding-bottom: 0; }
  .inspect-figure .render-note { margin-top: calc(var(--lens) / 2 + 4px); }
  .qa h2, .qa-list { grid-column: 1 / -1; }
  .qa h2 { position: static; }
  .sizes-head, .table-wrap { grid-column: 1 / -1; }
  .notify { grid-template-columns: 1fr; }
  .qa-list { margin-top: 40px; }
}

@media (max-width: 640px) {
  .site-header .wrap { min-height: 64px; }
  .site-nav ul { gap: 18px; }
  .site-nav a { font-size: 0.9375rem; }
  .spec-row { grid-template-columns: minmax(0, 1fr) 34%; column-gap: 16px; row-gap: 16px; align-items: end; }
  .spec-value { grid-column: 1; grid-row: 1; }
  .spec-macro { grid-column: 2; grid-row: 1; margin: 0; }
  .spec-text, .spec-row.no-macro .spec-text { grid-column: 1 / -1; grid-row: 2; }
  .spec-row.no-macro .spec-value { grid-column: 1 / -1; }
  .spec-list > .spec-row.is-mark { grid-column: 1 / -1; }
  .spec-list > .spec-row.is-mark:nth-child(n+8) { margin-top: 0; }
  .is-mark .mark-figure { max-width: 420px; }
  .detail-strip ul { grid-template-columns: 1fr; gap: 40px; }
  .detail-strip li { max-width: 420px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .copy-btn { margin: 12px 0 0; }
  .footer-email { display: block; word-break: break-all; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 1.0625rem; letter-spacing: 0.1em; }
  .site-nav ul { gap: 14px; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: var(--step-small); color: var(--ink-2); padding: 8px 0 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--charcoal); text-decoration: underline; }
.crumbs [aria-current] { color: var(--charcoal); }

/* ---------- product page (sections/main-product.liquid) ---------- */
.pdp { padding-bottom: var(--section); }
.pdp-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: 24px; align-items: start;
}
.pdp-gallery { grid-column: 1 / span 7; display: grid; gap: clamp(32px, 4vw, 56px); min-width: 0; }
.pdp-shot { margin: 0; }
.pdp-frame { background: var(--cream); }
.pdp-frame-wide { padding: clamp(16px, 3vw, 48px); }
.pdp-frame img { width: 100%; }
.pdp-color[hidden] { display: none; }
.pdp-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.pdp-details .pdp-frame { aspect-ratio: 4 / 5; overflow: hidden; }
.pdp-details .pdp-frame img { height: 100%; object-fit: cover; }
.pdp-panel { grid-column: 9 / span 4; min-width: 0; }
.pdp-sticky { position: sticky; top: 24px; display: grid; gap: 20px; }
.pdp h1 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; }
.pdp-sub { font-size: var(--step-sub); line-height: 1.25; }
.pdp-price { font-size: var(--step-sub); line-height: 1.2; font-variant-numeric: tabular-nums; }
.pdp-price small { font-size: var(--step-small); color: var(--ink-2); margin-left: 6px; }
.pdp-price-note, .pdp-status, .opt-note { font-size: var(--step-small); color: var(--ink-2); }
.pdp-form { display: grid; gap: 24px; margin-top: 8px; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 12px; }
.opt legend span { color: var(--ink-2); }
.swatches { display: grid; gap: 8px; }
.swatch {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; background: var(--cream); cursor: pointer;
  transition: background-color .18s var(--ease);
}
.swatch:hover { background: var(--field); }
.swatch input, .size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-chip { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 1px rgba(51, 48, 43, .25); } /* taste-skill-ignore: a swatch needs an edge so White reads on cream */
.swatch-note { font-size: var(--step-small); color: var(--ink-2); }
.swatch:has(input:checked) { background: var(--charcoal); color: var(--bone); }
.swatch:has(input:checked) .swatch-note { color: #CFC7B8; }
.swatch:has(input:focus-visible), .size:has(input:focus-visible) { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.sizes-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size { display: grid; place-items: center; min-height: 52px; background: var(--cream); cursor: pointer; font-size: var(--step-sub); font-weight: var(--w-light); transition: background-color .18s var(--ease); }
.size:hover { background: var(--field); }
.size:has(input:checked) { background: var(--charcoal); color: var(--bone); }
.button-full { width: 100%; }
.pdp-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: var(--step-small); }
.pdp-facts span { display: block; color: var(--ink-2); }

.pdp-spec { background: var(--cream); padding: var(--section) 0; }
.pdp-spec h2, .pdp-care h2, .name-rules h2 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; }
.spec-sheet { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.spec-sheet > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; }
.spec-sheet > div:nth-child(4n+1), .spec-sheet > div:nth-child(4n+2) { background: var(--bone); }
.spec-sheet > div { padding-left: 16px; padding-right: 16px; }
.spec-sheet dt { color: var(--ink-2); }
.pdp-sizes { padding: var(--section) 0 0; }
.pdp-sizes .sizes { margin-top: 0; }
.pdp-sizes h2 { font-size: var(--step-sub); line-height: 1.2; margin-bottom: 12px; }
.sizes-head .how { margin-top: 16px; }
.size-table tr.is-active { background: var(--charcoal) !important; color: var(--bone); }
.size-table tr.is-active td span { color: #CFC7B8; }
.pdp-care { padding: var(--section) 0; }
.care-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.care-grid h2 { grid-column: 1 / span 5; }
.care-grid > div { grid-column: 7 / span 6; }
.care-lede { color: var(--ink-2); max-width: 34em; }
.care-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.care-list li { display: grid; grid-template-columns: 6em 1fr; gap: 16px; }
.care-list strong { font-weight: var(--w-regular); }
.pdp-next { padding: 0 0 var(--section); }
.pdp-next-line { font-size: var(--step-sub); line-height: 1.3; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }

/* ---------- the name (sections/name-*.liquid) ---------- */
.name { padding: 0 0 var(--section); }
.name-h1 { font-size: var(--step-sub); line-height: 1.2; margin-top: clamp(40px, 6vw, 96px); }
.headword { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-top: 12px; }
.headword-term { font-weight: var(--w-light); font-size: clamp(4rem, 1rem + 13vw, 15rem); line-height: 0.85; letter-spacing: -0.05em; }
.headword-pos { font-size: var(--step-sub); color: var(--ink-2); font-style: italic; }
.name-def { margin-top: clamp(40px, 5vw, 72px); max-width: 40em; display: grid; gap: 18px; margin-left: auto; margin-right: 0; }
.name-def-text { font-size: var(--step-sub); line-height: 1.3; }
.name-rules { background: var(--cream); padding: var(--section) 0; }
.rules-table { width: 100%; border-collapse: collapse; margin-top: clamp(40px, 5vw, 72px); }
.rules-table th, .rules-table td { text-align: left; vertical-align: baseline; padding: 22px 16px; font-weight: var(--w-regular); }
.rules-table thead th { font-size: var(--step-small); color: var(--ink-2); padding-bottom: 12px; }
.rules-table tbody th { font-size: var(--step-sub); font-weight: var(--w-light); width: 40%; }
.rules-table tbody td { font-size: var(--step-sub); line-height: 1.25; }
.rules-table tbody tr:nth-child(odd) { background: var(--bone); }
.name-sources { margin-top: 28px; font-size: var(--step-small); color: var(--ink-2); max-width: 46em; }
.name-rules .pdp-next-line { margin-top: clamp(48px, 6vw, 96px); }
.partners { padding: 0 0 var(--section); }

/* ---------- hero color switcher ---------- */
.hero-swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.hero-swatches button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 10px;
  font: inherit; font-size: var(--step-small); color: var(--charcoal); background: var(--cream); border: 0; cursor: pointer;
  transition: background-color .18s var(--ease);
}
.hero-swatches button:hover { background: var(--field); }
.hero-swatches button[aria-pressed="true"] { background: var(--charcoal); color: var(--bone); }
.hero-swatches i { width: 18px; height: 18px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 1px rgba(51, 48, 43, .25); } /* taste-skill-ignore: swatch edge */
.no-js .hero-swatches { display: none; }
.hero-figure picture { display: block; transition: opacity .35s var(--ease); }
.hero-figure.is-swapping picture { opacity: 0; }

@media (max-width: 1000px) {
  .pdp-grid { grid-template-columns: minmax(0, 1fr); row-gap: clamp(32px, 4vw, 56px); }
  .pdp-gallery { display: contents; }
  .pdp-gallery > * { order: 3; }
  .pdp-gallery > .pdp-shot:first-child { order: 1; }
  .pdp-panel { grid-column: 1 / -1; order: 2; }
  .pdp-sticky { position: static; }
  .spec-sheet { grid-template-columns: 1fr; }
  .spec-sheet > div:nth-child(4n+1), .spec-sheet > div:nth-child(4n+2) { background: none; }
  .spec-sheet > div:nth-child(odd) { background: var(--bone); }
  .care-grid h2, .care-grid > div { grid-column: 1 / -1; }
  .care-grid > div { margin-top: 24px; }
}
@media (max-width: 900px) { .hero-swatches { justify-content: flex-start; } }
@media (max-width: 640px) {
  .spec-sheet > div { grid-template-columns: 1fr; gap: 4px; }
  .pdp-details { gap: 16px; }
  .rules-table tbody th { width: auto; }
  .name-def { margin-left: 0; }
}

.name-band { list-style: none; margin: clamp(48px, 6vw, 96px) 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.name-band a { display: block; background: var(--bone); padding: clamp(12px, 2vw, 28px); }
.name-band-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.name-band-2 picture { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.name-band-2 img { width: 100%; height: 100%; object-fit: cover; }
.pdp-facts { font-size: var(--step-text); }
.sizes-head p, .care-lede { color: var(--charcoal); max-width: 60ch; }
.headword { margin-top: clamp(16px, 2.4vw, 36px); }
.headword-term { line-height: 0.92; }
@media (max-width: 900px) { .name-band { grid-template-columns: 1fr; max-width: 520px; } .name-band-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rules-table, .rules-table tbody, .rules-table tr, .rules-table th, .rules-table td { display: block; width: auto; }
  .rules-table thead { display: none; }
  .rules-table tbody th { padding-bottom: 4px; }
  .rules-table tbody td { padding-top: 0; font-size: var(--step-text); }
}

/* ---------- launch list form ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.notify-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; max-width: 520px; }
.notify-form input {
  font: inherit; font-size: 1rem; min-height: 52px; padding: 0 16px; border: 0; border-radius: 0;
  background: var(--bone); color: var(--charcoal);
}
.notify .notify-form input { background: var(--bone); }
.pdp .notify-form input { background: var(--cream); }
.notify-form input::placeholder { color: var(--ink-2); }
.notify-form .button[disabled] { opacity: .6; cursor: progress; }
.notify-msg { grid-column: 1 / -1; font-size: var(--step-small); min-height: 1.4em; }
.notify-form.is-done input, .notify-form.is-done .button { display: none; }
.notify-note a, .pdp-status a { color: var(--charcoal); }
.notify { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.legal { padding: 0 0 var(--section); }
.legal-body { max-width: 44em; margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 16px; }
.legal-body h2 { font-size: var(--step-sub); line-height: 1.2; margin-top: 24px; }
.legal-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
@media (max-width: 900px) { .notify { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .notify-form { grid-template-columns: 1fr; } }

/* ---------- sticky header with launch-list action ---------- */
.site-header { position: sticky; top: 0; z-index: 20; transition: transform .35s var(--ease); }
.site-header .wrap { gap: clamp(12px, 3vw, 40px); }
.site-nav { margin-left: auto; }
.header-cta {
  min-height: 40px; padding: 0 18px; font-size: var(--step-small);
  opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .18s var(--ease);
}
.site-header.show-cta .header-cta { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.no-js .header-cta { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
@media (max-width: 640px) {
  .site-header.is-hidden { transform: translateY(-100%); }
  .header-cta { padding: 0 12px; }
}
@media (max-width: 380px) { .header-cta { font-size: 0.8125rem; padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .site-header, .header-cta { transition: none; } }

/* ---------- guide (sections/main-article.liquid) ---------- */
.guide { padding: 0 0 var(--section); }
.guide-h1 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; margin-top: clamp(32px, 5vw, 80px); max-width: 12em; text-wrap: balance; }
.guide-lede { font-size: var(--step-sub); line-height: 1.3; max-width: 34em; margin-top: clamp(24px, 3vw, 40px); }
.guide-meta { margin-top: 16px; font-size: var(--step-small); color: var(--ink-2); }
.guide-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(56px, 7vw, 112px); align-items: start; }
.guide-body { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 18px; max-width: 40em; min-width: 0; }
.guide-body h2 { font-size: var(--step-sub); line-height: 1.2; margin-top: 32px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.gsm-table tbody th { font-size: var(--step-text); font-weight: var(--w-regular); }
.guide-aside { grid-column: 9 / span 4; position: sticky; top: 96px; display: grid; gap: 16px; }
.guide-aside figure { margin: 0; }
.guide-aside-text { font-size: var(--step-sub); line-height: 1.25; }
@media (max-width: 1000px) { .guide-body, .guide-aside { grid-column: 1 / -1; } .guide-aside { position: static; margin-top: 56px; max-width: 420px; } }
@media (max-width: 420px) { .guide-h1 { font-size: 2rem; } }

/* ---------- hero fit: the switcher and the launch-list action sit on the first screen, down to 1366x573 ---------- */
.hero .wrap {
  align-items: start;
  min-height: 0;
  padding-top: clamp(12px, 3.2svh, 40px);
  padding-bottom: clamp(32px, 6svh, 72px);
}
.hero-copy { padding-bottom: 0; }
.hero-statement { font-size: min(var(--step-display), 11.5svh); }
.hero-h1 { margin-top: clamp(14px, 2.6svh, 32px); }
.hero-action { margin-top: clamp(18px, 3.4svh, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.hero-link { color: var(--charcoal); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .18s var(--ease); }
.hero-link:hover { color: var(--ink-2); }
.hero-status { margin-top: 14px; }
.hero-entity { margin-top: clamp(20px, 4svh, 44px); color: var(--charcoal); font-size: 1rem; max-width: 36em; }
.hero-figure { display: flex; flex-direction: column; align-self: start; }
.hero-swatches { order: -1; margin: 0 0 clamp(10px, 2svh, 20px); justify-content: center; }
.hero-figure picture { display: flex; justify-content: center; }
.hero-figure img { width: auto; max-width: 100%; max-height: calc(100svh - 72px - 44px - 92px); object-fit: contain; object-position: center top; }
.hero-figure .render-note { text-align: center; }
@media (max-width: 900px) {
  .hero .wrap { padding-top: 8px; }
  .hero-statement { font-size: var(--step-display); }
  .hero-figure { align-self: auto; }
  .hero-figure picture { justify-content: center; }
  .hero-figure img { max-height: 36svh; object-position: center; }
  .hero-swatches { justify-content: center; margin-bottom: 12px; }
  .hero-action { grid-row: 4; }
  .hero-status { grid-row: 5; }
  .hero-entity { grid-row: 6; }
}

/* Field notes opt-in under the launch-list form */
.notify-opt { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: var(--step-small); color: var(--charcoal); line-height: 1.45; cursor: pointer; }
.notify-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--charcoal); flex: none; }
.notify-form.is-done .notify-opt { display: none; }
