/* Mia Madre Trattoria. The look comes from their own room and sign: black linen, candle yellow,
   the lemon on their plates and the red of their billboard. One dark background throughout. */
:root {
  /* Colours by role. "Notte": their dining room at night. Black linen all the way down, marinara red
     buttons, candle yellow marks. Brian picked it on 2026-11-22 over a beige palette he called bland. */
  --paper: #131110; --card: #1e1b19; --ink: #f7f1e2; --soft: rgba(247, 241, 226, .72); --line: rgba(247, 241, 226, .17);
  --accent: #dc2b26; --accent-d: #c2211d; --on-accent: #ffffff; --btn-line: #dc2b26;   /* buttons */
  --mark: #ffd633;                                   /* underlines and quote bars */
  --hl: #ffd633; --on-hl: #131110; --quote-hl: rgba(220, 43, 38, .62);   /* highlighted chips, pills, the marked line in a quote */
  --leaf: #ffd633; --brick: #ff8f7f;                 /* small italic lines and labels; errors */
  --hero: #131110; --on-hero: #f7f1e2; --on-hero-soft: rgba(247, 241, 226, .8); --hero-accent: #ffd633; --hero-block: #dc2b26;
  --nav-bg: rgba(19, 17, 16, .97); --nav-ink: #f7f1e2; --nav-soft: rgba(247, 241, 226, .72); --nav-mark: #ffd633;
  --nav-btn: var(--accent); --nav-btn-ink: var(--on-accent); --nav-btn-line: var(--btn-line);
  --foot-bg: #0c0b0a; --foot-ink: #f7f1e2; --foot-soft: rgba(247, 241, 226, .72);
  --field: #0f0d0c; --tag-bg: #ffd633; --tag-ink: #131110;
  --serif: 'Besley', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --w: 1120px; --pad: 20px; --nav: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }

/* Without height:auto, an image with width/height attributes stretches. */
img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.04; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: #000; color: #fff; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--pad), var(--w)); margin-inline: auto; }
.it { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--leaf); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: .7em 1.3em; border: 1.5px solid var(--btn-line); border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.btn:hover { background: var(--accent-d); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn.sm { min-height: 42px; padding: .45em 1em; font-size: .95rem; }
.link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--ink); }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); display: flex; align-items: center; background: var(--nav-bg); color: var(--nav-ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: baseline; gap: .5em; text-decoration: none; white-space: nowrap; }
.brand b { font: 700 1.3rem/1 var(--serif); letter-spacing: -.02em; }
.brand span { font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.nav .brand span { color: var(--nav-soft); }
.nav .btn { background: var(--nav-btn); color: var(--nav-btn-ink); border-color: var(--nav-btn-line); }
footer .brand span { color: var(--foot-soft); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { font-weight: 600; text-decoration: none; font-size: .98rem; }
.nav nav a:not(.btn):hover, .nav nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--nav-mark); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .wide { display: none; }

/* First screen: their food first. A plate on their own black linen, then the page turns to paper. */
.hero { background: var(--hero); color: var(--on-hero); padding: 0 0 34px; }
.hero .wrap { display: grid; }
.hero-photo { position: relative; margin: 0 calc(-1 * var(--pad)); height: min(100vw, 430px); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.hero-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 48%; background: linear-gradient(to bottom, transparent, var(--hero) 94%); }
.hero-text { position: relative; margin-top: -92px; }
.hero .it { font-size: 1.25rem; color: var(--hero-accent); }
.hero h1 { font-size: clamp(3.7rem, 17.5vw, 8.2rem); line-height: .9; letter-spacing: -.035em; margin: .06em 0 .2em; }
.hero h1 em { font-style: normal; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--hero-accent); text-decoration-thickness: .13em; text-underline-offset: .09em; text-decoration-skip-ink: none; }
.hero .lede { font-size: 1.1rem; color: var(--on-hero-soft); max-width: 30em; }
.hero :focus-visible { outline-color: var(--on-hero); }
.hero .btn.ghost { border-color: color-mix(in srgb, var(--on-hero) 70%, transparent); color: var(--on-hero); }
.hero .btn.ghost:hover { background: color-mix(in srgb, var(--on-hero) 10%, transparent); }
.status { display: inline-flex; align-items: center; gap: .55em; margin-top: 18px; font-weight: 700; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--soft); flex: none; }
.status.is-open i { background: #58c27d; box-shadow: 0 0 0 4px rgba(88, 194, 125, .22); }
.status.is-closed i { background: #e2846a; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cta .btn { flex: 1 1 auto; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 12px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: .98rem; color: color-mix(in srgb, var(--on-hero) 88%, transparent); }
.facts li + li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hero-accent); margin: 0 .7em; vertical-align: .12em; }
.rating { margin-top: 22px; font-size: .95rem; color: var(--soft); }
.rating b { color: var(--ink); }

