/* The Bull's Head, Pratt's Bottom – preview site
   Palette carried over from the pub's own brand (brown / tan / burgundy / cream), deepened
   so cream text on brown clears WCAG AA at body size. */

:root {
  --brown:      #2F211D;   /* darkest ground, page background for dark sections */
  --brown-mid:  #3C2B28;   /* the pub's own brown */
  --brown-soft: #4B3733;
  --tan:        #C3B69A;   /* the pub's tan, warmed slightly */
  --tan-bright: #DBCFB4;
  --burgundy:   #7A2831;
  --burgundy-lt:#93343E;
  --cream:      #F6F1E7;
  --paper:      #FBF8F2;
  --ink:        #241A17;
  --ink-soft:   #5C4A44;
  --rule:       rgba(47, 33, 29, 0.16);
  --rule-light: rgba(246, 241, 231, 0.18);

  --display: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  --body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: the width/height attributes on every <img> reserve the right
   aspect ratio before the file arrives, but without this the attribute height also wins over
   any CSS width and the image renders stretched. */
img { max-width: 100%; height: auto; display: block; }

/* Anchor targets clear the sticky header instead of landing underneath it. */
[id] { scroll-margin-top: 84px; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--burgundy-lt);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible, .footer :focus-visible {
  outline-color: var(--tan-bright);
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cream); color: var(--ink);
  padding: 0.75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ── Type ─────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 0.9rem;
}
.on-dark .eyebrow { color: var(--tan); }

.h-section { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); }
.on-dark .lede { color: rgba(246, 241, 231, 0.78); }

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.85rem;
  border: 1px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-lt); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-ghost, .hero .btn-ghost, .footer .btn-ghost { color: var(--cream); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover, .footer .btn-ghost:hover {
  background: var(--cream); color: var(--brown);
}

/* ── Header ───────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brown);
  border-bottom: 1px solid var(--rule-light);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}
.site-header .mark { width: 132px; flex: none; }
.site-header .mark img { width: 100%; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none; color: var(--cream);
  padding: 0.4rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--tan); }
.nav .btn { padding: 0.7rem 1.35rem; border-bottom: 0; }
.nav .btn:hover { border-bottom-color: transparent; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-header .wrap { min-height: 60px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brown); border-bottom: 1px solid var(--rule-light);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--rule-light); }
  .nav .btn { margin-top: 1rem; text-align: center; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.55rem;
    margin-left: auto;
    background: none; border: 1px solid var(--rule-light); color: var(--cream);
    font-family: var(--body); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.6rem 0.95rem; cursor: pointer;
  }
  .header-call { display: none; }
}

.header-call {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--tan); text-decoration: none; white-space: nowrap;
}
.header-call:hover { color: var(--cream); }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: grid; align-items: end;
  background: var(--brown);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(29, 20, 17, 0.92) 0%, rgba(29, 20, 17, 0.55) 45%, rgba(29, 20, 17, 0.35) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(2.5rem, 6vw, 5rem); }

.hero-inner { max-width: 44rem; }
.hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.hero h1 .sub {
  display: block;
  font-family: var(--body);
  font-size: clamp(0.72rem, 0.65rem + 0.3vw, 0.85rem);
  font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--tan); margin-bottom: 1rem;
}
.hero p { color: rgba(246, 241, 231, 0.85); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }

.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid var(--rule-light);
  color: rgba(246, 241, 231, 0.85);
  margin-bottom: 1.4rem;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-open { color: #9FD3A4; border-color: rgba(159, 211, 164, 0.4); }
.status.is-closed { color: var(--tan); }

/* ── Today strip ──────────────────────────────────────────────── */

.strip {
  background: var(--brown-mid);
  color: var(--cream);
  border-bottom: 1px solid var(--rule-light);
}
.strip .wrap {
  display: grid; gap: 0.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  padding-block: 1.25rem;
}
.strip dt {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--tan); margin-bottom: 0.2rem;
}
.strip dd { margin: 0; font-size: 0.98rem; }
.strip dd a { text-decoration: none; border-bottom: 1px solid var(--rule-light); }
.strip dd a:hover { border-bottom-color: var(--tan); }

/* ── Sections ─────────────────────────────────────────────────── */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section.on-dark { background: var(--brown); color: var(--cream); }
.section.tinted { background: var(--cream); }

.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.narrow-first { grid-template-columns: 0.85fr 1fr; }
  .split.narrow-last { grid-template-columns: 1fr 0.85fr; }
  .split .media-first { order: -1; }
}

.figure { position: relative; }
.figure img { width: 100%; }
.figure figcaption {
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft);
  margin-top: 0.7rem;
}
.on-dark .figure figcaption { color: rgba(246, 241, 231, 0.6); }

