/* ==========================================================================
   Mosca's Restaurant — "The Sunday Table" spec build
   1946 Creole-Italian roadhouse · linen & espresso-ink · red-gravy & brass
   A printed menu card come to life. Mid-century editorial, roadhouse warmth.
   ========================================================================== */

:root {
  --linen:       #f7f2e6;
  --card:        #fffdf6;
  --ink:         #2b2420;
  --ink-soft:    #5a4d40;
  --ink-muted:   #6f6250;
  --gravy:       #a8321f;
  --gravy-deep:  #7e2416;
  --gravy-wash:  #f5e4dd;
  --basil:       #43523a;
  --basil-deep:  #2e3925;
  --basil-wash:  #e9ecdf;
  --brass:       #ad8a4d;
  --brass-text:  #87692f;
  --brass-light: #d8c393;
  --line:        rgba(43, 36, 32, 0.15);
  --line-brass:  rgba(173, 138, 77, 0.45);
  --f-display:   "Fraunces", Georgia, serif;
  --f-label:     "Jost", -apple-system, sans-serif;
  --container:   1180px;
  --gutter:      clamp(20px, 4vw, 52px);
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-display);
  font-size: 18.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--gravy); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gravy-deep); }
::selection { background: var(--gravy-wash); color: var(--gravy-deep); }
h1, h2, h3, h4, h5 { font-family: var(--f-display); color: var(--ink); }
p { margin: 0 0 14px; }
.container {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--linen); padding: 12px 20px; border-radius: 4px;
  font-family: var(--f-label); font-size: 13px; letter-spacing: 0.06em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gravy); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(247, 242, 230, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner {
  width: calc(100% - var(--gutter) * 2); max-width: var(--container);
  margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 10px 0;
}
.brand { display: flex; align-items: center; }
.brand-logo { width: 172px; height: auto; }
.primary-nav ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); justify-content: center; margin: 0; padding: 0; }
.primary-nav a {
  font-family: var(--f-label); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); padding: 6px 0; position: relative; white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gravy); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  font-family: var(--f-label); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 3px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-gravy { background: var(--gravy); color: var(--linen); box-shadow: 0 8px 20px rgba(126, 36, 22, 0.22); }
.btn-gravy:hover { background: var(--gravy-deep); color: var(--linen); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--gravy); color: var(--gravy-deep); }
.hdr-cta { font-size: 12px; padding: 11px 20px; }
.hdr-cta-sub { opacity: 0.85; }

.hamburger { display: none; appearance: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 42px; height: 42px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 16px var(--gutter) 24px; background: var(--linen); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 13px 0; font-family: var(--f-display); font-size: 21px; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav .m-call { color: var(--gravy); font-family: var(--f-label); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--f-label); font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--brass-text); margin: 0 0 14px;
}
.display {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.005em;
}
.display em { font-style: italic; font-weight: 500; color: var(--gravy); }
.band-basil .display em, .band-quote .display em { color: var(--linen); }
.lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); font-style: italic; }

/* ---------- hero ---------- */
.hero { padding: clamp(128px, 17vh, 176px) 0 clamp(64px, 8vw, 108px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -240px; right: -200px; width: 600px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle, var(--gravy-wash) 0%, rgba(245, 228, 221, 0) 68%);
  pointer-events: none;
}
.hero-inner {
  width: calc(100% - var(--gutter) * 2); max-width: var(--container);
  margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(34px, 5vw, 76px); align-items: center;
}
.hero-title {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.14; margin: 0 0 24px; letter-spacing: -0.01em;
  max-width: 620px; text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--gravy); }
.nb { white-space: nowrap; }
@media (min-width: 641px) {
  .hero-title em { white-space: nowrap; }
}
.hero-tag { max-width: 460px; font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-soft); margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* brass double-frame + roundel */
.brass-frame { margin: 0; position: relative; padding: 10px; }
.brass-frame::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--brass); pointer-events: none;
}
.brass-frame::after {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--brass); pointer-events: none;
}
.brass-frame picture, .brass-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.art-caption {
  font-family: var(--f-display); font-style: italic; font-size: 14.5px; color: var(--ink-muted);
  text-align: center; margin: 20px 0 0;
}

.roundel { width: 122px; height: 122px; position: absolute; right: -30px; bottom: -30px; filter: drop-shadow(0 8px 16px rgba(43, 36, 32, 0.22)); }
.roundel .r-disc { fill: var(--card); }
.roundel .r-ring { fill: none; stroke: var(--brass); stroke-width: 1.6; }
.roundel .r-ring-thin { stroke-width: 1; }
.roundel .r-arc { font-family: var(--f-label); font-size: 11.5px; letter-spacing: 0.16em; fill: var(--brass-text); }
.roundel .r-est { font-family: var(--f-label); font-size: 10px; letter-spacing: 0.22em; fill: var(--brass-text); }
.roundel .r-year { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 36px; fill: var(--gravy); }
.roundel .r-sub { font-family: var(--f-label); font-size: 8.5px; letter-spacing: 0.16em; fill: var(--ink-soft); }
.roundel--footer .r-ring { stroke: rgba(247, 242, 230, 0.5); }
.roundel--footer .r-arc,
.roundel--footer .r-est { fill: var(--brass-light); }
.roundel--footer .r-year { fill: var(--linen); }
.roundel--footer .r-sub { fill: rgba(247, 242, 230, 0.78); }
.roundel--footer { position: static; margin-top: 22px; filter: none; }

