/* ==========================================================================
   Sophie Stava — design system
   Art direction: the current jacket art (magenta / acid yellow / black)
   crossed with the editorial structure of Jessica Knoll's site.
   Display: Oswald (condensed, uppercase). Body: Inter. Accent: Bodoni Moda.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Sampled from the jacket art and teaser */
  --magenta: #e062c6;
  /* Darkened from the jacket magenta so small text clears WCAG AA (5.65:1)
     against the cream ground. The jacket value only reaches 4.29:1. */
  --magenta-deep: #a62a86;
  --yellow: #efef05;
  /* Decorative only — the drip rule. Never used for text. */
  --red: #e01b1b;

  /* Borrowed from the Jessica Knoll palette */
  --pink: #f23379;

  --ink: #0b0a0c;
  --ink-raised: #151317;
  --ink-line: #2a262e;
  --paper: #f1f2eb;
  --paper-dim: #a9a6ae;
  /* Product-tile ground: mid enough to hold a white garment's edge. */
  --tile: #c9c5bd;

  --bg: var(--ink);
  --fg: var(--paper);
  --muted: var(--paper-dim);
  --accent: var(--yellow);
  --accent-2: var(--magenta);

  --font-display: 'Oswald', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;

  /* Fluid type: min at 360px, max at 1400px */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.28rem + 1.1vw, 2.25rem);
  --step-3: clamp(2rem, 1.55rem + 2.2vw, 3.5rem);
  --step-4: clamp(2.75rem, 1.7rem + 5.2vw, 6rem);
  --step-5: clamp(3.5rem, 1.2rem + 11vw, 10rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
  --wrap: 76rem;
  --wrap-wide: 96rem;

  --radius: 2px;
  --border: 1px solid var(--ink-line);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

/* --- Reset -------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  fill: currentColor;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

/* --- Typography --------------------------------------------------------- */

h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  font-weight: 500;
}

p {
  text-wrap: pretty;
}

/* Small caps label — the connective tissue of the whole layout */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 0.85em;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.eyebrow--plain::after {
  display: none;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--paper);
  max-width: var(--measure);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose a {
  color: var(--magenta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur) var(--ease);
}

.prose a:hover {
  color: var(--yellow);
}

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

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - var(--gutter) * 2, var(--wrap-wide));
  margin-inline: auto;
}

.wrap--full {
  width: 100%;
}

