/* Blue Plate Special, fine-print edition: a diner menu board up top, the house rules typed on an order ticket below. */
@font-face { font-family: "Alfa Slab One"; src: url("/fonts/AlfaSlabOne-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: oklch(0.96 0.02 95);
  --paper-2: oklch(0.91 0.035 90);
  --ticket: oklch(0.99 0.008 95);
  --ink: oklch(0.25 0.03 165);
  --ink-soft: oklch(0.44 0.04 165);
  --booth: oklch(0.47 0.09 160);
  --booth-deep: oklch(0.36 0.07 160);
  --ketchup: oklch(0.52 0.19 29);
  --ketchup-deep: oklch(0.40 0.15 29);
  --mustard: oklch(0.84 0.14 90);
  --navy: oklch(0.36 0.09 255);
  --chalk: oklch(0.97 0.015 95);

  --sign: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Marker Felt", "Bradley Hand", cursive;

  --gutter: clamp(16px, 5vw, 48px);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-3: clamp(2.3rem, 1.7rem + 3vw, 3.6rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; }

a { color: var(--booth-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ketchup-deep); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ticket); color: var(--ink); padding: 10px 14px; font-weight: 700; z-index: 2; }
.skip:focus { top: 12px; }

.board { background: var(--booth); color: var(--chalk); padding: clamp(20px, 5vw, 40px) var(--gutter) clamp(26px, 6vw, 48px); }
.board-in { max-width: 44rem; margin: 0 auto; }
.brand { display: flex; width: fit-content; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; }
.brand:hover { color: var(--chalk); text-decoration: underline; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.open { display: table; margin-top: clamp(22px, 5vw, 36px); background: var(--mustard); color: var(--booth-deep); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.board h1 { font-family: var(--sign); font-weight: 400; font-size: var(--step-3); line-height: 0.98; margin: 14px 0 0; color: var(--chalk); text-wrap: balance; }
.board .scrawl { font-family: var(--hand); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); line-height: 1.1; margin: 10px 0 0; color: var(--mustard); transform: rotate(-2deg); transform-origin: left; }
.checker { height: 16px; background: conic-gradient(var(--ink) 25%, var(--chalk) 0 50%, var(--ink) 0 75%, var(--chalk) 0) 0 0 / 16px 16px; }

nav.tabs { padding: 18px var(--gutter) 0; }
nav.tabs ul { list-style: none; margin: 0 auto; padding: 0; max-width: 44rem; display: flex; flex-wrap: wrap; gap: 8px; }
nav.tabs a { display: inline-block; padding: 9px 14px; border-radius: 6px; font-weight: 800; font-size: 0.95rem; text-decoration: none; color: var(--ink); background: var(--ticket); box-shadow: inset 0 0 0 2px var(--ink); }
nav.tabs a:hover { background: var(--paper-2); color: var(--ink); }
nav.tabs a[aria-current="page"] { background: var(--ketchup); color: var(--chalk); box-shadow: inset 0 0 0 2px var(--ketchup), inset 0 0 0 4px var(--chalk); }

main { padding: 22px var(--gutter) 8px; }
.ticket { max-width: 44rem; margin: 0 auto; background: var(--ticket); border: 2px solid var(--ink); border-radius: 6px; padding: clamp(18px, 4.5vw, 36px); }
.ticket-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; border-bottom: 2px dashed var(--ink-soft); padding-bottom: 12px; margin-bottom: 8px; }
.ticket-head b { font-family: var(--sign); font-weight: 400; font-size: var(--step-1); }
.ticket-head span { font-weight: 700; font-size: 0.92rem; color: var(--ketchup-deep); }

.lede { font-size: var(--step-1); line-height: 1.45; margin: 18px 0 6px; }
h2 { font-family: var(--sign); font-weight: 400; font-size: var(--step-1); line-height: 1.2; color: var(--booth-deep); margin: 2.1em 0 0.35em; }
h2 .no { color: var(--ketchup); margin-right: 0.35em; }
h3 { font-size: 1.05rem; font-weight: 800; margin: 1.5em 0 0.25em; }
p, ul, ol, dl { margin: 0.55em 0; }
ul, ol { padding-left: 1.3em; }
li { margin: 0.3em 0; }
li::marker { color: var(--ketchup); font-weight: 800; }
strong { font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 0.8em 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--paper-2); }
th { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }

.rows td::before { content: none; }
@media (max-width: 36rem) {
  .rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rows, .rows tbody, .rows tr, .rows td { display: block; }
  .rows tr { padding: 12px 0; border-bottom: 1px solid var(--paper-2); }
  .rows td { border: 0; padding: 2px 0; }
  .rows td:first-child { font-size: 1.02rem; }
  .rows td + td::before { content: attr(data-label) ": "; font-weight: 800; color: var(--booth-deep); }
}
.note { margin: 1.4em 0 0.4em; padding: 12px 14px; border-left: 5px solid var(--mustard); background: var(--paper); border-radius: 0 6px 6px 0; }

details { border-bottom: 1px solid var(--paper-2); }
details:first-of-type { border-top: 1px solid var(--paper-2); }
summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 800; font-size: 1.05rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-family: var(--sign); font-size: 1.5rem; color: var(--ketchup); transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1); }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 14px; }

.contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 1.2em; }
.contact .hand { font-family: var(--hand); font-weight: 700; font-size: 1.7rem; color: var(--ketchup-deep); line-height: 1; }
.contact a { font-weight: 800; font-size: 1.1rem; }

footer { padding: 26px var(--gutter) 40px; }
footer div { max-width: 44rem; margin: 0 auto; font-size: 0.9rem; color: var(--ink-soft); }
footer a { color: var(--ink-soft); }
footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
