@import url("fonts.css");

/* ==========================================================================
   The Wobbly Whale Public House
   One stylesheet for every page. Sections in this file:
     1. Tokens and comfort overrides
     2. Base elements
     3. Utilities (sr-only, skip link, wrap, sections)
     4. Type
     5. Buttons
     6. Reveal animation
     7. Header and nav
     8. Hero, bubbles, mascot
     9. Marquee
    10. Story and pillars
    11. Taps table
    12. Plates
    13. Beer club card
    14. Events (weekly and dated)
    15. Gallery tiles
    16. Visit block
    17. Footer
    18. Comfort widget
    19. Forms
    20. Subpages
    21. Responsive
    22. Menu and contact additions
   ========================================================================== */

/* 1. Tokens and comfort overrides ----------------------------------------- */

:root {
  --ink: #14352c;
  --bg: #f3ead8;
  --paper: #fff8e8;
  --sea: #1b3a5c;
  --deep: #0f4c3a;
  --coral: #e8a33d;
  --foam: #e9dcc0;
  --sand: #dccb9f;
  --muted: #4f5f57;

  --font-display: 'Baloo 2', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-easy: 'Atkinson Hyperlegible', 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1240px;
  --pad-x: clamp(1rem, 4vw, 2.5rem);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
}

html[data-contrast="high"] {
  --ink: #000;
  --bg: #fff;
  --sea: #0b3e73;
  --deep: #000;
  --coral: #ffd15c;
  --foam: #fff;
  --sand: #fff;
  --muted: #000;
  --paper: #fff;
}

html[data-text="large"] { font-size: 125%; }

