/* A · Blue Stripe & Gingham: from De Palm's blue-and-white striped dining room, gingham cloths and brush-script palm logo */
:root {
  --bg: #f5f8fd;
  --surface: #ffffff;
  --alt: #e6eef9;
  --ink: #13203b;
  --muted: #45526a;
  --title: #1f4ea3;
  --accent: #1f4ea3;
  --accent-deep: #163b7e;
  --on-accent: #ffffff;
  --footer: #0e1d42;
  --on-footer: #ffffff;
  --line: #c9d7ee;
  --header: 64px;
  --bar-h: 60px;
  --script: 'Kaushan Script', 'Brush Script MT', cursive;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--cond); font-weight: 700; line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
section[id] { scroll-margin-top: calc(var(--header) + 8px); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.label {
  display: inline-block;
  font-family: var(--cond);
  font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  padding-left: 30px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px) left center / 22px 14px no-repeat;
}
.section-title { font-size: clamp(36px, 8vw, 56px); color: var(--title); margin-bottom: .4em; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--accent);
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: var(--surface); color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.frame { border-radius: 14px; overflow: hidden; border: 6px solid var(--surface); box-shadow: 0 10px 28px rgba(19, 32, 59, .14); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 4px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--accent) 0 14px, var(--surface) 14px 28px) 4;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--script); font-size: 30px; color: var(--ink); text-decoration: none; }
.palm { width: 34px; height: 34px; color: var(--accent); flex: none; }
.site-nav { display: flex; align-items: center; gap: 20px; font-family: var(--cond); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta { background: var(--accent); color: var(--on-accent); padding: 7px 16px; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--accent-deep); color: var(--on-accent); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: none; border: 0; color: var(--accent); cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 24px; height: 3px; background: currentColor; position: relative; border-radius: 2px;
  }
  .bars::before, .bars::after { content: ''; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }

  .site-nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 4px solid var(--accent);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 16px; border-top: 1px solid var(--alt); }
  .site-nav .nav-cta { margin: 12px 16px 16px; text-align: center; }
}

/* Hero: status line and call button must sit above the fold at 390x844 */
.hero { background: var(--surface); padding-bottom: 36px; }
.hero-grid { display: grid; gap: 24px; padding-top: 22px; }
.eyebrow { font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0; }
.hero h1 { font-family: var(--script); font-weight: 400; text-transform: none; font-size: clamp(76px, 22vw, 150px); color: var(--ink); line-height: 1.05; margin: 0 0 6px; letter-spacing: 0; }
.hero-lead { font-size: clamp(18px, 4.6vw, 22px); max-width: 26em; margin-bottom: 16px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--alt); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; margin-bottom: 18px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status:has([data-state='open']) .dot { background: #1f8a4c; }
.status:has([data-state='closed']) .dot { background: #b3261e; }
.hero-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, var(--surface) 18px 36px);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; align-items: center; padding-top: 48px; gap: 48px; }
  .hero h1 { font-size: clamp(88px, 8.6vw, 124px); white-space: nowrap; }
  .hero { padding-bottom: 64px; }
}

.stripe-band { height: 26px; background: repeating-linear-gradient(90deg, var(--accent) 0 26px, var(--surface) 26px 52px); }

/* Split layouts */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}

.about { padding: 56px 0; }
.about .frame { aspect-ratio: 16 / 9; }

/* What's on */
.whats-on { padding: 56px 0; background: var(--surface); }
.week-plan { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 14px; }
.week-plan li { background: var(--bg); border: 2px solid var(--line); border-left: 8px solid var(--accent); border-radius: 12px; padding: 16px 18px; }
.week-plan h3 { font-size: 28px; color: var(--ink); margin-bottom: 4px; }
.week-plan .when { font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 2px; }
.week-plan p:last-child { margin: 0; color: var(--muted); }
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.posters figure { border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--alt); }
.posters img { width: 100%; height: 100%; object-fit: cover; }
.follow { margin: 18px 0 0; color: var(--muted); }
.follow a { color: var(--accent); font-weight: 700; }
@media (min-width: 800px) {
  .week-plan { grid-template-columns: repeat(2, 1fr); }
  .week-plan li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .week-plan { grid-template-columns: repeat(3, 1fr); }
  .week-plan li:last-child { grid-column: span 2; }
}

