/* Bobby's Buddies
   Everything traces back to her Instagram banner (by @gooseandco.graphics) and Bobby's tartan harness.
   Colours measured from the banner: sky #6DABC1 (background), slate #335575 (line-drawn flowers).
   Type: Anton stands in for the banner's heavy condensed lettering, Instrument Sans for its plain sans. */

/* ---------- Fonts (self-hosted: no requests to Google, so no visitor IPs shared) ---------- */
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks (measured from the font files) so the swap doesn't shift the layout */
@font-face {
  font-family: "Anton Fallback";
  src: local("Impact");
  size-adjust: 94.45%;
  ascent-override: 124.54%;
  descent-override: 34.84%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial");
  size-adjust: 102.53%;
  ascent-override: 94.6%;
  descent-override: 24.38%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --sky: #6DABC1;
  --sky-pale: #A8CAD4;
  --slate: #335575;
  --ink: #14283A;
  --mist: #EAF3F6;
  --white: #FFFFFF;
  --ring: #9DB0BB;

  --display: "Anton", "Anton Fallback", Impact, "Arial Narrow", sans-serif;
  --font: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 64px;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1200px;
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Bobby's harness: pale aqua with navy bands and a white pinstripe, woven both ways */
  --tartan-stripes: transparent 0 6px, rgba(20, 40, 58, 0.72) 6px 14px, transparent 14px 18px,
    rgba(20, 40, 58, 0.42) 18px 20px, transparent 20px 29px, rgba(255, 255, 255, 0.85) 29px 30px, transparent 30px 36px;
  --tartan: repeating-linear-gradient(90deg, var(--tartan-stripes)), repeating-linear-gradient(180deg, var(--tartan-stripes)), var(--sky-pale);
}
@media (min-width: 1100px) {
  :root { --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--white);
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--white); }

.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}
.section--mist { background: var(--mist); }

/* Placeholders that must be replaced before launch: impossible to miss, easy to search for */
.todo {
  color: #6B3A00;
  background: #FFF1C9;
  outline: 1px dashed #B86E00;
  outline-offset: 1px;
  padding: 0 0.3em;
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Type ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.lead {
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  max-width: 46ch;
}
p { max-width: 62ch; }
.stack > * + * { margin-top: 1.1em; }

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--ink); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--white); color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sky);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(20, 40, 58, 0.16), 0 12px 24px -20px rgba(20, 40, 58, 0.8); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 2px var(--white);
}
.brand__name {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-header__end { display: flex; align-items: center; gap: 28px; }
.nav, .header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.25s var(--ease);
}
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 28px;
  background: var(--sky);
  border-top: 1px solid rgba(20, 40, 58, 0.16);
  box-shadow: 0 24px 30px -24px rgba(20, 40, 58, 0.7);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__links a {
  display: block;
  padding: 14px 0 12px;
  border-bottom: 1px solid rgba(20, 40, 58, 0.16);
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-menu .btn { width: 100%; margin-top: 24px; }

@media (min-width: 1100px) {
  .brand__logo { width: 50px; height: 50px; }
  .brand__name { font-size: 1.5rem; }
  .nav { display: flex; gap: 28px; }
  .nav a {
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    transition: background-size 0.25s var(--ease);
  }
  .nav a:hover { background-size: 100% 2px; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sky);
}
.hero__inner {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(28px, 7vw, 48px) var(--gutter) 0;
}
.hero__title { font-weight: inherit; }
.hero__welcome {
  display: block;
  font-weight: 700;
  font-size: clamp(1.0625rem, 0.9rem + 0.75vw, 1.375rem);
  line-height: 1.25;
}
/* Her name in her banner's lettering. White on sky is the brand's own logotype, so it sits outside contrast rules;
   every other piece of text on the sky is ink (5.9:1). */
.hero__wordmark {
  display: block;
  margin-top: 0.08em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.25rem, 1rem + 19vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}
.hero__line { display: block; }
.hero__tagline {
  margin-top: 18px;
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.3;
}
.hero__intro { margin-top: 4px; max-width: 34ch; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 26px;
}
.hero__scene img { width: 100%; }

/* Tablets: words on the left, Bobby on the right */
@media (min-width: 600px) and (max-width: 1099px) {
  .hero { --scene-w: 46vw; }
  .hero__inner {
    display: flex;
    align-items: center;
    min-height: calc(var(--scene-w) * 1750 / 1820);
    padding-block: 48px;
  }
  .hero__copy { max-width: calc(100vw - var(--scene-w) - 2 * var(--gutter) + 24px); }
  .hero__wordmark { font-size: clamp(4.5rem, 0.5rem + 9.6vw, 7.25rem); }
  .hero__scene {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: var(--scene-w);
  }
}

/* Desktop: the whole banner, with the words where its lettering was. The words shrink more slowly than the
   banner, so narrower screens get more sky above it (--headroom) to keep the button clear of the flowers. */
@media (min-width: 1100px) {
  .hero {
    --img-h: calc(100vw * 1790 / 4074);
    --headroom: max(48px, 280px - 17.5vw);
    min-height: calc(var(--img-h) + var(--headroom));
  }
  .hero__inner {
    width: auto;
    max-width: none;
    margin: 0 13% 0 50%;
    padding: clamp(40px, 9vw - 60px, 140px) 0 40px;
    text-align: center;
  }
  .hero__welcome { font-size: clamp(1.375rem, 0.6rem + 1.2vw, 2rem); }
  .hero__wordmark { font-size: calc(0.75rem + 8.2vw); }
  .hero__intro { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  /* the nav already links to the buddies, and the button alone fits between the flowers */
  .hero__ctas .link { display: none; }
  .hero__scene {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
  }
  /* soften the top edge so the banner's faint texture never ends in a line */
  .hero__scene img {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%);
    mask-image: linear-gradient(to bottom, transparent, #000 6%);
  }
}

/* One orchestrated moment: the wordmark settles in on load */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero__welcome { animation: bb-fade 0.6s var(--ease) both; }
  .hero__line { animation: bb-rise 0.8s 0.1s var(--ease) both; }
  .hero__line + .hero__line { animation-delay: 0.2s; }
  .hero__tagline, .hero__intro, .hero__ctas { animation: bb-fade 0.6s 0.45s var(--ease) both; }
}
@keyframes bb-rise { from { opacity: 0; transform: translateY(0.28em); } }
@keyframes bb-fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- The buddies (gallery) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 22px);
}
.buddy { container-type: inline-size; }
.buddy figure { position: relative; height: 100%; }
.buddy img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mist);
}
.buddy--wide { grid-column: 1 / -1; }
.buddy--wide img { aspect-ratio: auto; }

