/* Festive Manchester · base.css · loaded on every page
   The tokens, type, buttons, header, fairy lights, garland and footer that
   every page shares. A page adds its own stylesheet on top (login.css for
   the login page); nothing that belongs to one page lives here. Desktop
   comes first in rem, so the design scales with the root on large screens;
   the tablet and phone rules follow at the end. */

:root {
  --night: #0a1812;
  --evergreen: #0f241b;
  --evergreen-2: #173628;
  --berry: #6b1a2a;
  --berry-hover: #551321;
  --berry-deep: #4a101d;
  --navy: #0d1620;
  --gold: #d9b26a;
  --gold-2: #f1d59b;
  /* Dark enough for small labels on ivory (4.7:1). */
  --gold-deep: #8a6526;
  --ivory: #f7f0e4;
  --paper: #fffbf3;
  --sand: #ece2d1;
  --ink: #1b221e;
  --ink-muted: #5e655f;
  --line: rgba(27, 34, 30, 0.12);
  --line-light: rgba(247, 240, 228, 0.14);
  --cream-text: #f7efe1;
  --cream-muted: rgba(247, 239, 225, 0.74);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --container: 80rem;
  --gutter: 4rem;
  --radius: 0.375rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-arrive: cubic-bezier(0.2, 0.72, 0.24, 1);
}

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

/* Fonts are served with the site (Latin subsets of the variable files). */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  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: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  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;
}

/* Desktop sizes are written in rem so the whole design can scale as one.
   The root stays 16px up to 1600px wide, so 1rem is exactly 16px there.
   Phone and tablet rules (further down) use px and are unaffected. */
