/*
  Atzi: a trade house on a limewashed wall.
  Layout: 1240px column; photography runs full bleed. Product photos sit on white cards.
  Color: Guadalupe-mantle indigo for ink, marigold for focus and small accents. Light mode only.
  Type: Big Shoulders Display (tall and condensed, like the label) over Source Serif 4.
*/
/* Self-hosted fonts (site/src/fonts, OFL 1.1, sources in SOURCES.txt) */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("/assets/fonts/big-shoulders-display-v24-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/source-serif-4-v15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/source-serif-4-v15-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("/assets/fonts/big-shoulders-display-v24-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/source-serif-4-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/source-serif-4-v15-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --wall: #f6f3ec;
  --wall-2: #efeae0;
  --paper: #ffffff;
  --ink: #16224a;
  --ink-2: #0d1636;
  --ink-soft: #4d536c;
  --rule: #ddd8cc;
  --rule-strong: #bdb6a6;
  --marigold: #f0a321;
  --marigold-soft: #fbe7c2;
  --tint: #ebe6da;

  --c-green: #1f7a3c;
  --c-red: #c4231b;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --gutter: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 18px/1.65 var(--serif); overflow-x: hidden; }
h1, h2, h3, p, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.2vw, 6.25rem); max-width: 16ch; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.9rem; font-weight: 600; }
a { color: var(--ink); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.col { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 900px) { :root { --gutter: 32px; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; z-index: 10; }
.skip:focus { top: 12px; }
.kicker { font: 600 0.85rem/1.2 var(--serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--marigold); vertical-align: middle; margin-right: 12px; }

/* signed-in / signed-out state (atzi_ws marker cookie -> html.ws) */
html:not(.ws) [data-ws="in"] { display: none !important; }
html.ws [data-ws="out"] { display: none !important; }

/* Header */
.top { background: var(--wall); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 4px 32px; padding-block: 12px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; min-height: 44px; line-height: 0; margin-right: auto; }
.mark img { display: block; height: 46px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 1rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav a[aria-current] { text-decoration-color: var(--marigold); }
.acct { display: flex; align-items: center; gap: 4px 18px; }
.acct-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.acct-btn:hover { background: var(--ink); color: #fff; }
.acct-in { background: var(--ink); color: #fff; }
.acct-out { font: inherit; font-size: 0.95rem; background: none; border: 0; color: var(--ink-soft); min-height: 44px; padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 0.95rem; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; font: 600 1.05rem/1.2 var(--serif); background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 4px; padding: 14px 26px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--ink-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--paper); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.75); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-block; padding-block: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.lede { font-size: 1.22rem; line-height: 1.6; color: var(--ink-soft); max-width: 40em; }
.fine { font-size: 0.85rem; color: var(--ink-soft); }

/* Sections */
.block { padding-block: clamp(64px, 9vw, 128px); }
.block-tight { padding-block: clamp(32px, 5vw, 56px); }
.band { background: var(--paper); border-block: 1px solid var(--rule); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.12rem; max-width: 36em; }
.sec-title { margin-bottom: 24px; }

/* Home hero: full-bleed photograph, copy on an indigo scrim */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 22 54 / 0.86) 0%, rgb(13 22 54 / 0.62) 38%, rgb(13 22 54 / 0.05) 72%); }
.hero-media .is-lineup { object-position: 100% 50%; }
.hero-copy { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; padding-block: clamp(96px, 14vw, 160px) clamp(56px, 8vw, 104px); }
.hero-text { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.hero .kicker { color: #e6e3f0; }
.hero h1 { color: #fff; }
.hero-body { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: #e9e8f1; max-width: 34em; }
.hero .actions { margin-top: 8px; }

/* Intention tiles */
.intents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.intents a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; transition: border-color 120ms, box-shadow 120ms; }
.intents a:hover { border-color: var(--rule-strong); box-shadow: 0 10px 28px -16px rgb(22 34 74 / 0.45); }
.intent-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.intent-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.35); transition: transform 300ms; }
.intents a:hover .intent-img img { transform: scale(1.42); }
.intent-body { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; padding: 16px 18px 18px; border-top: 1px solid var(--tint); }
.intent-name { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.05; }
.intent-n { font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }

/* Scenes: how they're used */
.scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.scene { grid-column: span 4; }
.scenes .scene:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.scenes .scene:nth-child(2), .scenes .scene:nth-child(3) { grid-column: span 5; }
.scene a { position: relative; display: block; height: 100%; min-height: 240px; border-radius: 6px; overflow: hidden; text-decoration: none; background: var(--tint); }
.scene-img { position: absolute; inset: 0; }
.scene-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms; }
.scene a:hover .scene-img img { transform: scale(1.03); }
.scene-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.05; background: linear-gradient(0deg, rgb(13 22 54 / 0.8), rgb(13 22 54 / 0)); }
.scene-cap:empty { display: none; }
.scenes .scene:nth-child(1) a { min-height: 520px; }
.scenes .scene:nth-child(1) .scene-cap { font-size: 2.1rem; padding: 64px 28px 24px; }

