:root {
  --wash: #fbf9f4;
  --white: #ffffff;
  --sand: #f1ece1;
  --blue: #1d4f9c;
  --blue-deep: #143b78;
  --red: #b1262c;
  --ink: #1b2330;
  --muted: #4f5866;
  --chalk: #2a2d2f;
  --chalk-ink: #f3f1ea;
  --header: 64px;
  --bar-h: 60px;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wash);
  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(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
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(--white); padding: 8px 12px; }

.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 3px solid var(--red);
  padding-bottom: 2px;
  margin-bottom: 14px;
}
.label-light { color: var(--white); border-color: var(--white); }

.section-title { font-size: clamp(32px, 7vw, 50px); color: var(--red); margin-bottom: .45em; }
.muted { color: var(--muted); }

/* Flag bunting, like the flags strung across the deck and bar */
.bunting {
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26' viewBox='0 0 160 26'%3E%3Cpath d='M0 2 Q80 8 160 2' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3Cpath d='M4 3h24l-12 20z' fill='%23b1262c'/%3E%3Cpath d='M36 4h24l-12 20z' fill='%23f2b705'/%3E%3Cpath d='M68 5h24l-12 20z' fill='%231d4f9c'/%3E%3Cpath d='M100 4h24l-12 20z' fill='%232e8b57'/%3E%3Cpath d='M132 3h24l-12 20z' fill='%23ffffff' stroke='%23999' stroke-width='.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 160px 26px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--blue);
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Blue window-frame photos, after the blue doors and windows at the front */
.window {
  border: 10px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(20, 59, 120, .18);
  overflow: hidden;
}
.window 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(--white);
  border-bottom: 3px solid var(--blue);
}
.brand { font-family: var(--serif); font-size: 30px; color: var(--red); text-decoration: none; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--red); }
.site-nav .nav-cta { background: var(--blue); color: var(--white); padding: 8px 16px; border-radius: 6px; }
.site-nav .nav-cta:hover { background: var(--blue-deep); color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: none; border: 0; color: var(--blue); cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative;
  }
  .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(--white); border-bottom: 3px solid var(--blue);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 16px; border-top: 1px solid var(--sand); }
  .site-nav .nav-cta { margin: 12px 16px 16px; text-align: center; border-radius: 6px; }
}

/* Hero */
.hero { background: var(--white); padding-bottom: 40px; }
.hero-grid { display: grid; gap: 28px; padding-top: 28px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.hero h1 { font-size: clamp(64px, 18vw, 128px); color: var(--red); letter-spacing: .04em; line-height: 1; margin-bottom: 12px; }
.hero-lead { font-size: clamp(19px, 4.6vw, 23px); max-width: 26em; margin-bottom: 18px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sand); padding: 8px 14px; border-radius: 999px;
  font-weight: 600; margin-bottom: 22px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status:has([data-state='open']) .dot { background: #2e8b57; }
.status:has([data-state='closed']) .dot { background: var(--red); }
.hero-photo { aspect-ratio: 3 / 2; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; align-items: center; padding-top: 48px; }
  .hero { padding-bottom: 64px; }
}

.band {
  background: var(--blue); color: var(--white);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  padding: 14px 16px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px;
  text-align: center;
}
.band .sep { opacity: .6; }

/* 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; }
}

.river { padding: 56px 0 40px; }
.river .window { aspect-ratio: 4 / 3; }

.facts {
  list-style: none; margin-top: 40px; padding-top: 0;
  display: grid; gap: 14px;
}
.facts li { background: var(--white); border-left: 6px solid var(--blue); padding: 14px 16px; border-radius: 4px; }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--red); }
.facts span { color: var(--muted); }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Menu */
.menu { padding: 56px 0; background: var(--sand); }
.menu-intro { font-size: 19px; max-width: 34em; }
.menu-card {
  background: var(--white);
  border-radius: 6px;
  border-top: 8px solid var(--blue);
  box-shadow: 0 14px 34px rgba(27, 35, 48, .1);
  padding: 8px 18px 22px;
  margin-top: 24px;
}
.menu-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 0 14px; margin-bottom: 8px;
  border-bottom: 2px solid var(--sand);
  scrollbar-width: thin;
}
.menu-tabs button {
  flex: none;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 999px;
  border: 2px solid var(--blue); background: var(--white); color: var(--blue);
  cursor: pointer;
}
.menu-tabs button[aria-selected='true'] { background: var(--blue); color: var(--white); }
.menu-tabs:not(.is-ready) { display: none; }
.menu-panel { padding-top: 14px; }
.menu-panel + .menu-panel { border-top: 2px solid var(--sand); margin-top: 18px; }
.menu-tabs.is-ready ~ .menu-panel { border-top: 0; margin-top: 0; }

