/* ==========================================================================
   Lewey's Pit Ledger — stylesheet
   Design tokens and measurements from design_handoff_pit_ledger (high fidelity).
   ========================================================================== */

:root {
  /* colors */
  --char: #1a1512;
  --soot: #2a221b;
  --ink: #241d16;
  --paper: #f5efe4;
  --card: #fffdf8;
  --rules: #d8cdbb;
  --dotted: #c4b7a2;
  --smoke: #857a6d;
  --smoke-nav: #b9ad9e;
  --smoke-hero: #c9bda9;
  --smoke-badge: #6b5f52;
  --smoke-rule: #4a3d30;
  --smoke-border: #3c322a;
  --ember: #d4692a;
  --rust: #a03d1d;
  --row-hover: #efe7d7;
  --empty: #a89a86;
  --success: #7fa06a;
  --muted: #5c5245;
  --note-text: #d9cfc0;
  /* type */
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --display: 'Big Shoulders Display', sans-serif;
  --serif: 'Spectral', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px dashed var(--ember); outline-offset: 2px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.shell { max-width: 1060px; margin: 0 auto; width: 100%; padding-left: 32px; padding-right: 32px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { background: var(--char); color: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.masthead { display: flex; flex-direction: column; color: var(--paper); }
.masthead:hover { color: var(--paper); }
.masthead-eyebrow { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .4em; color: var(--ember); }
.masthead-title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--smoke-nav); }
.nav-link:hover { color: var(--paper); }
.nav-link.is-active { color: var(--ember); border-bottom: 1px solid var(--ember); padding-bottom: 2px; }
.nav-link.is-active:hover { color: var(--ember); }
.entry-badge { font-family: var(--mono); font-size: 10px; color: var(--smoke-badge); border: 1px solid var(--smoke-border); border-radius: 3px; padding: 4px 8px; white-space: nowrap; }
.header-back { display: none; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--smoke-nav); }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero { background: var(--char); color: var(--paper); border-top: 1px solid var(--soot); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 64px; padding-bottom: 72px; position: relative; }
.rule-thin { width: 170px; border-bottom: 1px solid var(--smoke-rule); }
.hero-eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .45em; text-indent: .45em; color: var(--ember); position: relative; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(58px, 10vw, 96px); line-height: .95; margin: 8px 0 0; letter-spacing: .02em; position: relative; }

/* logo lockup (FINAL "2g"): flame emblem breaking the top double rule,
   animated smoke wisps drifting up behind the wordmark */
.lockup-rule { display: flex; align-items: center; gap: 10px; width: 190px; margin-bottom: 10px; position: relative; }
.lockup-seg { flex: 1; border-top: 3px double var(--ember); }
.lockup-flame { width: 20px; height: 26px; flex: none; display: block; }
.lockup-smoke { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--smoke-w, 260px); margin-left: calc(var(--smoke-w, 260px) / -2); pointer-events: none; overflow: hidden; }
.lockup-smoke svg { position: absolute; bottom: var(--smoke-b, 45%); opacity: 0; animation: smoke-rise 5s ease-out infinite; }
.lockup-smoke svg:nth-child(1) { left: 10%; }
.lockup-smoke svg:nth-child(2) { left: 35%; animation-duration: 6.2s; animation-delay: 1.6s; }
.lockup-smoke svg:nth-child(3) { left: 60%; animation-duration: 5.6s; animation-delay: .8s; }
.lockup-smoke svg:nth-child(4) { left: 84%; animation-duration: 6.8s; animation-delay: 2.4s; }
.hero .lockup-smoke { --smoke-b: 45%; }
.gate-col .lockup-smoke { --smoke-b: 58%; }