html[data-font="easy"],
html[data-font="easy"] * {
  font-family: var(--font-easy) !important;
  letter-spacing: 0 !important;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *,
  html:not([data-motion="on"]) *::before,
  html:not([data-motion="on"]) *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 2. Base elements --------------------------------------------------------- */

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

/* clip on both so the mascot's overflowing SVG paint and the marquee track
   never create a sideways scroll; clip (not hidden) keeps the sticky header */
html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }
a:hover { color: #b8791a; }

html[data-contrast="high"] a:hover { color: #000; text-decoration: underline; }

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

html[data-contrast="high"] :focus-visible { outline: 4px solid #000; outline-offset: 4px; }

@keyframes rise {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translateY(-420px) scale(1.1); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 3. Utilities ------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: .6rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  z-index: 80;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-mid { padding-block: clamp(2rem, 5vw, 4rem); }
.section-taps { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }

.section-foam { background: var(--foam); }
.section-paper { background: var(--paper); }
.section-coral { background: var(--coral); }
.section-deep { background: var(--deep); color: var(--bg); }
.section-deep a:hover { color: var(--coral); }

/* 4. Type ------------------------------------------------------------------ */

.h-display { font-family: var(--font-display); }

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 1.2rem;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1;
  margin: 0 0 2rem;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 .5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--sea);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
}

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.muted { color: var(--muted); }

.link-underline {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-color: var(--coral);
}

.chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  background: var(--paper);
  color: var(--ink);
  padding: .3rem .7rem;
  border-radius: 12px;
  transform: rotate(-2deg);
  display: inline-block;
}

/* 5. Buttons --------------------------------------------------------------- */

.btn {
  --btn-tint: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .95rem 1.6rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 0 color-mix(in oklab, var(--btn-tint) 65%, black);
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }

.btn-coral { --btn-tint: var(--coral); background: var(--coral); color: var(--ink); }
.btn-coral:hover { color: var(--ink); transform: translateY(-3px) rotate(-1.5deg); }

.btn-ink { --btn-tint: var(--ink); background: var(--ink); color: var(--bg); }
.btn-ink:hover { color: var(--bg); }

.btn-sea { --btn-tint: var(--sea); background: var(--sea); color: #fff; }
.btn-sea:hover { color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  padding: .85rem 1.5rem;
  box-shadow: none;
}
.btn-outline:hover { background: var(--foam); color: var(--ink); }

.btn-sm { padding: .7rem 1.2rem; font-size: .95rem; box-shadow: 0 4px 0 color-mix(in oklab, var(--btn-tint) 65%, black); }
.btn-outline.btn-sm { padding: .6rem 1.1rem; box-shadow: none; }

/* 6. Reveal animation ------------------------------------------------------ */

@property --reveal-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

[data-reveal] { transform: translateY(var(--reveal-y, 0px)); }

[data-reveal].reveal-ready {
  opacity: 0;
  --reveal-y: 26px;
  transition:
    opacity .7s ease var(--reveal-delay, 0ms),
    --reveal-y .8s cubic-bezier(.2, .9, .3, 1) var(--reveal-delay, 0ms);
}
[data-reveal].reveal-ready.is-in { opacity: 1; --reveal-y: 0px; }

[data-reveal]:nth-child(4n+1) { --reveal-delay: 0ms; }
[data-reveal]:nth-child(4n+2) { --reveal-delay: 70ms; }
[data-reveal]:nth-child(4n+3) { --reveal-delay: 140ms; }
[data-reveal]:nth-child(4n+4) { --reveal-delay: 210ms; }

/* 7. Header and nav -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--deep);
  color: var(--bg);
  border-bottom: 6px solid var(--coral);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: .7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--coral); }

.brand-mark {
  display: block;
  border-radius: 50%;
  background: var(--paper);
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.05;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: .95rem;
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--coral); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  background: transparent;
  color: inherit;
  border: 2.5px solid currentColor;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  padding: .45rem .8rem;
  cursor: pointer;
}
.nav-toggle:hover { color: var(--coral); }

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 18px;
  flex: none;
}
.nav-toggle-bars span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}

.header-cta { flex: none; }

/* 8. Hero, bubbles, mascot ------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  max-width: 34ch;
  margin: 0 0 2rem;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.hl {
  color: var(--paper);
  background: var(--deep);
  padding: 0 .25em;
  display: inline-block;
  transform: rotate(-2deg);
  transition: transform .3s var(--spring);
}
.hl:hover { transform: rotate(1deg) scale(1.04); }

.mascot-stage { position: relative; min-height: 340px; }

.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles span {
  position: absolute;
  bottom: 10%;
  border-radius: 50%;
  border: 2px solid var(--sea);
  opacity: 0;
  animation-name: rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.bubbles span:nth-child(1) { left: 18%; width: 8px;  height: 8px;  animation-duration: 6s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 27%; width: 14px; height: 14px; animation-duration: 7s; animation-delay: .9s; }
.bubbles span:nth-child(3) { left: 36%; width: 20px; height: 20px; animation-duration: 8s; animation-delay: 1.8s; }
.bubbles span:nth-child(4) { left: 45%; width: 8px;  height: 8px;  animation-duration: 9s; animation-delay: 2.7s; }
.bubbles span:nth-child(5) { left: 54%; width: 14px; height: 14px; animation-duration: 6s; animation-delay: 3.6s; }
.bubbles span:nth-child(6) { left: 63%; width: 20px; height: 20px; animation-duration: 7s; animation-delay: 4.5s; }
.bubbles span:nth-child(7) { left: 72%; width: 8px;  height: 8px;  animation-duration: 8s; animation-delay: 5.4s; }
.bubbles span:nth-child(8) { left: 81%; width: 14px; height: 14px; animation-duration: 9s; animation-delay: 6.3s; }

.mascot {
  position: relative;
  transform-origin: 50% 60%;
  will-change: transform;
}
.mascot svg {
  width: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 18px 24px color-mix(in oklab, var(--sea) 30%, transparent));
}
.mascot #eye {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .09s;
}
.mascot #eye.blink { transform: scaleY(.08); }

/* 9. Marquee --------------------------------------------------------------- */

.marquee {
  background: var(--deep);
  color: var(--coral);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .7rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 6px solid var(--coral);
  border-bottom: 6px solid var(--coral);
}

.marquee-track {
  display: inline-flex;
  animation: drift 28s linear infinite;
  will-change: transform;
}

.marquee-word {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.marquee-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  display: inline-block;
  flex: none;
}

/* 10. Story and pillars ---------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.story-grid .h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0 0 1rem; }
.story-copy p { margin: 0 0 1.1rem; }
.story-copy p:last-child { margin-bottom: 0; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 .4rem;
  display: inline-block;
  transition: transform .3s var(--spring);
}
.pillar:nth-child(odd) h3:hover { transform: rotate(-2deg); }
.pillar:nth-child(even) h3:hover { transform: rotate(2deg); }
.pillar p { margin: 0; color: var(--muted); text-wrap: pretty; }

/* 11. Taps table ----------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.section-head .h2 { margin: 0; }
.section-head p { margin: 0; opacity: .85; max-width: 38ch; text-wrap: pretty; }

.taps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.taps-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.taps-table thead tr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.taps-table tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 4rem);
}

.tap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1.5px dotted color-mix(in oklab, var(--bg) 35%, transparent);
  transform: translateY(var(--reveal-y, 0px));
  transition: transform .2s;
}
.tap:hover { transform: translateY(0) translateX(6px); }

.tap-glass { padding: 0; }

.glass {
  display: block;
  width: 22px;
  height: 38px;
  border: 2.5px solid var(--bg);
  border-top: none;
  border-radius: 0 0 6px 6px;
  position: relative;
  overflow: hidden;
  background: color-mix(in oklab, var(--bg) 10%, transparent);
}
.glass-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--coral);
  transition: height .8s cubic-bezier(.2, .8, .2, 1);
}

.tap-name {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.15;
  padding: 0;
}
.tap-style {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .95rem;
  opacity: .8;
}
.tap-note { font-style: normal; color: var(--coral); }

.tap-abv {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding: 0;
}

/* 12. Plates --------------------------------------------------------------- */

.plates {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}
.plate {
  padding: 1.2rem 0;
  border-top: 2.5px solid var(--ink);
}
.plate dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: .3rem;
}
.plate dd { margin: 0; color: var(--muted); text-wrap: pretty; }

/* 13. Beer club card ------------------------------------------------------- */

.club-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.card-navy {
  background: var(--sea);
  color: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  transform: translateY(var(--reveal-y, 0px)) rotate(-2deg);
  box-shadow: 0 24px 40px -20px color-mix(in oklab, var(--sea) 60%, transparent);
  transition: transform .4s var(--spring);
}
.card-navy:hover { transform: translateY(0) rotate(0deg) scale(1.02); }

.card-navy-kicker {
  margin: 0;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .9;
}
.card-navy-title {
  margin: .3rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1;
}
.card-navy-price {
  margin: 1.2rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}
.card-navy-price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  opacity: .9;
}
.card-navy-foot {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-navy-no {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .06em;
}
.card-navy-chip {
  width: 44px;
  height: 28px;
  border-radius: 8px;
  background: var(--foam);
  opacity: .9;
  flex: none;
}

.club-copy .h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 .6rem; }
.club-copy .muted { margin: 0 0 1.2rem; }