/* Colors */
.colors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.color-tile { display: flex; flex-direction: column; gap: 2px; }
.color-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; border: 1px solid var(--rule); border-radius: 6px; margin-bottom: 10px; }
.color-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.color-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.1; }
.color-for { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.35; }
.color-n { font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgb(0 0 0 / 0.15); vertical-align: -1px; margin-right: 6px; }
.color-name .dot { margin-right: 0; }
.dot-red { background: #c4231b; } .dot-pink { background: #e98aa8; } .dot-gold { background: #d9a520; } .dot-orange { background: #e8731c; }
.dot-green { background: #1f7a3c; } .dot-blue { background: #2b5fb4; } .dot-purple { background: #6b3a8c; } .dot-clear { background: #fff; border-color: #9aa; }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 2px solid var(--ink); }
.spec div { display: flex; flex-direction: column; gap: 4px; }
.spec dt { font-size: 0.9rem; color: var(--ink-soft); }
.spec dd { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Wholesale call to action: full-bleed photo with indigo scrim */
.ws-cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.ws-media { position: absolute; inset: 0; }
.ws-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 22 54 / 0.92) 0%, rgb(13 22 54 / 0.75) 45%, rgb(13 22 54 / 0.25) 100%); }
.ws-in { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.ws-text { max-width: 600px; display: flex; flex-direction: column; gap: 20px; }
.ws-text h2 { color: #fff; }
.ws-text p { color: #e1e2ee; font-size: 1.15rem; }
.ws-cta + * { margin-top: 0; }

/* Inner page hero */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 22 54 / 0.9) 0%, rgb(13 22 54 / 0.65) 45%, rgb(13 22 54 / 0.1) 85%); }
.page-hero-in { position: relative; display: flex; flex-direction: column; gap: 18px; padding-block: clamp(72px, 10vw, 136px) clamp(48px, 7vw, 88px); }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero .kicker { color: #e6e3f0; }
.page-hero .lede { color: #e1e2ee; max-width: 36em; }

/* Oils overview: intentions list */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--ink); }
.cat-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.cat-list li:target { background: var(--marigold-soft); margin-inline: -12px; padding-inline: 12px; }
.cat-name { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.1; }
.cat-n { font-size: 0.92rem; color: var(--ink-soft); align-self: baseline; font-variant-numeric: tabular-nums; }
.cat-feat { grid-column: 1 / -1; font-size: 0.95rem; color: var(--ink-soft); }
.cat-feat:empty { display: none; }
.cat-feat a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.catalog-public { padding-bottom: clamp(56px, 8vw, 104px); }
.facet-strip { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.facet-strip .facet-opts { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.facet-strip .facet-opt { width: auto; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 8px 16px; min-height: 44px; }

/* Product cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-pairs .card-name { font-size: 1.2rem; }
.grid-pairs .card-alt, .grid-pairs .card-meta { display: none; }
.grid-pairs .card-body { padding: 8px 10px 10px; }
@media (max-width: 860px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; text-decoration: none; transition: border-color 120ms, box-shadow 120ms; }
.card a:hover { border-color: var(--rule-strong); box-shadow: 0 10px 28px -16px rgb(22 34 74 / 0.45); }
.card-img { display: block; aspect-ratio: 1; background: #fff; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 16px; border-top: 1px solid var(--tint); flex: 1; }
.card-name { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.05; letter-spacing: 0.005em; }
.card-alt { font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }
.card-meta { display: flex; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Gated catalog page */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap; }
.catalog { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px 40px; align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.catalog-public { display: block; }
.filters { position: sticky; top: 16px; }
.filters-in { display: flex; flex-direction: column; gap: 28px; }
.facet { border: 0; padding: 0; margin: 0; min-width: 0; }
.facet-opts { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.facet legend { padding: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1; }
.facet-opt { display: flex; align-items: center; gap: 2px; width: 100%; min-height: 44px; text-align: left; font: inherit; font-size: 0.95rem; line-height: 1.3; color: var(--ink); background: none; border: 0; border-radius: 4px; padding: 7px 10px; cursor: pointer; }
.facet-opt .n { margin-left: auto; padding-left: 10px; color: var(--ink-soft); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .facet-opt:hover { background: var(--tint); } .facet-opt[aria-pressed="true"]:hover { background: var(--ink); } }
.facet-opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.facet-opt[aria-pressed="true"] .n { color: #c8cce0; }
.facet-opt[disabled] { opacity: 0.45; cursor: default; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; margin-bottom: 20px; }
.search input { width: 100%; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.sort select { width: auto; }
.count { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-soft); }
.empty { padding: 48px 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
html:not(.js) .filters, html:not(.js) .toolbar .search, html:not(.js) .toolbar .sort, html:not(.js) .facet-strip { display: none; }
html:not(.js) .catalog { grid-template-columns: 1fr; }

/* Product page */
.crumbs { padding-top: 10px; font-size: 0.9rem; }
.crumbs ol { list-style: none; margin: 0 0 0 -9px; padding: 0; display: flex; flex-wrap: wrap; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; color: var(--rule-strong); }
.crumbs a { display: inline-block; padding: 10px 9px; color: var(--ink-soft); }
.crumbs a[aria-current] { color: var(--ink); text-decoration: none; }
.pdp { padding-block: 10px clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 48px; }
.pdp-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.shot { background: #fff; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.shot img { display: block; width: 100%; }
.shot-label { padding: clamp(16px, 4vw, 36px); }
.shot-label a { display: block; position: relative; text-decoration: none; }
.shot-label img { max-width: 520px; margin-inline: auto; box-shadow: 0 1px 6px rgb(22 34 74 / 0.18); }
.zoom { display: block; text-align: center; margin-top: 14px; font-size: 0.9rem; text-decoration: underline; }
.js .shot[data-inactive] { display: none; }
.thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.thumb { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.thumb img { max-height: 80px; width: auto; }
.thumb[aria-current="true"] { border: 2px solid var(--ink); }
html:not(.js) .thumbs { display: none; }
.buy { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 16px; }
.buy h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.alt-name { margin-top: -10px; font-size: 1.3rem; font-style: italic; color: var(--ink-soft); }
.tagline { font-size: 1.22rem; line-height: 1.5; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts dt { font-size: 0.82rem; color: var(--ink-soft); }
.facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta .btn { font-size: 1.1rem; }
.disclaimer-box { font-size: 0.88rem; color: var(--ink-soft); background: var(--tint); border-radius: 4px; padding: 12px 14px; line-height: 1.5; }
.pdp-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; border-top: 1px solid var(--rule); padding-top: 36px; }
.pdp-sec { display: flex; flex-direction: column; gap: 14px; }
.pdp-sec h2 { font-size: 1.9rem; font-weight: 600; }
.ways { display: flex; flex-direction: column; gap: 14px; }
.ways dt { font-weight: 600; }
.ways dt a { text-decoration-color: var(--rule-strong); }
/* inline links in short lists: enlarge the tap area without moving the text */
.facts dd a, .ways dt a, .method-oils a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.ways dd { color: var(--ink-soft); }
.more-line { margin-top: 4px; }
.related { border-top: 1px solid var(--rule); padding-bottom: clamp(48px, 7vw, 96px); }

/* Guide */
.guide { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.guide-hero.no-photo .page-hero-media { display: none; }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 46em); gap: 24px 64px; align-items: start; }
.toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; border-top: 2px solid var(--ink); padding-top: 12px; }
.toc h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 0.95rem; display: flex; flex-direction: column; }
.toc ol ol { padding-left: 1.1em; list-style: lower-alpha; font-size: 0.9rem; }
.toc a { display: block; padding-block: 8px; line-height: 1.3; }
.guide-body { display: flex; flex-direction: column; gap: 0; }
.guide-intro p { font-size: 1.08rem; padding-bottom: 28px; }
.guide-sec { padding-block: 28px 32px; border-top: 2px solid var(--ink); scroll-margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.guide-sec > h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.basics { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.method { padding-block: 22px 26px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.guide-sec > h2 + .method { border-top: 0; padding-top: 4px; }
.method h3 { font-size: 1.9rem; }
.method-photo { border-radius: 6px; overflow: hidden; background: var(--tint); aspect-ratio: 3 / 2; }
.method-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.method-steps { margin: 0; padding-left: 1.5em; display: flex; flex-direction: column; gap: 8px; }
.method-steps li::marker { font-weight: 600; }
.tip { background: var(--marigold-soft); border-left: 3px solid var(--marigold); border-radius: 0 4px 4px 0; padding: 12px 14px; font-size: 0.98rem; line-height: 1.55; }
.method-oils { font-size: 0.92rem; color: var(--ink-soft); }
.method-oils span { font-weight: 600; }
.choose, .glossary { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.choose div, .glossary div { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 4px 24px; }
.choose dt, .glossary dt { font-weight: 600; }
.choose dd a { display: inline-block; padding-block: 8px; margin-block: -8px; }
.choose-note { display: block; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 4px; }
.glossary dd { color: var(--ink-soft); }
.faq-item { padding-block: 14px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.faq-item h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.guide-body .more-line { padding-top: 24px; }

/* Legal pages */
.legal { padding-bottom: clamp(48px, 7vw, 96px); }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.legal-body { max-width: 44em; display: flex; flex-direction: column; gap: 14px; }
.legal-body h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-top: 22px; scroll-margin-top: 16px; }
.legal-body h3, .legal-body h4 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; margin-top: 8px; }
.legal-body ul, .legal-body ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.legal-body a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }
.legal-body table { border-collapse: collapse; width: 100%; min-width: 34em; font-size: 0.92rem; line-height: 1.45; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.legal-body th { background: var(--wall-2); font-weight: 600; }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body code { font-size: 0.88em; overflow-wrap: anywhere; }
.legal-body hr { border: 0; border-top: 1px solid var(--rule); margin: 8px 0; width: 100%; }

/* Product image note */
.img-note { font-size: 0.8rem; line-height: 1.4; color: var(--ink-soft); }

/* Wholesale page */
.notices { display: flex; flex-direction: column; gap: 12px; }
.notices:has(> :not([hidden])) { padding-top: 32px; }
html:not(.ws) .notices:not(:has(> :not([hidden]):not([data-ws="in"]))) { padding-top: 0; }
.notice { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--marigold); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.notice h2 { font-size: 1.8rem; font-weight: 600; }
.notice-ok { border-left-color: var(--c-green); }
.notice-dev { font-size: 0.9rem; background: var(--marigold-soft); border-left-color: var(--marigold); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); }
.step-n { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--marigold); }
.steps p { color: var(--ink-soft); }
.apply-band { background: var(--ink); color: #f3f5f0; scroll-margin-top: 0; }
.apply-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 72px; align-items: start; }
.apply-side { display: flex; flex-direction: column; gap: 16px; }
.apply-side h2 { color: #fff; }
.apply-side > p { color: #c8cce0; }
.signin-box { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.25); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.signin-box h3 { color: #fff; }
.signin-box p { color: #c8cce0; }
.form { background: var(--paper); color: var(--ink); border-radius: 6px; padding: clamp(20px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form h3:focus { outline: none; }
.done { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.full { grid-column: 1 / -1; }
label { font-size: 0.95rem; font-weight: 600; }
input, select, textarea { font: inherit; font-size: max(16px, 1rem); min-height: 48px; width: 100%; padding: 11px 12px; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fcfbf8; color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--c-red); background: #fdf1f0; }
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; min-width: 0; }
.pw-toggle { flex: none; min-width: 72px; min-height: 48px; font: inherit; font-size: 0.95rem; background: var(--wall); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 4px; cursor: pointer; }
.hint { font-size: 0.85rem; color: var(--ink-soft); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.status { font-weight: 600; }
.status:empty { display: none; }
.status.ok { color: var(--c-green); } .status.err { color: var(--c-red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 72px; align-items: start; scroll-margin-top: 0; }
.contact .form { border: 1px solid var(--rule); }

/* Callback / gate pages */
.callback { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; max-width: 640px; }
.callback h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }

/* Footer */
.foot { padding-block: 48px 52px; font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--rule); background: var(--wall-2); }
.foot-in { display: flex; flex-direction: column; gap: 12px; }
.foot-mark { display: inline-flex; align-items: center; min-height: 44px; }
.foot-mark img { display: block; height: 40px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.disclaimer { max-width: 60em; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 0.88rem; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }

@media (max-width: 1000px) {
  .pdp-body { grid-template-columns: 1fr 1fr; }
  .pdp-body > :first-child { grid-column: 1 / -1; }
  .intents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 12px; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenes .scene, .scenes .scene:nth-child(1), .scenes .scene:nth-child(2), .scenes .scene:nth-child(3) { grid-column: span 1; grid-row: auto; }
  .scenes .scene:nth-child(1) { grid-column: 1 / -1; }
  .scenes .scene:nth-child(1) a { min-height: 420px; }
  .scene a { min-height: 280px; }
}
@media (max-width: 860px) {
  .apply-in, .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; min-width: 0; }
  .filters-in { gap: 12px; }
  .facet legend { font-size: 1.15rem; }
  /* facet options become one row of chips that scrolls sideways, edge to edge */
  .facet-opts, .facet-strip .facet-opts { position: relative; flex-direction: row; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .facet-opts::-webkit-scrollbar { display: none; }
  .facet-opt { flex: none; width: auto; min-height: 44px; white-space: nowrap; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 8px 14px; font-size: 0.95rem; }
  .facet-opt[disabled] { display: none; }
  .facet-opt .n { padding-left: 6px; }
  .cat-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  /* phones and tablets: name first, then photos, then the details */
  .pdp-top { display: flex; flex-direction: column; gap: 18px; }
  .buy { display: contents; }
  .buy h1, .alt-name { order: -1; }
  .buy h1 { font-size: clamp(2.5rem, 9vw, 3.6rem); }
  .alt-name { margin-top: -12px; margin-bottom: 2px; }
  .pdp { gap: 32px; }
  .pdp-body { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; overflow: visible; }
  .toc ol ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; padding-left: 0; list-style: none; }
  .toc ol ol a { padding-block: 10px; }
  /* hero: photo on top, copy below on indigo */
  .hero-media { position: relative; aspect-ratio: 4 / 3; }
  .hero-media::after { background: linear-gradient(0deg, rgb(13 22 54 / 1) 0%, rgb(13 22 54 / 0) 40%); }
  .hero-copy { min-height: 0; padding-block: 8px 48px; }
  .page-hero-media::after { background: linear-gradient(90deg, rgb(13 22 54 / 0.9), rgb(13 22 54 / 0.7)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 1.3rem; }
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; margin-bottom: 14px; }
  .toolbar .search { grid-column: 1 / -1; }
  .count { grid-column: 1; grid-row: 2; }
  .sort { grid-column: 2; grid-row: 2; }
  .sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lede { font-size: 1.08rem; }
  .choose div, .glossary div { grid-template-columns: 1fr; }
  /* legal tables: one stacked card per row, each cell labelled with its column */
  .table-wrap { overflow: visible; border: 0; background: none; }
  .legal-body table { min-width: 0; }
  .legal-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-body tr { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 10px; }
  .legal-body td { display: block; border-bottom: 1px solid var(--tint); }
  .legal-body td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
  .method h3 { font-size: 1.6rem; }
  .sec-sub { font-size: 1.02rem; }
  .intents { gap: 12px; }
  .intent-body { padding: 12px; flex-direction: column; align-items: flex-start; }
  .intent-name { font-size: 1.3rem; }
  .colors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .color-img { aspect-ratio: 1; }
  .spec { grid-template-columns: 1fr 1fr; gap: 16px; }
  .spec dd { font-size: 1.35rem; }
  .scenes { grid-template-columns: 1fr; gap: 12px; }
  .scenes .scene:nth-child(1) a { min-height: 340px; }
  .scene a { min-height: 260px; }
  .top-in { padding-block: 8px 0; gap: 0 12px; }
  .mark img { height: 40px; }
  .acct { gap: 0 10px; }
  .acct-btn { padding: 0 12px; font-size: 0.88rem; }
  .acct-out { font-size: 0.88rem; }
  .lang { font-size: 0.88rem; }
  .nav { order: 3; width: 100%; gap: 0 20px; font-size: 0.95rem; }
  .hero .actions .btn, .ws-text .actions .btn, .page-head-row .btn, .done .btn { width: 100%; }
  .hero-media { aspect-ratio: 1; }
}
@media (max-width: 400px) {
  .acct-btn { padding: 0 10px; font-size: 0.84rem; }
  .mark img { height: 36px; }
}