/* Sections */
.sec { padding: 64px 0; }
.sec h2 { font-size: clamp(2.2rem, 8.4vw, 3.9rem); }
.sec .sub { margin-top: 14px; color: var(--soft); max-width: 34em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* The scroll story. Stacked by default; site.js pins it when motion is welcome. */
.story-list { display: grid; gap: 0 26px; }
.story:not(.pinned) .frame, .story:not(.pinned) .capwrap, .story:not(.pinned) .caps { display: contents; }
.story:not(.pinned) .frame .beat:nth-child(1) { order: 1; } .story:not(.pinned) .cap:nth-child(1) { order: 2; }
.story:not(.pinned) .frame .beat:nth-child(2) { order: 3; } .story:not(.pinned) .cap:nth-child(2) { order: 4; }
.story:not(.pinned) .frame .beat:nth-child(3) { order: 5; } .story:not(.pinned) .cap:nth-child(3) { order: 6; }
.story:not(.pinned) .cap { margin-bottom: 40px; }
.beat img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; }
.beat h3 { font-size: clamp(2rem, 8vw, 3.4rem); margin-top: 18px; }
.beat p { margin-top: 8px; color: var(--soft); }
.beat .by { display: block; margin-top: 4px; font-size: .9rem; }
.story-dots { display: none; }
.story.pinned { height: 330vh; padding: 0; }
.story.pinned .story-pin { position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); height: calc(100svh - var(--nav)); display: grid; align-content: center; padding-bottom: 74px; }
.story.pinned .story-list { position: relative; display: block; }
.story.pinned .frame { position: relative; aspect-ratio: 4 / 5; max-height: 58svh; margin-inline: auto; border-radius: 16px; overflow: hidden; background: #14110e; }
.story.pinned .beat img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; will-change: opacity, transform; }
.story.pinned .caps { position: relative; height: 9.2em; margin-top: 18px; }
.story.pinned .cap { position: absolute; inset: 0; will-change: opacity, transform; }
.story.pinned .cap h3 { margin-top: 0; }
.story.pinned .story-dots { display: flex; gap: 8px; margin-top: 4px; }
.story-dots i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s ease; }
.story-dots i.on { background: var(--ink); }

