/* Studio Pyrizhky: dough, poppy-seed ink, one sour cherry.
   Tokens on :root (see DESIGN.md). Fraunces (soft, wonky) for display at 24px and up, never for numbers;
   Figtree for text and all figures (tabular). */

:root {
  color-scheme: light;
  --dough: #F7EFE2;       /* page */
  --flour: #FFFBF5;       /* cards; poppy on it 15.3:1 */
  --dough-deep: #EFE2CE;  /* alternating bands */
  --rule: #E2D3BC;        /* decorative */
  --poppy: #24212B;       /* ink: 13.9:1 on dough */
  --crumb: #5C5249;       /* secondary text: 6.7:1 */
  --edge: #857565;        /* borders that carry meaning: 3.9:1 */
  --edge-soft: #CDB89A;   /* card and box borders: visible on dough and in print */
  --cherry: #8E1B2E;      /* links and the primary action: 7.8:1; white on it 8.95:1 */
  --cherry-deep: #6F1323;
  --cherry-light: #E58A95;/* links on the poppy band only */
  --crust: #9A4F14;       /* accent text: 5.25:1 */
  --crust-glow: #C9782F;  /* illustrations only */
  --glaze: #E8B04F;       /* highlights, badges; poppy on it 8.1:1 */
  --dill: #4E6B3A;        /* "Live" status: 5.3:1 */

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Figtree", "Figtree Fallback", system-ui, sans-serif;
  --step--1: 0.9375rem;                                          /* 15: captions, labels */
  --step-0: clamp(1.0625rem, 1.014rem + 0.217vw, 1.1875rem);     /* 17-19 body */
  --step-1: clamp(1.281rem, 1.159rem + 0.543vw, 1.594rem);       /* 20.5-25.5 */
  --step-2: clamp(1.531rem, 1.299rem + 1.033vw, 2.125rem);       /* 24.5-34 */
  --step-3: clamp(1.844rem, 1.465rem + 1.685vw, 2.8125rem);      /* 29.5-45 */
  --step-4: clamp(2.219rem, 1.62rem + 2.663vw, 3.75rem);         /* 35.5-60 */
  --step-5: clamp(2.656rem, 1.739rem + 4.076vw, 5rem);           /* 42.5-80 */
  --leading: 1.6; --leading-display: 1.02; --tracking-display: -0.02em;
  --measure: 32em;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;
  --section-space: var(--space-8);
  --container: 76rem; --container-pad: clamp(16px, 4vw, 48px);
  --radius: 14px; --shadow: 0 1px 0 #E2D3BC, 0 10px 24px -14px rgb(36 33 43 / .28);
}
@media (min-width: 48rem) { :root { --section-space: var(--space-9); } }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--dough); color: var(--poppy); font-family: var(--font-body); font-size: var(--step-0); line-height: var(--leading); overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; }
h1, h2, .display { font-family: var(--font-display); font-weight: 600; line-height: var(--leading-display); letter-spacing: var(--tracking-display); text-wrap: balance; font-synthesis: none; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); line-height: 1.25; }
p { text-wrap: pretty; }
a { color: var(--cherry); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--cherry-deep); text-decoration-thickness: 2px; }
.num { font-family: var(--font-body); font-variant-numeric: tabular-nums lining-nums; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; box-shadow: 0 0 0 7px rgb(232 176 79 / .55); border-radius: 4px; }
.skip { position: absolute; left: var(--space-4); top: -5rem; background: var(--poppy); color: var(--dough); padding: var(--space-3) var(--space-4); border-radius: 8px; z-index: 5; }
.skip:focus { top: var(--space-4); color: var(--dough); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: var(--section-space); }
.band { background: var(--dough-deep); }
.flow > * + * { margin-block-start: var(--flow-space, 1em); }
.lead { font-size: var(--step-1); line-height: 1.45; max-width: var(--measure); }
.muted { color: var(--crumb); }
.section-head { max-width: 40rem; margin-bottom: var(--space-7); }
.section-head > * + * { margin-block-start: var(--space-4); }
.section-head p { color: var(--crumb); font-size: var(--step-1); line-height: 1.45; }

