/* Fonts are served from this site (SIL Open Font License, see assets/fonts/),
   so no visitor request goes to a third party. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/manrope-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/manrope-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: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dmmono-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dmmono-400-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: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/dmmono-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/dmmono-500-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 {
  --bg: #0a0b0b;
  --panel: #101212;
  --line: #303535;
  --line-soft: #202424;
  --text: #f5f2e9;
  --muted: #b7bcba;
  --faint: #8e9693;
  --accent: #ff7340;
  --accent-soft: rgba(242, 107, 58, .12);
  --green: #80d39b;
  --paper: #f3efe4;   /* the recipe card: the one light object on every page */
  --ink: #141515;
  --ink-soft: #4a4f50;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout tokens. Every page reads these; no page sets its own widths.
     tools/check-layout.mjs measures the result on every page at 27 widths. */
  --rail: 1152px;     /* content width of the header, main and footer */
  --gutter: 32px;     /* smallest margin between the rail and the screen edge */
  --side: 320px;      /* the right-hand column: one width, one place, every page */
  --side-gap: 56px;   /* space between the main column and the right-hand column */
  --inset: 20px;      /* inner padding of every panel, equal left and right */
  --band: 48px;       /* space under the header and between sections */
  --header: 66px;
  --radius: 8px;
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --inset: 16px; --band: 32px; }
}

* { box-sizing: border-box; }
/* Hidden means hidden, even for elements whose class sets a display value. */
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* One rail. Header, main and footer put their content in the same centred
   column: --rail wide, never closer than --gutter to the screen edge. Padding
   (not a max-width) keeps full-width borders and backgrounds, and 100% (not vw)
   keeps both margins equal when a scrollbar takes space. */
.rail { padding-inline: max(var(--gutter), (100% - var(--rail)) / 2); }

.site-header {
  min-height: var(--header); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 11, .96); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 700; letter-spacing: -.03em; font-size: 18px; }
.brand-dot { color: var(--accent); }
.brand-mark { width: 31px; height: 20px; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
.brand-mark circle { fill: var(--accent); stroke: none; }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--faint); font: 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.header-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(128,211,155,.08); }
.header-action { justify-self: end; border: 1px solid var(--line); border-radius: 6px; padding: 9px 13px; font-size: 12px; font-weight: 600; }
.header-action:hover { border-color: var(--accent); color: var(--accent); }
.compact-label { display: none; }

/* Every page starts its first line at the same height under the header. */
main { padding-block: var(--band) calc(var(--band) * 1.5); }

.kicker { margin: 0 0 16px; font: 500 11px/1 var(--mono); color: var(--accent); letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; max-width: 960px; font-size: clamp(42px, 6.8vw, 88px); line-height: .94; letter-spacing: -.065em; font-weight: 600; text-wrap: balance; }
.discovery-copy { max-width: 960px; }
.discovery-copy > p:last-child { margin: 24px 0 0; max-width: 700px; color: var(--muted); font-size: 18px; line-height: 1.6; }