/* Dishes */
.plates { display: flex; gap: 12px; margin: 30px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.plates::-webkit-scrollbar { display: none; }
.plates figure { flex: 0 0 74%; margin: 0; scroll-snap-align: center; }
.plates img { width: 100%; border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.plates figcaption { margin-top: 10px; font-weight: 600; font-size: .95rem; }
.dishes { margin: 34px 0 0; padding: 0; list-style: none; }
.dish { display: grid; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.dish:last-child { border-bottom: 1px solid var(--line); }
.dish h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.dish .what { color: var(--soft); margin-top: 4px; }
.dish blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--mark); }
.dish cite, .q cite, .big-q cite, .party cite { display: block; margin-top: 6px; font-style: normal; font-size: .9rem; color: var(--soft); }
.more { margin-top: 30px; }

/* Like family */
.big-q { margin: 30px 0 0; }
.big-q p { font: 500 clamp(1.3rem, 5vw, 1.9rem)/1.36 var(--serif); letter-spacing: -.01em; }
.big-q p + p { margin-top: .7em; }
.big-q mark { background: none; color: inherit; box-shadow: inset 0 -.42em 0 var(--quote-hl); }
.big-q cite { margin-top: 16px; font-size: 1rem; }
.quotes { display: flex; gap: 14px; margin: 38px calc(-1 * var(--pad)) 0; padding: 4px var(--pad) 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.q { flex: 0 0 min(82%, 340px); scroll-snap-align: center; margin: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.q p { font-size: 1.05rem; line-height: 1.5; }

/* Private parties */
.party-grid { display: grid; gap: 28px; }
.party img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; }
.party blockquote { margin: 24px 0 0; padding-left: 14px; border-left: 3px solid var(--mark); }
.party .cta .btn { flex: 0 1 auto; }

/* Reserve (a labeled preview) */
.reserve { background: var(--card); border: 1.5px solid var(--ink); border-radius: 20px; padding: 26px 20px; }
.tag { display: inline-block; padding: .2em .7em; border-radius: 999px; background: var(--tag-bg); color: var(--tag-ink); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reserve h2 { margin-top: 12px; }
.reserve .note { margin-top: 12px; color: var(--soft); }
.reserve fieldset { border: 0; margin: 24px 0 0; padding: 0; min-width: 0; }
.reserve legend, .reserve label.l { display: block; padding: 0; margin-bottom: 10px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: .4em .95em; border: 1.5px solid var(--line); border-radius: 12px; background: transparent; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--hl); color: var(--on-hl); border-color: var(--hl); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .75; }
.chip small { display: block; font-weight: 500; font-size: .78rem; color: var(--soft); }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button { width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent; font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer; }
.stepper output { min-width: 5.2em; text-align: center; font: 700 1.3rem var(--serif); }
.fields { display: grid; gap: 12px; margin-top: 24px; }
.fields label { font-weight: 700; display: grid; gap: 6px; }
.fields input { width: 100%; min-height: 50px; padding: .6em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); }
.fields input:focus { border-color: var(--ink); outline: none; }
.fields input[aria-invalid="true"] { border-color: var(--brick); }
.reserve .btn { width: 100%; margin-top: 20px; }
.form-status { margin-top: 10px; color: var(--brick); font-weight: 600; min-height: 1.4em; }
.done h3 { font-size: 1.9rem; margin-top: 12px; }
.done .sum { margin-top: 10px; font: 700 1.15rem var(--serif); }
.done .demo { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--hl); color: var(--on-hl); font-weight: 600; }

/* Visit */
.visit-grid { display: grid; gap: 34px; margin-top: 30px; }
.visit h3 { font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -.01em; }
.addr { font-style: normal; font-size: 1.15rem; line-height: 1.45; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 800; }
.hours tr.today th::after { content: 'Today'; margin-left: .7em; padding: .1em .55em; border-radius: 999px; background: var(--hl); color: var(--on-hl); font-size: .74rem; font-weight: 700; vertical-align: .1em; }
.hours .shut { color: var(--soft); }
.know { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.know li { padding-left: 16px; border-left: 3px solid var(--mark); }
.know b { display: block; font: 700 1.15rem var(--serif); }
.know q { quotes: '\201C' '\201D'; }
.know .by { display: block; font-size: .9rem; color: var(--soft); }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }

/* Footer */
footer { padding: 44px 0 110px; border-top: 1px solid var(--line); background: var(--foot-bg); color: var(--foot-ink); }
footer .wrap { display: grid; gap: 18px; }
footer .brand b { font-size: 1.6rem; }
footer p { color: var(--foot-soft); font-size: .95rem; }
footer .concept { font-size: .82rem; padding-top: 16px; border-top: 1px solid var(--line); }

/* Call bar on phones: the phone is how you book */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s ease; }
.callbar.on { transform: none; }
.callbar .btn { flex: 1; min-height: 48px; }