/* header and footer */
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-6); padding-block: var(--space-3); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 2.75rem; color: var(--poppy); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--poppy); }
.brand-mark { height: 2.4rem; width: 3.12rem; flex: none; --bun-ink: #24212B; }
.brand--reverse { color: var(--dough); }
.brand--reverse .brand-mark { --bun-ink: #F7EFE2; height: 2rem; width: 2.6rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--poppy); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--glaze); }
:where(.hero-grid, .trio, .steps, .batches, .doors, .funnel li) > * { min-width: 0; }
.site-footer { background: var(--poppy); color: var(--dough); padding-block: var(--space-7); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4) var(--space-6); }
.site-footer a { color: var(--cherry-light); }
.site-footer a:hover { color: var(--dough); }
.site-footer .brand { color: var(--dough); font-size: 1.25rem; }

/* poppy-seed divider */
.seeds { display: flex; gap: 0.6rem; justify-content: flex-start; margin-block: var(--space-6); }
.seeds i { width: 0.5rem; height: 0.32rem; border-radius: 50%; background: var(--poppy); transform: rotate(-24deg); display: block; }
.seeds i:nth-child(2) { transform: rotate(18deg); opacity: .8; }
.seeds i:nth-child(3) { transform: rotate(-8deg); opacity: .6; }

/* hero */
.hero { padding-block: var(--space-7) var(--section-space); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } }
.hero h1 { max-width: 15em; }
.hero h1 .studio { display: block; color: var(--crust); font-size: 0.42em; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.hero-text > * + * { margin-block-start: var(--space-5); }
.name-note { max-width: var(--measure); border-left: 3px solid var(--glaze); padding-left: var(--space-4); color: var(--crumb); }
.name-note b { color: var(--poppy); }
.tray { background: var(--flour); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); width: 100%; max-width: 30rem; margin-inline: auto; }
.tray svg { display: block; width: 100%; }
.tray figcaption { color: var(--crumb); font-size: var(--step--1); margin-top: var(--space-3); text-align: center; }

/* what we do: three plain columns */
.trio { display: grid; gap: var(--space-6) var(--space-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.trio li > * + * { margin-block-start: var(--space-2); }
.trio li { border-top: 2px solid var(--poppy); padding-top: var(--space-4); }
.trio .verb { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.1; }

/* method funnel */
.funnel { display: grid; gap: var(--space-3); max-width: 52rem; counter-reset: step; }
.funnel li { display: grid; grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.funnel .bar { position: relative; height: 3.25rem; border-radius: 10px; background: var(--flour); border: 1px solid var(--rule); overflow: hidden; }
.funnel .bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--glaze); border-right: 2px solid var(--crust); }
.funnel .n { font-family: var(--font-body); font-weight: 700; font-size: var(--step-2); font-variant-numeric: tabular-nums lining-nums; text-align: right; line-height: 1; }
.funnel .what { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); max-width: calc(100% - var(--space-5)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgb(255 251 245 / .78); padding: 0.05rem 0.5rem; border-radius: 6px; }
@media (max-width: 30em) { .funnel li { grid-template-columns: 4.5rem minmax(0, 1fr); } .funnel .what { font-size: var(--step--1); } }
.funnel-note { color: var(--crumb); font-size: var(--step--1); margin-top: var(--space-4); }
.steps { display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); margin-top: var(--space-7); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li > * + * { margin-block-start: var(--space-2); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--poppy); color: var(--dough); font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: var(--space-3); }
.steps h3 { font-size: var(--step-0); }
.steps p { color: var(--crumb); }