/* Finder: one search box across the rail, a few example searches under it. */
.finder { margin-top: var(--band); }
.search-box { min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 0 var(--inset); border: 1px solid #4a5252; border-radius: var(--radius); background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 115, 64, .12); }
.search-box .prompt { color: var(--accent); font: 500 22px var(--mono); }
.search-box input { min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: 500 clamp(17px, 2vw, 22px) var(--mono); caret-color: var(--accent); }
.search-box input::placeholder { color: #8f979b; }
kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--faint); background: #0d1011; font: 11px var(--mono); }
.quick-goals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 14px; }
.quick-goals > span { color: var(--faint); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.quick-goals button { border: 0; padding: 0; background: none; color: var(--muted); font: 11px var(--mono); cursor: pointer; text-decoration: underline; text-decoration-color: #4a5252; text-underline-offset: 5px; }
.quick-goals button:hover { color: var(--text); text-decoration-color: var(--accent); }

/* Two columns on every page: the main column, then --side-gap, then the
   right-hand column, --side wide on the rail's right edge. The recipe card
   always lives in that column. */
.workflow-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); column-gap: var(--side-gap); align-items: start; }
.workflow-layout > aside { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
.workflow-layout > .workflow-hero { grid-column: 1; grid-row: 1; }
.workflow-layout > .recipe-body { grid-column: 1; grid-row: 2; }
.catalog { margin-top: var(--band); }

/* Recipe index */
.results { min-width: 0; }
.results-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.results-bar h2 { margin: 0; font: 500 11px/1 var(--mono); color: var(--faint); letter-spacing: .13em; text-transform: uppercase; }
.results-bar strong { font: 500 11px/1 var(--mono); color: var(--muted); }
.workflow-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.recipe-no { padding-top: 8px; color: var(--accent); font: 500 11px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.workflow-main h3 { margin: 0; font-size: 27px; line-height: 1.16; letter-spacing: -.04em; font-weight: 600; transition: color .15s; }
.workflow-row:hover h3 { color: var(--accent); }
.workflow-main > p { margin: 10px 0 0; max-width: 600px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.workflow-main .recipe-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; color: var(--muted); font: 11px/1.5 var(--mono); }
.recipe-meta b { margin-right: 6px; color: var(--accent); font-weight: 500; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.row-end { display: flex; align-self: start; align-items: center; gap: 14px; padding-top: 6px; }
.tested { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font: 11px var(--mono); white-space: nowrap; }
.tested::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(128,211,155,.1); }
.row-arrow { color: var(--faint); font-size: 20px; transition: color .15s, transform .15s; }
.workflow-row:hover .row-arrow { color: var(--accent); transform: translate(2px, -2px); }
.empty-state { margin: 0; padding: 30px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 16px; }
.request-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0; border-bottom: 1px dashed var(--line); }
.request-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.request-row strong { color: var(--text); font-weight: 600; }
.request-row a { color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* The recipe card. One component, one width (--side), one column, every page.
   Printed look: paper, ink, a heavy rule under the title, facts in mono. */
.side-card { display: grid; gap: 1px; background: var(--ink); color: var(--ink); border: 1px solid var(--paper); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 1041px) and (min-height: 860px) {
  .side-card { position: sticky; top: calc(var(--header) + 24px); }
}
.side-card > div { min-width: 0; padding: 18px var(--inset); background: var(--paper); }
.side-card > .label-head { border-bottom: 6px solid var(--ink); }
.label-head h2 { margin: 0; font-size: 32px; line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.label-head p { margin: 8px 0 0; color: var(--ink-soft); font: 11px var(--mono); }
.facts { margin: 0; display: grid; }
.facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid rgba(20, 21, 21, .16); }
.facts > div:first-child { padding-top: 0; border-top: 0; }
.facts > div:last-child { padding-bottom: 0; }
.facts dt { font-size: 12px; font-weight: 700; }
.facts dd { min-width: 0; margin: 0; text-align: right; font: 500 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.facts dd ul { margin: 0; padding: 0; list-style: none; }
.facts dd a { text-decoration: underline; text-underline-offset: 3px; }
.facts-big dd { font-size: 21px; line-height: 1.1; letter-spacing: -.03em; }
.facts-text > div { display: block; }
.facts-text dd { margin-top: 4px; text-align: left; color: #33383a; font: 12px/1.5 var(--sans); }
.side-card .apply { display: block; padding: 13px; border-radius: 6px; background: var(--accent); color: #160d09; font-size: 13px; font-weight: 700; text-align: center; }
.side-card .apply:hover { background: #ff8a5c; }
.side-card .smallprint { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; text-align: center; }

footer { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: var(--faint); font: 10px var(--mono); }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--accent); }
.content-section > p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Recipe page */
.breadcrumbs { display: flex; gap: 9px; align-items: center; margin-bottom: var(--band); color: var(--faint); font: 11px/1 var(--mono); }
.breadcrumbs a:hover { color: var(--accent); }
.workflow-hero { padding-bottom: var(--band); border-bottom: 1px solid var(--line); }
.row-topline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.status, .availability { border: 1px solid var(--line); border-radius: 4px; font: 10px/1 var(--mono); padding: 5px 7px; }
.status { color: var(--green); border-color: rgba(128,211,155,.24); background: rgba(128,211,155,.05); }
.availability { color: var(--accent); border-color: rgba(242,107,58,.25); background: var(--accent-soft); }
.workflow-hero h1 { font-size: clamp(38px, 5.2vw, 64px); }
.workflow-hero .lead { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.content-section { padding-block: var(--band); border-bottom: 1px solid var(--line); }
.content-section h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 8px; font-size: 30px; line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.content-section h2 span { color: var(--accent); font: 500 11px var(--mono); letter-spacing: .08em; }
.content-section > p { margin: 0; max-width: 680px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Panels made of cells share one pattern: a 1px hairline between cells, one
   radius, and --inset padding inside every cell. */
.yield { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: stretch; margin-top: 20px; }
.yield-numbers { margin: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.yield-numbers > div { display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; gap: 18px; padding: 20px var(--inset); background: var(--bg); }
.yield-numbers dt { min-width: 34px; font: 500 36px/1 var(--mono); letter-spacing: -.05em; }
.yield-numbers dd { margin: 0; color: var(--muted); font-size: 14px; }
.sample-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.sample-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sample-card figcaption { padding: 12px var(--inset); border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; line-height: 1.5; }

.checklist, .tools, .method { list-style: none; margin: 20px 0 0; padding: 0; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line-soft); }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.checklist li::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--accent); border-radius: 3px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); font: 12px var(--mono); }
.method { border-top: 1px solid var(--line-soft); }
.method li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.method li > span { color: var(--accent); font: 500 26px/1 var(--mono); }
.method strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.method p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.sample-trace { margin: 20px 0 0; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sample-trace > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding: 16px var(--inset); background: var(--bg); }
.sample-trace dt, .fine-print dt { padding-top: 2px; color: var(--faint); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sample-trace dd, .fine-print dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* The receipt: a till slip with dotted leaders. */
.receipt { margin-top: 20px; padding: 22px var(--inset); border: 1px dashed #4a5252; border-radius: var(--radius); background: var(--panel); font: 13px var(--mono); }
.receipt-row { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; color: var(--muted); }
.receipt-row i { flex: 1; min-width: 16px; border-bottom: 1px dotted #59615f; transform: translateY(-4px); }
.receipt-row b { color: var(--text); font-weight: 500; white-space: nowrap; }
.receipt-row.receipt-cost { margin-top: 10px; padding-top: 15px; border-top: 1px dashed #4a5252; }
.fine-print { margin: 20px 0 0; display: grid; gap: 12px; }
.fine-print > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
.notice { margin-top: var(--band); padding: 16px var(--inset); border: 1px solid rgba(242,107,58,.25); border-radius: var(--radius); background: var(--accent-soft); color: #d6b4a7; font-size: 13px; line-height: 1.55; }

/* Every page switches between two columns and one at the same width. */
@media (max-width: 1040px) {
  .workflow-layout { grid-template-columns: minmax(0, 1fr); row-gap: var(--band); }
  .workflow-layout > aside, .workflow-layout > .workflow-hero, .workflow-layout > .recipe-body { grid-column: auto; grid-row: auto; }
  .workflow-hero { padding-bottom: 0; border-bottom: 0; }
  .recipe-body > .content-section:first-child { padding-top: 0; }
  .side-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-card > .wide { grid-column: 1 / -1; }
  /* A full-width card lays its big numbers out as one row of stats. */
  .stats .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
  .stats .facts > div, .stats .facts > div:first-child, .stats .facts > div:last-child { display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 0; border-top: 0; }
  .stats .facts dd { text-align: left; }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .header-status { display: none; }
  .full-label { display: none; }
  .compact-label { display: inline; }
  .search-box { min-height: 64px; }
  .workflow-row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; padding-block: 26px; }
  .recipe-no { grid-column: 1; grid-row: 1; padding-top: 0; }
  .row-end { grid-column: 2; grid-row: 1; padding-top: 0; }
  .workflow-main { grid-column: 1 / -1; grid-row: 2; }
  .workflow-main h3 { font-size: 23px; }
  footer { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 20px; }
  .yield { grid-template-columns: minmax(0, 1fr); }
  .sample-card { max-width: 320px; }
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .method li { grid-template-columns: 40px minmax(0, 1fr); }
  .sample-trace > div, .fine-print > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .quick-goals button, .header-action { min-height: 44px; }
}
@media (max-width: 600px) {
  .side-card { grid-template-columns: minmax(0, 1fr); }
  .stats .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
}
@media (max-width: 500px) {
  h1, .workflow-hero h1 { font-size: 40px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 27px; }
  .search-box input { font-size: 16px; }
  .search-box kbd { display: none; }
  .quick-goals { flex-direction: column; align-items: flex-start; gap: 0; }
  .quick-goals button { width: 100%; text-align: left; }
  .tested { font-size: 10px; }
  .workflow-main .recipe-meta { flex-direction: column; }
}
