/* tablecost: stainless, plum, ticket paper. System fonts only: no web font requests. */
:root {
  --paper: #ffffff;
  --steel: #e8ecee;
  --steel-dark: #c9d0d4;
  --char: #1e2422;
  --body: #3d4542;
  --muted: #5f6864;
  --plum: #6b2d5c;
  --plum-dark: #4f1f44;
  --rule: #80888c;

  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Varela Round", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ticket: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --max: 70rem;
  --read: 37rem;
  --pad: 1rem;
}
@media (min-width: 50rem) { :root { --pad: 2rem; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.0625rem/1.6 var(--text);
}
@media (min-width: 50rem) { body { font-size: 1.125rem; } }

h1, h2, h3 { font-family: var(--round); color: var(--char); line-height: 1.15; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0.3rem 0 0.6rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; margin: 2.4rem 0 0.6rem; }
h3 { font-size: 1.25rem; margin: 1.8rem 0 0.4rem; }
p, ul, ol, table { margin: 0 0 1rem; }

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--plum-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--char); color: #fff; padding: 0.7rem 1rem; }
.skip:focus { left: 0.5rem; }

/* Header: dark pass-through counter with a ticket rail under it */
.top { background: var(--char); color: #fff; }
.top-in { max-width: var(--max); margin: 0 auto; padding: 0.4rem var(--pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; }
.mark { font: 700 1.6rem/1 var(--round); color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; letter-spacing: -0.01em; }
.mark::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: #e8b7d9; margin-right: 0.4em; }
.mark:hover { color: #fff; text-decoration: underline; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.top nav a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.top nav a:hover { text-decoration: underline; }
.top :focus-visible { outline-color: #e8b7d9; }
.rail { height: 10px; background: linear-gradient(#f5f7f8, var(--steel-dark)); border-bottom: 1px solid var(--rule); }

main { max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--pad) 0; }

/* Home */
.lede { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .lede { grid-template-columns: 1.15fr 1fr; } }
.lede p.big { font-size: 1.2rem; max-width: 34rem; }

/* The kitchen ticket */
.ticket {
  font-family: var(--ticket);
  font-size: 0.95rem;
  color: var(--char);
  background: var(--paper);
  border: 1px solid var(--steel-dark);
  border-top: 6px solid var(--char);
  padding: 1rem 1.1rem 1.2rem;
  max-width: 24rem;
  box-shadow: 0 6px 0 -3px var(--steel);
}
.ticket .t-head { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--rule); padding-bottom: 0.4rem; margin-bottom: 0.4rem; font-weight: 700; }
.ticket table { width: 100%; border-collapse: collapse; margin: 0; }
.ticket td { padding: 0.18rem 0; vertical-align: top; }
.ticket td.n { text-align: right; white-space: nowrap; }
.ticket tr.sum td { border-top: 1px dashed var(--rule); padding-top: 0.4rem; font-weight: 700; }
.ticket .t-foot { margin: 0.6rem 0 0; font-family: var(--text); font-size: 0.9rem; color: var(--muted); }

/* Lists of articles */
.shelves { display: grid; gap: 0 2.5rem; }
@media (min-width: 50rem) { .shelves { grid-template-columns: 1fr 1fr; } }
.shelf ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.shelf li { border-top: 1px solid var(--steel-dark); }
.shelf li:last-child { border-bottom: 1px solid var(--steel-dark); }
.shelf a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }
.tag { font-size: 0.9rem; color: var(--muted); }

/* Articles */
.sheet { max-width: var(--read); }
.queued { background: var(--plum); color: #fff; padding: 0.6rem 0.9rem; font-weight: 600; }
.crumbs { font-size: 0.95rem; color: var(--muted); margin: 0; }
.crumbs a { display: inline-block; padding: 0.7rem 0; }
.dates { color: var(--muted); font-size: 0.95rem; }
.quick-math { background: var(--steel); border-radius: 10px; padding: 1rem 1.2rem 0.2rem; margin: 1.4rem 0; }
.quick-math > .label { font: 700 1.1rem var(--round); color: var(--char); margin: 0 0 0.3rem; }
.toc { margin: 0 0 1.8rem; }
.toc-h { font: 700 1rem var(--round); color: var(--char); margin: 0; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.toc a { display: inline-block; padding: 0.6rem 0; }
.kitchen-notes { border: 2px solid var(--char); border-radius: 10px; padding: 0.9rem 1.2rem 0.3rem; margin: 2rem 0; }
.kitchen-notes > .label { font: 700 1.1rem var(--round); color: var(--char); margin: 0 0 0.3rem; }
.checked-against { font-size: 0.95rem; border-top: 1px solid var(--steel-dark); margin-top: 2.5rem; padding-top: 0.5rem; }
.checked-against li { margin-bottom: 0.4rem; }
.wide { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.data th, .data td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--steel-dark); }
.data thead th { background: var(--steel); color: var(--char); }
.data .n { text-align: right; white-space: nowrap; }
.endnote { margin-top: 2.5rem; font-size: 0.95rem; color: var(--muted); }

/* Calculators */
.calc { border: 1px solid var(--steel-dark); border-radius: 10px; padding: 1.1rem 1.2rem; margin: 1.4rem 0; }
.calc label { display: block; font-weight: 600; color: var(--char); margin: 0.8rem 0 0.25rem; }
.calc .hint { display: block; font-size: 0.95rem; color: var(--muted); margin-bottom: 0.3rem; }
.calc input, .calc select { font: inherit; font-size: 1rem; min-height: 44px; width: 100%; max-width: 14rem; padding: 0.4rem 0.6rem; border: 1px solid var(--rule); border-radius: 6px; color: var(--char); background: #fff; }
.calc button { font: 700 1rem var(--round); min-height: 48px; padding: 0 1.3rem; margin-top: 1rem; border: 0; border-radius: 24px; background: var(--plum); color: #fff; cursor: pointer; }
.calc button:hover { background: var(--plum-dark); }
.calc output { display: block; margin-top: 1rem; font-size: 1.1rem; color: var(--char); }

/* Fixed pages */
.page { max-width: var(--read); }
.page h2 { font-size: 1.4rem; }
.small { font-size: 0.95rem; color: var(--muted); }

.foot { margin-top: 5rem; background: var(--steel); border-top: 1px solid var(--steel-dark); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 2rem var(--pad); }
.foot-in > p:first-child { max-width: 38rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main > p, main > h2 + p { max-width: 40rem; }
.checked-against a { display: inline-block; padding: 0.65rem 0; }
.checked-against, .endnote, .dates, .crumbs { max-width: 33rem; }
