/* ============================================================
   Wonderffle Cafe — tokens
   Palette sourced from the business's own real photography:
   teal/pine from the storefront trim, mustard from the building
   wall + syrup ramekins, near-black from the slate plateware,
   paper from the takeout box liner and printed dockets.
   ============================================================ */

:root {
  --teal-900: #0f2e27;
  --teal-700: #1c5148;
  --teal-600: #256a5c;
  --teal-400: #56ab99;

  --mustard-600: #d99a2b;
  --mustard-500: #e8ac3d;
  --mustard-300: #f4cd83;

  --ink-950: #15130f;
  --ink-800: #262019;
  --ink-600: #514738;

  --paper-050: #eef4f1;
  --paper-100: #e4ede9;
  --paper-200: #d3e1db;

  --white: #fffdf8;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;

  --measure: 68ch;
  --radius-sm: 6px;
  --radius-md: 14px;
  --shadow-card: 0 1px 2px rgba(21, 19, 15, 0.06), 0 12px 28px -14px rgba(21, 19, 15, 0.35);
  --shadow-lift: 0 4px 10px rgba(21, 19, 15, 0.10), 0 24px 48px -20px rgba(21, 19, 15, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Scroll reveal — progressive enhancement.
   .reveal is fully visible with no transform by default, so content
   never depends on JS to be seen. Only html.js-reveal (added by
   script.js when IntersectionObserver exists, and never under
   prefers-reduced-motion) opts elements into the hidden-until-scrolled
   state. Ticket/plate/review treatments extend the "order ticket"
   concept instead of a single uniform fade-up.
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
html.js-reveal .reveal-left { transform: translate(-24px, 12px); }
html.js-reveal .reveal-left.is-visible { transform: none; }
html.js-reveal .reveal-right { transform: translate(24px, 12px); }
html.js-reveal .reveal-right.is-visible { transform: none; }

/* Ticket badge: stamped into place — a distinct gesture from the general
   fade-up, tied to the "order ticket" concept rather than generic motion. */
html.js-reveal .ticket-stamp {
  opacity: 0;
  transform: rotate(-15deg) scale(0.8) translateY(-8px);
}
html.js-reveal .ticket-stamp.is-visible {
  opacity: 1;
  transform: rotate(-2deg) scale(1) translateY(0);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}

/* Plate cards, film-rail photos, review cards: staggered — placed on the
   rail one at a time, like tickets going up rather than a single block. */
html.js-reveal .plate-card.reveal,
html.js-reveal .review-card.reveal { transform: translateY(28px); }
html.js-reveal .film-rail img.reveal { transform: translateY(28px) scale(0.97) rotate(var(--tilt, 0deg)); }
html.js-reveal .film-rail img.reveal.is-visible { transform: rotate(var(--tilt, 0deg)); }

/* Stagger — cards land one after another, not all at once */
.plate-card.reveal:nth-child(1), .film-rail img.reveal:nth-child(1), .review-card.reveal:nth-child(1), .know-card:nth-child(1) { --reveal-delay: 0s; }
.plate-card.reveal:nth-child(2), .film-rail img.reveal:nth-child(2), .review-card.reveal:nth-child(2), .know-card:nth-child(2) { --reveal-delay: .09s; }
.plate-card.reveal:nth-child(3), .film-rail img.reveal:nth-child(3), .review-card.reveal:nth-child(3), .know-card:nth-child(3) { --reveal-delay: .18s; }
.plate-card.reveal:nth-child(4), .film-rail img.reveal:nth-child(4), .review-card.reveal:nth-child(4), .know-card:nth-child(4) { --reveal-delay: .27s; }
.plate-card.reveal:nth-child(5), .film-rail img.reveal:nth-child(5), .review-card.reveal:nth-child(5) { --reveal-delay: .36s; }
.film-rail img.reveal:nth-child(6) { --reveal-delay: .45s; }
.film-rail img.reveal:nth-child(7) { --reveal-delay: .54s; }
.film-rail img.reveal:nth-child(8) { --reveal-delay: .63s; }

body {
  margin: 0;
  background: var(--paper-050);
  color: var(--ink-950);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.006em;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; margin: 0; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Browser surfaces carry the palette */
::selection { background: var(--mustard-500); color: var(--ink-950); }
:focus-visible {
  outline: 3px solid var(--mustard-500);
  outline-offset: 3px;
  border-radius: 3px;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-100); }
::-webkit-scrollbar-thumb { background: var(--teal-600); border-radius: 8px; border: 3px solid var(--paper-100); }
* { scrollbar-color: var(--teal-600) var(--paper-100); scrollbar-width: thin; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-950);
  color: var(--white);
  padding: 12px 18px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 24px; top: 12px; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--mustard-500);
  color: var(--ink-950);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--mustard-300); box-shadow: var(--shadow-lift); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 253, 248, 0.55);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 253, 248, 0.08); }

