/* Cappeletti's Restaurant. The look comes from their dining room: brick, deep terracotta arches,
   orange walls and the green of their chairs and herb sauce. One warm brick background throughout. */
:root {
  /* Colours by role. Change a colour here, not in the rules below. */
  --paper: #58190f; --card: #6b2315; --ink: #fff4e2; --soft: rgba(255, 244, 226, .8); --line: rgba(255, 244, 226, .2);
  --accent: #f7941d; --accent-d: #ffab45; --on-accent: #2b0d06;      /* buttons: the orange of their walls */
  --mark: #f7941d; --hl: #f7941d; --on-hl: #2b0d06;                  /* underlines, chosen chips */
  --leaf: #bfdc5c; --on-leaf: #1f2a06;                              /* small italic lines and tags: their green */
  --brick: #ffb199;                                                  /* errors */
  --hero: #43110a; --foot: #3a0f08; --field: #47130b; --plate: #fff7ea;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', 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: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--leaf); }
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: 52px; padding: .7em 1.5em; border: 2px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 65%, transparent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); border-color: var(--ink); }
.btn.sm { min-height: 42px; padding: .4em 1.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: color-mix(in srgb, var(--hero) 97%, transparent); 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: .45em; text-decoration: none; white-space: nowrap; }
.brand b { font: italic 700 1.45rem/1 var(--serif); letter-spacing: -.02em; }
.brand span { font: 700 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--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(--mark); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .wide { display: none; }

/* First screen: their food first. On a phone the plate fills the top and fades into the brick. */
.hero { background: var(--hero); padding: 0 0 36px; }
.hero .wrap { display: grid; }
.hero-photo { position: relative; margin: 0 calc(-1 * var(--pad)); height: min(88vw, 400px); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 56%; background: linear-gradient(to bottom, transparent, var(--hero) 92%); }
.hero-text { position: relative; margin-top: -78px; }
.hero .it { font-size: 1.15rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.hero h1 { font-size: clamp(3.1rem, 14.6vw, 6.6rem); line-height: .93; letter-spacing: -.035em; margin: .12em 0 .26em; text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
.hero .lede { font-size: 1.08rem; color: var(--soft); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cta .btn { flex: 1 1 auto; padding-inline: 1em; }
.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: var(--leaf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 26%, transparent); }
.status.is-closed i { background: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 12px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: .96rem; color: var(--soft); }
.facts li + li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin: 0 .65em; vertical-align: .12em; }

/* Sections */
.sec { padding: 68px 0; }
.sec h2 { font-size: clamp(2.3rem, 9vw, 4.2rem); }
.sec .sub { margin-top: 14px; color: var(--soft); max-width: 34em; }

/* Our flavors: plates passing down the table. A swipeable row by default; site.js pins it and slides it with the scroll. */
.flavors { padding-bottom: 40px; }
.fl-track { display: flex; gap: 22px; margin-top: 30px; padding: 6px var(--pad) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fl-track::-webkit-scrollbar { display: none; }
.plate { flex: 0 0 min(64vw, 280px); margin: 0; scroll-snap-align: center; text-align: center; }
.plate:nth-child(even) { margin-top: 34px; }
.plate img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 7px solid var(--plate); box-shadow: 0 18px 34px rgba(20, 4, 1, .45); }
.plate figcaption { margin-top: 14px; font: italic 500 1.08rem/1.3 var(--serif); }
.fl-note { margin-top: 6px; color: var(--soft); font-size: .93rem; }
.flavors.pinned { padding: 0; }
.flavors.pinned .fl-pin { position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); height: calc(100svh - var(--nav)); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; overflow: hidden; padding-bottom: 70px; }
.flavors.pinned .fl-track { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; }

/* Guests */
.quotes { display: grid; gap: 16px; margin-top: 30px; }
.q { margin: 0; padding: 24px 22px; background: var(--card); border-radius: 22px; }
.q p { font: 500 1.16rem/1.5 var(--serif); }
.q mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.q cite { display: block; margin-top: 14px; font-style: normal; font-size: .92rem; color: var(--soft); }
.rating { margin-top: 24px; color: var(--soft); }
.rating b { color: var(--ink); font: 800 1.5rem var(--serif); margin-right: .2em; }

/* Family */
.fam-grid { display: grid; gap: 30px; }
.fam-photos { position: relative; padding-bottom: 46px; }
.fam-photos .big { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
.fam-photos .small { position: absolute; left: 16px; bottom: 0; width: 46%; max-width: 210px; border-radius: 14px; border: 5px solid var(--plate); box-shadow: 0 14px 26px rgba(20, 4, 1, .5); }
.fam p + p { margin-top: 1em; }
.fam .names { margin-top: 22px; font: italic 500 1.25rem/1.4 var(--serif); color: var(--leaf); }

/* Reserve (a labeled preview) */
.reserve { background: var(--card); border-radius: 26px; padding: 28px 20px; }
.tag { display: inline-block; padding: .2em .75em; border-radius: 999px; background: var(--leaf); color: var(--on-leaf); font-size: .78rem; font-weight: 800; 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 { display: block; padding: 0; margin-bottom: 10px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: .4em 1em; border: 1.5px solid var(--line); border-radius: 999px; 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"] { background: var(--hl); color: var(--on-hl); border-color: var(--hl); }
.chip small { font-weight: 500; font-size: .8rem; opacity: .75; margin-left: .35em; }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button { width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%; 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 1em; border: 1.5px solid var(--line); border-radius: 14px; 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: 14px; background: var(--hl); color: var(--on-hl); font-weight: 700; }

/* Visit */
.visit-grid { display: grid; gap: 30px; margin-top: 30px; }
.visit .room { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 200px 200px 22px 22px; }
.visit h3 { font-size: 1.4rem; margin: 26px 0 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: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; vertical-align: top; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours td span { display: block; }
.hours tr.today th, .hours tr.today td { font-weight: 800; }
.hours tr.today th::after { content: 'Today'; margin-left: .7em; padding: .1em .6em; border-radius: 999px; background: var(--hl); color: var(--on-hl); font-size: .74rem; font-weight: 800; vertical-align: .1em; }
.hours .shut { color: var(--soft); }
.fine-print { margin-top: 18px; color: var(--soft); font-size: .95rem; }

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

/* Call bar on phones */
.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(--foot); 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 6px; }
.menu-top h1 { font-size: clamp(3.4rem, 16vw, 6.4rem); letter-spacing: -.035em; }
.menu-top .sub { margin-top: 12px; color: var(--soft); max-width: 32em; }
.switch { position: sticky; top: var(--nav); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.switch .wrap { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.switch button { flex: 1; max-width: 220px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; }
.switch button[aria-selected="true"] { background: var(--hl); color: var(--on-hl); border-color: var(--hl); }
.switch small { display: block; font-weight: 500; font-size: .78rem; opacity: .8; }
.service { padding-top: 14px; }
.service > h2 { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-top: 26px; }
.service > .when { color: var(--soft); margin-top: 6px; }
.js .service[hidden] { display: none; }
.course { padding: 30px 0 4px; }
.course h3 { font: italic 600 1.7rem/1.1 var(--serif); color: var(--leaf); letter-spacing: -.01em; }
.course .incl { margin-top: 8px; color: var(--soft); font-size: .98rem; }
.items { margin: 12px 0 0; padding: 0; list-style: none; }
.item { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.item b { font: 600 1.12rem/1.3 var(--sans); }
.item i { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.item .p { font: 800 1.05rem var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item.addon b { font-weight: 500; font-size: 1rem; color: var(--soft); }
.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; padding-inline: 1.5em; }
  .fields { grid-template-columns: 1fr 1fr; }
  .reserve { padding: 36px; }
  .reserve .btn { width: auto; }
  .quotes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  :root { --pad: 32px; --nav: 68px; }
  .nav .wide { display: inline; }
  .hero { padding: 60px 0 84px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
  .hero-text { order: -1; margin-top: 0; }
  .hero h1 { font-size: clamp(3.3rem, 5.7vw, 5.5rem); white-space: nowrap; }
  .hero .it, .hero h1 { text-shadow: none; }
  /* The plate in an arch, like the arches in their dining room. */
  .hero-photo { margin: 0; height: auto; overflow: visible; justify-self: end; width: min(100%, 470px); }
  .hero-photo img { position: relative; height: auto; aspect-ratio: 4 / 5; border-radius: 240px 240px 20px 20px; }
  .hero-photo::after { inset: -14px -14px 14px 14px; height: auto; background: none; border: 2px solid var(--accent); border-radius: 250px 250px 26px 26px; pointer-events: none; }
  .sec { padding: 104px 0; }
  .plate { flex-basis: 300px; }
  .plate:nth-child(even) { margin-top: 56px; }
  .fl-track { gap: 36px; padding-inline: max(var(--pad), calc((100vw - var(--w)) / 2)); }
  .flavors.pinned .fl-pin { padding-bottom: 0; }
  .q { padding: 32px; }
  .q p { font-size: 1.3rem; }
  .fam-grid { grid-template-columns: 1fr 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; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  footer { padding-bottom: 54px; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
  footer .concept { grid-column: 1 / -1; }
  .callbar { display: none; }
  .courses { max-width: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .callbar, .btn, .chip { transition: none; }
}

/* Very small phones (under 380 wide): the wordmark keeps its name and drops the word beside it, so the Call button stays on screen. */
@media (max-width: 379px) { .nav .brand span { display: none; } }