.dot-list {
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem 1.5rem;
  font-weight: 600;
}
.dot-list li {
  display: flex;
  gap: .6rem;
  align-items: baseline;
}
.dot-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
  transform: translateY(-1px);
}

/* 14. Events --------------------------------------------------------------- */

.events-intro { margin: 0 0 2.5rem; color: var(--muted); max-width: 52ch; }

.weekly-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.weekly {
  border-top: 2.5px solid var(--ink);
  padding-top: 1rem;
}
.weekly-day {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--deep);
  text-transform: uppercase;
}
.weekly-title { margin: .5rem 0 .2rem; font-weight: 700; font-size: 1.2rem; }
.weekly-detail { margin: 0; color: var(--muted); text-wrap: pretty; }

.events-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
}

.dated-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
}
.dated {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.dated-body { margin: 0; }

/* 15. Gallery tiles -------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 1.2rem;
}

.tile {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--sand) 0 12px, var(--paper) 12px 24px);
  position: relative;
  transform: translateY(var(--reveal-y, 0px)) rotate(var(--tilt, 0deg));
  transition: transform .4s var(--spring);
  box-shadow: 0 14px 30px -18px color-mix(in oklab, var(--ink) 50%, transparent);
}
.tile:hover { transform: translateY(0) rotate(0deg) scale(1.03); z-index: 2; }

.tile-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .8rem;
  color: var(--muted);
}

.tile img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile img.is-broken { display: none; }

.tile-1 { grid-column: span 2; grid-row: span 2; }
.tile-2, .tile-3 { grid-column: span 2; grid-row: span 1; }
.tile-5, .tile-6 { grid-column: span 3; grid-row: span 1; }
.tile-4 { grid-column: span 4; grid-row: span 1; }

/* 16. Visit block ---------------------------------------------------------- */

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.visit-grid .h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 1rem;
}