/* ============================================================
   Nav
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 244, 241, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--paper-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-950);
  text-decoration: none;
  margin-right: auto;
}
.wordmark-dot { color: var(--mustard-600); }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-800);
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal-700); }
.nav-links a.active::after { transform: scaleX(1); background: var(--mustard-500); }
.mobile-nav a.active { color: var(--teal-700); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-950); margin-inline: auto; transition: transform 0.3s var(--ease-out), opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 22px;
  border-top: 1px solid var(--paper-200);
}
.mobile-nav a {
  padding: 12px 4px;
  text-decoration: none;
  color: var(--ink-950);
  font-weight: 600;
  border-bottom: 1px solid var(--paper-200);
}
.mobile-nav .btn { margin-top: 14px; justify-content: center; }
.mobile-nav.is-open { display: flex; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(15, 13, 10, 0.88) 0%, rgba(15, 13, 10, 0.55) 42%, rgba(15, 13, 10, 0.28) 68%, rgba(15, 13, 10, 0.42) 100%);
}

.hero-inner {
  position: relative;
  padding-block: 64px 76px;
  color: var(--white);
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.ticket {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  align-self: start;
  justify-self: start;
  width: fit-content;
  background: var(--mustard-500);
  color: var(--ink-950);
  padding: 9px 18px 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-card);
  font-variant-numeric: tabular-nums;
  transform: rotate(-2deg);
}
.ticket-row strong { font-size: 17px; }
.ticket-sub { color: var(--teal-900); font-weight: 600; }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  text-wrap: balance;
}

.hero-sub {
  font-size: 18px;
  max-width: 46ch;
  color: var(--paper-100);
  margin-bottom: 0;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* ============================================================
   Section basics
   ============================================================ */

section { padding-block: 96px; }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink-950);
  max-width: 16ch;
}

.section-lede {
  font-size: 18px;
  color: var(--ink-600);
  max-width: 56ch;
  margin-bottom: 44px;
}

/* ============================================================
   Story
   ============================================================ */

.story { background: var(--paper-050); }

.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.story-photo img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: rotate(-1.4deg);
}

.story-copy h2 { margin-bottom: 22px; max-width: 12ch; }
.story-copy p { font-size: 18px; color: var(--ink-800); }
.story-copy p:last-child { margin-bottom: 0; }

@media (max-width: 780px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-photo img { aspect-ratio: 16 / 10; transform: none; max-width: 420px; }
}

/* ============================================================
   Plates ("what people come back for")
   ============================================================ */

.plates { background: var(--teal-900); color: var(--white); }
.plates .section-title { color: var(--white); }
.plates .section-lede { color: var(--teal-400); }

.plate-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.plate-card {
  margin: 0;
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--ink-950);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
/* Lifted + tilted on hover, like pulling a ticket off the rail — the image
   itself stays still, so the room doesn't feel like it's zooming. */
.plate-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-lift); }
.plate-card:nth-child(even):hover { transform: translateY(-6px) rotate(0.6deg); }
.plate-card--wide { grid-column: span 4; }

.plate-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.plate-card--wide img { aspect-ratio: 16 / 10; }

.plate-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(0deg, rgba(15, 19, 17, 0.92) 0%, rgba(15, 19, 17, 0.55) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.plate-name { font-weight: 700; font-size: 16px; }
.plate-note { font-size: 13.5px; color: var(--paper-200); }

@media (max-width: 900px) {
  .plate-grid { grid-template-columns: repeat(2, 1fr); }
  .plate-card, .plate-card--wide { grid-column: span 2; }
  .plate-card--wide img { aspect-ratio: 4 / 5; }
}

/* ============================================================
   Good to know — practical ticket stubs
   ============================================================ */

.know { background: var(--paper-100); }

.know-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.know-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-card);
}

/* Stamped chit, like the hero rating ticket — an accent that belongs to the
   order-ticket concept rather than a generic side-tab card border. */
.know-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-950);
  background: var(--mustard-500);
  padding: 5px 11px;
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 14px;
}
.know-card:nth-child(even) .know-tag { background: var(--teal-400); transform: rotate(2deg); }
.know-card p { font-size: 15.5px; color: var(--ink-800); margin: 0; max-width: none; }