/* Menu: tabs only show once JS marks them ready; without JS every panel stays visible */
.menu {
  padding: 56px 0;
  background-color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(31, 78, 163, .45) 50%, transparent 50%),
    linear-gradient(rgba(31, 78, 163, .45) 50%, transparent 50%);
  background-size: 36px 36px;
}
.menu .label, .menu .section-title { background-color: var(--surface); padding: 4px 12px; border-radius: 8px; }
.menu .label { padding-left: 42px; background-position: 12px center; }
.menu-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(19, 32, 59, .22);
  padding: 8px 18px 22px;
  margin-top: 20px;
  max-width: 760px;
}
.menu-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 0 14px; margin-bottom: 8px;
  border-bottom: 2px solid var(--alt);
  scrollbar-width: thin;
}
.menu-tabs button {
  flex: none;
  font-family: var(--cond); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .04em;
  padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--surface); color: var(--accent);
  cursor: pointer;
}
.menu-tabs button[aria-selected='true'] { background: var(--accent); color: var(--on-accent); }
.menu-tabs:not(.is-ready) { display: none; }
.menu-panel { padding-top: 14px; }
.menu-panel + .menu-panel { border-top: 2px solid var(--alt); margin-top: 18px; }
.menu-tabs.is-ready ~ .menu-panel { border-top: 0; margin-top: 0; }

.group-title { font-size: 26px; color: var(--title); margin: 4px 0 10px; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 12px 0; border-bottom: 2px dotted var(--line); }
.items li:last-child { border-bottom: 0; }
.item-head { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
.price { color: var(--accent); white-space: nowrap; font-family: var(--cond); font-size: 22px; }
.items p { margin: 2px 0 0; color: var(--muted); }
.menu-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 800px) { .menu-card { padding: 8px 32px 28px; } }

/* Food and functions */
.food { padding: 56px 0; background: var(--bg); }
.food .frame, .functions .frame { aspect-ratio: 4 / 3; }
.functions { padding: 56px 0; background: var(--surface); }

/* Hours */
.hours { padding: 56px 0; background: var(--alt); }
.week { list-style: none; margin: 0 0 18px; padding: 0; max-width: 440px; background: var(--surface); border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.week li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--alt); }
.week li:last-child { border-bottom: 0; }
.week li.is-today { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.frame.tall { aspect-ratio: 3 / 4; max-height: 620px; }

/* Gallery */
.gallery { padding: 56px 0; background: var(--surface); }
.gallery-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--alt); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .g-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid .g-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* Reviews: themes from real reviews, never invented quotes */
.reviews { padding: 56px 0; background: var(--bg); }
.stars { color: #9a6a00; letter-spacing: .05em; }
.reviews-sub { color: var(--muted); }
.themes { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.themes li { background: var(--surface); padding: 18px; border-radius: 12px; border-top: 6px solid var(--accent); }
.themes h3 { font-size: 24px; color: var(--accent); margin-bottom: 6px; }
.themes p { margin: 0; color: var(--muted); }
.quote { margin: 0 0 24px; padding: 20px 22px; background: var(--surface); border-radius: 12px; border: 2px dashed var(--line); max-width: 720px; }
.quote p { font-family: var(--script); font-size: clamp(22px, 5vw, 30px); line-height: 1.35; margin: 0 0 6px; color: var(--ink); }
.quote cite { font-style: normal; color: var(--muted); font-size: 15px; }
@media (min-width: 800px) { .themes { grid-template-columns: repeat(3, 1fr); } }

/* Find us */
.find { padding: 56px 0; background: var(--surface); }
.find-grid { display: grid; gap: 28px; }
address { font-style: normal; font-size: 19px; margin-bottom: 14px; }
.directions { color: var(--muted); max-width: 30em; }
.map { border-radius: 14px; overflow: hidden; min-height: 320px; border: 6px solid var(--alt); display: flex; }
.map iframe { flex: 1; width: 100%; min-height: 320px; border: 0; display: block; }
@media (min-width: 900px) { .find-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }

/* Footer */
.site-footer { background: var(--footer); color: var(--on-footer); padding-bottom: 24px; border-top: 14px solid transparent; border-image: repeating-linear-gradient(90deg, var(--accent) 0 18px, #ffffff 18px 36px) 14; }
.footer-grid { display: grid; gap: 24px; padding-top: 32px; }
.footer-brand { font-family: var(--script); font-size: 46px; margin: 0; line-height: 1.2; }
.footer-sub { margin: 0; }
.site-footer h2 { font-size: 17px; letter-spacing: .14em; margin-bottom: 8px; }
.site-footer a { color: var(--on-footer); }
.copyright { text-align: center; font-size: 13px; margin: 24px 16px 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Mobile action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--bar-h);
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .14);
}
.mobile-bar a {
  display: grid; place-items: center;
  font-family: var(--cond); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
}
.mobile-bar .mobile-bar-alt { background: var(--surface); color: var(--accent); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

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