:root {
  --cream: #fbf4e6;
  --cream-2: #f3e6cc;
  --paper: #fffaf1;
  --ink: #2b2521;
  --ink-soft: #5c534b;
  --red: #a8321f;
  --red-deep: #84251a;
  --mustard: #f2a516;
  --line: #e3d3b4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(43,37,33,.06), 0 8px 24px rgba(43,37,33,.08);
  --shadow-lg: 0 2px 4px rgba(43,37,33,.08), 0 18px 40px rgba(43,37,33,.14);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(4rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .75rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.small { font-size: .92rem; color: var(--ink-soft); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-deep); }
.btn-primary:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 #5f1a12; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #5f1a12; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .95rem; box-shadow: none; }
.btn-sm:hover { box-shadow: none; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,244,230,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(43,37,33,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; color: var(--red); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.site-nav ul { display: flex; align-items: center; gap: .35rem; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 999px;
}
.site-nav a:not(.btn):hover { background: var(--cream-2); color: var(--ink); }
.site-nav li:last-child { margin-left: .5rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--ink);
  cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .2s ease, opacity .2s 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); }

/* Hero */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(242,165,22,.16), transparent 45%),
    linear-gradient(var(--cream), var(--cream));
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-hours { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .98rem; color: var(--ink-soft); }
.hero-hours li { display: flex; align-items: center; gap: .5rem; }
.hero-hours li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero-hours strong { color: var(--ink); }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(43,37,33,.12)); }
.steam { animation: steam 3.2s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-5px); } }

/* Specials strip */
.specials { background: var(--ink); color: var(--cream); padding-block: 1.4rem; }
.specials .container { display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.specials-title {
  display: flex; align-items: center; gap: .6rem; margin: 0; flex: none;
  font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mustard);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 0 4px rgba(242,165,22,.25); }
.specials-list { display: flex; flex-wrap: wrap; gap: .6rem 2rem; flex: 1; }
.specials-list li { display: flex; align-items: baseline; gap: .6rem; font-size: .98rem; }
.sp-price { font-family: var(--display); font-weight: 700; color: var(--mustard); }

/* Menu */
.menu { background: var(--paper); border-bottom: 1px solid var(--line); }
.tabs {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem;
  padding-bottom: 1rem; border-bottom: 2px dashed var(--line);
}
.tabs [role="tab"] {
  min-height: 46px; padding: .55rem 1.15rem; border-radius: 999px;
  border: 2px solid var(--line); background: var(--cream); color: var(--ink);
  font: 700 .98rem/1 var(--sans); cursor: pointer; transition: background-color .18s, border-color .18s, color .18s;
}
.tabs [role="tab"]:hover { border-color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.panel:focus-visible { outline-offset: 8px; }
.panel-note { font-style: italic; color: var(--ink-soft); margin-bottom: 1.5rem; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 3.5rem; }
.menu-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.mi-top { display: flex; align-items: baseline; gap: .75rem; }
.mi-top h3 { margin: 0; font-size: 1.2rem; }
.mi-top::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted #cdb894; transform: translateY(-4px); min-width: 1.5rem; }
.price { order: 2; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--red); }
.menu-list p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .98rem; max-width: 46ch; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: .35rem; padding: .15rem .5rem;
  font: 700 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: var(--mustard); color: var(--ink); border-radius: 999px;
}

/* Story */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.frame { background: var(--paper); padding: 14px 14px 18px; border-radius: 6px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); border: 1px solid var(--line); }
.frame svg { border-radius: 3px; }
.frame-caption { margin: 1.4rem 0 0; font-size: .9rem; font-style: italic; color: var(--ink-soft); text-align: center; }
.story-copy p:not(.eyebrow) { color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.facts li { padding: 1.1rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.facts strong { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--red); margin-bottom: .35rem; }
.facts span { font-size: .9rem; color: var(--ink-soft); line-height: 1.35; display: block; }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.25rem); }