/* portfolio: a tray of batches */
.batches { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 22rem)); justify-content: center; }
.batch { position: relative; background: var(--flour); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; gap: var(--space-3); }
.batch:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #E2D3BC, 0 18px 30px -16px rgb(36 33 43 / .35); }
.batch h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.1; }
.batch h3 a { color: var(--poppy); text-decoration: none; }
.batch h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.batch h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.batch .bun { width: 4.5rem; }
.batch .meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; font-size: var(--step--1); color: var(--crumb); margin-top: auto; padding-top: var(--space-3); }
.chip { display: inline-block; border-radius: 999px; padding: 0.05rem 0.65rem; font-size: var(--step--1); font-weight: 700; line-height: 1.6; }
.chip--oven { background: var(--glaze); color: var(--poppy); }
.chip--live { background: var(--dill); color: #fff; }
.batch--soon { background: transparent; border: 2px dashed var(--edge); box-shadow: none; }
.batch--soon:hover { transform: none; box-shadow: none; }
.batch--soon h3 { color: var(--crumb); }

/* work with us: two doors */
.doors { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.door { background: var(--flour); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(var(--space-5), 3vw, var(--space-7)); box-shadow: var(--shadow); }
.door > * + * { margin-block-start: var(--space-4); }
.door h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1.05; }
.door ul { padding-left: 1.2rem; }
.door li + li { margin-top: var(--space-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: var(--space-3) var(--space-5); border-radius: 999px; background: var(--cherry); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--cherry); transition: transform .15s ease, background-color .15s ease; }
.btn:hover { background: var(--cherry-deep); border-color: var(--cherry-deep); color: #fff; transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--cherry); }
.btn-quiet:hover { background: var(--flour); color: var(--cherry-deep); }
.mail { font-size: var(--step--1); color: var(--crumb); }

/* method page */
.page-head { padding-block: var(--space-7) var(--space-6); }
.page-head > * + * { margin-block-start: var(--space-4); }
.page-head h1 { font-size: var(--step-4); max-width: 16em; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-block-start: 1em; }
.prose h2 { font-size: var(--step-3); margin-block-start: var(--space-8); }
.prose h3 { margin-block-start: var(--space-6); }
.prose h2 + *, .prose h3 + * { margin-block-start: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: var(--space-2); }


/* ================= batch 2 ================= */
.small { font-size: var(--step--1); }
.tagline { color: var(--crust); font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.2; }
.hero h1 { font-size: var(--step-5); max-width: 16em; text-wrap: balance; margin-top: var(--space-3); }
.hero .hero-grid { margin-top: var(--space-6); }
.cta-pair { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.site-header .nav { flex-wrap: wrap; gap: 0 var(--space-4); }
.tray, .door, .batch { border-color: var(--edge-soft); }
.batch p:not(.meta):not(.small) { font-size: var(--step-0); }
.note-box { width: 100%; max-width: 52rem; margin: 0 auto var(--space-8); background: var(--flour); border: 1px solid var(--edge-soft); border-left: 4px solid var(--glaze); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.note-box > * + * { margin-block-start: var(--space-2); }
.note-box h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); letter-spacing: 0; line-height: 1.3; }
.name-note { margin-top: var(--space-7); }
/* funnel: number on the left, the label above a thin bar, so labels never clip */
.funnel li { display: grid; grid-template-columns: minmax(4.5rem, 7rem) minmax(0, 1fr); grid-template-areas: "n what" "n bar"; gap: var(--space-1) var(--space-4); align-items: center; }
.funnel .n { grid-area: n; }
.funnel .what { grid-area: what; position: static; transform: none; max-width: none; white-space: normal; overflow: visible; background: none; padding: 0; font-weight: 600; }
.funnel .bar { grid-area: bar; height: 0.9rem; border-color: var(--edge-soft); }
.door { display: flex; flex-direction: column; }
.door > .btn { margin-top: auto; align-self: flex-start; }
.door ul { margin-bottom: var(--space-5); }
.door-status { background: var(--dough-deep); border: 1px solid var(--edge-soft); border-radius: 10px; padding: var(--space-3) var(--space-4); }
/* method page: a sticky index beside the text on wide screens */
.method { display: grid; gap: var(--space-6); padding-bottom: var(--section-space); }
@media (min-width: 64rem) { .method { grid-template-columns: 14rem minmax(0, 36em); gap: var(--space-8); } .method-index { position: sticky; top: var(--space-5); align-self: start; } }
.method-index ol { border-left: 2px solid var(--edge-soft); padding-left: var(--space-4); }
.method-index li + li { margin-top: var(--space-2); }
.method-index a { color: var(--poppy); }
.prose h3 { font-size: var(--step-1); }
.method .funnel { margin-top: var(--space-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .batch:hover, .btn:hover { transform: none; }
}
@media print {
  .site-header nav, .skip { display: none; }
  body { background: #fff; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
}