.phone-link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: transform .3s var(--spring);
}
.phone-link:hover { transform: rotate(-2deg); color: var(--coral); }

.visit-address { font-style: normal; line-height: 1.5; margin: 0 0 .6rem; }

.hours {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem 1rem;
}
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

.visit-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* 17. Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--deep);
  color: var(--bg);
  padding-block: 1.75rem;
}

.footer-inner {
  display: flex;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: .95rem;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }

.footer-mark {
  display: block;
  background: var(--paper);
  border-radius: 14px;
  padding: .5rem;
  width: 84px;
  height: auto;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--coral); }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: inherit;
}
.social svg { display: block; width: 22px; height: 22px; }
.social:hover { color: var(--coral); }

/* 18. Comfort widget ------------------------------------------------------- */

.comfort {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: .8rem;
}

.comfort-panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 1.2rem 1.3rem;
  width: min(320px, calc(100vw - 2.4rem));
  box-shadow: 0 24px 50px -20px color-mix(in oklab, var(--ink) 55%, transparent);
  border: 2px solid var(--ink);
}
.comfort-panel[hidden] { display: none; }
.comfort-panel .comfort-title {
  margin: 0 0 .2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.comfort-panel .comfort-note { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.comfort-switches { display: grid; gap: .6rem; }

.switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  padding: .5rem 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.switch-track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 25%, transparent);
  position: relative;
  flex: none;
  transition: background .2s;
}
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(0);
  transition: transform .2s;
}
.switch[aria-checked="true"] .switch-track { background: var(--coral); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(20px); }

.comfort-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.2rem .7rem .8rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--ink) 70%, transparent);
  animation: bob 3s ease-in-out infinite;
}
.comfort-toggle svg { display: block; flex: none; }