@media (max-width: 900px) {
  .know-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .know-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Gallery — signature interaction: pinned ticket rail
   ============================================================ */

.gallery { background: var(--paper-050); overflow: hidden; }

.film-rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding-block: 18px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.film-rail img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(64vw, 320px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  background: var(--white);
  padding: 10px 10px 34px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  cursor: default;
}
.film-rail img:nth-child(odd) { --tilt: -2.5deg; transform: rotate(var(--tilt)); }
.film-rail img:nth-child(even) { --tilt: 2deg; transform: rotate(var(--tilt)); }
.film-rail img:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: var(--shadow-lift); }

/* ============================================================
   Reviews
   ============================================================ */

.reviews { background: var(--mustard-500); }
.reviews-title { max-width: 22ch; color: var(--ink-950); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.review-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.review-card p {
  font-size: 16.5px;
  color: var(--ink-800);
  margin-bottom: 14px;
  max-width: none;
}
.review-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--teal-700);
}

.reviews-more { margin-top: 30px; font-size: 15px; color: var(--ink-800); }
.reviews-more a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Visit
   ============================================================ */

.visit { background: var(--paper-050); }

.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.visit-facts { margin: 28px 0 30px; display: grid; gap: 18px; }
.visit-facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal-600); font-weight: 700; margin-bottom: 3px; }
.visit-facts dd { margin: 0; font-size: 18px; font-weight: 600; }
.visit-facts a { text-decoration: none; }
.visit-facts a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hours-card {
  background: var(--ink-950);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  box-shadow: var(--shadow-lift);
}
.hours-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours-table th, .hours-table td { text-align: left; padding-block: 9px; font-weight: 500; border-bottom: 1px solid rgba(255, 253, 248, 0.12); font-variant-numeric: tabular-nums; }
.hours-table td { text-align: right; color: var(--paper-100); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-closed td { color: var(--mustard-500); font-weight: 700; }

@media (max-width: 780px) {
  .visit-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--ink-950); color: var(--paper-100); padding-block: 46px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.wordmark-footer { color: var(--white); }
.footer-inner p { margin: 6px 0 0; font-size: 14.5px; color: var(--paper-200); }
.footer-inner a { text-decoration: none; }
.footer-inner p a:hover { text-decoration: underline; }

.footer-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal-400); font-weight: 700; margin-bottom: 8px; }
.footer-links nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links nav a { font-weight: 600; font-size: 14.5px; color: var(--paper-100); }
.footer-links nav a:hover { color: var(--mustard-500); }

/* ============================================================
   Small screens — global
   ============================================================ */

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding-block: 68px; }
  .hero { min-height: 100vh; }
  .hero-inner { padding-block: 40px 52px; }
}

/* ============================================================
   Page header — interior pages (About / Menu / Blog / Contact)
   Same photo-hero language as the homepage hero, condensed.
   ============================================================ */

.page-header {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(15, 13, 10, 0.86) 0%, rgba(15, 13, 10, 0.42) 55%, rgba(15, 13, 10, 0.32) 100%),
    var(--header-photo) center/cover no-repeat;
}
.page-header-inner { padding-block: 44px 40px; position: relative; }
.page-header h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  color: var(--white);
  max-width: 22ch;
}
.page-header p {
  margin-top: 14px;
  color: var(--paper-100);
  max-width: 52ch;
  font-size: 16.5px;
}

/* ============================================================
   Teaser sections (home) — shorter reuse of the full section styles
   ============================================================ */

.teaser-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--teal-700);
  border-bottom: 2px solid var(--mustard-500);
  padding-bottom: 2px;
}
.teaser-link:hover { color: var(--teal-900); }
.plates .teaser-link { color: var(--mustard-300); border-bottom-color: var(--mustard-300); }
.plates .teaser-link:hover { color: var(--white); }

/* ============================================================
   Story stats strip (about.html) — real numbers only
   ============================================================ */

.story-stats-strip {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--paper-200);
}
.story-stats-strip .stat b {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-950);
  display: block;
}
.story-stats-strip .stat span {
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-600);
}
@media (max-width: 560px) {
  .story-stats-strip { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   CTA band (about.html → menu.html handoff)
   ============================================================ */

.cta-band { background: var(--teal-900); color: var(--white); }
.cta-band-inner { text-align: center; }
.cta-band-inner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 34ch; margin-inline: auto; }
.cta-band-inner .btn { margin-top: 26px; }

/* ============================================================
   Contact page: good-to-know grid reused from home, plus
   the hours/visit layout already defined above.
   ============================================================ */

.contact-lede { max-width: 60ch; font-size: 18px; color: var(--ink-600); margin-bottom: 44px; }
