/* ===========================================================
   Rosalia's Brick Oven: demo site styles
   Direction (2026-09-15, second pass): "The board". A menu-board
   site, not a photo-hero site. Pure white ground, black ink, one
   tomato accent for action and status only. Anton (condensed,
   one weight) for the board set enormous, Archivo for reading.
   Split layout: the board scrolls on the left while one tall
   photo stays put on the right. Photos in a grid rhythm, never
   full-bleed bands. One black band carries the giant "900°".
   Motion from ../../assets/motion.css (loaded after this).
   =========================================================== */

:root {
  --white: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #4d4d4d;      /* secondary copy on white (8.6:1) */
  --ink-3: #6f6f6f;      /* captions (5.3:1) */
  --rule: rgba(11, 11, 11, 0.16);
  --rule-strong: #0b0b0b;
  --tomato: #e3261b;     /* the one accent */
  --tomato-deep: #b81c13;
  --bone: #f4f1ea;       /* type on the black band */
  --bone-2: rgba(244, 241, 234, 0.7);

  --font-board: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-read: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --w: 1320px;
  --gutter: clamp(1.1rem, 3.5vw, 3rem);
  --bar-h: 60px;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --step-1: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  --step-2: clamp(1.7rem, 1.2rem + 2.4vw, 3.2rem);
  --step-3: clamp(2.8rem, 1.5rem + 6vw, 6.5rem);
  --step-4: clamp(4.5rem, 1rem + 14vw, 13rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-read); font-size: var(--step-0); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }
.band-black :focus-visible { outline-color: var(--bone); }
.skip-link { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem !important; top: 1rem; background: var(--ink); color: var(--bone); z-index: 100; }

.wrap { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.board-type { font-family: var(--font-board); font-weight: 400; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.9; }

/* ---------- Top bar: thin, everything inline ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1.5px solid var(--rule-strong); }
.topbar .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: var(--bar-h); }
.brand { font-family: var(--font-board); text-transform: uppercase; font-size: 1.35rem; line-height: 1; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; letter-spacing: .01em; }
.brand em { font-style: normal; color: var(--tomato); margin-left: .35em; }
.topbar-info { display: none; gap: 1.4rem; align-items: center; color: var(--ink-2); font-size: .95rem; margin-left: 1rem; }
.topbar-info .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); display: inline-block; margin-right: .5rem; vertical-align: middle; }
.topbar-info a { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.topbar-nav { margin-left: auto; display: none; gap: 1.2rem; align-items: center; }
.topbar-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; min-height: 40px; display: inline-flex; align-items: center; }
.topbar-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: background var(--m-dur-base, 300ms) var(--m-ease-out, ease-out), color var(--m-dur-base, 300ms), transform var(--m-dur-fast, 160ms) var(--m-ease-out, ease-out); }
.pill-red { background: var(--tomato); color: #fff; }
.pill-red:hover { background: var(--tomato-deep); }
.pill-ink { background: var(--ink); color: var(--bone); }
.pill-ink:hover { background: #2a2a2a; }
.pill-line { border-color: var(--ink); color: var(--ink); }
.pill-line:hover { background: var(--ink); color: var(--bone); }
.band-black .pill-line { border-color: var(--bone); color: var(--bone); }
.band-black .pill-line:hover { background: var(--bone); color: var(--ink); }
.topbar .pill { margin-left: auto; }
@media (min-width: 900px) {
  .topbar-info { display: flex; }
  .topbar-nav { display: flex; }
  .topbar .pill { margin-left: 0; }
}
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; }
.menu-toggle-wrap { order: 3; }
.menu-toggle-wrap summary { list-style: none; cursor: pointer; }
.menu-toggle-wrap summary::-webkit-details-marker { display: none; }
@media (max-width: 899px) {
  .topbar-nav { display: none; }
  .topbar:has(.menu-toggle-wrap[open]) .topbar-nav { display: flex; position: absolute; left: 0; right: 0; top: var(--bar-h); flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1.5px solid var(--rule-strong); padding: .4rem var(--gutter) .8rem; }
  .topbar:has(.menu-toggle-wrap[open]) .topbar-nav a { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
}
@media (min-width: 900px) { .menu-toggle-wrap { display: none; } }

/* ---------- The board: split, sticky photo ---------- */
.board { border-bottom: 1.5px solid var(--rule-strong); }
.board .wrap { display: grid; gap: 0; }
.board-copy { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem); }
.board-title { font-size: var(--step-4); }
.board-title span { display: block; }
.board-title .red { color: var(--tomato); }
.board-line { margin-top: 1.2rem; font-size: var(--step-1); color: var(--ink-2); max-width: 30ch; line-height: 1.35; }
.board-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.board-list { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1.5px solid var(--rule-strong); }
.board-item { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.board-item h3 { font-family: var(--font-board); font-weight: 400; text-transform: uppercase; font-size: var(--step-2); line-height: .95; letter-spacing: .01em; }
.board-item p { color: var(--ink-2); grid-column: 1; max-width: 46ch; }
.board-price { font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--step-1); }
.board-price small { display: block; font-size: .8rem; color: var(--ink-3); font-weight: 500; text-align: right; }
.board-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; color: var(--ink-2); }
.board-photo { display: none; }
@media (min-width: 900px) {
  .board .wrap { grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .board-photo { display: block; position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); padding: clamp(1rem, 2vw, 1.5rem) 0; }
  .board-photo-frame { height: 100%; overflow: clip; }
  .board-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
}

