/* ==========================================================================
   THE BLACK DOG · CHILMARK — stylesheet
   A modern-heritage design system: ink, parchment, bottle green & brass.
   ========================================================================== */

:root {
  --ink: #191512;
  --ink-soft: #2a241f;
  --parchment: #f5efe2;
  --parchment-deep: #efe6d3;
  --stone: #e8dfc9;
  --cream: #f2e8d2;
  --green: #24422f;
  --green-deep: #1a3123;
  --brass: #b5892e;
  --brass-bright: #d4a441;
  --amber: #c9822e;
  --rust: #8c3b2e;
  --line: rgba(25, 21, 18, 0.18);
  --line-cream: rgba(242, 232, 210, 0.22);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Fraunces", Georgia, serif;
  --font-ui: "Avenir Next", "Helvetica Neue", -apple-system, "Segoe UI", sans-serif;
  --font-type: "Courier Prime", "Courier New", monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 38rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a, button { -webkit-tap-highlight-color: rgba(181, 137, 46, 0.25); }

::selection { background: var(--brass); color: var(--ink); }

/* Film-grain overlay for that printed feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.display {
  font-family: var(--font-display);
  font-weight: 570;
  font-variation-settings: "opsz" 120;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 420;
  color: var(--brass);
}
.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  max-width: var(--measure);
}
.typewriter {
  font-family: var(--font-type);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ---------- Dog marks (the pub's own artwork, tinted via CSS mask) ---------- */
.dogmark {
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.dogmark--head { -webkit-mask-image: url("../assets/dog-head.png"); mask-image: url("../assets/dog-head.png"); aspect-ratio: 765 / 480; }
.dogmark--walk { -webkit-mask-image: url("../assets/dog-trot.png"); mask-image: url("../assets/dog-trot.png"); aspect-ratio: 357 / 267; }
.dogmark--sit { -webkit-mask-image: url("../assets/dog-sit-r.png"); mask-image: url("../assets/dog-sit-r.png"); aspect-ratio: 258 / 342; }
.dogmark--lie { -webkit-mask-image: url("../assets/dog-lie.png"); mask-image: url("../assets/dog-lie.png"); aspect-ratio: 444 / 216; }
.dogmark--sitbig { -webkit-mask-image: url("../assets/dog-sit-big.png"); mask-image: url("../assets/dog-sit-big.png"); aspect-ratio: 315 / 522; }
.dogmark--flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s, color 0.25s, border-color 0.25s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn--solid:hover { background: var(--brass-bright); border-color: var(--brass-bright); }
.btn--ghost-cream { color: var(--cream); }
.btn--ghost-cream:hover { background: var(--cream); color: var(--ink); }
.btn--ghost-ink { color: var(--ink); }
.btn--ghost-ink:hover { background: var(--ink); color: var(--cream); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  color: var(--cream);
  transition: padding 0.35s ease;
}
/* the scrolled backdrop lives on a pseudo-element: a backdrop-filter on the header
   itself would become the containing block for the fixed mobile panel below */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(25, 21, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-cream);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { padding-block: 0.6rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand .dogmark { width: 2.6rem; height: 2.2rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  color: var(--brass-bright);
  white-space: nowrap;
}
@media (max-width: 420px) { .brand-name small { letter-spacing: 0.28em; } }
@media (max-width: 340px) { .brand-name small { display: none; } }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}
.site-nav > a:not(.btn) {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.4rem;
  position: relative;
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-nav > a:not(.btn):hover::after,
.site-nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav .btn { padding: 0.7rem 1.3rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
}
.nav-toggle span {
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-foot { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; position: relative; z-index: 3; }
  .brand { position: relative; z-index: 2; }
  html:has(body.nav-locked), body.nav-locked { overflow: hidden; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(60% 40% at 50% 110%, rgba(201, 130, 46, 0.22), transparent 70%),
      var(--ink);
    counter-reset: navitem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

  /* the links become a menu card: numbered, in the display face, ruled */
  .site-nav > a:not(.btn) {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5em 0;
    border-bottom: 1px solid var(--line-cream);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    font-weight: 570;
    font-variation-settings: "opsz" 120;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-transform: none;
    white-space: normal;
    counter-increment: navitem;
  }
  .site-nav > a:not(.btn)::before {
    content: counter(navitem, decimal-leading-zero);
    min-width: 1.6rem;
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--brass-bright);
  }
  .site-nav > a:not(.btn)::after { display: none; }
  .site-nav > a[aria-current="page"] { color: var(--brass-bright); }
  .site-nav > .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.8rem;
    padding: 1.05rem 1.4rem;
    font-size: 0.82rem;
  }

  /* staggered entrance */
  .site-nav > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .site-nav.is-open > * { opacity: 1; transform: none; }
  .site-nav.is-open > :nth-child(1) { transition-delay: 0.06s; }
  .site-nav.is-open > :nth-child(2) { transition-delay: 0.11s; }
  .site-nav.is-open > :nth-child(3) { transition-delay: 0.16s; }
  .site-nav.is-open > :nth-child(4) { transition-delay: 0.21s; }
  .site-nav.is-open > :nth-child(5) { transition-delay: 0.28s; }
  .site-nav.is-open > :nth-child(6) { transition-delay: 0.36s; }

  /* the useful bit on a phone: are they open, and how do I ring them */
  .nav-foot {
    display: block;
    margin-top: auto;
    padding-top: 2.2rem;
    color: rgba(242, 232, 210, 0.75);
  }
  .nav-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream);
  }
  .nav-status .dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #7bc47f; }
  .nav-status.is-closed .dot { background: var(--rust); }
  .nav-phone {
    display: block;
    width: fit-content;
    margin-top: 0.6rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 570;
    color: var(--cream);
    text-decoration: none;
  }
  .nav-address { margin-top: 0.35rem; font-size: 0.88rem; }
  .nav-address a { color: var(--brass-bright); text-decoration: none; }
  .nav-social {
    display: flex;
    gap: 1.4rem;
    margin-top: 1.1rem;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .nav-social a { color: rgba(242, 232, 210, 0.7); text-decoration: none; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  padding: 7rem var(--gutter) 5.5rem;
  overflow: hidden;
}
/* faint radial fire-glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 42% at 50% 108%, rgba(201, 130, 46, 0.24), transparent 70%),
    radial-gradient(40% 30% at 12% -6%, rgba(36, 66, 47, 0.5), transparent 70%),
    radial-gradient(40% 30% at 88% -6%, rgba(36, 66, 47, 0.5), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-est {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass-bright);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.hero-est::before, .hero-est::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--brass);
  opacity: 0.55;
}
.hero-title {
  font-size: clamp(3.4rem, 12.5vw, 9.5rem);
  margin: 1.6rem 0 0.8rem;
}
.hero-title .the {
  display: block;
  font-size: 0.22em;
  font-weight: 420;
  font-style: italic;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 0.5em;
}
.hero-sub {
  max-width: 34rem;
  margin-inline: auto;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(242, 232, 210, 0.82);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.2rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-cream);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 232, 210, 0.85);
}
.status-pill .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7bc47f;
  box-shadow: 0 0 0 0 rgba(123, 196, 127, 0.5);
  animation: pulse 2.4s infinite;
}
.status-pill.is-closed .dot { background: var(--rust); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(123, 196, 127, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(123, 196, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 196, 127, 0); }
}

/* the trotting dog along the hero baseline */
.hero-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.2rem;
  height: 1px;
  background: var(--line-cream);
}
.hero-dog {
  position: absolute;
  bottom: 3.25rem;
  left: 0;
  width: clamp(70px, 8vw, 100px);
  color: var(--cream);
  animation: trot 30s linear infinite;
  will-change: transform;
}
.hero-dog .bob { animation: bob 0.5s ease-in-out infinite alternate; }
.hero-dog .dogmark { width: 100%; }
@keyframes trot {
  from { transform: translateX(-20vw); }
  to   { transform: translateX(125vw); }
}
@keyframes bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-3px); }
}

