@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Variable.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Variable.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

/* Pourbles hub. One stylesheet, no external fonts, no inline styles (the CSP blocks them).
   Direction: an art-studio journal. Serif display type, warm paper, dark ink bands, real photos
   (slots until the owner's photos arrive), colour used sparingly like paint on a bench. */

:root {
  --paper: #f6efe4;
  --paper-2: #efe5d6;
  --surface: #fffdf9;
  --ink: #1f1a24;
  --ink-soft: #5b5361;
  --line: #ddd0bd;
  --band: #1d1626;          /* dark bands: hero, footer */
  --band-ink: #f6efe4;
  --band-soft: #bfb3c9;
  --accent: #b5174f;        /* magenta, used sparingly */
  --accent-ink: #ffffff;
  --accent-2: #00796b;
  --gold: #b8862f;
  --focus: #6a3df0;
  --shadow: 0 1px 1px rgba(31, 26, 36, .05), 0 10px 30px -12px rgba(31, 26, 36, .25);
  --radius: 6px;
  --wrap: 76rem;
  --text: 42rem;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gold-text: #7a571b;     /* gold dark enough for small text on paper (WCAG AA) */
  /* a faint paper grain, drawn by the browser (data URI: allowed by the CSP) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.33  0 0 0 0 0.25  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17131c;
    --paper-2: #211b28;
    --surface: #1f1a26;
    --ink: #f3ecf6;
    --ink-soft: #b9afc4;
    --line: #382f42;
    --band: #0f0c13;
    --band-ink: #f3ecf6;
    --band-soft: #a99cb6;
    --accent: #ff6aa2;
    --accent-ink: #1a0b12;
    --accent-2: #4dd0c0;
    --gold: #d9a95a;
    --gold-text: #e0b56c;
    --focus: #b89cff;
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 17.5px/1.7 var(--sans);
  font-kerning: normal; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- type ---------- */

h1, h2, h3, .answer { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin: 1.25rem auto 1rem; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 3rem auto .8rem; }
h3 { font-size: 1.22rem; margin-top: 1.75rem; font-weight: 600; }
.lede { font-size: 1.12rem; line-height: 1.65; color: var(--ink-soft); }
.answer { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.45; font-weight: 400; color: var(--ink); margin-bottom: 1rem; }
.kicker, .note-kicker, .section-kicker {
  font: 600 .8rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .6rem;
}
.band .kicker { color: var(--gold); }
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-top: 1.5rem; letter-spacing: .02em; }
.crumbs a { color: var(--ink-soft); }
li { margin: .35rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem auto; }
code { background: var(--paper-2); padding: .1em .35em; border-radius: 4px; font-size: .88em; }
.small { font-size: .875rem; }