/* Name tags, like the ones on a collar: the dog's name where her caption gives it, otherwise her caption */
.tag {
  --inset: clamp(8px, 1.4vw, 14px);
  position: absolute;
  left: var(--inset);
  bottom: var(--inset);
  max-width: calc(100% - 2 * var(--inset));
  display: grid;
  gap: 2px;
  padding: 7px 12px 8px 27px;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: 0 100%;
  /* the punched hole */
  -webkit-mask: radial-gradient(circle at 14px 50%, transparent 4px, #000 4.6px);
  mask: radial-gradient(circle at 14px 50%, transparent 4px, #000 4.6px);
}
.tag__title {
  font-family: var(--display);
  font-size: clamp(0.9375rem, 0.82rem + 0.45vw, 1.1875rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tag__note {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--slate);
}
/* On small tiles the note would cover the dog, so only the name shows */
@container (max-width: 279px) {
  .tag__note { display: none; }
}
.gallery__more { margin-top: clamp(24px, 3vw, 36px); }

@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buddy--wide { grid-column: span 2; }
  /* The wide photo takes exactly the height of the portrait beside it */
  .buddy--wide img { position: absolute; inset: 0; height: 100%; }
  .buddy--narrow-on-desktop { grid-column: auto; }
  .buddy--narrow-on-desktop img { position: static; height: auto; aspect-ratio: 4 / 5; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
}
.about__photo { max-width: 460px; }
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__copy .h2 { margin-bottom: 22px; }
@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(48px, 7vw, 112px);
  }
  .about__photo { max-width: none; }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  gap: clamp(36px, 5vw, 48px);
}
.services__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.services__icon { flex: none; width: 1.15em; height: 1.15em; color: var(--slate); }
.services__list { border-top: 1px solid rgba(20, 40, 58, 0.14); }
.services__list li {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 40, 58, 0.14);
  font-weight: 600;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
}
.services__note { font-weight: 400; font-size: 0.9375rem; color: var(--slate); }
.services__more { margin-top: clamp(28px, 4vw, 40px); }
@media (min-width: 768px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 6vw, 96px);
  }
}