.group-title { font-size: 28px; color: var(--red); margin: 4px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.group-sub { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); }
.spade { width: 14px; height: 28px; fill: var(--blue); align-self: center; }
.panel-note { color: var(--muted); font-style: italic; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 12px 0; border-bottom: 1px dashed #d7d0c0; }
.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(--blue); white-space: nowrap; }
.items p { margin: 4px 0 0; color: var(--muted); }
.plates { display: grid; gap: 18px; margin-bottom: 12px; }
.plates h4 { font-size: 21px; color: var(--blue); margin-bottom: 4px; }
.plates p { margin: 0; }
.plain { margin: 0; }
.menu-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 800px) {
  .menu-card { padding: 8px 32px 28px; }
  .plates { grid-template-columns: repeat(3, 1fr); }
}

/* Chalkboard poem */
.poem { padding: 56px 0; }
.poem-grid { display: grid; gap: 28px; align-items: center; }
.chalkboard {
  background: var(--chalk);
  background-image: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .06), transparent 60%);
  color: var(--chalk-ink);
  border: 12px solid #6b4a2f;
  border-radius: 6px;
  padding: 26px 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
  text-align: center;
}
.chalk-title { font-family: var(--hand); font-weight: 700; font-size: 44px; margin-bottom: 10px; }
.chalk-lines { font-family: var(--hand); font-size: clamp(24px, 6vw, 30px); line-height: 1.35; margin: 0; }
.translation { font-family: var(--serif); font-size: clamp(22px, 4.5vw, 28px); line-height: 1.35; color: var(--ink); }
@media (min-width: 900px) { .poem-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* Hours */
.hours { padding: 56px 0; background: var(--white); }
.week { list-style: none; margin: 0 0 18px; padding: 0; max-width: 420px; }
.week li { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--sand); }
.week li.is-today { background: var(--blue); color: var(--white); font-weight: 700; border-radius: 4px; }
.note { color: var(--muted); max-width: 30em; }
.window.tall { aspect-ratio: 3 / 4; max-height: 640px; }

/* Pub */
.pub { background: var(--blue-deep); color: var(--white); padding: 0 0 56px; }
.pub .split { padding-top: 40px; }
.pub .section-title { color: var(--white); }
.pub a { color: var(--white); font-weight: 700; }
.pub-photos { display: grid; gap: 16px; }
.pub .window { border-color: var(--white); background: var(--white); }
.pub-photos .window { aspect-ratio: 3 / 2; }
.pub-photos .window.small { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .pub-photos { grid-template-columns: 1fr; }
  .pub-photos .window.small { width: 70%; margin: -60px 0 0 auto; position: relative; }
}

/* Gallery */
.gallery { padding: 56px 0; }
.gallery-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--sand); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .g-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery-grid .g-tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: var(--white); font-size: 14px; font-weight: 600;
}
@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 */
.reviews { padding: 56px 0; background: var(--sand); }
.stars { color: #e0a100; 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(--white); padding: 18px; border-radius: 4px; border-top: 4px solid var(--red); }
.themes h3 { font-size: 24px; color: var(--blue); margin-bottom: 6px; }
.themes p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0 0 28px; padding: 22px; background: var(--white); border-left: 6px solid var(--blue); border-radius: 4px; }
.quote p { font-family: var(--serif); font-size: clamp(20px, 4.4vw, 25px); line-height: 1.35; margin-bottom: 8px; }
.quote footer { color: var(--muted); font-weight: 600; }

/* Find us */
.find { padding: 56px 0; background: var(--white); }
.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: 10px solid var(--blue); border-radius: 4px; overflow: hidden; min-height: 320px; }
.map iframe { width: 100%; height: 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(--ink); color: var(--white); padding-bottom: 24px; }
.site-footer .bunting { background-color: var(--wash); }
.footer-grid { display: grid; gap: 24px; padding-top: 32px; }
.footer-brand { font-family: var(--serif); font-size: 40px; color: var(--white); margin: 0; }
.footer-sub { color: #c5cbd4; }
.site-footer h2 { font-family: var(--sans); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: #c5cbd4; }
.site-footer a { color: var(--white); }
.copyright { text-align: center; font-size: 13px; color: #c5cbd4; 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, .12);
}
.mobile-bar a {
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px; text-decoration: none;
  background: var(--blue); color: var(--white);
}
.mobile-bar .mobile-bar-alt { background: var(--white); color: var(--blue); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

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