/* ---------- Photo rhythm: alternating two-column rows ---------- */
.rows { padding: clamp(3rem, 7vw, 6rem) 0 0; }
.row { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem) 0; border-top: 1px solid var(--rule); }
.row:first-child { border-top: 0; padding-top: 0; }
.row-photo { overflow: clip; aspect-ratio: 4 / 3; }
.row-photo img { width: 100%; height: 100%; object-fit: cover; }
.row h2 { font-family: var(--font-board); font-weight: 400; text-transform: uppercase; font-size: var(--step-3); line-height: .92; letter-spacing: .005em; max-width: 12ch; }
.row p { margin-top: 1rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.4; max-width: 42ch; }
.row .facts { margin-top: 1.4rem; border-top: 1.5px solid var(--rule-strong); }
.row .facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.row .facts li span:last-child { font-weight: 600; }
@media (min-width: 800px) {
  .row { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .row:nth-child(even) .row-photo { order: 2; }
}

/* ---------- The black band: 900°, the pinned moment ---------- */
.band-black { background: var(--ink); color: var(--bone); }
.oven { --m-pin-length: 170vh; }
.oven .m-pin { display: grid; align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.oven-grid { display: grid; gap: 2rem; }
.degrees { font-family: var(--font-board); font-size: var(--step-4); line-height: .85; letter-spacing: -0.01em; color: var(--bone); }
.degrees sup { font-size: .35em; vertical-align: top; top: .55em; position: relative; color: var(--tomato); }
.degrees small { display: block; font-family: var(--font-read); font-size: var(--step-1); text-transform: none; letter-spacing: 0; color: var(--bone-2); margin-top: 1rem; max-width: 30ch; line-height: 1.35; }
.ninety { border-top: 1.5px solid rgba(244,241,234,.5); }
.ninety li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(244,241,234,.2); align-items: baseline; }
.ninety time { font-family: var(--font-board); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1; color: var(--tomato); }
.ninety h3 { font-size: var(--step-1); font-weight: 600; }
.ninety p { color: var(--bone-2); margin-top: .25rem; max-width: 44ch; }
.ninety .bar { grid-column: 1 / -1; height: 3px; background: var(--tomato); transform-origin: left; transform: scaleX(1); }
@media (min-width: 900px) { .oven-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
@supports (view-timeline-name: --m-pin) {
  @media (prefers-reduced-motion: no-preference) {
    .ninety .bar { animation: fill-bar linear both; animation-timeline: --m-pin; }
    .ninety li:nth-child(1) .bar { animation-range: 5% 25%; }
    .ninety li:nth-child(2) .bar { animation-range: 25% 45%; }
    .ninety li:nth-child(3) .bar { animation-range: 45% 65%; }
    .ninety li:nth-child(4) .bar { animation-range: 65% 85%; }
  }
}
@keyframes fill-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 899px) { .oven { --m-pin-length: 0; } .oven .m-pin { position: static; min-height: 0; } }

/* ---------- Visit + order ---------- */
.visit { padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1.5px solid var(--rule-strong); }
.visit-grid { display: grid; gap: 2rem; }
.visit h2 { font-family: var(--font-board); font-weight: 400; text-transform: uppercase; font-size: var(--step-3); line-height: .92; }
.hours { border-top: 1.5px solid var(--rule-strong); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--tomato); font-weight: 600; }
.addr { color: var(--ink-2); line-height: 1.55; }
.addr a { display: inline-flex; align-items: center; min-height: 40px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr 1fr; gap: 3rem; align-items: start; } }

