@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --blue: #193c76;
  --navy: #122b55;
  --yellow: #f4dc8a;
  --cream: #fff4d7;
  --paper: #fff9e9;
  --red: #a52d2a;
  --gold-line: #f4dc8a55;
  --ink-line: #122b5540;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: Poppins, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --section-space: clamp(64px, 8vw, 116px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--cream);
  text-align: center;
  font: 400 1rem/1.65 var(--sans);
}

a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px dashed currentColor; outline-offset: 5px; }
img { display: block; width: 100%; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; }
h2 { font-size: clamp(2.55rem, 6vw, 5.5rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.55rem, 3vw, 2.15rem); }

.skip {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  transform: translateY(-150%);
  color: var(--navy);
  background: var(--cream);
}
.skip:focus { transform: none; }

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--gold-line);
  background: var(--navy);
  color: var(--yellow);
}

.wordmark { font: 400 1.2rem/1 var(--serif); letter-spacing: .045em; text-decoration: none; }
.top .wordmark { justify-self: start; }
.top nav { display: flex; gap: clamp(16px, 4vw, 58px); }
.top nav a, .topcall {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
}
.top nav a:hover, .topcall:hover { text-decoration: underline; }
.topcall { justify-self: end; white-space: nowrap; }

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 92px);
  padding: clamp(38px, 6vh, 82px) var(--gutter);
  isolation: isolate;
}

.hero-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #14202b;
}

/* The portrait stays sharp while a soft extension fills the wider screen. */
.hero-backdrop::before {
  position: absolute;
  inset: -30px;
  content: "";
  background: url("assets/porch-night.jpg") center / cover no-repeat;
  filter: blur(26px) brightness(.62);
}