/* ---------- heritage strip ---------- */
.heritage { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.heritage-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.h-item { flex: 1; min-width: 140px; text-align: center; padding: 0 14px; position: relative; }
.h-item + .h-item::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line-brass); }
.h-num { display: block; font-family: var(--f-display); font-weight: 600; font-style: italic; font-size: clamp(20px, 2.4vw, 27px); color: var(--gravy); line-height: 1; }
.h-lbl { display: block; font-family: var(--f-label); font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin-top: 8px; }

/* ---------- bands ---------- */
.band { padding: clamp(74px, 9vw, 122px) 0; }
.band-head { max-width: 780px; margin: 0 auto clamp(38px, 5vw, 58px); text-align: center; padding-left: var(--gutter); padding-right: var(--gutter); }
.band-wash { background: var(--basil-wash); }
.band-linen { background: var(--linen); }
.band-card { background: var(--card); }
.band-gravy-wash { background: var(--gravy-wash); }
.band-basil { background: linear-gradient(180deg, var(--basil-deep) 0%, var(--basil) 140%); color: #f3f0e4; }

/* ---------- trio ---------- */
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trio-card { margin: 0; }
.trio-card--photo picture, .trio-card--photo img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.trio-card--photo { position: relative; }
.trio-card--photo picture { position: relative; }
.trio-card--photo::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--brass); pointer-events: none; z-index: 1;
}
.trio-card--photo figcaption { padding: 18px 4px 0; }
.trio-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 21px; margin: 0 0 6px; }
.trio-card--photo p, .trio-cap p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.trio-card--engraved { display: flex; flex-direction: column; }
.engraved-plate {
  aspect-ratio: 1 / 1; background: var(--card); border: 1px solid var(--brass); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px;
}
.engraved-plate::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-brass); pointer-events: none; }
.engraved-name {
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.18; text-align: center; color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 -1px 0 rgba(43, 36, 32, 0.12);
}
.engraved-plate .gf { position: relative; }
.trio-cap { padding: 18px 4px 0; }

.gf {
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-label);
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--basil);
  border: 1px solid var(--basil); border-radius: 3px; padding: 1px 5px; vertical-align: middle; margin-left: 2px;
}

/* ---------- menu card ---------- */
.band-menu { background: var(--linen); }
.menu-frame {
  width: calc(100% - var(--gutter) * 2); max-width: 840px;
  margin-left: auto; margin-right: auto; padding: 6px;
  border: 1px solid var(--brass);
  box-shadow: 0 30px 70px rgba(43, 36, 32, 0.1);
}
.menu-card-inner {
  border: 1px solid var(--brass); background: var(--card);
  padding: clamp(30px, 5vw, 56px) clamp(22px, 5vw, 64px) clamp(36px, 5vw, 54px);
}
.menu-mark {
  text-align: center; font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--brass-text); margin: 0 0 30px;
}
.menu-section { margin-bottom: 30px; }
.menu-section:last-of-type { margin-bottom: 0; }
.menu-section-head { text-align: center; margin-bottom: 4px; }
.menu-h {
  text-align: center; font-family: var(--f-label); font-weight: 600; font-size: 13.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 6px; position: relative; padding-bottom: 14px;
}
.menu-h::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 46px; height: 1px; background: var(--brass);
}
.menu-note { text-align: center; font-family: var(--f-display); font-style: italic; font-size: 14px; color: var(--ink-muted); margin: 0 0 18px; }

.menu-row { padding: 8px 0; }
.menu-row-top { display: flex; align-items: baseline; gap: 8px; }
.d-name { font-family: var(--f-display); font-weight: 600; font-size: 17.5px; color: var(--ink); white-space: nowrap; }
.leader { flex: 1; border-bottom: 2px dotted var(--brass); opacity: 0.6; margin-bottom: 5px; min-width: 20px; }
.d-price { font-family: var(--f-display); font-weight: 600; font-size: 16.5px; color: var(--gravy); white-space: nowrap; }
.d-desc { font-family: var(--f-display); font-style: italic; font-size: 14.5px; color: var(--ink-muted); margin: 3px 0 0; }

.menu-footnote { margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--line-brass); text-align: center; }
.mf-gf { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.05em; color: var(--ink-soft); margin: 0 0 16px; }
.mf-sweet { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 24px; }
.mf-hours { font-family: var(--f-label); font-size: 13px; color: var(--ink-soft); }
.mf-hours p { margin: 0 0 5px; }
.mf-hours-label { font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass-text); font-size: 11px; margin-bottom: 10px !important; }
.mf-hours strong { color: var(--ink); font-family: var(--f-display); font-weight: 600; }