.scroll-hint {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(242, 232, 210, 0.5);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  background: var(--green-deep);
  color: var(--cream);
  border-block: 1px solid rgba(242, 232, 210, 0.12);
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 1.2rem;
}
.marquee-track span::after {
  content: "✦";
  color: var(--brass-bright);
  padding-left: 1.2rem;
  letter-spacing: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Shared section scaffolding
   ========================================================================== */
.section { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.section-inner { max-width: 72rem; margin-inline: auto; }
.section--stone { background: var(--stone); }
.section--green { background: var(--green); color: var(--cream); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--parchment-deep { background: var(--parchment-deep); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .display { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 1.2rem; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ==========================================================================
   Story
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "copy photo"
    "copy plaques";
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.story-copy { grid-area: copy; }
.story-photo-wrap { grid-area: photo; }
.plaques { grid-area: plaques; }

/* the photograph, mounted on parchment and pinned like the plaques beside it */
.story-photo {
  position: relative;
  margin: 0;
  padding: 0.85rem 0.7rem 0.8rem;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(25, 21, 18, 0.12);
  transform: rotate(-1.4deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s;
}
@media (hover: hover) {
  .story-photo:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 22px 44px rgba(25, 21, 18, 0.16); }
}
.story-photo::before, .story-photo::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.8;
}
.story-photo::before { left: 0.45rem; }
.story-photo::after { right: 0.45rem; }
.story-photo img { width: 100%; height: auto; border-radius: 3px; }
.story-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  padding-inline: 0.15rem;
  font-size: 0.78rem;
  opacity: 0.7;
}
.story-copy p + p { margin-top: 1.2rem; }
.story-copy .drop::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.3em;
  line-height: 0.82;
  float: left;
  padding-right: 0.12em;
  color: var(--green);
}
.pull-quote {
  border-left: 3px solid var(--brass);
  padding-left: 1.4rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 460;
  font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.7rem);
  line-height: 1.4;
  color: var(--green-deep);
}
.pull-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}