@keyframes smoke-rise {
  0% { opacity: 0; transform: translateY(14px) scaleY(.8); }
  25% { opacity: .75; }
  70% { opacity: .3; }
  100% { opacity: 0; transform: translateY(-46px) scaleY(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .lockup-smoke { display: none; }
}
.hero .rule-thin { margin-top: 22px; }
.hero-tagline { font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em; text-indent: .28em; color: var(--smoke); margin: 14px 0 0; }
.hero-intro { font-size: 17px; line-height: 1.6; color: var(--smoke-hero); max-width: 520px; margin: 22px 0 0; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Section headers / home sections
   -------------------------------------------------------------------------- */
.home-section { padding-top: 56px; }
.home-section--last { padding-bottom: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: 34px; margin: 0; letter-spacing: .02em; }
.section-link { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; white-space: nowrap; }
.section-count { font-family: var(--mono); font-size: 10.5px; color: var(--smoke); }

/* --------------------------------------------------------------------------
   Entry rows (home latest + ledger)
   -------------------------------------------------------------------------- */
.entry-row { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 18px; align-items: baseline; padding: 16px 4px; border-bottom: 1px dotted var(--dotted); color: var(--ink); }
.entry-row:hover { background: var(--row-hover); color: var(--ink); }
.entry-row[hidden] { display: none; }
.er-right { display: contents; }
.er-no { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--rust); }
.er-name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.er-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--smoke); }
.er-diff { font-family: var(--mono); font-size: 10.5px; color: var(--smoke); }
.er-date { font-family: var(--mono); font-size: 10.5px; color: var(--smoke); text-align: right; min-width: 82px; }

.ledger-section .entry-row { grid-template-columns: 70px 1fr auto auto auto; padding: 15px 4px; }
.ledger-section .er-name { font-size: 17px; }
.ledger-section .er-meta { font-size: 10px; }

/* homepage latest rows carry a photo thumbnail */
.latest-list .entry-row { grid-template-columns: 54px 70px 1fr auto auto; align-items: center; padding: 12px 4px; }
.er-thumb { width: 54px; height: 44px; display: block; overflow: hidden; border: 1px solid var(--rules); }
.er-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-thumb--empty { background: var(--row-hover); border: none; outline: 1px dashed var(--dotted); outline-offset: -4px; }

/* --------------------------------------------------------------------------
   Signature cards
   -------------------------------------------------------------------------- */
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; }
.sig-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rules); color: var(--ink); }
.sig-card:hover { border-color: var(--rust); color: var(--ink); }
.card-photo { height: 230px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo img, .recipe-hero img, .er-thumb img { background-color: var(--row-hover); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-no { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--rust); }
.card-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--smoke); text-align: right; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; }
.card-blurb { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* photo placeholder (until real photos arrive) */
.photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; background: var(--row-hover); outline: 1px dashed var(--dotted); outline-offset: -10px; text-align: center; padding: 20px; }
.ph-eyebrow { font-family: var(--mono); font-size: 8.5px; letter-spacing: .3em; text-indent: .3em; color: var(--empty); }
.ph-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--empty); text-transform: uppercase; max-width: 40ch; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: auto; background: var(--char); color: var(--smoke); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   The Ledger
   -------------------------------------------------------------------------- */