/* 19. Forms ---------------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form[hidden] { display: none; }

.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.input,
.textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: .7rem .9rem;
  width: 100%;
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }

.chips {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.chips legend { font-weight: 700; padding: 0 0 .4rem; }

.chip-choice {
  display: inline-flex;
  align-items: center;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: .45rem 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.chip-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-choice:hover { background: var(--foam); }
.chip-choice:has(:checked) { background: var(--ink); color: var(--bg); }
.chip-choice:has(:focus-visible) { outline: 3px solid var(--sea); outline-offset: 4px; }

.form-hint { margin: 0; font-size: .9rem; color: var(--muted); }

.form-status {
  margin: 0;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
}
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: var(--foam); border-color: var(--deep); color: var(--deep); }
.form-status[data-state="error"] { background: var(--paper); border-color: #8f2f22; color: #8f2f22; }

/* 20. Subpages ------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.page-hero .h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero .lead { max-width: 52ch; color: var(--muted); margin: 0; }

.menu-section { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.menu-section .h2 { margin-bottom: .6rem; }
.menu-section .lead { margin: 0 0 1.6rem; max-width: 60ch; }

.menu-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem clamp(2rem, 5vw, 5rem);
}
.menu-item { padding: 1rem 0; border-top: 2.5px solid var(--ink); }
.menu-item dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin-bottom: .2rem;
}
.menu-item dd { margin: 0; color: var(--muted); text-wrap: pretty; }

.menu-taps { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.menu-tap { border-bottom: 1.5px dotted color-mix(in oklab, var(--ink) 35%, transparent); padding-bottom: .6rem; }

/* 21. Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .brand { order: 1; }
  .header-cta { order: 3; flex-basis: 100%; }
  .nav {
    order: 4;
    display: none;
    flex-basis: 100%;
    margin-left: 0;
    flex-direction: column;
    gap: .9rem;
    padding: .6rem 0 .4rem;
  }
  .nav.is-open { display: flex; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .mascot-stage { min-height: 260px; }

  .story-grid,
  .club-grid,
  .visit-grid,
  .plates,
  .pillars,
  .weekly-list,
  .dated-list,
  .dot-list,
  .menu-list,
  .form-row { grid-template-columns: minmax(0, 1fr); }

  .taps-table tbody { grid-template-columns: minmax(0, 1fr); }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
  }
  .tile-1, .tile-2, .tile-3, .tile-4, .tile-5, .tile-6 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .tile-1 { grid-column: span 2; grid-row: span 2; }
  .tile-4 { grid-column: span 2; }
}

@media (max-width: 560px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1rem; }
  .header-inner { gap: .7rem; }
  .comfort { right: .8rem; bottom: .8rem; }
  .marquee { font-size: 1.1rem; }
  .footer-inner { justify-content: flex-start; }
}

/* 22. Menu and contact additions -------------------------------------------- */

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  margin: 0;
  min-height: 1.1em;
  font-size: .9rem;
  color: #8f2f22;
}
.field-error:empty { display: none; }

.form-status-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: .3rem;
}
.form-status-line { margin: 0; font-weight: 400; }


/* 23. Story photo: the cheers shot held in an arch-top frame beside the story copy */
.story-photo {
  margin: 1.6rem 0 0;
  position: relative;
  max-width: 360px;
}
.story-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 14px 14px;
  box-shadow: 0 18px 34px -20px color-mix(in oklab, var(--ink) 55%, transparent);
  transform: rotate(-2deg);
  transition: transform .4s var(--spring);
}
.story-photo::before {
  content: "";
  position: absolute;
  inset: -12px -12px 30px -12px;
  border: 2px solid var(--coral);
  border-radius: 999px 999px 18px 18px;
  transform: rotate(2deg);
  pointer-events: none;
}
.story-photo:hover img { transform: rotate(0deg) scale(1.02); }
.story-photo figcaption {
  margin-top: 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 900px) {
  .story-photo { max-width: 280px; margin: 1rem 0 .5rem; }
}

/* 24. Order online dialog: an on-brand preview that hands off to GoTab ------- */

html.has-dialog { overflow: hidden; }

.order-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  overflow: visible;
}
.order-dialog::backdrop {
  background: color-mix(in oklab, var(--ink, #14352c) 55%, transparent);
  backdrop-filter: blur(4px);
}

.order-card {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 24px 50px -20px color-mix(in oklab, var(--ink) 55%, transparent);
  position: relative;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.order-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.order-close svg { display: block; }
.order-close:hover { background: var(--deep); transform: rotate(-6deg); }
.order-close:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; border-radius: 50%; }

.order-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 .7rem;
  padding-right: 3rem;
}

.order-status {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.2rem;
  font-weight: 700;
  color: var(--deep);
}
.order-status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.order-menu {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(1.2rem, 3vw, 2rem);
}
.order-menu li {
  padding: .5rem 0;
  border-bottom: 1.5px dotted color-mix(in oklab, var(--ink) 35%, transparent);
}
.order-menu strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
}
.order-menu span {
  font-size: .95rem;
  color: var(--muted);
}

.order-taps { margin: 0 0 1.3rem; }

.order-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.order-cta .btn { flex: 1 1 auto; white-space: normal; text-align: center; }

.order-note {
  margin: 1.2rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}

@media (min-width: 560px) {
  .order-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@keyframes order-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
.order-dialog[open] .order-card { animation: order-in .28s var(--spring); }