/* museum plaques */
.plaques {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.plaque {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem 1.4rem 1.3rem;
  position: relative;
  box-shadow: 0 1px 0 rgba(25, 21, 18, 0.05);
}
.plaque::before, .plaque::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.7;
}
.plaque::before { left: 0.55rem; }
.plaque::after { right: 0.55rem; }
.plaque strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}
.plaque span {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  opacity: 0.75;
}

/* ==========================================================================
   The Bar — pump clips
   ========================================================================== */
.section--green .kicker { color: var(--brass-bright); }
.section--green .lede { color: rgba(242, 232, 210, 0.85); }

.pumps {
  display: grid;
  /* capped width so a short ale list still reads as pump clips, not billboards */
  grid-template-columns: repeat(auto-fit, minmax(15rem, 19rem));
  justify-content: center;
  gap: 1.6rem;
  align-items: stretch;
}
.pump {
  --clip-bg: var(--cream);
  --clip-ink: var(--ink);
  background: var(--clip-bg);
  color: var(--clip-ink);
  border-radius: 10rem 10rem 14px 14px;
  padding: 2.4rem 1.5rem 1.6rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
@media (hover: hover) {
  .pump:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3); }
}
/* the clip bracket */
.pump::before {
  content: "";
  position: absolute;
  top: -0.95rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.6rem;
  height: 1.5rem;
  border: 3px solid rgba(242, 232, 210, 0.55);
  border-bottom: 0;
  border-radius: 2rem 2rem 0 0;
}
.pump-brewery {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.65;
}
.pump-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 620;
  line-height: 1.05;
  margin: 0.5rem 0 0.7rem;
}
.pump-style {
  font-family: var(--font-type);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.pump-abv {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.pump--best  { --clip-bg: #8f4a1a; --clip-ink: var(--cream); }
.pump--gold  { --clip-bg: #dfae3c; }
.pump--stout { --clip-bg: #241c17; --clip-ink: var(--cream); }
.pump--pils  { --clip-bg: #e4dcae; }
.pump--lager { --clip-bg: #edd88b; }
.pump--cider { --clip-bg: var(--rust); --clip-ink: var(--cream); }

/* cask / keg / cider rails */
.pump-group { margin-top: 2.8rem; }
.section-head + .pump-group { margin-top: 0.6rem; }
.pump-rail {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.pump-rail::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-cream);
}
.pump-rail span {
  font-family: var(--font-type);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(242, 232, 210, 0.6);
}
/* a single card shouldn't stretch across the whole rail */
.pump-group .pumps { justify-content: start; }

.pump-tag {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.62;
}
/* optional brewery/cider artwork, dropped in when supplied */
.pump-img {
  width: 4.6rem;
  height: auto;
  margin: 0 auto 0.4rem;
  mix-blend-mode: multiply;
}
.pump--stout .pump-img,
.pump--cider .pump-img { mix-blend-mode: normal; }

.bar-note {
  margin-top: 2.6rem;
  max-width: 40rem;
  font-size: 0.95rem;
  color: rgba(242, 232, 210, 0.72);
}
.bar-note a { color: var(--brass-bright); white-space: nowrap; }
.bar-note a + a { margin-left: 0.9rem; }

/* ==========================================================================
   Kitchen — menu highlights
   ========================================================================== */
.menu-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 3.5rem;
  margin-bottom: 2.8rem;
}
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.dish h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.dish .price {
  font-family: var(--font-type);
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--rust);
  font-weight: 700;
}
.dish p {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.78;
  max-width: 32rem;
}
.kitchen-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}
.chip {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Rocky's Pizza
   ========================================================================== */
.pizza {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.pizza .display { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.pizza-stamp {
  position: relative;
  display: inline-block;
  margin-top: 2.6rem;
  padding: 1.5rem 2.4rem;
  border: 3px solid var(--rust);
  border-radius: 10px;
  transform: rotate(-3deg);
  color: #d9694f;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.7;
  box-shadow: inset 0 0 0 2px rgba(140, 59, 46, 0.25);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) { .pizza-stamp:hover { transform: rotate(-1deg) scale(1.03); } }
.pizza-note { margin-top: 2.2rem; color: rgba(242, 232, 210, 0.7); font-size: 0.95rem; }

/* ==========================================================================
   Dogs welcome
   ========================================================================== */
.dogs {
  text-align: center;
}
.dogs .display { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.dogs-sub { max-width: 34rem; margin: 1.4rem auto 0; }
.paw-row {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 2.6rem;
  color: var(--green);
  opacity: 0.85;
}
.paw-row svg { width: 1.6rem; height: auto; }
.paw-row svg:nth-child(even) { transform: rotate(14deg) translateY(-6px); }
.paw-row svg:nth-child(odd) { transform: rotate(-10deg); }

/* ==========================================================================
   Visit
   ========================================================================== */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.hours { border-top: 2px solid var(--ink); }
.hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.hours li.is-today {
  background: rgba(181, 137, 46, 0.14);
  margin-inline: -0.6rem;
  padding-inline: 0.8rem;
  border-radius: 4px;
}
.hours .day {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hours .time { font-family: var(--font-type); font-size: 0.85rem; text-align: right; }
.hours .time small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
.hours .note { color: var(--rust); font-weight: 700; }
.hours-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}
.visit-contacts { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.visit-contacts a {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 570;
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.25s, color 0.25s;
}
.visit-contacts a:hover { border-color: var(--brass); color: var(--green); }
.visit-facilities { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

/* Routes: the two numbers people actually want */
.routes { border-top: 2px solid var(--ink); }
.routes li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.routes-val {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 620;
  line-height: 1;
  color: var(--green);
  min-width: 5.2rem;
}
.routes-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* what3words */
.w3w { margin-top: 1.6rem; }
.w3w a {
  font-family: var(--font-type);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.w3w a:hover { border-color: var(--rust); }
.w3w-slashes { color: var(--rust); }
.w3w small {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Map */
.map-card {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(25, 21, 18, 0.08);
}
.map-embed {
  /* width must win: with only min-height set, aspect-ratio sizes the *width*
     from the 300px floor and overflows the card on narrow screens */
  width: 100%;
  aspect-ratio: 2.2 / 1;
  min-height: 300px;
  background: var(--stone);
}
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-embed-note {
  padding: 0.7rem 1.4rem 0;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}
.map-caption {
  padding: 1.1rem 1.4rem 1.3rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}
.map-caption .btn { padding: 0.6rem 1.2rem; font-size: 0.7rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2.4rem;
  position: relative;
  overflow: hidden;
}
.footer-inner { max-width: 72rem; margin-inline: auto; position: relative; }
.footer-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 2.6rem;
}
.footer-word em { font-style: italic; color: var(--brass-bright); font-weight: 420; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2.2rem;
  padding-block: 2.4rem;
  border-block: 1px solid var(--line-cream);
}
.footer-cols h4 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1rem;
}
.footer-cols li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-cols a { text-decoration: none; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.footer-cols a:hover { opacity: 1; color: var(--brass-bright); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(242, 232, 210, 0.55);
}
.footer-meta .typewriter { font-size: 0.75rem; }
.footer-dog {
  position: absolute;
  right: 0;
  top: -1rem;
  width: clamp(90px, 12vw, 150px);
  color: rgba(242, 232, 210, 0.2);
  pointer-events: none;
}

/* ==========================================================================
   Menu page
   ========================================================================== */
.menu-hero {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 9.5rem var(--gutter) 4.5rem;
  position: relative;
  overflow: hidden;
}
.menu-hero .display { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.menu-hero .lede { margin: 1.4rem auto 0; color: rgba(242, 232, 210, 0.8); }
.menu-hero .hero-est { justify-content: center; }
.hero-est--services span + span::before {
  content: "·";
  margin-right: 1.1rem;
  color: var(--brass);
  opacity: 0.8;
}

.menu-nav {
  position: sticky;
  top: 3.6rem;
  z-index: 500;
  background: rgba(245, 239, 226, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  /* auto margins centre it when there's room; a centred flex row that overflows
     clips its first item and can't be scrolled back to */
  justify-content: flex-start;
  gap: clamp(0.8rem, 3vw, 2.4rem);
  padding: 0.85rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a:first-child { margin-left: auto; }
.menu-nav a:last-child { margin-right: auto; }
.menu-nav a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}
.menu-nav a:hover { opacity: 1; color: var(--rust); }

.menu-section { padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter); }
.menu-section-inner { max-width: 46rem; margin-inline: auto; }
.menu-section-head {
  text-align: center;
  margin-bottom: 2.8rem;
}
.menu-section-head .display { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.menu-section-head .typewriter { margin-top: 0.7rem; opacity: 0.65; display: block; }
.menu-divider {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--green);
}
.menu-divider .dogmark, .menu-divider svg { height: 2.8rem; width: auto; }
.menu-divider svg { width: 2.4rem; }
.menu-list .dish h3 { font-size: 1.22rem; }
.dish .leader {
  flex: 1;
  border-bottom: 2px dotted rgba(25, 21, 18, 0.3);
  transform: translateY(-0.25em);
  margin-inline: 0.2rem;
  min-width: 2rem;
}
.dish-row { display: flex; align-items: baseline; gap: 0.2rem; }
.menu-note {
  max-width: 46rem;
  margin: 3rem auto 0;
  text-align: center;
  padding: 1.4rem 1.6rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-family: var(--font-type);
  font-size: 0.82rem;
  line-height: 1.7;
}
.menu-cta-strip {
  text-align: center;
  padding: 3.5rem var(--gutter) 4.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .story-grid, .visit-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-areas: "photo" "copy" "plaques"; }
  .story-photo { transform: rotate(-0.8deg); }
  .menu-highlights { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .plaques { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* "Est. 15th Century · Wiltshire" wrapped onto two rows with its rules; keep
     it to one line and let the rules take whatever width is left */
  .hero-est { font-size: 0.64rem; letter-spacing: 0.22em; gap: 0.8rem; white-space: nowrap; }
  .hero-est::before, .hero-est::after { flex: 1; width: auto; min-width: 0.75rem; }
  /* the menu page's three services wrap as whole labels, no rules, no dots */
  .hero-est--services { flex-wrap: wrap; row-gap: 0.45rem; column-gap: 1.2rem; }
  .hero-est--services::before, .hero-est--services::after { display: none; }
  .hero-est--services span + span::before { content: none; margin: 0; }

  /* a single column of pump clips should fill it, not sit left with a dead strip */
  .pumps { grid-template-columns: minmax(0, 1fr); }

  /* the rotated stamp was 4px wider than its container and clipped at the corners */
  .pizza-stamp { padding: 1.2rem 1.4rem; font-size: 0.9rem; letter-spacing: 0.18em; max-width: 100%; }

  /* long dish names wrap: keep the leader and price on the name's last line, not
     its first, so "Classic Chicken ····· £15 / Caesar Salad" reads properly */
  .dish { align-items: end; }
  .dish-row { align-items: flex-end; }
  .dish .leader { transform: translateY(-0.3em); }

  /* the email broke mid-word ("…chilmark.co / m"); size it to fit, and if it
     still can't, the only break allowed is after the @ (a <wbr> in the markup) */
  .visit-contacts a { font-size: clamp(1rem, 4.8vw, 1.25rem); overflow-wrap: normal; }
}
@media (max-width: 360px) {
  .hero-est { font-size: 0.58rem; letter-spacing: 0.18em; }
  .hero-ctas .btn { font-size: 0.72rem; letter-spacing: 0.1em; padding-inline: 1.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero-dog, .hero-dog .bob, .status-pill .dot { animation: none !important; }
  .hero-dog { left: 8%; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Print (menu page mainly) ---------- */
@media print {
  body::after, .site-header, .marquee, .menu-nav, .menu-cta-strip, .site-footer, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .menu-hero { background: #fff; color: #000; padding: 1cm 0 0.5cm; }
  .menu-hero .hero-est, .menu-hero .lede { color: #000; }
  .menu-section { padding: 0.4cm 0; }
  .dish { break-inside: avoid; }
}