.ledger-head { padding-top: 48px; }
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7vw, 64px); margin: 0; line-height: 1; letter-spacing: .02em; }
.page-intro { font-size: 16px; color: var(--muted); margin: 10px 0 0; max-width: 560px; line-height: 1.55; text-wrap: pretty; }
.ledger-controls { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-input { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink); background: var(--card); border: 1px solid var(--dotted); border-radius: 3px; padding: 9px 12px; width: 320px; max-width: 100%; outline: none; }
.search-input::placeholder { color: var(--empty); }
.search-input:focus { border-color: var(--smoke); }
.category-select { -webkit-appearance: none; appearance: none; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); background-color: var(--card); border: 1px solid var(--dotted); border-radius: 3px; padding: 8px 34px 8px 12px; cursor: pointer; outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23857A6D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.category-select:hover { border-color: var(--smoke); }
.category-select:focus { border-color: var(--smoke); }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--smoke); }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 7px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--dotted); background: transparent; color: var(--muted); }
.pill:hover { border-color: var(--smoke); }
.pill.is-active { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.clear-filter { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; padding: 7px 10px; border: none; background: none; color: var(--rust); cursor: pointer; text-decoration: underline; }
.clear-filter:hover { color: var(--ember); }
.ledger-sections { display: flex; flex-direction: column; gap: 44px; padding-top: 40px; padding-bottom: 72px; }
.ledger-section[hidden] { display: none; }
.ledger-section .section-head { justify-content: flex-start; gap: 14px; padding-bottom: 8px; }
.ledger-section .section-head h2 { font-size: 32px; }
.empty-row { padding: 18px 4px; border-bottom: 1px dotted var(--dotted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--empty); }
.empty-row[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Recipe entry
   -------------------------------------------------------------------------- */
.recipe-main { max-width: 880px; margin: 0 auto; width: 100%; padding: 44px 32px 80px; }
.recipe-back { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; }
.recipe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 22px; }
.recipe-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--rust); }
.recipe-title { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 7vw, 62px); line-height: .98; margin: 8px 0 0; letter-spacing: .01em; }
.tag-pills { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag-pill { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; border: 1px solid var(--dotted); border-radius: 999px; padding: 4px 11px; color: var(--muted); }

.recipe-rating { font-family: var(--mono); font-size: 18px; letter-spacing: .18em; color: var(--rust); margin-top: 12px; }

.stamp { flex: none; transform: rotate(4deg); border: 2.5px solid var(--rust); border-radius: 5px; padding: 4px; color: var(--rust); opacity: .85; }
.stamp-inner { border: 1px solid var(--rust); border-radius: 2px; padding: 8px 14px; text-align: center; }
.stamp-top { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .24em; text-indent: .24em; }
.stamp-mid { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; }
.stamp-date { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; margin-top: 3px; }

.recipe-hero { height: 340px; margin-top: 28px; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.meta-strip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--ink); margin-top: 28px; background: var(--card); }
.meta-cell { padding: 14px 12px; border-right: 1px solid var(--rules); display: flex; flex-direction: column; gap: 4px; }
.meta-cell:last-child { border-right: none; }
.meta-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; color: var(--smoke); }
.meta-value { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.meta-value.is-rust { color: var(--rust); }
.meta-note { font-family: var(--mono); font-size: 9px; color: var(--empty); }

.recipe-body { display: grid; grid-template-columns: 300px 1fr; gap: 44px; margin-top: 44px; align-items: start; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.col-head h2 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 0; letter-spacing: .02em; }
.print-btn { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; border: none; background: none; color: var(--rust); cursor: pointer; text-decoration: underline; padding: 0; }
.print-btn:hover { color: var(--ember); }
.ing-row { display: flex; align-items: baseline; gap: 8px; padding: 9px 2px; border-bottom: 1px dotted var(--dotted); }
.ing-qty { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--rust); min-width: 64px; }
.ing-item { font-size: 14.5px; line-height: 1.4; }
.steps { display: flex; flex-direction: column; gap: 20px; margin-top: 18px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step-no { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--ember); }
.step p { margin: 0; font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }

.pit-notes { margin-top: 48px; background: var(--char); color: var(--paper); padding: 28px 32px 30px; position: relative; }
.pit-notes::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; border-top: 3px double var(--ember); }
.pit-notes h2 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 8px 0 0; letter-spacing: .02em; color: var(--ember); }
.pit-notes-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.pit-note { display: flex; gap: 12px; align-items: baseline; }
.pit-note-arrow { font-family: var(--mono); font-size: 11px; color: var(--ember); }
.pit-note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--note-text); text-wrap: pretty; }

.entry-pending { margin-top: 44px; padding: 22px 4px; border-top: 1px dotted var(--dotted); border-bottom: 1px dotted var(--dotted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--empty); text-align: center; }

/* --------------------------------------------------------------------------
   Gate
   -------------------------------------------------------------------------- */
.page-gate { background: var(--char); color: var(--paper); }
.gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; }
.gate-col { width: 420px; max-width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.gate-eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .45em; text-indent: .45em; color: var(--ember); position: relative; }
.gate-title { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .95; letter-spacing: .02em; margin-top: 6px; position: relative; }
.gate-col .rule-thin { margin-top: 20px; }
.gate-private { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; text-indent: .26em; color: var(--smoke); margin: 14px 0 0; }
.gate-intro { font-size: 15.5px; line-height: 1.6; color: var(--smoke-hero); margin: 26px 0 0; text-wrap: pretty; }
#gate-form { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 26px; }
#gate-form.is-wrong { animation: gate-shake .3s ease; }
#gate-pass { width: 100%; background: #241d16; border: 1px solid var(--smoke-border); border-radius: 4px; color: var(--paper); font-family: var(--mono); font-size: 14px; padding: 14px 16px; outline: none; letter-spacing: .14em; }
#gate-pass::placeholder { color: var(--smoke-badge); }
#gate-pass:focus { border-color: var(--smoke); }
#gate-form.is-wrong #gate-pass { border-color: var(--rust); }
#gate-form button { background: var(--rust); border: none; border-radius: 4px; color: var(--paper); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-indent: .24em; padding: 14px; cursor: pointer; }
#gate-form button:hover { background: var(--ember); }
.gate-msg { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; margin: 14px 0 0; }
.gate-msg.is-wrong-msg { color: var(--ember); }
.gate-msg.is-open { color: var(--success); }
.gate-domain { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--smoke-rule); margin: 38px 0 0; }

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound { padding: 96px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.notfound h1 { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; margin: 0; letter-spacing: .02em; }
.notfound p { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--empty); margin: 0; }
.notfound a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }

/* --------------------------------------------------------------------------
   Print (recipe pages)
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .no-print, .header-back { display: none !important; }
  body { background: #fff; color: #000; }
  .recipe-main { padding: 0; }
  .recipe-head { margin-top: 0; }
  .photo-placeholder { display: none; }
  .recipe-hero { height: auto; }
  .recipe-hero img { height: auto; }
  .pit-notes { background: none; color: var(--ink); padding: 24px 0 0; }
  .pit-notes::before { left: 0; right: 0; }
  .pit-note p { color: var(--ink); }
  .stamp { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Mobile (per Mobile.dc.html, 390–402px reference frames)
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .shell { padding-left: 20px; padding-right: 20px; }

  /* header */
  .header-inner { padding-top: 16px; padding-bottom: 16px; }
  .masthead-eyebrow { font-size: 8px; }
  .masthead-title { font-size: 22px; }
  .site-nav { gap: 16px; }
  .nav-link { font-size: 10px; letter-spacing: .14em; padding: 12px 0; }
  .nav-link.is-active { padding-bottom: 2px; }
  .nav-the { display: none; }
  .entry-badge { display: none; }
  .page-recipe .nav-link { display: none; }
  .page-recipe .header-back { display: block; padding: 12px 0; }

  /* hero */
  .hero-inner { padding-top: 36px; padding-bottom: 44px; }
  .hero .lockup-rule { width: 150px; gap: 9px; margin-bottom: 8px; }
  .hero .lockup-smoke { --smoke-b: 40%; --smoke-w: 200px; }
  .lockup-flame { width: 18px; height: 24px; }
  .hero .rule-thin { width: 130px; margin-top: 16px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-tagline { font-size: 8.5px; letter-spacing: .26em; margin-top: 10px; }
  .hero-intro { font-size: 14px; max-width: 290px; margin-top: 16px; }
  .hero-tail { display: none; }

  /* sections */
  .home-section { padding-top: 32px; }
  .home-section--last { padding-bottom: 40px; }
  .section-head { padding-bottom: 8px; }
  .section-head h2 { font-size: 26px; }
  .section-link { font-size: 9.5px; letter-spacing: .1em; }
  .sl-open { display: none; }

  /* rows collapse to two-line stacks */
  .entry-row, .ledger-section .entry-row { grid-template-columns: 1fr auto; gap: 2px 10px; padding: 13px 2px; }
  .er-name { grid-column: 1; grid-row: 1; font-size: 16px; }
  .er-no { grid-column: 2; grid-row: 1; font-size: 10px; justify-self: end; }
  .er-meta { grid-column: 1; grid-row: 2; font-size: 9px; }
  .er-right { display: flex; gap: 8px; align-items: baseline; grid-column: 2; grid-row: 2; justify-self: end; }
  .er-diff { font-size: 9px; }
  .er-date { font-size: 9px; min-width: 0; }
  .ledger-section .er-name { font-size: 15.5px; }
  .ledger-section .yr { display: none; }

  /* latest rows keep the thumbnail on the left, spanning both lines */
  .latest-list .entry-row { grid-template-columns: 44px 1fr auto; }
  .latest-list .er-thumb { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 38px; align-self: center; }
  .latest-list .er-name { grid-column: 2; grid-row: 1; }
  .latest-list .er-no { grid-column: 3; grid-row: 1; }
  .latest-list .er-meta { grid-column: 2; grid-row: 2; }
  .latest-list .er-right { grid-column: 3; grid-row: 2; }

  /* cards stack */
  .sig-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; }
  .card-photo { height: 170px; }
  .card-body { padding: 14px 16px 16px; gap: 6px; }
  .card-no { font-size: 9.5px; }
  .card-cat { font-size: 8.5px; letter-spacing: .12em; }
  .card-title { font-size: 24px; }
  .card-blurb { font-size: 13.5px; }

  /* footer stacks */
  .footer-inner { flex-direction: column; gap: 4px; font-size: 9px; padding-top: 18px; padding-bottom: 28px; }

  /* ledger */
  .ledger-head { padding-top: 28px; }
  .page-intro { font-size: 14px; }
  .ledger-controls { margin-top: 18px; gap: 10px; }
  .search-input { width: 100%; min-height: 44px; font-size: 12px; }
  .category-select { width: 100%; min-height: 44px; font-size: 11.5px; }
  .filter-row { gap: 8px; }
  .filter-label { display: none; }
  .pill { font-size: 10.5px; letter-spacing: .1em; padding: 12px 16px; min-height: 44px; }
  .clear-filter { min-height: 44px; padding: 12px 8px; font-size: 10px; letter-spacing: .08em; }
  .ledger-sections { gap: 30px; padding-top: 28px; padding-bottom: 40px; }
  .ledger-section .section-head { gap: 10px; padding-bottom: 6px; }
  .ledger-section .section-head h2 { font-size: 24px; }
  .section-count { font-size: 9px; }
  .empty-row { padding: 14px 2px; font-size: 9.5px; letter-spacing: .06em; }

  /* recipe */
  .recipe-main { padding: 26px 20px 40px; }
  .recipe-back { display: none; }
  .recipe-head { gap: 12px; margin-top: 0; }
  .recipe-eyebrow { font-size: 10px; letter-spacing: .18em; }
  .tag-pills { gap: 6px; margin-top: 12px; }
  .tag-pill { font-size: 9px; letter-spacing: .1em; padding: 5px 10px; }
  .recipe-rating { font-size: 16px; margin-top: 10px; }
  .stamp { border-width: 2px; padding: 3px; margin-top: 8px; }
  .stamp-inner { padding: 5px 9px; }
  .stamp-top { font-size: 7px; letter-spacing: .2em; text-indent: .2em; }
  .stamp-mid { font-size: 14px; }
  .stamp-date { display: none; }
  .recipe-hero { height: 210px; margin-top: 18px; }
  .meta-strip { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
  .meta-cell { padding: 11px 10px; border-right: 1px solid var(--rules); border-bottom: 1px solid var(--rules); }
  .meta-cell:nth-child(3n) { border-right: none; }
  .meta-cell:nth-child(n+4) { border-bottom: none; }
  .meta-label { font-size: 7.5px; letter-spacing: .16em; }
  .meta-value { font-size: 12.5px; }
  .meta-note { display: none; }
  .recipe-body { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .col-head h2 { font-size: 24px; }
  .ing-qty { font-size: 11px; min-width: 62px; }
  .ing-item { font-size: 13.5px; }
  .steps { gap: 16px; margin-top: 16px; }
  .step { grid-template-columns: 38px 1fr; gap: 10px; }
  .step-no { font-size: 26px; }
  .step p { font-size: 14px; }
  .pit-notes { margin-top: 30px; padding: 20px 20px 22px; }
  .pit-notes::before { left: 20px; right: 20px; }
  .pit-notes h2 { font-size: 22px; }
  .pit-note p { font-size: 13.5px; }

  /* gate */
  .gate-col .lockup-rule { width: 170px; gap: 9px; }
  .gate-col .lockup-smoke { --smoke-b: 56%; --smoke-w: 200px; }
  .gate-col .rule-thin { width: 150px; margin-top: 18px; }
  .gate-eyebrow { font-size: 11px; }
  .gate-title { font-size: 52px; }
  .gate-private { font-size: 9px; letter-spacing: .24em; text-indent: .24em; margin-top: 12px; }
  .gate-intro { font-size: 14.5px; margin-top: 24px; }
  #gate-form { margin-top: 24px; }
  #gate-pass { border-radius: 6px; padding: 15px 16px; }
  #gate-form button { border-radius: 6px; padding: 16px; min-height: 48px; letter-spacing: .22em; text-indent: .22em; }
}
