/* ==========================================================================
   Sunday Oven - design sketch stylesheet
   Static, stack-agnostic HTML/CSS. Light theme
   locked (warm daylight brand); one deliberate Crust band for the menu.
   Radius rule (documented): buttons pill, cards + ticket 14-16px, images 12px.
   Accent lock: Tomato is the only accent; Herb = inline links; Butter =
   highlight on dark surfaces and ticket details.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --crust: #2A1A12;
  --crust-soft: #3A271B;          /* card surface on the Crust band */
  --cream: #FBF6EE;
  --cream-tint: #F1E7D6;          /* same-family tint for slots/figures */
  --tomato: #D6452E;
  --herb: #3F6B4F;
  --butter: #E8C97A;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --container-inset: max(var(--pad-x), calc((100vw - var(--max-w)) / 2));

  --radius-card: 16px;
  --radius-img: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 22px 40px -24px rgba(42, 26, 18, 0.55);
}

/* ---------- fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- reset-lite + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: light; scroll-padding-top: 5.5rem; }
body {
  background: var(--cream);
  color: var(--crust);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-optical-sizing: auto; line-height: 1.08; letter-spacing: -0.01em; font-weight: 560; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); }
h3 { font-size: 1.45rem; }
p { max-width: 60ch; }
::selection { background: var(--butter); color: var(--crust); }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }

/* focus (visible, high-contrast, on both theme surfaces) */
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .menu-band :focus-visible { outline-color: var(--butter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  background: var(--crust); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- header (sticky, one line at desktop, <= 80px) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(42, 26, 18, 0.12);
}
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.wordmark {
  font-family: var(--font-display); font-weight: 640; font-size: 1.35rem;
  color: var(--crust); text-decoration: none; letter-spacing: -0.01em;
}
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a {
  color: var(--crust); text-decoration: none; font-weight: 600; font-size: 0.98rem;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--tomato); }

/* ---------- buttons (pill; one label per intent: "Reserve a table") ---------- */
.btn {
  display: inline-block; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1.1875rem; line-height: 1;
  padding: 1.05rem 1.9rem; white-space: nowrap;
}
.btn-primary { background: var(--butter); color: var(--crust); }
.btn-primary:hover { background: var(--tomato); color: var(--cream); }
.btn-small { font-size: 1rem; padding: 0.7rem 1.3rem; }
.btn-ghost {
  background: none; color: var(--cream);
  font-size: 1.0625rem; padding: 1.05rem 0.25rem;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.btn-ghost:hover { color: var(--butter); }

.text-link {
  color: var(--herb); font-weight: 600; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.text-link:hover { color: var(--crust); }

/* ==========================================================================
   1. HERO - full-bleed photo, crust scrim, copy anchored bottom-left
   Mobile: same composition, shorter height, CTAs stack.
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 92dvh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(42, 26, 18, 0.88) 0%,
    rgba(42, 26, 18, 0.55) 38%,
    rgba(42, 26, 18, 0.12) 75%);
}
.hero-content { position: relative; padding-block: 0 4.5rem; color: var(--cream); }
.eyebrow {
  font-size: 0.84rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--butter); margin-bottom: 1.1rem;
}
.hero h1 { max-width: 12ch; }
.hero h1 em, .footer-thesis em { font-style: italic; font-weight: 480; }
.hero-sub { margin-top: 1.25rem; font-size: 1.125rem; max-width: 46ch; color: var(--cream); }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; flex-wrap: wrap; }

/* ==========================================================================
   2. MENU BAND - the one deliberate Crust section (chalkboard menu),
      horizontal scroll-snap rail of cards that lift on hover
   Mobile: same rail, narrower cards, native swipe.
   ========================================================================== */
.menu-band { background: var(--crust); color: var(--cream); padding-block: 5rem 5.5rem; }
.band-head { display: grid; gap: 0.9rem; margin-bottom: 2.75rem; }
.band-head p { color: var(--cream); opacity: 0.86; max-width: 52ch; }

.strip {
  list-style: none; padding: 0.75rem var(--container-inset) 1.5rem;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(262px, 24vw, 318px);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--container-inset);
}
.menu-card {
  scroll-snap-align: start;
  background: var(--crust-soft);
  border: 1px solid rgba(251, 246, 238, 0.09);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.4rem 1.35rem;
  display: grid; grid-template-rows: auto 1fr auto; gap: 0.7rem;
}
.menu-card h3 { color: var(--cream); }
.menu-card p { color: rgba(251, 246, 238, 0.78); font-size: 0.95rem; line-height: 1.55; }
.price {
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem;
  color: var(--butter);
}
.price::before { content: "\00A3"; font-size: 1.05rem; margin-right: 0.15rem; opacity: 0.7; }

/* ==========================================================================
   3. SPECIALS - editorial split; tomato ticket stub overlapping a photo
   Mobile: copy, ticket, photo stacked full-width.
   ========================================================================== */
.specials { padding-block: 6rem; }
.specials-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.specials-copy { display: grid; gap: 1.2rem; }
.specials-copy p { color: rgba(42, 26, 18, 0.82); }

.specials-stage { position: relative; padding: 2.5rem 0 3.5rem 1.5rem; }
.pass-photo {
  width: min(64%, 420px); margin-left: auto;
  border-radius: var(--radius-img);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-card);
  transform: rotate(2.5deg);
}