.section {
  padding-block: clamp(3.5rem, 9vw, 8rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.section--raised {
  background: var(--ink-raised);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .eyebrow {
  color: var(--magenta-deep);
}

.section--paper .muted {
  color: #5d5866;
}

.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.stack > * + * {
  margin-top: var(--stack-gap, 1.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover {
  --btn-bg: var(--magenta);
  transform: translateY(-2px);
}

.btn--magenta {
  --btn-bg: var(--magenta);
  --btn-fg: var(--ink);
}

.btn--magenta:hover {
  --btn-bg: var(--yellow);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--paper);
}

.btn--ghost:hover {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  border-color: var(--paper);
}

.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Underlined text link with a sliding rule */
.link {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--yellow);
  display: inline-block;
  position: relative;
  padding-bottom: 0.25em;
}

.link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

/* The tint and blur live on a pseudo-element, not on .site-header itself.
   backdrop-filter establishes a containing block for fixed-position
   descendants — so with it on the header, the mobile nav's `position: fixed;
   inset: 0` resolved against the header's 128px box instead of the viewport,
   and most of the menu was pushed outside it. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px);
}

.site-header[data-scrolled] {
  border-bottom-color: var(--ink-line);
}

.site-header__inner {
  width: min(100% - var(--gutter) * 2, var(--wrap-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem);
  line-height: 0.9;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  transition: color var(--dur) var(--ease);
}

.wordmark:hover {
  color: var(--yellow);
}

.wordmark__line {
  display: block;
}

/* Sized by height so the figure spans the full header bar. Two classes deep so
   it beats the generic `.logo { width: 100% }` further down the file. */
.wordmark .logo--header {
  height: clamp(2.6rem, 4vw, 3.4rem);
  width: auto;
  flex: none;
}

@media (max-width: 30rem) {
  /* At phone widths the figure carries it alone — the stacked name would
     crowd the menu button. */
  .wordmark__text {
    display: none;
  }
  .wordmark .logo--header {
    height: 2.6rem;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.site-nav__list a {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  position: relative;
  padding-block: 0.4em;
  white-space: nowrap;
}

.site-nav__list a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current='page']::after {
  transform: scaleX(1);
}

.site-nav__list a[aria-current='page'] {
  color: var(--yellow);
}

.site-nav__social {
  display: flex;
  gap: 0.9rem;
}

.site-nav__social a {
  color: var(--paper-dim);
  transition:
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  display: block;
}

.site-nav__social a:hover {
  color: var(--yellow);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  /* Never let the wordmark squeeze this out. Without it the toggle shrinks to
     a few pixels at phone widths and is clipped off the right edge. */
  flex: none;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 26px;
}

.nav-toggle__bars i {
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

@media (max-width: 62rem) {
  .nav-toggle {
    display: flex;
  }

  /* The panel is a sibling of the wordmark and the toggle inside
     .site-header__inner, which has its own stacking context — so the panel's
     z-index 90 painted over both, and opening the menu covered its own close
     button. Lift them back above it. */
  .nav-toggle,
  .wordmark {
    position: relative;
    z-index: 91;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    /* flex-start first as the fallback. Plain `center` on a scroll container
       spills overflow equally in both directions, and the part above the
       scroll origin is unreachable because scrollTop cannot go negative —
       which hid the first three links entirely. `safe` degrades to start
       exactly when that would happen. */
    justify-content: flex-start;
    justify-content: safe center;
    gap: 1.75rem;
    /* Clip to the panel. Without this the list overflows a short viewport and
       the overflowing part stays on screen after the panel is translated away —
       which is exactly what a phone in landscape does. */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4.75rem var(--gutter) 2rem;
    /* visibility keeps the closed menu out of the tab order; without it the
       links are off-screen but still focusable. */
    visibility: hidden;
    transform: translateY(-100%);
    transition:
      transform var(--dur) var(--ease),
      visibility 0s linear var(--dur);
    z-index: 90;
  }

  body[data-nav-open] .site-nav {
    visibility: visible;
    transform: translateY(0);
    transition:
      transform var(--dur) var(--ease),
      visibility 0s;
  }

  body[data-nav-open] {
    overflow: hidden;
  }

  /* When the menu is genuinely taller than the screen, fade its bottom edge
     so it reads as "more below" instead of a clean cut. Set by script only
     while it overflows, and cleared once you reach the end. */
  .site-nav[data-overflow]::after {
    content: '';
    /* Fixed, not absolute, so it stays pinned to the bottom edge instead of
       scrolling away with the links. A mask was the obvious choice here but it
       fades the panel's own background too, letting the page show through. */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.5rem;
    background: linear-gradient(to top, var(--ink), transparent);
    pointer-events: none;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.9rem;
  }

  .site-nav__list a {
    font-size: var(--step-1);
    letter-spacing: 0.08em;
    /* A comfortable touch target regardless of type size. */
    display: block;
    padding-block: 0.35em;
  }

  /* Shorter phones — an SE is 667px tall — need one more notch to clear the
     fold. Seven links plus the social row is a lot of vertical furniture. */
  @media (max-height: 44rem) {
    .site-nav {
      padding-top: 4.25rem;
      gap: 1.25rem;
    }
    .site-nav__list {
      gap: 0.6rem;
    }
    .site-nav__list a {
      font-size: var(--step-0);
    }
  }

  /* Phone in landscape: ~375px of height for seven links plus socials. */
  @media (max-height: 34rem) {
    .site-nav {
      gap: 1.25rem;
      padding-top: 4.5rem;
      justify-content: flex-start;
    }
    .site-nav__list {
      gap: 0.5rem;
    }
    .site-nav__list a {
      font-size: var(--step-1);
    }
  }

  .site-header__inner {
    position: relative;
    z-index: 95;
  }

  body[data-nav-open] .nav-toggle__bars i:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  body[data-nav-open] .nav-toggle__bars i:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92svh, 60rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, color-mix(in srgb, var(--ink) 55%, transparent) 45%, transparent 78%),
    linear-gradient(to right, color-mix(in srgb, var(--ink) 70%, transparent), transparent 60%);
}

.hero__inner {
  width: min(100% - var(--gutter) * 2, var(--wrap-wide));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
  display: grid;
  gap: 1.75rem;
  max-width: 100%;
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.005em;
  color: var(--yellow);
  max-width: 14ch;
}

.hero__title em {
  font-style: normal;
  display: block;
}

.hero__sub {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.45;
  max-width: 46ch;
  color: var(--paper);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.hero__meta > * + *::before {
  content: '·';
  margin-right: 1.25rem;
  color: var(--magenta);
}

/* Cover-forward variant: giant stacked title beside the jacket.
   Centred rather than bottom-anchored — there is no background image to
   sit above, so the type block should hold the optical middle. */
.hero--split {
  align-items: center;
}

.hero--split .hero__inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero--split .hero__copy {
  display: grid;
  gap: 1.75rem;
  align-content: center;
}

.hero__cover {
  justify-self: end;
  width: min(100%, 27rem);
  box-shadow:
    0 2px 8px rgb(0 0 0 / 0.4),
    0 30px 70px -20px rgb(0 0 0 / 0.75);
  border-radius: var(--radius);
  transform: rotate(-1.5deg);
  transition: transform var(--dur) var(--ease);
}

.hero__cover:hover {
  transform: rotate(0deg) translateY(-4px);
}

@media (max-width: 56rem) {
  .hero--split .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__cover {
    justify-self: start;
    width: min(70%, 16rem);
  }
}

/* Vertical teaser panel. The publisher's teaser is 9:16, so it gets its own
   column rather than being cropped into a landscape backdrop. */
.hero__video {
  justify-self: end;
  width: min(100%, 22rem);
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-raised);
  box-shadow:
    0 2px 8px rgb(0 0 0 / 0.4),
    0 30px 70px -20px rgb(0 0 0 / 0.75);
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-sound {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.9em;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.hero__video-sound:hover {
  background: var(--yellow);
  color: var(--ink);
}

@media (max-width: 56rem) {
  .hero__video {
    justify-self: start;
    width: min(78%, 18rem);
  }
}

/* Red drip rule — lifted from the teaser's blood/nail-polish motif */
.drip {
  height: 6px;
  background: var(--red);
  position: relative;
  border: 0;
  margin: 0;
}

.drip::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 22px;
  background: var(--red);
  -webkit-mask-image: radial-gradient(circle at 12px 0, #000 6px, transparent 6.5px),
    radial-gradient(circle at 58px 0, #000 9px, transparent 9.5px),
    radial-gradient(circle at 120px 0, #000 5px, transparent 5.5px),
    radial-gradient(circle at 190px 0, #000 11px, transparent 11.5px);
  mask-image: radial-gradient(circle at 12px 0, #000 6px, transparent 6.5px),
    radial-gradient(circle at 58px 0, #000 9px, transparent 9.5px),
    radial-gradient(circle at 120px 0, #000 5px, transparent 5.5px),
    radial-gradient(circle at 190px 0, #000 11px, transparent 11.5px);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 240px 22px;
  mask-size: 240px 22px;
}

/* --- Marquee (accolade ticker) ------------------------------------------ */

.marquee {
  background: var(--magenta);
  color: var(--ink);
  padding-block: 0.7rem;
  overflow: hidden;
  white-space: nowrap;
  border-block: 2px solid var(--ink);
}

.marquee__track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee__item::after {
  content: '★';
  color: var(--yellow);
  -webkit-text-stroke: 0.5px var(--ink);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
  .marquee {
    white-space: normal;
  }
}

/* --- Book cards --------------------------------------------------------- */

.books {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

.book {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.book:nth-child(even) .book__cover-wrap {
  order: 2;
}

.book__cover-wrap {
  position: relative;
}

.book__cover {
  width: 100%;
  border-radius: var(--radius);
  box-shadow:
    0 2px 8px rgb(0 0 0 / 0.35),
    0 24px 60px -22px rgb(0 0 0 / 0.7);
  transition: transform var(--dur) var(--ease);
}

.book__cover-wrap:hover .book__cover {
  transform: translateY(-6px);
}

.book__flag {
  position: absolute;
  top: 1rem;
  left: -0.5rem;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  z-index: 2;
}

.book__body {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.book__title {
  font-size: var(--step-3);
  color: var(--paper);
}

.book__title a {
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.book__title a:hover {
  color: var(--yellow);
}

.book__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--magenta);
  line-height: 1.4;
}

.book__accolades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.book__accolade {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink-line);
  color: var(--paper-dim);
  padding: 0.3em 0.8em;
  border-radius: 999px;
}

.book__meta {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

/* 44rem, not 52rem: at 768 (portrait tablet) the two-column layout still gives
   the jacket copy a comfortable measure, and stacking there left the cover
   marooned beside a column of dead space. */
@media (max-width: 44rem) {
  .book {
    grid-template-columns: 1fr;
  }
  .book:nth-child(even) .book__cover-wrap {
    order: 0;
  }
  .book__cover-wrap {
    max-width: 18rem;
  }
}

/* --- Retailer list ------------------------------------------------------ */

.retailers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.retailers a {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55em 1.1em;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  color: var(--paper);
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.retailers a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.retailers a[data-preferred] {
  border-color: var(--magenta);
  color: var(--magenta);
}

.retailers a[data-preferred]:hover {
  background: var(--magenta);
  color: var(--ink);
}

/* --- Praise / pull quotes ----------------------------------------------- */

.praise {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.quote {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--ink-raised);
  position: relative;
}

.quote::before {
  content: '“';
  position: absolute;
  top: -0.35em;
  left: 0.4em;
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--magenta);
  opacity: 0.35;
  pointer-events: none;
}

.quote__text {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.45;
  position: relative;
}

.quote__source {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.quote__note {
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: -0.6rem;
}

/* A single hero-scale quote */
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.25;
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}

.pullquote__source {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta-deep);
}

/* --- Screen (Film & TV) ------------------------------------------------- */

.credits {
  display: grid;
  gap: 0;
  border-top: var(--border);
}

.credit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem 2rem;
  padding-block: 1.1rem;
  border-bottom: var(--border);
  align-items: baseline;
}

.credit__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.credit__role {
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
}

@media (max-width: 40rem) {
  .credit {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 0.4em 1em;
  border-radius: 999px;
}

.status-chip::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* --- Cast --------------------------------------------------------------- */

.cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.cast__link {
  display: grid;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.cast__photo,
.cast__initials {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: var(--radius);
  background: var(--ink-raised);
  border: var(--border);
  object-fit: cover;
  /* Sources span a decade and six photographers; greyscale is what makes them
     read as one set. Colour returns on hover. */
  filter: grayscale(1) contrast(1.04);
  transition:
    filter 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.cast__link:hover .cast__photo {
  filter: grayscale(0) contrast(1);
  transform: translateY(-4px);
}

/* No freely-licensed photograph exists for every name, so the fallback is
   typographic rather than a broken frame or a stock silhouette. */
.cast__initials {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--magenta);
  filter: none;
}

.cast__link:hover .cast__initials {
  transform: translateY(-4px);
  color: var(--yellow);
}

.cast__body {
  display: grid;
  gap: 0.2rem;
}

.cast__role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.25;
  color: var(--magenta);
}

.cast__actor {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

.cast__note,
.cast__known {
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.4;
}

.cast__known {
  font-style: italic;
}

/* --- Production notes --------------------------------------------------- */

.facts {
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}

.facts li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--paper);
}

.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.6rem;
  height: 2px;
  background: var(--magenta);
}

.credits-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
  max-width: var(--measure);
}

.credits-list a {
  color: var(--paper-dim);
  text-underline-offset: 0.2em;
}

.credits-list a:hover {
  color: var(--yellow);
}

/* --- Events ------------------------------------------------------------- */

.events {
  border-top: var(--border);
}

.event {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  padding-block: 1.6rem;
  border-bottom: var(--border);
  align-items: baseline;
}

.event__date {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1.1;
}

.event__date span {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 400;
}

.event__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event__where {
  color: var(--muted);
  font-size: var(--step--1);
}

.event--past {
  opacity: 0.55;
}

@media (max-width: 44rem) {
  .event {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.empty-state {
  border: 1px dashed var(--ink-line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

/* --- Shop --------------------------------------------------------------- */

.product-grid {
  display: grid;
  /* The min track scales with the viewport so phones get two columns instead
     of one product per screen, while wide viewports still cap at a 15rem min. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(9rem, 30vw, 15rem)), 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.product {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product__media {
  aspect-ratio: 1;
  /* Mockups ship on a white ground. A neutral mid-tone is the only tile that
     separates from BOTH a black garment and a white one — cream loses the
     whites, near-black loses the blacks. */
  background: var(--tile);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Gallery: every image stacks in the same box; only the active one shows. */
.product__media {
  position: relative;
}

.product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.product__media img[data-active] {
  opacity: 1;
}

/* The link fills the tile so the arrows can sit outside it — a <button> inside
   an <a> is invalid, and clicks on it would open the product page. */
.product__link {
  position: absolute;
  inset: 0;
  display: block;
}

/* --- Zoom button --------------------------------------------------------- */

.product__zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(11 10 12 / 0.55);
  color: var(--paper);
  cursor: pointer;
  /* Always visible, unlike the arrows. It is the control that tells you a
     closer look exists at all, and a control you have to find by hovering is
     one most people never find. */
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}

.product__zoom svg {
  width: 19px;
  height: 19px;
}

.product:hover .product__zoom,
.product:focus-within .product__zoom {
  opacity: 1;
}

.product__zoom:hover {
  opacity: 1;
}

.product__zoom:hover {
  background: var(--ink);
}

.product__zoom:focus-visible {
  opacity: 1;
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (max-width: 30rem) {
  .product__zoom {
    width: 38px;
    height: 38px;
    right: 0.15rem;
    bottom: 0.15rem;
  }
  .product__zoom svg {
    width: 16px;
    height: 16px;
  }
}

/* --- Zoom viewer --------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr;
  /* Fully opaque. At 96% the shop headings behind it stayed legible, which is
     exactly the wrong thing when the point of the view is to look closely at
     one product. */
  background: var(--ink);
}

.lightbox[hidden] {
  display: none;
}

body[data-lightbox-open] {
  overflow: hidden;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  border-bottom: 1px solid var(--ink-line);
}

.lightbox__caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

.lightbox__tools {
  display: flex;
  gap: 0.5rem;
}

.lightbox__btn {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lightbox__btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.lightbox__btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* The scroll container. When zoomed the image is simply bigger than this box,
   so panning is native scrolling — touch drag, trackpad, scrollbars and the
   keyboard all work without being reimplemented. */
.lightbox__stage {
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox__stage:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -4px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

/* The zoomed width is set in script from the image's natural size; this just
   releases the fit constraints so it can overflow and be scrolled. */
.lightbox[data-zoomed] .lightbox__img {
  max-width: none;
  max-height: none;
  height: auto;
  cursor: zoom-out;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(241 242 235 / 0.12);
  color: var(--paper);
  cursor: pointer;
}

.lightbox__nav::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  margin: auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.lightbox__nav--prev {
  left: 0.75rem;
}

.lightbox__nav--prev::before {
  transform: rotate(-135deg);
  margin-left: 20px;
}

.lightbox__nav--next {
  right: 0.75rem;
}

.lightbox__nav--next::before {
  transform: rotate(45deg);
  margin-right: 20px;
}

.lightbox__nav:hover {
  background: rgb(241 242 235 / 0.22);
}

.lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.lightbox__nav:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .product__zoom {
    transition: none;
  }
}

/* --- Gallery arrows ------------------------------------------------------ */

.product__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  /* 44px is the comfortable touch target; the visible chevron is smaller. */
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(11 10 12 / 0.55);
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}

.product__nav svg {
  width: 18px;
  height: 18px;
}

.product__nav--prev {
  left: 0.5rem;
}

.product__nav--next {
  right: 0.5rem;
}

/* Revealed by hover, and by keyboard focus landing anywhere in the card so the
   control is reachable without a pointer. */
.product:hover .product__nav,
.product:focus-within .product__nav {
  opacity: 1;
}

.product__nav:hover {
  background: var(--ink);
}

.product__nav:focus-visible {
  opacity: 1;
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* At either end the arrow stays visible but reads as unavailable, so the tile
   does not shift and the visitor can see they have reached the last photo. */
.product__nav:disabled {
  cursor: default;
  background: rgb(11 10 12 / 0.25);
  color: rgb(241 242 235 / 0.35);
}

/* No hover to reveal them, so they stay on. Swipe works too, but an always
   visible control is what signals the tile has more than one photo. */
@media (hover: none) {
  .product__nav {
    opacity: 1;
  }
}

/* On a phone the grid is two-up, so a 44px control would cover a quarter of the
   tile. The target stays 44px for the finger; only the painted circle shrinks. */
@media (max-width: 30rem) {
  .product__nav {
    width: 40px;
    height: 40px;
    background: rgb(11 10 12 / 0.5);
  }

  .product__nav svg {
    width: 15px;
    height: 15px;
  }

  .product__nav--prev {
    left: 0.15rem;
  }

  .product__nav--next {
    right: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product__nav {
    transition: none;
  }
}

/* Dots appear only when there is more than one photograph to step through. */
.product__dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: auto;
}

/* The dot you see is 7px; the button you hit is 24px. Since hover previews are
   desktop-only, on touch these are the only control for the gallery. */
.product__dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.product__dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-line);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.product__dot[aria-current='true']::before {
  background: var(--yellow);
}

.product__dot:hover::before {
  background: var(--magenta);
}

.product__dot:focus-visible::before {
  transform: scale(1.6);
}

.product__title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.product__price {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  color: var(--yellow);
}

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

.product a {
  text-decoration: none;
}

.shop-skeleton {
  display: grid;
  gap: 0.85rem;
}

.shop-skeleton__media {
  aspect-ratio: 1;
  background: linear-gradient(100deg, var(--ink-raised) 30%, #221f26 50%, var(--ink-raised) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* --- Fit filter ---------------------------------------------------------- */

.fit-filter {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.fit-filter__btn {
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55em 1.5em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.fit-filter__btn:hover {
  color: var(--paper);
}

.fit-filter__btn[aria-pressed='true'] {
  background: var(--yellow);
  color: var(--ink);
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  border-top: var(--border);
  max-width: var(--wrap);
}

.faq details {
  border-bottom: var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--yellow);
}

.faq summary::after {
  content: '+';
  font-size: 1.5em;
  line-height: 1;
  color: var(--magenta);
  transition: transform var(--dur) var(--ease);
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding-bottom: 1.6rem;
  max-width: var(--measure);
  color: var(--muted);
}

/* --- Press kit ---------------------------------------------------------- */

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1.5rem;
}

.asset {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.asset__media {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-raised);
}

.asset__meta {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio-block {
  border-left: 3px solid var(--magenta);
  padding-left: clamp(1rem, 3vw, 2rem);
}

.copy-btn {
  background: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 0.5em 1em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.copy-btn:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* --- Contact ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.contact-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 2px solid var(--magenta);
}

.contact-card__role {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* --- About -------------------------------------------------------------- */

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

.portrait {
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s var(--ease);
}

.portrait:hover {
  filter: grayscale(0) contrast(1);
}

.portrait-wrap {
  position: relative;
}

.portrait-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  translate: 1.25rem 1.25rem;
  border: 2px solid var(--magenta);
  border-radius: var(--radius);
  z-index: -1;
}

@media (max-width: 52rem) {
  .portrait-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Teaser video ------------------------------------------------------- */

.teaser {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-raised);
  border: var(--border);
}

.teaser video {
  width: 100%;
  display: block;
}

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

.site-footer {
  border-top: var(--border);
  padding-top: clamp(3rem, 6vw, 5rem);
  margin-top: auto;
}

.site-footer__inner {
  width: min(100% - var(--gutter) * 2, var(--wrap-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --- Brand mark ---------------------------------------------------------- */

.logo {
  display: block;
  width: 100%;
  height: auto;
  color: currentColor;
}

.site-footer__mark {
  display: block;
  width: clamp(8rem, 14vw, 11rem);
  color: var(--paper);
  transition: color var(--dur) var(--ease);
}

.site-footer__mark:hover {
  color: var(--yellow);
}

.logo--about {
  width: clamp(7rem, 12vw, 9.5rem);
  color: var(--magenta);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.site-footer__tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--magenta);
  margin-top: 0.5rem;
}

.site-footer__nav ul,
.site-footer__social ul {
  display: grid;
  gap: 0.6rem;
}

.site-footer__nav a,
.site-footer__social a {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer__nav a:hover,
.site-footer__social a:hover {
  color: var(--yellow);
}

.site-footer__legal {
  border-top: var(--border);
}

.site-footer__legal > * {
  display: contents;
}

.site-footer__legal {
  width: min(100% - var(--gutter) * 2, var(--wrap-wide));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.site-footer__legal a {
  color: inherit;
}

.site-footer__legal a:hover {
  color: var(--yellow);
}

@media (max-width: 44rem) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* --- Reveal on scroll --------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* --- Utilities ---------------------------------------------------------- */

/* An author-level `display` beats the UA stylesheet's `[hidden] { display: none }`,
   so components that set their own display must opt back out explicitly. */
[hidden] {
  display: none !important;
}

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

.text-yellow {
  color: var(--yellow);
}
.text-magenta {
  color: var(--magenta);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media print {
  .site-header,
  .site-footer__nav,
  .marquee {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