.order { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.order-grid { display: grid; gap: 2rem; }
.order h2 { font-family: var(--font-board); font-weight: 400; text-transform: uppercase; font-size: var(--step-3); line-height: .92; }
.order .lede { margin-top: 1rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.4; max-width: 40ch; }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: .8rem .95rem; border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); min-height: 46px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 1rem; }
.form-note { color: var(--ink-3); font-size: .9rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .order-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }

/* ---------- Footer + phone bottom bar ---------- */
.site-footer { border-top: 1.5px solid var(--rule-strong); padding: 2rem 0 6.5rem; color: var(--ink-2); font-size: .95rem; }
.footer-grid { display: grid; gap: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.disclaimer { color: var(--ink-3); font-size: .85rem; max-width: 70ch; }
.disclaimer a { display: inline-block; padding: .7rem 0; margin: -.7rem 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } .site-footer { padding-bottom: 3rem; } }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1.5px solid var(--rule-strong); }
.bottombar .pill { width: 100%; min-height: 48px; }
@media (min-width: 900px) { .bottombar { display: none; } }

/* ---------- Menu page ---------- */
.menu-head { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1.5px solid var(--rule-strong); }
.menu-head-grid { display: grid; gap: 1.5rem; align-items: end; }
.menu-head h1 { font-family: var(--font-board); font-weight: 400; text-transform: uppercase; font-size: var(--step-4); line-height: .85; }
.menu-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.4; max-width: 38ch; }
@media (min-width: 900px) { .menu-head-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.menu-nav { position: sticky; top: var(--bar-h); z-index: 40; background: var(--white); border-bottom: 1px solid var(--rule); }
.menu-nav ul { display: flex; gap: .3rem; overflow-x: auto; padding: .5rem 0; scrollbar-width: none; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a { flex: none; text-decoration: none; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; padding: .5rem .85rem; border-radius: 999px; border: 1.5px solid var(--rule); min-height: 40px; display: inline-flex; align-items: center; }
.menu-nav a:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.menu-section { display: grid; gap: 1.5rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--rule); }
.menu-section:last-of-type { border-bottom: 0; }
.menu-section h2 { font-family: var(--font-board); font-weight: 400; text-transform: uppercase; font-size: var(--step-3); line-height: 1; }
.menu-section .note { color: var(--ink-2); margin-top: .8rem; max-width: 36ch; }
.menu-section .photo { margin-top: 1.4rem; aspect-ratio: 1; overflow: clip; }
.menu-section .photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-items { border-top: 1.5px solid var(--rule-strong); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.menu-item h3 { font-family: var(--font-board); font-weight: 400; text-transform: uppercase; font-size: var(--step-1); letter-spacing: .01em; line-height: 1; }
.menu-item p { color: var(--ink-2); grid-column: 1; }
.menu-item p a, .allergen a { display: inline-block; padding: .7rem 0; margin: -.7rem 0; }
.menu-item .price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item .price small { font-weight: 500; color: var(--ink-3); font-size: .8rem; margin-right: .3rem; }
.allergen { color: var(--ink-3); font-size: .9rem; margin-top: 1.2rem; max-width: 66ch; grid-column: 1 / -1; }
@media (min-width: 900px) { .menu-section { grid-template-columns: 0.75fr 1.25fr; gap: 4rem; align-items: start; } .menu-section > div:first-child { position: sticky; top: calc(var(--bar-h) + 72px); padding-top: .3rem; } }