/* the signature: tomato ticket stub with a torn bottom edge */
.ticket {
  position: relative; margin-top: -14rem;
  width: min(430px, 88%);
  background: var(--cream);
  border: 1.5px solid var(--tomato);
  border-radius: 14px;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-card);
}
.ticket-band { background: var(--tomato); color: var(--cream); padding: 1.4rem 1.6rem 1.2rem; }
.ticket-kicker { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; line-height: 1.1; max-width: none; }
.ticket-date { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.35rem; color: rgba(251, 246, 238, 0.92); }
.ticket-body { padding: 1.4rem 1.6rem 0.4rem; }
.ticket-items div {
  display: flex; align-items: baseline; gap: 0.6rem; padding-block: 0.55rem;
}
.ticket-items dt { flex: 1; display: flex; align-items: baseline; gap: 0.6rem; font-weight: 600; font-size: 0.98rem; }
.ticket-items dt::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(42, 26, 18, 0.28); transform: translateY(-3px); }
.ticket-items dd { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--tomato); }
.ticket-note { border-top: 2px dashed rgba(214, 69, 46, 0.45); margin-top: 0.8rem; padding: 0.9rem 0 1rem; font-size: 0.85rem; color: rgba(42, 26, 18, 0.72); }
.ticket-stub {
  height: 16px; background: var(--tomato);
  mask-image: radial-gradient(circle at 8px 16px, transparent 8px, #000 8.5px);
  -webkit-mask-image: radial-gradient(circle at 8px 16px, transparent 8px, #000 8.5px);
  mask-size: 16px 16px; mask-repeat: repeat-x; mask-position: bottom;
  -webkit-mask-size: 16px 16px; -webkit-mask-repeat: repeat-x; -webkit-mask-position: bottom;
}

/* ==========================================================================
   4. VISIT - hours with dotted leaders beside the map figure
   Mobile: hours first, map below.
   ========================================================================== */
.visit { padding-block: 1rem 6rem; }
.visit-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
  border-top: 1px solid rgba(42, 26, 18, 0.14); padding-top: 4.5rem;
}
.hours p { margin-top: 1rem; color: rgba(42, 26, 18, 0.82); }
.hours-list { margin-top: 2rem; display: grid; gap: 1rem; }
.hours-list div { display: flex; align-items: baseline; gap: 0.75rem; }
.hours-list dt { flex: 1; display: flex; align-items: baseline; gap: 0.75rem; font-weight: 600; }
.hours-list dt::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(42, 26, 18, 0.28); transform: translateY(-4px); }
.hours-list dd { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-align: right; max-width: 46%; }
.hours-list .closed dd { font-style: italic; color: var(--tomato); }

.map-figure { display: grid; gap: 1rem; }
.map-figure img {
  border-radius: var(--radius-img);
  border: 1px solid rgba(42, 26, 18, 0.14);
  box-shadow: var(--shadow-card);
}
.map-address { font-family: var(--font-display); font-weight: 640; font-size: 1.35rem; max-width: none; }
.map-note { font-size: 0.92rem; color: rgba(42, 26, 18, 0.72); }