/* Menu page */
.menu-top { padding: 34px 0 10px; }
.menu-top h1 { font-size: clamp(3.4rem, 16vw, 6.4rem); letter-spacing: -.03em; }
.bless { margin-top: 16px; max-width: 32em; font: italic 500 1.08rem/1.5 var(--serif); color: var(--leaf); }
.tabs { position: sticky; top: var(--nav); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: .45em .95em; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.tabs a.on { background: var(--hl); color: var(--on-hl); border-color: var(--hl); }
.course { padding: 40px 0 8px; scroll-margin-top: 52px; }
.course h2 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.course h3 { font: 700 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin: 30px 0 2px; }
.course .incl { margin-top: 8px; color: var(--soft); font-size: .98rem; }
.items { margin: 14px 0 0; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.item b { font: 700 1.12rem/1.3 var(--serif); }
.item .p { font: 700 1.05rem var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item span.d { grid-column: 1 / -1; color: var(--soft); font-size: .98rem; max-width: 40em; }
.item.addon b { font: 600 1rem var(--sans); }
.styles { margin-top: 30px; padding: 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.styles h3 { font: 700 1.3rem var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 0 0 4px; }
.styles .chips { margin-top: 14px; }
.style-out { margin-top: 16px; min-height: 4.6em; }
.style-out b { display: block; font: 700 1.15rem var(--serif); }
.style-list { margin: 14px 0 0; padding: 0; list-style: none; }
.style-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.js .style-list { display: none; }
.fine { padding: 34px 0 10px; color: var(--soft); font-size: .95rem; display: grid; gap: 8px; }

/* Page not found */
.nf { min-height: 72vh; display: grid; align-content: center; padding: 60px 0; }
.nf h1 { font-size: clamp(2.8rem, 12vw, 5.4rem); letter-spacing: -.03em; }
.nf p { margin: 16px 0 26px; color: var(--soft); }

/* Reveal on scroll: transform and opacity only. */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.on { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .cta .btn { flex: 0 1 auto; }
  .fields { grid-template-columns: 1fr 1fr; }
  .reserve { padding: 36px; }
  .reserve .btn { width: auto; }
  .quotes .q { flex-basis: 340px; }
}
@media (min-width: 900px) {
  :root { --pad: 32px; --nav: 68px; }
  .nav .wide { display: inline; }
  .hero { padding: 64px 0 84px; }
  .hero .wrap { grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
  .hero-text { order: -1; margin-top: 0; }
  .hero h1 { font-size: clamp(4.4rem, 7.9vw, 7.4rem); }
  .hero-photo { margin: 0; height: auto; overflow: visible; justify-self: end; width: min(100%, 500px); }
  .hero-photo img { position: relative; height: auto; aspect-ratio: 13 / 15; border-radius: 18px; }
  .hero-photo::after { display: none; }
  .hero-photo::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; background: var(--hero-block); border-radius: 20px; }
  .facts { margin-top: 14px; }
  .plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .plates figure { flex: none; }
  .sec { padding: 104px 0; }
  .story-list { grid-template-columns: repeat(3, 1fr); }
  .story:not(.pinned) .beat { order: 0 !important; }
  .story.pinned .story-pin { padding-bottom: 0; }
  .story.pinned .story-list { display: grid; grid-template-columns: minmax(0, 640px) 1fr; align-items: center; gap: 60px; }
  .story.pinned .frame { aspect-ratio: 3 / 2; max-height: none; width: 100%; }
  .story.pinned .caps { height: 13em; margin-top: 0; }
  .beat h3 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
  .story.pinned .cap p { font-size: 1.15rem; }
  .dish { grid-template-columns: 1fr 1fr; gap: 40px; padding: 28px 0; align-items: start; }
  .dish h3 { font-size: 1.8rem; }
  .big-q { max-width: 46em; }
  .quotes { margin-inline: 0; padding-inline: 0; }
  .party-grid { grid-template-columns: minmax(0, 430px) 1fr; gap: 72px; align-items: center; }
  .reserve { padding: 48px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .reserve .r-body fieldset:first-of-type { margin-top: 6px; }
  .story.pinned .cap p { margin-top: 14px; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  footer { padding-bottom: 54px; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
  footer .concept { grid-column: 1 / -1; }
  .callbar { display: none; }
  .course { scroll-margin-top: 62px; }
  .courses { max-width: 820px; }
}

/* People who ask for less motion get the content with none. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .callbar, .btn, .chip, .story-dots i { transition: none; }
}