.hero-backdrop img {
  position: relative;
  top: 6%;
  width: min(100%, 88svh);
  height: 100%;
  margin-inline: auto;
  object-fit: cover;
  object-position: center 18%;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 50% 47%, #0b152a8c, transparent 68%),
    linear-gradient(180deg, #08112312, transparent 75%, #08112359);
}

.hero-content { width: 100%; padding-top: clamp(34px, 9vh, 104px); }
.hero .sign { width: min(100%, 485px); filter: drop-shadow(0 8px 20px #070c16aa); }
.hero .place { color: var(--cream); text-shadow: 0 2px 9px #070c16; }
.hero .outline { background: #12213edb; }

.top, .check, .menu, .gallery, .visit, footer {
  position: relative;
  z-index: 1;
}

/* Opaque sections cover the stationary photograph as they scroll into view. */
.menu { box-shadow: 0 -10px 32px #0d14202e; }

@media (max-width: 700px) {
  .hero { min-height: calc(100svh - 100px); }
  .hero-backdrop::before { display: none; }
  .hero-backdrop img { width: 100%; height: 100%; mask-image: none; }
  .hero-content { padding-top: clamp(40px, 12vh, 100px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop { position: absolute; }
}

@media print {
  .hero { min-height: 0; }
  .hero-backdrop { display: none; }
}

.eyebrow {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
  color: var(--yellow);
  margin-bottom: clamp(8px, 1.4vw, 16px);
}
.place::before, .place::after {
  content: "";
  width: clamp(12px, 4vw, 45px);
  height: 1px;
  background: currentColor;
  opacity: .48;
}
.place span { font-size: .65rem; }

.sign { width: min(100%, 630px); margin-inline: auto; }
.sign img { height: auto; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: clamp(13px, 2vw, 24px); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(14px, 2vw, 24px);
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: var(--navy);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.outline { background: transparent; color: var(--yellow); }
.blue { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.red { background: var(--red); color: var(--paper); border-color: var(--red); }

.postcard {
  width: min(100%, 1100px);
  margin: 0 auto clamp(28px, 4vw, 52px);
  padding: clamp(6px, 1vw, 12px);
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 12px 35px #0b1e4459;
}
.postcard img {
  aspect-ratio: 2.3;
  object-fit: cover;
  object-position: center 53%;
}
.postcard figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 14px;
  padding: 10px 4px 1px;
  font-size: .8125rem;
}
.postcard figcaption span { font-weight: 600; letter-spacing: .1em; }

.check {
  height: 16px;
  border-block: 1px solid var(--red);
  background:
    repeating-linear-gradient(90deg, #a52d2a72 0 7px, transparent 7px 14px),
    repeating-linear-gradient(#a52d2a72 0 7px, transparent 7px 14px),
    var(--paper);
}

.menu, .gallery, .visit { padding: var(--section-space) var(--gutter); }
.menu { background: var(--yellow); color: var(--navy); }
.section-head { max-width: 900px; margin: 0 auto clamp(30px, 4.8vw, 60px); }
.section-head .eyebrow { margin-bottom: 12px; }
.menu .eyebrow { color: var(--red); }
.section-head h2 + p { max-width: 48ch; margin: 16px auto 0; }

.menu-sheet {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: clamp(24px, 4.7vw, 56px);
  border: 4px double var(--navy);
  background: var(--paper);
}
.menu-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-column { text-align: left; padding-inline: clamp(12px, 3vw, 40px); }
.menu-column:first-child { padding-left: 0; }
.menu-column:last-child { padding-right: 0; border-left: 1px solid var(--ink-line); }
.menu-column h3 { margin-bottom: 18px; color: var(--red); font-style: italic; }
.menu-column dl > div { padding-block: 11px; border-top: 1px solid var(--ink-line); }
.menu-column dt { font-weight: 600; }
.menu-column dd { margin-top: 4px; font-size: .9375rem; }
.menu-bottom { margin-top: clamp(22px, 3vw, 38px); padding-top: 26px; border-top: 1px solid var(--ink-line); }
.menu-bottom p { margin: 12px auto 0; font-size: .875rem; }

.gallery { background: var(--blue); }
.gallery .eyebrow { color: var(--yellow); }
.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 36px);
  width: min(100%, 1100px);
  margin: 0 auto 36px;
  text-align: left;
}
.photos figure { border-bottom: 1px solid var(--gold-line); }
.photos figure > a { display: block; }
.photos img { aspect-ratio: 4 / 3; object-fit: cover; }
.photos .food { filter: brightness(1.05) saturate(.93) contrast(1.05); }
.photos figcaption { padding-block: 13px; font: 400 1.4rem/1.2 var(--serif); }
.photos small { display: block; margin-top: 4px; font: 400 .8125rem/1.4 var(--sans); }

.visit { background: var(--navy); }
.visit .eyebrow { color: var(--yellow); }
.visit-card {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: clamp(26px, 5vw, 58px);
  border: 4px double var(--navy);
  outline: 1px solid var(--yellow);
  background: var(--cream);
  color: var(--navy);
}
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.visit-grid > div + div { border-left: 1px solid var(--ink-line); padding-left: 18px; }
.visit-grid h3 { margin-bottom: 12px; }
.visit-grid address { font-style: normal; }
.visit-grid address + p { margin-top: 9px; }
.visit-grid a, .rating a { font-weight: 600; }
.muted, .rating { font-size: .875rem; }
.muted { margin-top: 6px; }
.visit-actions { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.rating { margin-top: 14px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--gold-line);
  background: var(--navy);
  color: var(--yellow);
}
footer .credit { font-size: .8125rem; }

@media (max-width: 700px) {
  .top { grid-template-columns: 1fr; justify-items: center; gap: 3px; padding-block: 15px 5px; }
  .top .wordmark { justify-self: center; }
  .topcall { display: none; }
  .place { letter-spacing: .10em; }
  .postcard img { aspect-ratio: 1.38; object-position: center 56%; }
  .menu-layout, .visit-grid { grid-template-columns: 1fr; }
  .menu-column { padding-inline: 0; }
  .menu-column:last-child { margin-top: 20px; border-left: 0; }
  .photos { grid-template-columns: 1fr; max-width: 430px; gap: 24px; }
  .visit-grid > div + div { border-left: 0; border-top: 1px solid var(--ink-line); padding: 18px 0 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* The opening credits and each section use the same decelerating finish. */
:root { --motion-ease: cubic-bezier(.16, 1, .3, 1); }

.scroll-progress {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  height: 3px;
  color: var(--yellow);
  pointer-events: none;
  display: none;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      display: block;
      background: currentColor;
      transform-origin: left;
      animation: scroll-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@keyframes scroll-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-opening .place { animation: opening-rise 420ms var(--motion-ease) both; }
  .motion-opening .sign { animation: opening-rise 690ms var(--motion-ease) 75ms both; }
  .motion-opening .actions { animation: opening-rise 520ms var(--motion-ease) 220ms both; }
  .motion-opening .actions:focus-within { animation: none; }

  .motion-ready [data-reveal] {
    --reveal-time: 540ms;
    --reveal-delay: 0ms;
    transition:
      opacity var(--reveal-time) var(--motion-ease) var(--reveal-delay),
      transform var(--reveal-time) var(--motion-ease) var(--reveal-delay);
  }

  .motion-ready [data-reveal].motion-pending {
    opacity: 0;
    transform: translateY(28px);
  }

  .motion-ready [data-reveal="curtain"] {
    --reveal-time: 820ms;
    clip-path: inset(0);
    transition:
      opacity 450ms ease-out,
      clip-path var(--reveal-time) var(--motion-ease);
  }

  .motion-ready [data-reveal="curtain"].motion-pending {
    clip-path: inset(0 48% 0 48%);
    opacity: .35;
    transform: none;
  }

  .motion-ready [data-reveal="curtain"] img {
    transition: transform 950ms var(--motion-ease);
  }

  .motion-ready [data-reveal="curtain"].motion-pending img { transform: scale(1.035); }

  .motion-ready [data-reveal="paper"] {
    --reveal-time: 690ms;
    --reveal-delay: 80ms;
  }

  .motion-ready [data-reveal="paper"].motion-pending {
    transform: translateY(36px) scale(.986);
  }

  .motion-ready [data-reveal="photo"].motion-pending {
    transform: translateY(24px) scale(.98);
  }

  .motion-ready [data-reveal="visit"] {
    --reveal-time: 700ms;
    --reveal-delay: 75ms;
  }

  .motion-ready [data-reveal]:focus-within {
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .photos > :nth-child(2) { --reveal-delay: 70ms; }
  .motion-ready .photos > :nth-child(3) { --reveal-delay: 140ms; }
}

@keyframes opening-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media print {
  .scroll-progress { display: none; }
  .motion-ready [data-reveal], .motion-opening .hero-content > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