/* ==========================================================================
   5. FOOTER - cream sign-off, thesis bookend, same reserve label
   Mobile: thesis, then contact, stacked.
   ========================================================================== */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(42, 26, 18, 0.14);
  padding-block: 4.5rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2.5rem; align-items: center;
}
.footer-thesis { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; max-width: none; }
.footer-contact { display: grid; gap: 0.9rem; justify-items: start; }
.footer-contact p { max-width: none; }
.footer-meta { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(42, 26, 18, 0.14); }
.footer-meta p { font-size: 0.85rem; color: rgba(42, 26, 18, 0.62); }

/* ==========================================================================
   MOTION (MOTION_INTENSITY 6) - transform/opacity only, CSS only.
   Every entrance is gated behind no-preference; see MOTION.md.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* hero entrance cascade: orders the reading, eyebrow to CTAs */
  .rise { animation: rise-in 0.7s var(--ease-out) both; }
  .hero-content > :nth-child(1) { animation-delay: 0.05s; }
  .hero-content > :nth-child(2) { animation-delay: 0.14s; }
  .hero-content > :nth-child(3) { animation-delay: 0.23s; }
  .hero-content > :nth-child(4) { animation-delay: 0.32s; }
  .hero-photo { animation: hero-settle 1.4s var(--ease-out) both; }

  /* menu card lift: tactile affordance on hover/focus */
  .menu-card { transition: transform 0.26s var(--ease-out), box-shadow 0.26s var(--ease-out), border-color 0.26s var(--ease-out); }
  .menu-card:hover, .menu-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 34px -22px rgba(0, 0, 0, 0.65);
    border-color: rgba(232, 201, 122, 0.4);
  }

  /* ticket entrance: the stub lands like it was torn off the pad;
     scroll-driven via animation-timeline, static rotate(-2deg) otherwise */
  @supports (animation-timeline: view()) {
    .ticket { animation: ticket-in 1 both; animation-timeline: view(); animation-range: entry 0% entry 65%; }
  }

  .btn:active { transform: translateY(1px) scale(0.99); }
  .btn, .text-link { transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-settle { from { transform: scale(1.045); } to { transform: scale(1); } }
@keyframes ticket-in { from { transform: rotate(4deg) translateY(30px); opacity: 0.6; } to { transform: rotate(-2deg) translateY(0); opacity: 1; } }

/* reduced motion: everything settles instantly, rest states preserved */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE COLLAPSES (explicit per section)
   ========================================================================== */
@media (max-width: 860px) {
  .specials-grid, .visit-grid, .footer-grid { grid-template-columns: 1fr; }
  .specials-stage { padding: 0; }
  .pass-photo { width: 100%; transform: none; }
  .ticket { width: min(430px, 100%); margin: -3.5rem auto 0; }
  .visit { padding-block: 0 5rem; }
}

/* SO-NAV-01: mobile menu when .site-nav hides ≤720px */
.menu { display: none; position: relative; margin-left: 0.5rem; }
.menu summary {
  list-style: none; cursor: pointer;
  font: 600 0.875rem var(--font-body); color: var(--crust);
  border: 1px solid var(--crust); border-radius: 999px;
  padding: 0.45rem 0.95rem; background: transparent;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--crust); color: var(--cream); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  min-width: 13rem; background: var(--cream); border: 1px solid var(--cream-tint);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; padding: 0.5rem 0;
}
.menu-panel a {
  padding: 0.7rem 1.1rem; color: var(--crust); font-weight: 600; text-decoration: none;
}
.menu-panel a:hover { color: var(--tomato); }
.menu-panel .btn { margin: 0.5rem 0.9rem 0.75rem; text-align: center; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .hero { min-height: clamp(520px, 88dvh, 720px); }
  .hero-scrim {
    background: linear-gradient(to top,
      rgba(42, 26, 18, 0.94) 0%,
      rgba(42, 26, 18, 0.78) 42%,
      rgba(42, 26, 18, 0.35) 68%,
      rgba(42, 26, 18, 0.1) 100%);
  }
  .eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; }
  .hero-content { padding-block: 0 3.5rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .btn-ghost { padding-block: 0.9rem; }
  .hero h1 { max-width: none; }
  .strip { grid-auto-columns: min(78vw, 300px); }
  .menu-band { padding-block: 4rem 4.5rem; }
  .specials { padding-block: 4.5rem; }
  .footer-grid { gap: 2rem; }
}
