:root {
  --paper: #f4ecd8;
  --broth: #c4b45a;
  --roast: #6b3a1c;
  --ink: #2a2418;
  --mute: #7a6e58;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.75; padding-left: 18px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--roast); text-decoration: underline; text-underline-offset: 3px; }
button, input { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); background: rgba(196, 180, 90, 0.28); padding: 0 0.3em; }
.cotton {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.22;
  background-image: url("images/texture.webp");
  background-size: 360px;
  mix-blend-mode: multiply;
}
.stitch {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 40;
  background: repeating-linear-gradient(180deg, var(--roast) 0 6px, transparent 6px 16px), #e8dcc0;
  border-right: 1px solid rgba(107, 58, 28, 0.35);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 24px; top: 10px; z-index: 80; background: var(--broth); padding: 8px; }

.ledger-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(244, 236, 216, 0.94);
  border-bottom: 1px dashed var(--roast);
}
.brand { font-family: var(--serif); font-weight: 700; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--mute); font-weight: 400; }
.nav-toggle { display: none; background: var(--roast); color: #fff; border: 0; padding: 8px 12px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.nav-links a { color: var(--mute); }
.nav-links a.is-active, .nav-links a:hover { color: var(--roast); }
.nav-links .live { background: var(--roast); color: #fff; padding: 6px 12px; }

.hero { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(42, 36, 24, 0.72)); }
.ticket {
  position: relative;
  z-index: 1;
  margin: 8vh 6vw 7vh;
  max-width: 720px;
  padding: 28px;
  background: rgba(244, 236, 216, 0.9);
  border: 1px solid rgba(107, 58, 28, 0.25);
  box-shadow: 8px 10px 0 rgba(107, 58, 28, 0.12);
}
.kicker, .vlabel { font-family: var(--mono); letter-spacing: 0.16em; font-size: 11px; color: var(--roast); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--serif); margin: 0 0 14px; line-height: 1.12; }
h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 22px; }
.lead, .quiet { max-width: 44em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; padding: 10px 16px; border: 1px solid currentColor; }
.btn.fill { background: var(--roast); color: #fff; border-color: var(--roast); }
.btn.line { color: var(--ink); }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.three article { background: #fff8ea; padding: 18px; border: 1px dashed rgba(107, 58, 28, 0.3); }
.roast { background: #efe0c8 !important; }
.three ul { margin: 0; padding-left: 1.1em; }
.broth { background: #e7d7a8; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-bottom: 36px; }
.row.flip { direction: rtl; }
.row.flip > * { direction: ltr; }
.row figure { margin: 0; }
.row img { width: 100%; height: 250px; object-fit: cover; }
.row figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; font-style: italic; }
.num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--roast); display: block; margin-bottom: 8px; }

.wok-box { background: #fff8ea; border: 1px dashed var(--roast); padding: 20px; }
label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; display: block; margin-bottom: 8px; }
#wok-temp { width: 100%; accent-color: var(--roast); }
.four { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }
.four article { background: #fff8ea; padding: 16px; border-top: 4px solid var(--broth); }
ol { padding-left: 1.2em; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px dashed rgba(107, 58, 28, 0.3); }
th { font-family: var(--mono); font-size: 12px; }
.foot-live { margin-top: 22px; }

@media (max-width: 900px) {
  body { padding-left: 0; }
  .stitch { display: none; }
  .nav-toggle { display: inline-flex; }
  .ledger-bar { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; }
  .nav-links.open { display: flex; }
  .three, .row, .four { grid-template-columns: 1fr; }
  .row.flip { direction: ltr; }
  h1 { font-size: clamp(28px, 10vw, 44px); }
}