.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ── Menu ─────────────────────────────────────────────────────── */

.menu-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.menu-note {
  font-size: 0.86rem; color: var(--ink-soft); max-width: 26rem; margin: 0;
}
.on-dark .menu-note { color: rgba(246, 241, 231, 0.7); }

.menu-cols {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 780px) { .menu-cols { columns: 1; } }

.course { break-inside: avoid; margin-bottom: 2.6rem; }
.course h3 {
  font-family: var(--body);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--burgundy);
  padding-bottom: 0.6rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.on-dark .course h3 { color: var(--tan); border-bottom-color: var(--rule-light); }

.dish { margin-bottom: 1.1rem; }
.dish-line {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--display); font-size: 1.12rem; line-height: 1.25;
}
.dish-line .leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-0.22em);
  min-width: 1.5rem;
}
.on-dark .dish-line .leader { border-bottom-color: var(--rule-light); }
.dish-line .price { flex: none; font-variant-numeric: tabular-nums; }
.dish-desc {
  font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); margin: 0.25rem 0 0;
}
.on-dark .dish-desc { color: rgba(246, 241, 231, 0.68); }
.allergens {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.75; white-space: nowrap;
}
.on-dark .allergens { color: rgba(246, 241, 231, 0.55); }

.allergen-key {
  margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule);
  font-size: 0.82rem; color: var(--ink-soft);
}
.on-dark .allergen-key { border-top-color: var(--rule-light); color: rgba(246, 241, 231, 0.7); }
.allergen-key dl {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.4rem 1.5rem; margin: 0.9rem 0 0;
}
.allergen-key div { display: flex; gap: 0.5rem; }
.allergen-key dt { font-weight: 700; flex: none; }
.allergen-key dd { margin: 0; }

/* ── Roasts ───────────────────────────────────────────────────── */

.roasts { display: grid; gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; }
.roasts li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule-light);
}
.roasts li:last-child { border-bottom: 1px solid var(--rule-light); }
.roasts .name { font-family: var(--display); font-size: 1.3rem; flex: 1 1 12rem; }
.roasts .price { font-variant-numeric: tabular-nums; font-size: 0.95rem; color: var(--tan); white-space: nowrap; }
.roasts .desc { flex: 1 0 100%; font-size: 0.85rem; color: rgba(246, 241, 231, 0.65); margin: 0; }

/* ── Pods & gallery ───────────────────────────────────────────── */

.pod-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
}
.pod-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

.gallery {
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
}
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 3 / 2; }
@media (max-width: 560px) { .gallery .wide { grid-column: span 2; } }

/* ── Hours table ──────────────────────────────────────────────── */

.hours { width: 100%; border-collapse: collapse; margin-top: 1.75rem; }
.hours caption { text-align: left; font-size: 0.82rem; color: rgba(246, 241, 231, 0.65); padding-bottom: 1rem; }
.hours th, .hours td { padding: 0.85rem 0.5rem; text-align: left; border-bottom: 1px solid var(--rule-light); }
.hours thead th {
  font-family: var(--body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--tan);
}
.hours td { font-variant-numeric: tabular-nums; }
.hours td:first-child { font-family: var(--display); font-size: 1.1rem; }
.hours tr[data-today] { background: rgba(195, 182, 154, 0.12); }
.hours tr[data-today] td:first-child::after {
  content: 'Today';
  font-family: var(--body); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brown); background: var(--tan);
  padding: 0.15rem 0.4rem; margin-left: 0.6rem; vertical-align: 0.15em;
}
.hours .note { font-size: 0.78rem; color: rgba(246, 241, 231, 0.6); display: block; }

/* ── Contact ──────────────────────────────────────────────────── */

.contact-grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin-top: 2.5rem;
}
.contact-grid h3 {
  font-family: var(--body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--burgundy);
  margin-bottom: 0.85rem;
}
.contact-grid p { margin: 0 0 0.4rem; }
.contact-grid a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-grid a:hover { border-bottom-color: var(--burgundy); color: var(--burgundy); }
.contact-grid .big {
  font-family: var(--display); font-size: 1.5rem; border-bottom: 0;
}

/* ── Footer ───────────────────────────────────────────────────── */

.footer { background: var(--brown); color: rgba(246, 241, 231, 0.7); padding-block: 3.5rem 2.5rem; }
.footer .mark { width: 160px; margin-bottom: 1.75rem; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer h3 {
  font-family: var(--body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--tan);
  margin-bottom: 0.8rem;
}
.footer p { margin: 0 0 0.35rem; font-size: 0.92rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.social { display: flex; gap: 1.1rem; margin-top: 0.2rem; }
.social a { display: inline-flex; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-light);
  font-size: 0.78rem; letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
}

/* ── Reveal ───────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