html {
  font-size: 16px;
  scrollbar-color: rgba(217, 178, 106, 0.6) var(--night);
  scrollbar-width: thin;
  background: var(--night);
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

/* Large screens: the design grows in proportion to the screen. 16px at
   1600x900, limited by height so the first view always fits
   (a 2560x1440 monitor shows the 1600x900 composition at 1.6x). */
@media (min-width: 1600px) {
  html {
    font-size: clamp(16px, min(1vw, 1.7778vh), 36px);
  }
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--night);
  color: var(--cream-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 350;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 300;
}

::selection {
  background: rgba(217, 178, 106, 0.4);
  color: inherit;
}

:focus-visible {
  outline: 0.125rem solid var(--gold-2);
  outline-offset: 0.1875rem;
}

/* On light surfaces the pale gold ring would vanish, so use berry there. */
[data-surface="light"] :focus-visible {
  outline-color: var(--berry);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Buttons ---------- */

.button {
  position: relative;
  display: inline-flex;
  gap: 0.625rem;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: 0 1.875rem;
  overflow: hidden;
  border: 1px solid var(--berry);
  border-radius: 62.4375rem;
  background: var(--berry);
  color: var(--cream-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.button:hover {
  border-color: var(--berry-hover);
  background: var(--berry-hover);
  transform: translateY(-1px);
}

.button span[aria-hidden] {
  transition: transform 0.3s var(--ease);
}

.button:hover span[aria-hidden] {
  transform: translateX(0.25rem);
}

/* "See everything" points down the page, so its arrow nods down instead. */
.button:hover .button__down {
  transform: translateY(0.1875rem);
}

.button--gold {
  border: 0;
  background: linear-gradient(180deg, #f5dea8 0%, #d9ae5f 100%);
  color: #2a1a09;
  box-shadow: 0 0.875rem 2.125rem -0.875rem rgba(226, 180, 96, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.button--gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}

.button--gold:hover {
  background: linear-gradient(180deg, #fbe7b9 0%, #e1b767 100%);
  box-shadow: 0 1.125rem 2.5rem -0.875rem rgba(226, 180, 96, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button--gold:hover::after {
  left: 130%;
}

.button--ghost-light {
  border-color: rgba(247, 240, 228, 0.42);
  background: rgba(247, 240, 228, 0.04);
  color: var(--cream-text);
  -webkit-backdrop-filter: blur(0.375rem);
  backdrop-filter: blur(0.375rem);
}

.button--ghost-light:hover {
  border-color: var(--cream-text);
  background: rgba(247, 240, 228, 0.12);
}

.button--small {
  min-height: 2.625rem;
  padding: 0 1.375rem;
  font-size: 0.875rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--cream-text);
  transition: background-color 0.35s, box-shadow 0.35s;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: var(--container);
  height: 4.875rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.5625rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

/* Bee and name drawn as one SVG so the name spans the bee's exact height. */
.site-header__logo {
  display: block;
  width: auto;
  height: 1.8em;
  overflow: visible;
}

/* Styled on the artwork itself, not through the header, so the footer's
   reused copy is drawn the same way. */
.brand-logo text {
  font-family: var(--font-display);
  font-size: 184px;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.brand-logo path,
.brand-logo text {
  fill: currentColor;
}

.site-header__star {
  width: 1.125rem;
  height: 1.125rem;
  fill: var(--gold);
  filter: drop-shadow(0 0 0.375rem rgba(241, 213, 155, 0.8));
  animation: star-breathe 3.6s ease-in-out infinite;
}

.site-header__nav {
  display: flex;
  gap: 1.625rem;
  margin-left: auto;
}

.site-header__nav a {
  position: relative;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.2s;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3125rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-header__nav a:hover {
  opacity: 1;
}

.site-header__nav a:hover::after,
.site-header__nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.site-header__nav a[aria-current="true"] {
  opacity: 1;
}

.site-header__cta {
  flex: none;
  min-width: 8.875rem;
}

/* The label cross-fades when the section on screen changes. */
.site-header__cta [data-header-cta-label] {
  transition: opacity 0.18s;
}

.site-header__cta.is-swapping [data-header-cta-label] {
  opacity: 0;
}

/* The header's surface: the bar plus the scalloped hem below it, one shape,
   cut to the hem by site.js with the very curve the bulbs hang from. Over
   a hero photograph it is a soft dark glass; everywhere else it is the
   solid header. Decoration only: it never takes a click. */
.site-header__surface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
  background: rgba(10, 24, 18, 0.42);
  -webkit-backdrop-filter: blur(0.3rem);
  backdrop-filter: blur(0.3rem);
  pointer-events: none;
  transition: background-color 0.35s, -webkit-backdrop-filter 0.35s, backdrop-filter 0.35s;
}

.site-header[data-over-hero="false"] .site-header__surface {
  background: rgba(10, 24, 18, 0.86);
  -webkit-backdrop-filter: saturate(1.3) blur(0.875rem);
  backdrop-filter: saturate(1.3) blur(0.875rem);
}

/* ---------- Fairy lights ---------- */

.fairy-lights {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.fairy-lights svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fairy-lights--header {
  top: 100%;
  height: 1.625rem;
}

.fairy-lights__wire {
  fill: none;
  stroke: #2b2f25;
  stroke-width: 1.4;
}

.fairy-lights__cap {
  fill: #3a3b30;
}

/* Over ivory sections the soft glow turns muddy, so drop it and use
   deeper bulb colours with a fine outline instead. */
.fairy-lights__glow {
  transition: opacity 0.4s;
}

.fairy-lights__lamp,
.fairy-lights__wire {
  transition: fill 0.4s, stroke 0.4s;
}

.site-header[data-over-light="true"] .fairy-lights__glow {
  opacity: 0;
}

.site-header[data-over-light="true"] .fairy-lights__lamp {
  stroke: rgba(60, 40, 20, 0.28);
  stroke-width: 0.6;
}

.site-header[data-over-light="true"] .fairy-lights__lamp--0,
.site-header[data-over-light="true"] .fairy-lights__lamp--1,
.site-header[data-over-light="true"] .fairy-lights__lamp--3,
.site-header[data-over-light="true"] .fairy-lights__lamp--5 {
  fill: #e0a53f;
}

.site-header[data-over-light="true"] .fairy-lights__lamp--2,
.site-header[data-over-light="true"] .fairy-lights__lamp--6 {
  fill: #cf3b2c;
}

.site-header[data-over-light="true"] .fairy-lights__lamp--4 {
  fill: #c9851c;
}

.site-header[data-over-light="true"] .fairy-lights__lamp--7 {
  fill: #3c9a5f;
}

.fairy-lights__bulb {
  will-change: opacity;
  animation: bulb-twinkle var(--d, 2.4s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes bulb-twinkle {
  0% {
    opacity: 0.32;
  }

  60% {
    opacity: 0.95;
  }

  100% {
    opacity: 1;
  }
}

@keyframes star-breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.12) rotate(12deg);
    opacity: 1;
  }
}

/* ---------- Twinkles: a light that glows and fades, placed over a picture ---------- */

.twinkle {
  position: absolute;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 225, 1) 0%, rgba(255, 214, 130, 0.85) 22%, rgba(255, 170, 70, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0;
  will-change: opacity, transform;
  animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.05;
    transform: scale(0.5);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

/* ---------- Page width ---------- */

/* Desktop keeps its composition down to 1024px; below that the tablet and
   phone layouts (at the end of this file) take over. */
@media (min-width: 1024px) {
  body {
    min-width: 1024px;
  }
}

/* ---------- Garlands (full strip, hung across the seam) ---------- */

.garland {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  pointer-events: none;
}

.garland img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0.875rem 1.125rem rgba(0, 0, 0, 0.35));
}

/* Very wide screens: the strip stops growing at its design width, and
   mirrored copies of the same file carry it on to both edges. */
@media (min-width: 1600px) {
  .garland img {
    max-width: 110rem;
    margin: 0 auto;
  }

  .garland::before,
  .garland::after {
    content: "";
    position: absolute;
    top: 0;
    width: 110rem;
    height: 100%;
    background: center / 100% 100% no-repeat;
    filter: drop-shadow(0 0.875rem 1.125rem rgba(0, 0, 0, 0.35));
    transform: scaleX(-1);
  }

  .garland::before {
    right: calc(50% + 55rem - 1px);
  }

  .garland::after {
    left: calc(50% + 55rem - 1px);
  }

  .garland--fir::before,
  .garland--fir::after {
    background-image: url("../img/real-trees-full-garland-v1.webp");
  }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--night);
  color: var(--cream-muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 4rem;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

/* Gold ornament divider where the page meets the footer. */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(22.5rem, 80%);
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 178, 106, 0), rgba(217, 178, 106, 0.6), rgba(217, 178, 106, 0));
  transform: translateX(-50%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -0.25rem;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: -0.25rem;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0.625rem rgba(241, 213, 155, 0.6);
}

/* The same bee-and-name lockup as the header, reused from its artwork. */
.site-footer__logo {
  display: block;
  width: auto;
  height: 3.25rem;
  overflow: visible;
}

.site-footer__name {
  margin-bottom: 0.5rem;
  color: var(--cream-text);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.site-footer h3 {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer li + li {
  margin-top: 0.625rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.site-footer__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  color: rgba(247, 239, 225, 0.45);
  font-size: 0.75rem;
}

.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-light);
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
}

/* The lighter footer of checkout and the order page (footer.ui.php): the
   brand, two columns of links and the copyright, closer to the page's end.
   Tablets and phones stack it as they stack the full footer. */
@media (min-width: 1024px) {
  .site-footer--light .site-footer__inner {
    grid-template-columns: 5fr 7fr;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .site-footer--light .site-footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-footer--plain .site-footer__legal {
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  font-size: .8125rem;
  color: var(--cream-muted);
}

/* ---------- The plain footer ----------
   For a page without menus (footer.ui.php): the name under a warm glow, the
   tagline, a gold rule, the four things we do, and the copyright, all
   centred on the night sky with a few faint stars. */

.site-footer--plain {
  text-align: center;
  background:
    radial-gradient(ellipse 36% 60% at 50% 34%, rgba(226, 180, 96, 0.16), rgba(226, 180, 96, 0) 70%),
    radial-gradient(circle at 9% 30%, rgba(255, 252, 245, 0.55) 0 1px, transparent 1.7px),
    radial-gradient(circle at 18% 74%, rgba(255, 252, 245, 0.3) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 29% 20%, rgba(255, 252, 245, 0.4) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 41% 86%, rgba(255, 252, 245, 0.28) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 63% 16%, rgba(255, 252, 245, 0.45) 0 0.9px, transparent 1.5px),
    radial-gradient(circle at 74% 70%, rgba(255, 252, 245, 0.35) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 86% 26%, rgba(255, 252, 245, 0.55) 0 1px, transparent 1.7px),
    radial-gradient(circle at 93% 62%, rgba(255, 252, 245, 0.3) 0 0.7px, transparent 1.3px),
    var(--night);
}

.site-footer__plain {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 2.75rem;
}

.site-footer--plain .site-footer__name {
  margin-bottom: 0;
  filter: drop-shadow(0 0 1.25rem rgba(241, 190, 100, 0.28));
}

.site-footer--plain .site-footer__logo {
  height: 3.75rem;
}

.site-footer__tagline {
  margin-top: 1.25rem;
  color: var(--cream-text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 350;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.site-footer__tagline em {
  color: var(--gold-2);
}

/* A gold hairline with the brand's diamond, as on the gift tag. */
.site-footer__rule {
  position: relative;
  display: block;
  width: 5.5rem;
  height: 1px;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, rgba(217, 178, 106, 0), var(--gold), rgba(217, 178, 106, 0));
}

.site-footer__rule::after {
  content: "";
  position: absolute;
  top: -0.1875rem;
  left: 50%;
  width: 0.375rem;
  height: 0.375rem;
  margin-left: -0.1875rem;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0.5rem rgba(241, 213, 155, 0.6);
}

/* The four things we do, with a small diamond between each pair. */
.site-footer__offers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer__offers span {
  display: flex;
  align-items: center;
}

.site-footer__offers span + span::before {
  content: "";
  flex: none;
  width: 0.25rem;
  height: 0.25rem;
  margin: 0 1.125rem;
  background: var(--gold);
  opacity: 0.8;
  transform: rotate(45deg);
}

.site-footer__copyright {
  margin-top: 2.5rem;
  color: rgba(247, 239, 225, 0.45);
  font-size: 0.75rem;
}

@media (max-width: 1023.98px) {
  .site-footer__plain {
    padding-top: 64px;
    padding-bottom: 40px;
  }
}

/* Phones: the four things sit two by two, without the diamonds between. */
@media (max-width: 599.98px) {
  .site-footer__plain {
    padding-top: 56px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .site-footer--plain .site-footer__logo {
    height: 52px;
  }

  .site-footer__tagline {
    font-size: 21px;
  }

  .site-footer__offers {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px 28px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .site-footer__offers span {
    justify-content: center;
  }

  .site-footer__offers span + span::before {
    display: none;
  }

  .site-footer__copyright {
    margin-top: 32px;
  }
}

/* ---------- Shared motion ---------- */

/* A phrase catches the light once: a pale band slides across its letters. */
@keyframes em-glint {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0% 0;
  }
}

/* Header slides down as the page opens. */
html.js .site-header {
  transition: background-color 0.35s, box-shadow 0.35s, transform 0.9s var(--ease), opacity 0.6s ease-out;
}

html.js .site-header:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
}

/* Fairy lights switch on one by one, left to right. */
.fairy-lights__socket {
  transition: opacity 0.3s ease-out var(--on, 0s);
}

html.js .fairy-lights:not(.is-lit) .fairy-lights__socket {
  opacity: 0.16;
}

/* The footer's "Cookies" link opens the cookie card, so it is a button
   drawn as a link. */
.site-footer__cookies {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-footer__cookies:hover {
  color: var(--cream-text);
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}

/* ---------- Narrower laptop screens: the menu closes up ---------- */

@media (max-width: 1279px) {
  .site-header__inner {
    gap: 20px;
    padding: 0 40px;
  }

  .site-header__nav {
    gap: 16px;
  }

  .site-header__nav a {
    font-size: 13.5px;
  }
}

@media (max-width: 1100px) {
  .site-header__nav {
    gap: 12px;
  }

  .site-header__nav a {
    font-size: 13px;
  }
}

/* The narrowest desktop width (e.g. an iPad on its side): the header was a
   touch too wide here and pushed its button towards the screen edge. */
@media (min-width: 1024px) and (max-width: 1059.98px) {
  .site-header__brand {
    font-size: 23px;
  }

  .site-header__nav {
    gap: 10px;
  }
}

/* ---------- Shorter laptop screens: slimmer buttons ---------- */

@media (max-height: 760px) {
  .button {
    min-height: 50px;
  }
}

/* Very short desktop windows (a 1366x768 laptop with browser toolbars, or
   1024x600). */
@media (min-width: 1024px) and (max-height: 639.98px) {
  .button {
    min-height: 46px;
  }
}

/* =====================================================================
   TABLETS, SIDEWAYS PHONES AND NARROW WINDOWS (600px to 1023px)
   The header becomes a brand row over a full-width menu row (one line
   again on short screens), and spacing is fluid so nothing jumps at
   either end. Desktop (1024px and up) and phones (under 600px) are
   untouched.
   ===================================================================== */

@media (min-width: 600px) and (max-width: 1023.98px) {
  :root {
    /* 28px at 600 wide, growing to desktop's 64px at 1024. */
    --gutter: clamp(28px, calc(8.49vw - 22.9px), 64px);
    --header-h: 106px;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 18px);
  }

  .button {
    min-height: 50px;
    padding: 0 24px;
  }

  /* ---------- Header: brand row + full menu row ---------- */

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0;
    height: auto;
    padding: 0 var(--gutter);
  }

  .site-header__brand {
    height: 60px;
    font-size: 24px;
  }

  .site-header .site-header__cta {
    min-width: 0;
    min-height: 40px;
    margin-left: auto;
    padding: 0 20px;
  }

  .site-header__nav {
    order: 3;
    /* Full bleed, so the edge fades sit at the screen edges if it scrolls. */
    flex: 0 0 calc(100% + 2 * var(--gutter));
    gap: clamp(20px, 3.4vw, 36px);
    max-height: 46px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }

  .site-header__nav::-webkit-scrollbar {
    display: none;
  }

  .site-header__nav a {
    flex: none;
    padding: 10px 0 15px;
    font-size: 14.5px;
  }

  /* Centred when it fits; starts at the left edge when it has to scroll. */
  .site-header__nav a:first-child {
    margin-left: auto;
  }

  .site-header__nav a:last-child {
    margin-right: auto;
  }

  .site-header__nav a::after {
    bottom: 8px;
  }

  .site-header__nav[data-scroller] {
    --fade-start: 44px;
    --fade-end: 52px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent 100%);
  }

  .site-header__nav[data-scroller].is-start {
    --fade-start: 0px;
  }

  .site-header__nav[data-scroller].is-end {
    --fade-end: 0px;
  }

  .site-header[data-over-hero="false"] .site-header__surface {
    background: rgba(10, 24, 18, 0.92);
  }

  .fairy-lights--header {
    height: 22px;
  }

  /* ---------- Footer ---------- */

  .site-footer__inner {
    gap: clamp(28px, 5vw, 64px);
    padding-top: 64px;
    padding-bottom: 52px;
  }

  .site-footer__nav {
    gap: 24px;
  }

  @media (max-width: 859.98px) {
    .site-footer__inner {
      grid-template-columns: 1fr;
      gap: 36px;
    }
  }

  /* =================================================================
     Shorter screens (landscape tablets, sideways phones): the header
     becomes one line, with the menu scrolling between brand and button.
     ================================================================= */

  @media (max-height: 820px) {
    :root {
      --header-h: 56px;
    }

    .site-header__inner {
      flex-wrap: nowrap;
      gap: 14px;
      height: 56px;
    }

    .site-header__brand {
      height: 44px;
      font-size: 21px;
    }

    .site-header__star {
      width: 16px;
      height: 16px;
    }

    .site-header .site-header__cta {
      min-height: 40px;
      margin-left: 0;
      padding: 0 16px;
      font-size: 13px;
    }

    .site-header__nav {
      order: 0;
      flex: 1 1 auto;
      min-width: 0;
      gap: 20px;
      max-height: none;
      margin: 0;
      padding: 0 4px;
      scroll-padding: 0 4px;
    }

    .site-header__nav[data-scroller] {
      --fade-start: 30px;
      --fade-end: 36px;
    }

    .site-header__nav a {
      padding: 12px 0;
      font-size: 13.5px;
    }

    .site-header__nav a::after {
      bottom: 7px;
    }

    .fairy-lights--header {
      height: 20px;
    }
  }

  /* Sideways phones: pictures are drawn smaller here, so their lights are too. */
  @media (max-height: 520px) {
    .twinkle {
      width: 10px;
      height: 10px;
      margin: -5px 0 0 -5px;
    }
  }
}

/* =====================================================================
   PHONES (under 600px)
   A compact two-row header with a swipeable menu, larger touch targets
   and a stacked footer. Everything above 600px is untouched.
   ===================================================================== */

@media (max-width: 599.98px) {
  :root {
    --gutter: 20px;
    --radius: 6px;
  }

  html {
    scroll-padding-top: 64px;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: 0 var(--gutter);
  }

  /* ---------- Header: brand row + swipeable menu row ---------- */

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0;
    height: auto;
    padding: 0 var(--gutter);
  }

  .site-header__brand {
    height: 54px;
    font-size: 21px;
  }

  .site-header__star {
    width: 16px;
    height: 16px;
  }

  .site-header .site-header__cta {
    min-width: 0;
    min-height: 36px;
    margin-left: auto;
    padding: 0 15px;
    font-size: 13px;
    line-height: 1;
  }

  .site-header__nav {
    order: 3;
    /* Full bleed: edge to edge, so the fades sit at the screen edges. */
    flex: 0 0 calc(100% + 2 * var(--gutter));
    gap: 22px;
    max-height: 44px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }

  .site-header__nav::-webkit-scrollbar {
    display: none;
  }

  .site-header__nav a {
    flex: none;
    padding: 11px 0 13px;
    font-size: 14px;
    scroll-snap-align: start;
  }

  .site-header__nav a::after {
    bottom: 6px;
  }

  .site-header[data-over-hero="false"] .site-header__surface {
    background: rgba(10, 24, 18, 0.92);
  }

  .fairy-lights--header {
    height: 20px;
  }

  /* 360px phones: the longer button labels ("Book a shoot") no longer fit
     beside the full-size name and dropped to a row of their own. */
  @media (max-width: 379.98px) {
    .site-header__brand {
      font-size: 19px;
    }
  }

  @media (max-width: 359.98px) {
    .site-header__inner {
      padding: 0 14px;
    }

    .site-header__nav {
      flex-basis: calc(100% + 28px);
      margin: 0 -14px;
      padding: 0 14px 2px;
      scroll-padding: 0 14px;
    }

    .site-header__brand {
      font-size: 17px;
    }

    .site-header__brand .site-header__star {
      display: none;
    }

    .site-header__cta {
      padding: 0 11px;
      font-size: 12px;
    }
  }

  /* Swipeable rows fade at whichever edge still hides items. */
  [data-scroller] {
    --fade-start: 44px;
    --fade-end: 52px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent 100%);
  }

  [data-scroller].is-start {
    --fade-start: 0px;
  }

  [data-scroller].is-end {
    --fade-end: 0px;
  }

  /* ---------- Buttons ---------- */

  .button {
    min-height: 52px;
  }

  /* ---------- Garlands keep their presence on narrow screens ---------- */

  .garland img {
    width: 150%;
    max-width: none;
    margin-left: -25%;
  }

  /* ---------- Footer ---------- */

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .site-footer li + li {
    margin-top: 0;
  }

  .site-footer__nav a {
    display: inline-block;
    padding: 11px 0;
  }

  .site-footer h3 {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .site-footer__bottom {
    flex-direction: column-reverse;
    gap: 14px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .site-footer__legal a,
  .site-footer__cookies {
    padding: 12px 0;
  }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  html.js .site-header {
    opacity: 1 !important;
    transform: none !important;
  }

  .twinkle {
    opacity: 0.6;
  }

  html.js .fairy-lights .fairy-lights__socket {
    opacity: 1;
  }
}