/* ---------- pace band ---------- */
.pace-wrap { text-align: center; max-width: 680px; }
.pace-copy { font-size: 18px; color: var(--ink-soft); }
.pace-line { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(20px, 2.2vw, 25px); color: var(--gravy-deep); margin: 0; }

/* ---------- pull quote ---------- */
.band-quote { text-align: center; }
.big-quote {
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 5vw, 54px); line-height: 1.25; color: var(--linen);
  max-width: 900px; margin: 0 auto;
}

/* ---------- story ---------- */
.story-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.story-copy p { margin: 0 0 16px; }
.story-sign { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 22px; color: var(--gravy-deep); margin-top: 22px; }
.story-frame { margin: 0; position: relative; padding: 8px; }
.story-frame::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--brass); pointer-events: none; }
.story-frame picture, .story-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- private parties ---------- */
.pp-wrap { text-align: center; max-width: 680px; }
.pp-wrap p { color: var(--ink-soft); font-size: 18px; }
.pp-wrap .btn { margin-top: 8px; }

/* ---------- press ---------- */
.press-wrap { text-align: center; max-width: 760px; }
.beard-medallion {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 22px 40px; border: 1px solid var(--brass); position: relative; margin: 0 0 36px;
}
.beard-medallion::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line-brass); pointer-events: none; }
.bm-line1 { font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.bm-line2 { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 20px; color: var(--gravy); }
.bm-year { font-family: var(--f-label); font-weight: 500; font-size: 12px; letter-spacing: 0.2em; color: var(--brass-text); }
.lead-quote { margin: 0 0 30px; }
.lead-quote p {
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.4; color: var(--ink); margin: 0 0 12px;
}
.lead-quote cite { font-family: var(--f-label); font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-text); }
.press-more { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 28px; border-top: 1px solid var(--line); text-align: left; }
.press-more blockquote { margin: 0; }
.press-more p { font-family: var(--f-display); font-style: italic; font-size: 16px; color: var(--ink-soft); margin: 0 0 8px; }
.press-more cite { font-family: var(--f-label); font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- visit ---------- */
.visit-card {
  text-align: center; background: var(--linen); border: 1px solid var(--line); border-top: 3px solid var(--gravy);
  padding: clamp(40px, 6vw, 68px) clamp(22px, 5vw, 76px);
}
.visit-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px); margin: 30px 0 34px; text-align: left; }
.visit-cols h3 { font-family: var(--f-label); font-weight: 600; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gravy); margin: 0 0 12px; }
.visit-cols p { margin: 0 0 8px; font-size: 16px; }
.fine { font-style: italic; font-size: 14.5px; color: var(--ink-muted); }
.big-cta { font-size: 13.5px; padding: 17px 38px; }

/* ---------- footer ---------- */
.site-footer { background: var(--basil-deep); color: #dbe0d3; padding: 58px 0 24px; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.ft-brand { font-family: var(--f-display); font-weight: 600; font-size: 24px; color: #fff; margin: 0 0 8px; }
.ft-brand em { font-style: italic; font-weight: 400; color: var(--brass-light); }
.ft-blurb { font-size: 15px; color: #b8c2ac; max-width: 280px; margin: 0; }
.ft-col h5 { font-family: var(--f-label); font-size: 10.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass-light); margin: 0 0 14px; }
.ft-col p { margin: 0 0 8px; font-size: 15.5px; overflow-wrap: break-word; }
.ft-col a { color: #dbe0d3; }
.ft-col a:hover { color: #fff; }
.ft-base { margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(219, 224, 211, 0.18); font-family: var(--f-label); font-size: 12px; letter-spacing: 0.04em; color: #a9b39c; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- responsive ----------
   Desktop composition (two-column hero, 3-up trio, 4-col footer) holds all
   the way down to 861px; the stacked layout begins with the hamburger. */
@media (max-width: 860px) {
  .primary-nav, .hdr-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: block; }
  .hero { padding-top: 104px; }
  .brand-logo { width: 148px; }
  .heritage-row { justify-content: center; }
  .h-item { min-width: 42%; }
  .hero-inner, .story-wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 440px; margin-left: auto; margin-right: auto; }
  .trio-grid { grid-template-columns: 1fr 1fr; }
  .trio-grid > *:first-child { grid-column: 1 / -1; max-width: 420px; margin-left: auto; margin-right: auto; }
  .press-more { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .visit-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .trio-grid { grid-template-columns: 1fr; }
  .trio-grid > *:first-child { max-width: none; }
  .ft-grid { grid-template-columns: 1fr; }
  .menu-row-top { flex-wrap: wrap; row-gap: 4px; }
  .d-name { white-space: normal; flex: 1 1 100%; }
  .leader { order: 2; }
  .d-price { order: 3; margin-left: auto; }
  .roundel { width: 100px; height: 100px; right: -14px; bottom: -14px; }
}