/* ---------- Qualifications: tags hanging off Bobby's tartan ---------- */
/* A size container, so the collar can run edge to edge in cqw (100vw would include the scrollbar) */
.quals { container-type: inline-size; }
.creds {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 46px;
}
/* Phones: a tartan lead runs down the left and each tag is clipped to it */
.creds::before {
  content: "";
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: 0;
  width: 22px;
  border-radius: 11px;
  background: var(--tartan);
  box-shadow: inset 0 0 0 1px rgba(20, 40, 58, 0.2);
}
.cred { position: relative; }
.cred::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -40px;
  width: 60px;
  height: 22px;
  margin-top: -11px;
  border: 3px solid var(--ring);
  border-radius: 50%;
}
.cred__tag {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  min-height: 76px;
  padding: 14px 18px 14px 40px;
  border-radius: 14px;
  background: var(--slate);
  color: var(--white);
  -webkit-mask: radial-gradient(circle at 18px 50%, transparent 6px, #000 6.6px);
  mask: radial-gradient(circle at 18px 50%, transparent 6px, #000 6.6px);
}
.cred__icon { flex: none; width: 30px; height: 30px; }
.cred__text { display: grid; gap: 4px; }
.cred__title {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cred__note {
  font-size: 0.875rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.86);
}
/* Achievement: a photo with a tag, and the story beside it */
.achievement {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  margin-top: clamp(64px, 9vw, 120px);
}
.achievement__photo { position: relative; }
.achievement__photo img { width: 100%; border-radius: var(--radius); }
.achievement__title {
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.35rem + 1.8vw, 2.875rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .achievement {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
  }
}

/* Wider screens: a collar across the page with the five tags hanging below it */
@media (min-width: 900px) {
  .creds {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 32px);
    padding: 62px 0 0;
  }
  .creds::before {
    top: 0;
    bottom: auto;
    left: 50%;
    width: 100cqw;
    height: 26px;
    margin-left: -50cqw;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 rgba(20, 40, 58, 0.25), inset 0 1px 0 rgba(20, 40, 58, 0.25);
  }
  .cred::after {
    top: -46px;
    left: 50%;
    width: 22px;
    height: 72px;
    margin: 0 0 0 -11px;
  }
  .cred__tag {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: 100%;
    min-height: 220px;
    padding: 50px clamp(12px, 1.6vw, 20px) 30px;
    text-align: center;
    transform: rotate(-1.5deg);
    transform-origin: 50% 0;
    -webkit-mask: radial-gradient(circle at 50% 22px, transparent 7px, #000 7.6px);
    mask: radial-gradient(circle at 50% 22px, transparent 7px, #000 7.6px);
  }
  .cred:nth-child(even) .cred__tag { transform: rotate(1.5deg); }
  .cred__icon { width: 40px; height: 40px; }
  .cred__title { font-size: clamp(1.25rem, 0.5rem + 1.6vw, 2rem); }
}

/* ---------- Book a walk ---------- */
.book {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 0;
  background: var(--sky);
  text-align: center;
}
.book__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.book .lead { margin-inline: auto; }
.book__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 26px;
  margin-top: 8px;
}
/* The meadow from her banner, growing up from the footer */
.book__meadow {
  position: relative;
  z-index: -1;
  width: 100%;
  margin-top: calc(-1 * clamp(0px, 7vw - 24px, 120px));
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%);
  mask-image: linear-gradient(to bottom, transparent, #000 32%);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--white);
}
.site-footer :focus-visible { outline-color: var(--white); }
.footer { display: grid; gap: 28px; }
.brand--footer { color: var(--white); }
.footer__tagline { margin-top: 12px; color: rgba(255, 255, 255, 0.8); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-weight: 600; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
@media (min-width: 768px) {
  .footer { grid-template-columns: 1fr auto; align-items: end; }
  .footer__links { justify-items: end; }
  .footer__legal {
    grid-column: 1 / -1;
    max-width: none;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

/* ---------- 404 ---------- */
.lost {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  padding-top: 64px;
  background: var(--sky);
  text-align: center;
}
.lost__copy {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding-inline: var(--gutter);
}
.lost .lead { margin-inline: auto; }
.lost .book__meadow { margin-top: 0; }

/* ---------- Christmas theme (added 19 Nov 2026, as on Akim's site) ----------
   Everything here only applies while <html> has class="xmas" (index and 404 pages), so the whole theme switches off
   by removing that class, and on again next year by adding it. Elements that only make sense at Christmas carry
   class="xmas-only". The decorations are pointer-events: none, hidden from screen readers, and still (no falling snow,
   no twinkling) for anyone who prefers reduced motion. */
html:not(.xmas) .xmas-only { display: none !important; }
.xmas {
  --xmas-red: #B0141E;    /* holly red: backgrounds with white text (7.1:1) */
  --xmas-red-hi: #FF7B72; /* red for text on the navy footer (6:1) */
  --xmas-pine: #1B4D35;   /* pine green: backgrounds with white text (9.7:1) */
  /* Bobby's tartan in Christmas colours: holly red with pine-green bands and a white pinstripe */
  --tartan-stripes: transparent 0 6px, rgba(16, 58, 36, 0.8) 6px 14px, transparent 14px 18px,
    rgba(16, 58, 36, 0.5) 18px 20px, transparent 20px 29px, rgba(255, 255, 255, 0.8) 29px 30px, transparent 30px 36px;
  --tartan: repeating-linear-gradient(90deg, var(--tartan-stripes)), repeating-linear-gradient(180deg, var(--tartan-stripes)), var(--xmas-red);
}

/* Fairy lights hanging from the bottom of the header; every other bulb twinkles */
.xmas .site-header::before,
.xmas .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
  margin-top: -4px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 120px 22px;
}
.xmas .site-header::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M0 4Q30 16 60 4Q90 16 120 4' fill='none' stroke='%2314283a' stroke-opacity='0.8' stroke-width='1.4'/%3E%3Crect x='13' y='7.6' width='4' height='3.4' rx='0.6' fill='%232b3d4f'/%3E%3Cellipse cx='15' cy='15' rx='3.3' ry='4.7' fill='%23e2362e'/%3E%3Cellipse cx='13.9' cy='13.2' rx='0.9' ry='1.5' fill='%23fff' fill-opacity='0.6'/%3E%3Crect x='43' y='7.6' width='4' height='3.4' rx='0.6' fill='%232b3d4f'/%3E%3Cellipse cx='45' cy='15' rx='3.3' ry='4.7' fill='%23f5b52e'/%3E%3Cellipse cx='43.9' cy='13.2' rx='0.9' ry='1.5' fill='%23fff' fill-opacity='0.6'/%3E%3Crect x='73' y='7.6' width='4' height='3.4' rx='0.6' fill='%232b3d4f'/%3E%3Cellipse cx='75' cy='15' rx='3.3' ry='4.7' fill='%231f9d57'/%3E%3Cellipse cx='73.9' cy='13.2' rx='0.9' ry='1.5' fill='%23fff' fill-opacity='0.6'/%3E%3Crect x='103' y='7.6' width='4' height='3.4' rx='0.6' fill='%232b3d4f'/%3E%3Cellipse cx='105' cy='15' rx='3.3' ry='4.7' fill='%23fff3d1' stroke='%23cfa54a' stroke-width='0.6'/%3E%3Cellipse cx='103.9' cy='13.2' rx='0.9' ry='1.5' fill='%23fff' fill-opacity='0.6'/%3E%3C/svg%3E"); }
.xmas .site-header::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cdefs%3E%3Cfilter id='b' x='-1' y='-1' width='3' height='3'%3E%3CfeGaussianBlur stdDeviation='2.4'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='15' cy='15' rx='5.2' ry='6.2' fill='%23ff5247' filter='url%28%23b%29'/%3E%3Cellipse cx='15' cy='15' rx='3.3' ry='4.7' fill='%23ff6a5c'/%3E%3Cellipse cx='13.9' cy='13.2' rx='1' ry='1.7' fill='%23fff' fill-opacity='0.85'/%3E%3Cellipse cx='75' cy='15' rx='5.2' ry='6.2' fill='%233ee08c' filter='url%28%23b%29'/%3E%3Cellipse cx='75' cy='15' rx='3.3' ry='4.7' fill='%2347d98f'/%3E%3Cellipse cx='73.9' cy='13.2' rx='1' ry='1.7' fill='%23fff' fill-opacity='0.85'/%3E%3C/svg%3E"); opacity: 0.95; }
/* hidden while the mobile menu is open, as it drops down where they hang */
.xmas .menu-open .site-header::before,
.xmas .menu-open .site-header::after { display: none; }

/* Falling snow: two layers at different sizes and speeds, over the page but under the header and menu */
.xmas body::before,
.xmas body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  z-index: 45;
  pointer-events: none;
  background-repeat: repeat;
  will-change: transform;
}
.xmas body::before { top: -420px; height: calc(100vh + 420px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='420' viewBox='0 0 340 420'%3E%3Ccircle cx='30' cy='40' r='2.2' fill='%23fff' fill-opacity='0.9'/%3E%3Ccircle cx='190' cy='90' r='1.6' fill='%23fff' fill-opacity='0.75'/%3E%3Ccircle cx='300' cy='150' r='2.6' fill='%23fff' fill-opacity='0.85'/%3E%3Ccircle cx='90' cy='210' r='1.8' fill='%23fff' fill-opacity='0.7'/%3E%3Ccircle cx='240' cy='280' r='2.4' fill='%23fff' fill-opacity='0.9'/%3E%3Ccircle cx='140' cy='350' r='1.5' fill='%23fff' fill-opacity='0.65'/%3E%3Ccircle cx='320' cy='390' r='1.9' fill='%23fff' fill-opacity='0.75'/%3E%3C/svg%3E"); background-size: 340px 420px; animation: xmas-snow-near 16s linear infinite; }
.xmas body::after { top: -560px; height: calc(100vh + 560px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='560' viewBox='0 0 520 560'%3E%3Ccircle cx='60' cy='70' r='3.2' fill='%23fff' fill-opacity='0.5'/%3E%3Ccircle cx='310' cy='30' r='3.8' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='450' cy='220' r='3' fill='%23fff' fill-opacity='0.55'/%3E%3Ccircle cx='170' cy='300' r='3.6' fill='%23fff' fill-opacity='0.4'/%3E%3Ccircle cx='390' cy='430' r='3.4' fill='%23fff' fill-opacity='0.5'/%3E%3Ccircle cx='40' cy='480' r='2.8' fill='%23fff' fill-opacity='0.45'/%3E%3C/svg%3E"); background-size: 520px 560px; animation: xmas-snow-far 30s linear infinite; }
@keyframes xmas-snow-near { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 420px, 0); } }
@keyframes xmas-snow-far { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 560px, 0); } }
@keyframes xmas-twinkle { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: no-preference) {
  .xmas .site-header::after { animation: xmas-twinkle 1.8s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas body::before, .xmas body::after { display: none; }
}

/* A Santa hat on the B of BOBBY'S in the header */
.xmas-hat { display: none; }
.xmas .brand__name { position: relative; }
.xmas .xmas-hat {
  display: block;
  position: absolute;
  left: -8px;
  top: -13px;
  width: 25px;
  height: auto;
  transform: rotate(-16deg);
  pointer-events: none;
}

/* Hero: "Merry Christmas" on a holly-red tag, like the buddies' name tags, above the welcome */
.hero__xmas {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 14px 8px 30px;
  border-radius: 9px;
  background: var(--xmas-red);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  rotate: -3deg; /* the rotate property, not transform, so the entrance animation doesn't undo it */
  transform-origin: 0 100%;
  -webkit-mask: radial-gradient(circle at 15px 50%, transparent 4px, #000 4.6px);
  mask: radial-gradient(circle at 15px 50%, transparent 4px, #000 4.6px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__xmas { animation: bb-fade 0.6s var(--ease) both; }
}
@media (min-width: 1100px) {
  .hero__xmas { margin-inline: auto; transform-origin: 50% 100%; }
  /* more sky above the banner for the tag, so the button still sits clear of the flowers */
  .xmas .hero { --headroom: calc(max(48px, 280px - 17.5vw) + 60px); }
}

/* Qualifications: the collar turns Christmas tartan (above) and the tags pine green */
.xmas .cred__tag { background: var(--xmas-pine); }

/* Footer greeting */
.footer__xmas {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--xmas-red-hi);
}