/* ---------- header ---------- */

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem 1rem; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; }
.site-header ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a {
  display: block; padding: .35rem .75rem; color: var(--ink); text-decoration: none;
  font-size: .98rem; font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- page body ---------- */

main { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
main > h1, main > h2, main > h3, main > p, main > ul, main > ol, main > .table, main > dl,
main > .callout, main > .disclosure, main > hr, main > .lede, main > .crumbs, main > .sources, main > .answer,
main > .faq, main > .studio-note, main > .facts, main > .support, main > .signup-box, main > .draft-banner {
  max-width: var(--text); margin-left: auto; margin-right: auto;
}

/* full-width dark band (hero, closing sections) */
.band {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 1rem;
  background: var(--band) var(--grain); color: var(--band-ink);
}
.band-inner { max-width: var(--wrap); margin: 0 auto; }
.band a { color: var(--band-ink); }

.table { overflow-x: auto; margin: 1.5rem auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .9rem/1.3 var(--sans); color: var(--ink); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }

.callout, .disclosure { background: var(--surface); border-left: 3px solid var(--accent-2); padding: .9rem 1.1rem; margin: 1.75rem auto; }
.disclosure { border-left-color: var(--line); font-size: .88rem; color: var(--ink-soft); }
.paid { font-size: .8em; color: var(--ink-soft); }
.sources { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  padding: .85rem 1.35rem; border-radius: 3px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--sans);
}
.button.secondary { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.button:hover { filter: brightness(1.08); }

/* ---------- home ---------- */

.hero-band { padding-top: 3.5rem; padding-bottom: 0; margin-top: -1px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-bottom: 3.5rem; }
.hero h1 { margin: 0 0 1.2rem; max-width: 14ch; font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 550; }
.hero p { font-size: 1.18rem; line-height: 1.6; color: var(--band-soft); margin: 0 0 2rem; max-width: 33rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .button.secondary { color: var(--band-ink); }
.hero .photo { margin: 0; }
.hero .photo img, .hero .slot-box { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.hero .photo.fallback img { border-radius: 4px; }
.drip {
  display: block; height: 40px; width: 100vw; margin: -1px 0 0 calc(50% - 50vw); padding: 0;
  background: var(--band) var(--grain);   /* the band's colour, cut into drips by a repeating wave, edge to edge */
  -webkit-mask: url("/img/wave.svg") repeat-x left top / 480px 40px;
  mask: url("/img/wave.svg") repeat-x left top / 480px 40px;
}

.counts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0 auto 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 60rem;
}
.counts li { margin: 0; padding: 1.4rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.counts li:first-child { border-left: 0; }
.counts strong { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--ink); font-weight: 500; }
.counts span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 4.5rem 0 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.section-head h2 { margin: 0; }
.section-head a { font: 500 .98rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
.section-head a::after { content: " \2192"; }
.section-title { max-width: var(--wrap); margin: 3.5rem 0 1rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; max-width: none; }
.card { background: var(--surface); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .card-body { padding: 1.2rem 1.3rem 1.5rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card a:hover h3 { color: var(--accent); }

/* numbered guide cards (guides, supplies) */
.guide-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1.25rem; max-width: none; }
.guide-cards li { margin: 0; }
.guide-cards a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; border-top: 2px solid var(--ink); padding-top: .9rem; }
.guide-cards img, .guide-cards .thumb { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; margin: .8rem 0 .2rem; }
.guide-cards .thumb { background: var(--paper-2); border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: .78rem; text-align: center; padding: .5rem; }
.guide-cards strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: .5rem 0 .3rem; line-height: 1.15; letter-spacing: -.01em; }
.guide-cards span { color: var(--ink-soft); font-size: .93rem; }
.guide-cards a:hover strong { color: var(--accent); }

.fix-list { list-style: none; padding: 0; display: grid; gap: 0; max-width: var(--text); margin: 0 auto; border-top: 1px solid var(--line); }
.fix-list li { margin: 0; border-bottom: 1px solid var(--line); }
.fix-list a { display: block; padding: 1.1rem 0; color: var(--ink); text-decoration: none; }
.fix-list strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.fix-list span { color: var(--ink-soft); font-size: .95rem; }
.fix-list a:hover strong { color: var(--accent); }
.page-home .fix-list { max-width: none; grid-template-columns: repeat(3, 1fr); column-gap: 2rem; border-top: 0; }
.page-home .fix-list li { border-bottom: 0; border-top: 2px solid var(--ink); }

/* ---------- photos and notes ---------- */

.photo { margin: 2.25rem auto; max-width: 64rem; }
.photo img { width: 100%; object-fit: cover; }
.photo picture, .guide-cards picture { display: contents; }
.r-3x2 img, .r-3x2 .slot-box { aspect-ratio: 3 / 2; }
.r-4x3 img, .r-4x3 .slot-box { aspect-ratio: 4 / 3; }
.r-1x1 img, .r-1x1 .slot-box { aspect-ratio: 1; }
.r-16x9 img, .r-16x9 .slot-box { aspect-ratio: 16 / 9; }
.photo figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; font-style: italic; font-family: var(--serif); }
.slot-box {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .35rem; text-align: center;
  padding: 1.25rem; border: 2px dashed var(--gold); background: repeating-linear-gradient(-45deg, var(--paper-2) 0 12px, transparent 12px 24px);
  color: var(--ink);
}
.slot-box strong { font: 600 .9rem/1 var(--sans); color: var(--gold-text); }
.slot-box span { font-family: var(--serif); font-size: 1.05rem; max-width: 34rem; }
.slot-box small { color: var(--ink-soft); }
.band .slot-box { color: var(--band-ink); background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px); }
.band .slot-box small { color: var(--band-soft); }
.steps .photo { margin: .8rem 0 1.4rem; max-width: 30rem; }

.studio-note {
  margin: 2.5rem auto; padding: 1.5rem 1.6rem; background: var(--surface); box-shadow: var(--shadow);
  border-top: 3px solid var(--gold); font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; font-weight: 400;
}
.studio-note p { margin: .5rem 0; }
.studio-note .sig { font-style: italic; color: var(--ink-soft); text-align: right; margin-top: .8rem; }
.studio-note.slot { border: 2px dashed var(--gold); box-shadow: none; background: repeating-linear-gradient(-45deg, var(--paper-2) 0 12px, transparent 12px 24px); font-size: 1rem; }
.studio-note.slot strong { font: 600 .9rem/1 var(--sans); color: var(--gold-text); margin-right: .5rem; }
.studio-note.slot span { display: block; margin-top: .5rem; }

.pour-gallery { margin: 3rem auto; }
.gallery-title { margin: 0 0 1rem; }
.pour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pour-grid .photo { margin: 0; }
.page-home .pour-grid { grid-template-columns: repeat(3, 1fr); }

.staging-banner {
  max-width: var(--wrap); margin: 1rem auto 0; padding: .6rem 1rem; background: repeating-linear-gradient(-45deg, #ffe7a3 0 14px, #ffd970 14px 28px);
  color: #3b2c00; font-weight: 700; font-size: .9rem; text-align: center;
}

/* ---------- footer ---------- */

.site-footer { margin-top: 6rem; padding: 0 1rem; background: var(--band) var(--grain); color: var(--band-soft); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 0 2.5rem; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .brand span { color: var(--band-ink); }
.footer-brand p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; margin: 1rem 0 0; max-width: 22rem; }
.site-footer h2 { font: 600 1.05rem/1.2 var(--serif); color: var(--band-ink); margin: .4rem 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: var(--band-ink); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { text-decoration: underline; }
.footer-small { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-small a { font-size: .82rem; color: var(--band-soft); }
.tagline { margin: 0; }

/* ---------- tools ---------- */

.tool {
  background: var(--surface); border-radius: 4px; box-shadow: var(--shadow);
  padding: 1.25rem; margin: 1.5rem auto 2rem; max-width: 52rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.tool fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.tool legend, .tool label.field > span { font-weight: 700; display: block; margin-bottom: .35rem; font-size: .95rem; }
.tool select, .tool input[type="number"], .tool input[type="text"] {
  width: 100%; font: inherit; padding: .55rem .7rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.tool label.field { display: block; margin-bottom: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); font-size: .92rem; cursor: pointer;
}
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hint { font-size: .85rem; color: var(--ink-soft); margin: .3rem 0 0; }

.result { background: var(--surface-2); border-radius: 16px; padding: 1.1rem 1.2rem; align-self: start; }
.result h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.big { font-size: 2rem; font-weight: 850; line-height: 1.1; margin: .2rem 0 .1rem; letter-spacing: -.02em; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: .75rem 0 0; }
.result dt { color: var(--ink-soft); }
.result dd { margin: 0; font-weight: 700; text-align: right; }
.result .note { font-size: .9rem; color: var(--ink-soft); margin: .75rem 0 0; }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: .75rem 0 .25rem; background: var(--line); }
.bar i { display: block; height: 100%; }
.bar .paint { background: var(--accent); }
.bar .medium { background: var(--accent-2); }
.bar .water { background: #6aa6e8; }
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; color: var(--ink-soft); list-style: none; padding: 0; margin: 0; }
.legend li::before { content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 3px; margin-right: .35em; vertical-align: -.05em; background: currentColor; }
.legend .paint::before { background: var(--accent); }
.legend .medium::before { background: var(--accent-2); }
.legend .water::before { background: #6aa6e8; }
.colors { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .3rem; }
.colors li { display: flex; justify-content: space-between; margin: 0; }

/* palette maker */
.palette-tool { grid-template-columns: 1fr; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; list-style: none; padding: 0; margin: 0; }
.swatches li { margin: 0; }
.swatch {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; width: 100%;
  border-radius: 14px; border: 1px solid rgba(0, 0, 0, .08); padding: .5rem; font: inherit; cursor: pointer;
  text-align: left; background: #ccc;
}
.swatch .name { font-weight: 700; font-size: .85rem; overflow-wrap: anywhere; }
.swatch .hex { font-size: .8rem; font-variant-numeric: tabular-nums; opacity: .85; }
.swatch .lock { font-size: .75rem; opacity: .9; }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 3px currentColor; }
.palette-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.palette-controls label.field { margin: 0; flex: 1 1 10rem; }
.preview { width: 100%; aspect-ratio: 4 / 1; border-radius: 16px; display: block; background: var(--surface-2); }
.warn { background: #fff4d6; color: #5a4300; border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; margin: 0; }
@media (prefers-color-scheme: dark) { .warn { background: #3d3214; color: #ffe7a3; } }
.ok { color: var(--accent-2); font-weight: 700; margin: 0; font-size: .92rem; }
[hidden] { display: none !important; }
.signup-box { margin: 3rem auto 0; background: var(--surface); box-shadow: var(--shadow); padding: 1.5rem; border-top: 3px solid var(--accent); }
.signup-box h2 { margin: 0 0 .4rem; font-size: 1.5rem; }
.signup-box p { margin: 0 0 .75rem; color: var(--ink-soft); }
.signup { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.signup .field { flex: 1 1 14rem; margin: 0; }
.signup .field span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.signup input[type=email] { width: 100%; font: inherit; padding: .6rem .75rem; border-radius: 2px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.facts { margin: 0 auto 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem 2rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font: 500 .88rem/1.2 var(--sans); color: var(--ink-soft); }
.facts dd { margin: .25rem 0 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.4rem; margin: 0 0 1.6rem; }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .05rem;
  font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1; color: var(--gold-text);
}
.steps h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.steps p { margin: 0 0 .6rem; }
.faq h3 { margin-top: 1.4rem; font-size: 1.2rem; }
.faq p { margin-top: .35rem; }
.best-pick, .gear-box { max-width: var(--text); margin: 2rem auto; background: var(--surface); box-shadow: var(--shadow); padding: 1.3rem 1.5rem; }
.best-pick { border-left: 4px solid var(--accent); }
.best-pick h3 { margin: .1rem 0 .4rem; font-size: 1.45rem; }
.best-pick p { margin: .3rem 0 .8rem; }
.gear-box { border-left: 4px solid var(--gold); }
.gear-box ul { list-style: none; padding: 0; margin: .2rem 0 0; }
.gear-box li { margin: .5rem 0; }
.gear-box a { text-decoration: none; color: var(--ink); }
.gear-box strong { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--accent); }
.gear-box span { color: var(--ink-soft); }
.support { margin: 2.5rem auto 0; color: var(--ink-soft); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 1rem; font-family: var(--serif); font-style: italic; }
.draft-banner { background: #ffe08a; color: #3b2c00; padding: .6rem 1rem; font-weight: 700; margin: 1rem auto; }
.products .card-body p { margin: .35rem 0; }
.products .button { margin-top: .25rem; }

/* ---------- small screens ---------- */

@media (max-width: 960px) {
  .guide-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero .photo { order: -1; }
  .cards, .page-home .fix-list { grid-template-columns: 1fr 1fr; }
  .counts { grid-template-columns: repeat(2, 1fr); }
  .counts li:nth-child(3) { border-left: 0; }
  .counts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pour-grid, .page-home .pour-grid { grid-template-columns: 1fr 1fr; }
  .tool { grid-template-columns: 1fr; padding: 1rem; }
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
  .swatch { min-height: 90px; padding: .35rem; }
  .swatch .name { font-size: .72rem; }
  .swatch .hex { font-size: .68rem; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .cards, .page-home .fix-list, .guide-cards { grid-template-columns: 1fr; }
  .site-header { padding: .8rem 1rem; flex-wrap: wrap; gap: .3rem; }
  .site-header nav { width: 100%; }
  .site-header ul { flex-wrap: wrap; gap: 0; margin-left: -.6rem; }
  .site-header nav a { padding: .35rem .6rem; font-size: .76rem; }
  main, main * { overflow-wrap: anywhere; }
  .hero-band { padding-top: 2rem; }
  .steps > li { padding-left: 2.6rem; }
  .steps > li::before { font-size: 1.5rem; }
  .row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .section-head { margin-top: 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .card, .guide-cards a { transition: transform .2s ease; }
  .card:hover { transform: translateY(-3px); }
}

/* tool cards: the photo fills the top; the palette card shows a swatch strip until it has one */
.card .photo { margin: 0; max-width: none; }
.card .photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.r-16x10 img, .r-16x10 .slot-box { aspect-ratio: 16 / 10; }
.card-swatches { display: grid; grid-template-columns: repeat(5, 1fr); aspect-ratio: 16 / 10; }
.card-swatches .sw { display: flex; align-items: flex-end; padding: .6rem .5rem; box-shadow: inset -1px 0 0 rgba(0, 0, 0, .08); }
.card-swatches b { font: 600 .72rem/1.2 var(--sans, system-ui, sans-serif); letter-spacing: .02em; }
.sw-1 { background: #1f2a44; color: #f3f0ea; }
.sw-2 { background: #f7f4ee; color: #3a3540; }
.sw-3 { background: linear-gradient(160deg, #e6cf8a, #b8913f 55%, #e9d79b); color: #3b2c0b; }
.sw-4 { background: #127c74; color: #effaf8; }
.sw-5 { background: #ee7a62; color: #3a130b; }

/* ==========================================================================
   Depth. A studio: the paper is the bench, the dark bands are the wall under
   a soft studio light, finished pours hang like stretched canvases (a visible
   side edge and a wall shadow), and the calculators are a raised palette board
   with inputs pressed into it and a results tray set below its surface.
   Shadows are tinted plum, never grey; raised surfaces get a lit top edge.
   ========================================================================== */

:root {
  --bg: color-mix(in srgb, var(--paper) 70%, var(--paper-2));   /* used by the tool inputs; was never defined */
  --surface-2: var(--paper-2);                                   /* used by the results panel; was never defined */
  --shadow-1: 0 1px 1px rgba(31, 22, 38, .06), 0 2px 6px rgba(31, 22, 38, .07);
  --shadow-2: 0 1px 2px rgba(31, 22, 38, .08), 0 8px 18px rgba(31, 22, 38, .09), 0 22px 44px -16px rgba(31, 22, 38, .22);
  --shadow-3: 0 2px 4px rgba(31, 22, 38, .08), 0 14px 28px rgba(31, 22, 38, .12), 0 40px 70px -24px rgba(31, 22, 38, .32);
  --lit-edge: inset 0 1px 0 rgba(255, 255, 255, .8);
  --pressed: inset 0 1px 3px rgba(31, 22, 38, .18), inset 0 0 0 1px rgba(31, 22, 38, .08);
  --canvas-side: #ded2bf;          /* the stretched canvas's side, catching less light */
  --wall-shadow: rgba(20, 12, 26, .45);
  --studio-light: radial-gradient(60% 80% at 78% 30%, rgba(255, 196, 150, .16), transparent 70%),
                  radial-gradient(50% 70% at 12% 0%, rgba(181, 23, 79, .14), transparent 70%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow-1: 0 1px 1px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .35);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 18px rgba(0, 0, 0, .4), 0 22px 44px -16px rgba(0, 0, 0, .6);
    --shadow-3: 0 2px 4px rgba(0, 0, 0, .5), 0 14px 28px rgba(0, 0, 0, .45), 0 40px 70px -24px rgba(0, 0, 0, .7);
    --lit-edge: inset 0 1px 0 rgba(255, 240, 250, .07);
    --pressed: inset 0 1px 3px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 240, 250, .05);
    --canvas-side: #2c2433;
    --wall-shadow: rgba(0, 0, 0, .7);
    --studio-light: radial-gradient(60% 80% at 78% 30%, rgba(255, 150, 190, .10), transparent 70%),
                    radial-gradient(50% 70% at 12% 0%, rgba(77, 208, 192, .08), transparent 70%);
  }
}

/* the wall: dark bands under a soft studio light */
.band, .site-footer { background: var(--studio-light), var(--band) var(--grain); }
.drip { background: var(--band) var(--grain); }

/* finished pours hang like stretched canvases: a side edge and a shadow on the wall */
.photo img {
  box-shadow: 1px 1px 0 var(--canvas-side), 2px 2px 0 var(--canvas-side), 3px 3px 0 var(--canvas-side), 4px 4px 0 var(--canvas-side), 5px 5px 0 var(--canvas-side),
              0 2px 4px rgba(31, 22, 38, .12), 18px 26px 40px -18px var(--wall-shadow);
}
.hero .photo img { box-shadow: 1px 1px 0 var(--canvas-side), 2px 2px 0 var(--canvas-side), 3px 3px 0 var(--canvas-side), 4px 4px 0 var(--canvas-side), 5px 5px 0 var(--canvas-side), 6px 6px 0 var(--canvas-side), 7px 7px 0 var(--canvas-side), 8px 8px 0 var(--canvas-side),
                               24px 40px 70px -24px rgba(0, 0, 0, .75); }
.card .photo img, .guide-cards img, .pour-grid .photo img { box-shadow: none; }

/* resting surfaces */
table, .callout, .disclosure, .signup-box { box-shadow: var(--shadow-1), var(--lit-edge); }

/* cards rest on the bench and lift under the pointer */
.card { box-shadow: var(--shadow-2), var(--lit-edge); }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .2s ease, box-shadow .2s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3), var(--lit-edge); }
  .guide-cards a { transition: transform .2s ease; }
  .guide-cards a:hover { transform: translateY(-3px); }
  .guide-cards a:hover img { box-shadow: var(--shadow-2); }
}

/* the calculators: a raised palette board */
.tool {
  border-radius: 10px; box-shadow: var(--shadow-3), var(--lit-edge);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.tool select, .tool input[type="number"], .tool input[type="text"], .tool textarea, .signup input[type=email] {
  box-shadow: var(--pressed); border-color: transparent; background: var(--bg);
}
.seg span { box-shadow: var(--shadow-1), var(--lit-edge); background: var(--surface); }
.seg input:checked + span { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35); }

/* the results: a tray set into the board */
.result {
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper-2) 80%, var(--line)), var(--paper-2) 2.2rem);
  border-radius: 8px;
  box-shadow: inset 0 2px 6px rgba(31, 22, 38, .16), inset 0 0 0 1px rgba(31, 22, 38, .07), 0 1px 0 rgba(255, 255, 255, .7);
}
.big { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }

/* buttons: a little dome, pressed when clicked */
.button:not(.secondary) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, #fff), var(--accent));
  box-shadow: 0 1px 1px rgba(31, 22, 38, .25), 0 6px 14px -4px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.button:active { transform: translateY(1px); }
.button:not(.secondary):active { box-shadow: var(--pressed); }

/* palette swatch strip on the tool card: paint cards with a little thickness */
.card-swatches .sw { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1), inset 0 -10px 18px -12px rgba(0, 0, 0, .35); }
