@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/publicsans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  /* Layout: one narrow column, a kitchen manual. Rows of plain lists, one accent for actions and state. */
  --bg: #f1f4f1; --surface: #ffffff; --ink: #18221d; --muted: #56655c; --line: #d3dbd5;
  --accent: #17685a; --accent-ink: #ffffff; --note: #fff4d6; --note-ink: #4d3a00;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111714; --surface: #1a231f; --ink: #e6ede8; --muted: #9db0a5; --line: #2d3b34;
    --accent: #63c9ae; --accent-ink: #0d1512; --note: #3a3113; --note-ink: #f3e3a8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111714; --surface: #1a231f; --ink: #e6ede8; --muted: #9db0a5; --line: #2d3b34;
  --accent: #63c9ae; --accent-ink: #0d1512; --note: #3a3113; --note-ink: #f3e3a8; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--body); }
a { color: var(--accent); }
.hero, .hero img { display: block; width: 100%; max-width: 30rem; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; }
.hero { margin: 6px 0 12px; }
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 16px 96px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px; }
.brand { font: 700 1.45rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
body.locked { overflow: hidden; }
.overlay { position: fixed; inset: 0; background: rgba(10, 16, 13, 0.6); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; z-index: 10; }
.dialog { background: var(--bg); color: var(--ink); border-radius: 12px; padding: 14px 16px 16px; width: 100%; max-width: 30rem; margin: auto 0; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.dialog h1 { font-size: 1.35rem; margin: 0; }
.dialog .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.dialog .head .btn { min-height: 44px; }
#setup-btn { white-space: nowrap; }
#setup-btn.attn { background: var(--accent); color: var(--accent-ink); position: relative; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
#setup-btn.attn::after { content: ""; position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: #e0a100; border: 2px solid var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  #setup-btn.attn { animation: nudge 2.4s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
  .dialog { animation: rise .18s ease-out; }
  @keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 600px) {
  .overlay { padding: 0; align-items: flex-end; overflow: hidden; }
  .dialog { max-width: none; margin: 0; border-radius: 16px 16px 0 0; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
  .dialog .head { position: sticky; top: 0; z-index: 1; background: var(--bg); padding: 12px 0 10px; margin: 0 0 4px; border-bottom: 1px solid var(--line); }
  .dialog .row { flex-direction: column; align-items: stretch; }
  .dialog .row .btn { width: 100%; min-height: 46px; }
  .dialog label.opt { padding: 10px 0; }
}
@media (max-width: 370px) { #setup-btn { font-size: 0.84rem; padding: 6px 9px; } .brand { font-size: 1.3rem; } }
.intro { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; padding: 16px 16px 18px; margin: 4px 0 22px; }
.intro h1 { margin: 0 0 8px; }
.intro p { margin: 0 0 10px; max-width: 34rem; }
.intro .row { margin-top: 14px; }
.intro a.btn { text-decoration: none; }
.card.note p:last-child { margin-bottom: 0; }
.card.note a { color: inherit; }
h1 { font: 700 1.7rem/1.15 var(--display); margin: 10px 0 6px; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font: 600 1.2rem/1.2 var(--display); margin: 26px 0 8px; text-wrap: balance; }
h3 { font: 600 1rem/1.3 var(--body); margin: 18px 0 6px; }
p { margin: 0 0 12px; max-width: 65ch; }
.meta { color: var(--muted); font-size: 0.93rem; }
.btn { font: 600 1rem var(--body); border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 6px 12px; font-size: 0.92rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, .seg button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { font: 600 0.95rem var(--body); border: 0; background: transparent; color: var(--muted); padding: 8px 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
ul.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
ul.list > li { border-top: 1px solid var(--line); }
ul.list > li:first-child { border-top: 0; }
a.item { display: flex; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); align-items: baseline; }
.num { font: 700 1rem var(--display); color: var(--muted); min-width: 1.6rem; font-variant-numeric: tabular-nums; }
.item .t { font-weight: 600; }
.item .s { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.chip { display: inline-block; font-size: 0.78rem; font-weight: 600; border-radius: 99px; padding: 2px 9px; border: 1.5px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.on { border-color: var(--accent); color: var(--accent); }
.chip.today { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 12px 0; }
.card.note { background: var(--note); color: var(--note-ink); border-color: transparent; }
ul.ings, ol.steps { margin: 0; padding-left: 1.3rem; }
ul.ings li, ol.steps li { margin-bottom: 8px; }
ol.steps li::marker { font-weight: 600; color: var(--accent); }
.remember { border-left: 4px solid var(--accent); padding: 6px 0 6px 12px; margin: 14px 0; font-weight: 600; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td.n, th.n { text-align: right; padding-right: 0; padding-left: 10px; }
label.check { display: flex; gap: 10px; padding: 10px 14px; align-items: baseline; cursor: pointer; }
label.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; position: relative; top: 2px; }
label.check .q { color: var(--muted); margin-left: auto; white-space: nowrap; padding-left: 10px; }
label.check input:checked ~ span { text-decoration: line-through; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px 14px; margin: 0 0 12px; }
legend { font-weight: 600; padding: 0 6px; }
label.opt { display: flex; gap: 10px; padding: 6px 0; align-items: baseline; }
label.opt input { accent-color: var(--accent); }
label.opt.off { color: var(--muted); }
label.opt.tick { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
label.opt.tick input { width: 1.1rem; height: 1.1rem; }
nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: center; }
nav.bottom a { flex: 1; max-width: 10.5rem; text-align: center; padding: 12px 4px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
nav.bottom a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
footer { margin-top: 30px; color: var(--muted); font-size: 0.9rem; }
textarea.copy { width: 100%; min-height: 9rem; font: 0.85rem/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
@media (prefers-reduced-motion: no-preference) { .btn, .seg button { transition: background-color .12s; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
footer p { margin: 0 0 6px; }
nav[aria-label="Contents"] ol { columns: 2; column-gap: 24px; }
@media (max-width: 520px) { nav[aria-label="Contents"] ol { columns: 1; } }
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  header.top button, nav.bottom, footer, .seg, .row, #modal, .intro, .skip { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .tablewrap { overflow: visible; }
  h1 { margin-top: 0; }
}