/* Visit */
.visit { background: var(--cream-2); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.hours th, .hours td { padding: .62rem 0; border-bottom: 1px dashed 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 { color: var(--red); font-weight: 700; }
.hours tr.today th::after { content: "Today"; margin-left: .6rem; padding: .1rem .5rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: #fff; border-radius: 999px; vertical-align: middle; }
address { font-style: normal; font-size: 1.1rem; line-height: 1.6; margin-bottom: 1rem; }
.contact-link { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.mini-map { margin-top: 1.25rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.mini-map svg { width: 100%; height: auto; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.tile svg { width: 72%; height: auto; }
.tile span {
  position: absolute; left: .9rem; bottom: .9rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: .85rem; font-weight: 700; box-shadow: 0 2px 6px rgba(43,37,33,.12);
}
.tile-pie { background: repeating-linear-gradient(45deg, #f6d9d2 0 14px, #fbe8e3 14px 28px); }
.tile-coffee { background: radial-gradient(circle at 30% 30%, #b8492f, var(--red) 70%); }
.tile-burger { background: #f3dfbd radial-gradient(#e5c79a 2px, transparent 2.5px) 0 0 / 18px 18px; }
.tile-pancakes { background: linear-gradient(135deg, #fbe7b5, #f2c66a); }
.tile-booth { background: repeating-conic-gradient(var(--ink) 0 25%, #fffaf1 0 50%) 0 0 / 36px 36px; }
.tile-booth svg { background: rgba(255,250,241,.92); border-radius: 12px; padding: 6%; }
.tile-river { background: #2f4a56; }
.tile-river svg { width: 100%; height: 100%; }

/* Catering */
.catering { background: var(--paper); border-top: 1px solid var(--line); }
.catering-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.catering-copy p:not(.eyebrow) { color: var(--ink-soft); }
.checks { margin-top: 1.5rem; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: .1rem; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.form { background: var(--cream); }
.form h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 700; font-size: .92rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--sans); transition: border-color .18s, box-shadow .18s;
}
textarea { resize: vertical; min-height: 110px; }
input:hover, select:hover, textarea:hover { border-color: #cdb894; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(168,50,31,.15); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.form-note { margin: 1rem 0 0; font-size: .95rem; font-weight: 500; }
.form-note:empty { display: none; }
.form-note.ok { padding: .85rem 1rem; background: #fdf0d2; border-left: 4px solid var(--mustard); border-radius: 6px; }
.form-note.err { color: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: #d9cfc2; padding-block: 3rem 5rem; font-size: .95rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--mustard); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--cream); margin-bottom: .5rem; }
.site-footer nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer-fine { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(251,244,230,.14); color: #b9ad9f; font-size: .88rem; }

/* Sample pill */
.mwd-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  background: rgba(20, 24, 28, .88); color: #fff; border-radius: 999px;
  font: 600 .8rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .15);
  transition: background .2s, transform .2s;
}
.mwd-pill:hover { background: #000; transform: translateY(-1px); }
.mwd-pill:focus-visible { outline: 3px solid #00d4ff; outline-offset: 3px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .story-grid, .catering-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; order: -1; width: 80%; }
  .story-art { max-width: 460px; }
  .menu-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(43,37,33,.12);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .site-nav a:not(.btn) { min-height: 48px; font-size: 1.05rem; }
  .site-nav li:last-child { margin: .5rem 0 0; }
  .site-nav .btn { width: 100%; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  body { font-size: 1rem; }
  .hero-art { width: 72%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .visit-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .tile span { left: .5rem; bottom: .5rem; font-size: .72rem; padding: .25rem .6rem; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs [role="tab"] { flex: none; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .facts li { padding: .9rem .7rem; }
  .facts strong { font-size: 1.8rem; }
  .facts span { font-size: .8rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .specials-list { flex: 1 1 100%; flex-direction: column; gap: .5rem; }
  .specials .container { gap: 1rem; }
  .specials-list li { justify-content: space-between; border-bottom: 1px solid rgba(251,244,230,.12); padding-bottom: .5rem; }
  .specials-list li:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover, .tile:hover, .mwd-pill:hover { transform: none; }
}
