/* The Hip Hop Lab — system primitives, revision 0.4.
   Owner: stage lane. Shared by every lane: masthead, spinning mark, navigation, frame,
   grain, buttons and their three styles, pills, labels, section heads, footer, view
   transitions.
   Every colour, size and duration comes from tokens.css. */

/* ---------- Reset and base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink-0);
  scroll-padding-top: var(--masthead-h);
}

/* In-page links glide to their section, under the header (section 8); native scrolling. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* `hidden` always wins over a component's display (tour section, hero slides, toggles). */
[hidden] {
  display: none !important;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: var(--display-weight);
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-on-dark);
}

main {
  display: block;
  padding-top: var(--masthead-h);
}

main:focus {
  outline: none;
}

::selection {
  background: var(--brand-red);
  color: var(--text);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: calc(var(--z-menu) + 1);
  padding: 0.75rem 1.125rem;
  background: var(--text);
  color: var(--ink-0);
  font-size: var(--fs-button);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

/* ---------- Masthead ---------- */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-masthead);
  height: var(--masthead-h);
  background: color-mix(in srgb, var(--ink-0) 92%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.75rem);
  height: 100%;
  padding: 0 var(--gutter);
}

/* ---------- The spinning mark (behaviour: assets/spin.js) ----------
   Ruling 14: no 3D. assets/spin.js sets --spin-angle on [data-spin-logo]; everything here is
   a 2D transform computed from it, so the mark reads "THHL" through the whole turn in every
   engine. The face is scaled horizontally by |cos|. The visible face sits depth/2 towards
   the viewer, offset by sin; the edge layers sit behind it at fraction --f of the depth
   (1 = the far face), and a rim d|sin| wide gives the slab its width edge-on. --s is the
   sign of cos: which face the viewer sees. Without CSS trigonometry every transform here is
   invalid, so the mark stays still and front-facing. */

@property --spin-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

.brand {
  position: relative;
  flex: none;
  display: block;
  height: var(--logo-h);
  aspect-ratio: 245 / 192;
  view-transition-name: brand;
  -webkit-tap-highlight-color: transparent;
}

.brand__coin {
  --a: var(--spin-angle, 0deg);
  --cos: cos(var(--a));
  --sin: sin(var(--a));
  --c: max(var(--cos), calc(-1 * var(--cos)));
  --abs-sin: max(var(--sin), calc(-1 * var(--sin)));
  --side: min(1, calc(var(--abs-sin) * 60));   /* 0 face-on, 1 from about 1 degree */
  --s: clamp(-1, calc(var(--cos) * 1000), 1);
  --d: calc(var(--logo-h) * 0.135);   /* depth: 7 px at 52, 5.7 px at 42 */
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.brand__face,
.brand__edge,
.brand__rim {
  position: absolute;
  top: 0;
  height: 100%;
  will-change: transform;
}

.brand__face,
.brand__edge {
  left: 0;
  width: 100%;
}

.brand__face {
  object-fit: contain;
  transform: translateX(calc(var(--s) * var(--sin) * var(--d) / 2)) scaleX(var(--c));
}

.brand__edge,
.brand__rim {
  -webkit-mask: url("/assets/logo/thhl-mark-384.webp") center / 100% 100% no-repeat;
  mask: url("/assets/logo/thhl-mark-384.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Brand red at the visible face, darkening towards the far face, so the side reads as one
   surface turning away from the light. */
.brand__edge {
  background: color-mix(in srgb, var(--brand-red) calc(100% - var(--f) * 45%), var(--ink-0));
  transform: translateX(calc(var(--s) * var(--sin) * var(--d) * (0.5 - var(--f)))) scale(var(--c), var(--side));
}

/* The side wall seen end-on: the mark's own central strip, d|sin| wide. Lit brand red, so
   edge-on the slab holds 3:1 or more against the header (ruling 16); brand red alone is
   2.94:1 on ink. */
.brand__rim {
  left: calc(50% - var(--d) / 2);
  width: var(--d);
  background: color-mix(in srgb, var(--brand-red) 78%, var(--text));
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  transform: scaleX(var(--abs-sin));
}

/* Without JavaScript the angle itself turns, once every 4 s, where the browser can animate a
   registered custom property; elsewhere the mark stays still and front-facing. */
.brand:not([data-spin-js]) {
  animation: brand-turn 4s linear infinite;
}

@keyframes brand-turn {
  from {
    --spin-angle: 0deg;
  }
  to {
    --spin-angle: 360deg;
  }
}

.brand:focus-visible {
  box-shadow: var(--focus-on-dark);
}

/* The mark is 42 px tall on a phone; its hit area is 54 (ruling 10). */
.brand::after {
  content: "";
  position: absolute;
  inset: -6px -4px;
}

/* ---------- Navigation ----------
   Section 8: a clear bar. The mark at the left, the real destinations as Archivo text links
   (17 px, 44 px targets), the current page underlined in signal red. Under 64em a Menu button
   opens them (0.3 behaviour and focus rules, assets/menu.js). No index numbers. */

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
}

.site-nav ol,
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 0.5rem;
  font-family: var(--font-text);
  font-size: var(--fs-nav);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--text-2);
  transition: color var(--dur-ui) var(--ease-out);
}

.site-nav__secondary a {
  font-weight: 500;
}

.site-nav__text {
  padding-block: 0.3em;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-ui) var(--ease-out);
}

@media (hover: hover) {
  .site-nav a:hover {
    color: var(--text);
  }

  .site-nav a:hover .site-nav__text {
    border-bottom-color: var(--line-strong);
  }
}

.site-nav a[aria-current="page"],
.site-nav a.is-section {
  color: var(--text);
}

.site-nav a[aria-current="page"] .site-nav__text,
.site-nav a.is-section .site-nav__text {
  border-bottom-color: var(--signal);
}

.site-nav__secondary {
  padding-left: clamp(0.5rem, 1.2vw, 1.25rem);
  border-left: 1px solid var(--line);
}

/* The Menu button comes before the navigation in the document, so on a phone Tab goes from
   Menu into the open menu; `order` keeps the desktop layout: mark, navigation, clock. */
.masthead__end {
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.site-nav {
  order: 1;
}

.clock {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.clock__time {
  color: var(--text-2);
}

.masthead .menu-toggle,
.masthead__merch {
  display: none;
}

/* Narrow screens: a Merch link beside Menu (from 360 px; the full navigation shows at 64em). */
.masthead__merch {
  align-items: center;
  min-height: var(--target);
  padding: 0 0.5rem;
  font-size: var(--fs-nav);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
}

.masthead__merch[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

@media (hover: hover) {
  .masthead__merch:hover {
    color: var(--text);
  }
}

@media (min-width: 22.5em) and (max-width: 63.99em) {
  .js .masthead__merch {
    display: inline-flex;
  }
}

@media (max-width: 63.99em) {
  .js .masthead .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: var(--z-menu);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    max-height: calc(100svh - var(--masthead-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 2.25rem;
    background: var(--ink-1);
    border-bottom: 1px solid var(--line);
  }

  .js .masthead.menu-open .site-nav {
    display: flex;
    animation: menu-in var(--dur-ui) var(--ease-out);
  }

  .js .site-nav ol,
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .site-nav a {
    width: 100%;
    padding: 0;
  }

  .js .site-nav ol a {
    min-height: 3.75rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-stretch: var(--display-stretch);
    font-weight: var(--display-weight);
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    letter-spacing: var(--display-tracking);
    color: var(--text);
  }

  .js .site-nav ol a .site-nav__text {
    border-bottom: 0;
  }

  .js .site-nav ol a[aria-current="page"],
  .js .site-nav ol a.is-section {
    box-shadow: inset 4px 0 0 var(--signal);
    padding-left: 1rem;
  }

  .js .site-nav__secondary {
    padding-left: 0;
    border-left: 0;
  }

  .js .site-nav__secondary a {
    min-height: 3rem;
    font-size: 1.125rem;
  }

  .js .clock {
    display: none;
  }

  /* No JavaScript: the navigation stays visible and wraps under the mark. */
  :root:not(.js) .masthead {
    position: relative;
    height: auto;
  }

  :root:not(.js) main {
    padding-top: 0;
  }

  :root:not(.js) .masthead__inner {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  :root:not(.js) .site-nav,
  :root:not(.js) .site-nav ol,
  :root:not(.js) .site-nav ul {
    flex-wrap: wrap;
  }

  :root:not(.js) .site-nav__secondary {
    padding-left: 0;
    border-left: 0;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

/* ---------- Frame hairlines and grain ---------- */

.frame {
  position: fixed;
  inset: 0;
  z-index: var(--z-frame);
  pointer-events: none;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.frame::before {
  left: var(--frame-inset);
}

.frame::after {
  right: var(--frame-inset);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: var(--z-grain);
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
}

/* ---------- Buttons ----------
   Section 8: three styles the owner switches on the real page with ?buttons=a|b|c, applied
   as html[data-buttons] (shell.py writes the default; its head script applies and remembers
   the choice for the visit). Every control on Home uses these classes:
     .btn          the main action (Listen Now, Open <artist>, Shop all)
     .btn--quiet   a secondary action (Pause, Sound, All interviews, Menu, platform links)
     .btn--icon    a square or round control with an icon and a hidden or short label
   Toggles carry aria-pressed or aria-expanded; their "on" state is styled per style.
   States in every style: rest, hover (only where hover exists), focus-visible, pressed
   (:active), on (aria-pressed / aria-expanded), disabled ([disabled], [aria-disabled]).

   a  Soft: pills. Solid white main action, frosted-glass quiet ones, a 1 px lift on hover and
      a press-in on :active. Medium weight, sentence case. Reads like a player app.
   b  Block: square slabs. Expanded Archivo 800 in capitals, 2 px borders, the main action in
      brand red with a hard white offset shadow that the button pushes into when pressed.
   c  Line: no box. Large text on a 2 px rule; on hover a fill wipes up from the rule and the
      text inverts; the arrow travels. Editorial and quiet. */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--btn-h);
  padding: 0 1.375rem;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--ink-0);
  font-family: var(--font-text);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out),
    transform var(--dur-ui) var(--ease-out), background-size var(--dur-ui) var(--ease-out);
}

/* On a narrow screen a long label wraps instead of pushing the page sideways. */
@media (max-width: 29.99em) {
  .btn {
    max-width: 100%;
    white-space: normal;
  }
}

.btn--quiet,
.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn--icon {
  width: var(--btn-h);
  min-width: var(--btn-h);
  padding: 0;
}

.btn svg {
  flex: none;
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-ui) var(--ease-out);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
}

/* --- a: Soft --- */

[data-buttons="a"] .btn {
  padding: 0 1.5rem;
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--ink-0);
  font-weight: 600;
}

[data-buttons="a"] .btn--quiet,
[data-buttons="a"] .btn--ghost {
  border-color: var(--glass-line);
  background: var(--glass);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

[data-buttons="a"] .btn--icon {
  padding: 0;
}

@media (hover: hover) {
  [data-buttons="a"] .btn:hover {
    border-color: var(--white);
    background: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.35);
  }

  [data-buttons="a"] .btn--quiet:hover,
  [data-buttons="a"] .btn--ghost:hover {
    border-color: var(--line-strong);
    background: var(--glass-2);
    color: var(--text);
  }

  [data-buttons="a"] .btn:hover .btn__arrow {
    transform: translateX(0.2em);
  }
}

[data-buttons="a"] .btn:active {
  transform: scale(0.96);
  box-shadow: none;
}

[data-buttons="a"] .btn--quiet:active,
[data-buttons="a"] .btn--ghost:active {
  background: var(--glass-3);
}

[data-buttons="a"] .btn[aria-pressed="true"],
[data-buttons="a"] .btn[aria-expanded="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--ink-0);
}

[data-buttons="a"] .btn:disabled,
[data-buttons="a"] .btn[aria-disabled="true"] {
  border-color: var(--line);
  background: var(--glass);
  color: var(--text-3);
  transform: none;
  box-shadow: none;
}

/* --- b: Block --- */

[data-buttons="b"] .btn {
  padding: 0 1.25rem;
  border: 2px solid var(--brand-red);
  border-radius: 0;
  background: var(--brand-red);
  color: var(--text);
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--text);
  transition-duration: 0.09s;
}

[data-buttons="b"] .btn--quiet,
[data-buttons="b"] .btn--ghost {
  border-color: var(--text);
  background: var(--ink-0);
  color: var(--text);
  box-shadow: none;
}

[data-buttons="b"] .btn--icon {
  padding: 0;
}

@media (hover: hover) {
  [data-buttons="b"] .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
  }

  [data-buttons="b"] .btn--quiet:hover,
  [data-buttons="b"] .btn--ghost:hover {
    background: var(--text);
    color: var(--ink-0);
    transform: none;
    box-shadow: none;
  }
}

[data-buttons="b"] .btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--text);
}

[data-buttons="b"] .btn--quiet:active,
[data-buttons="b"] .btn--ghost:active {
  transform: translate(2px, 2px);
}

[data-buttons="b"] .btn[aria-pressed="true"],
[data-buttons="b"] .btn[aria-expanded="true"] {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: var(--text);
}

[data-buttons="b"] .btn:disabled,
[data-buttons="b"] .btn[aria-disabled="true"] {
  border-color: var(--line-strong);
  background: var(--ink-0);
  color: var(--text-3);
  transform: none;
  box-shadow: none;
}

/* --- c: Line --- */

[data-buttons="c"] .btn {
  padding: 0 0.625rem;
  border: 0;
  border-bottom: 2px solid var(--signal);
  border-radius: 0;
  background: linear-gradient(var(--text), var(--text)) left bottom / 100% 0 no-repeat;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
  box-shadow: none;
}

[data-buttons="c"] .btn--quiet,
[data-buttons="c"] .btn--ghost {
  border-bottom-color: var(--line-strong);
}

[data-buttons="c"] .btn--icon {
  padding: 0;
}

@media (hover: hover) {
  [data-buttons="c"] .btn:hover {
    background-size: 100% 100%;
    color: var(--ink-0);
    border-bottom-color: var(--text);
  }

  [data-buttons="c"] .btn:hover .btn__arrow {
    transform: translateX(0.35em);
  }
}

[data-buttons="c"] .btn:active {
  background-image: linear-gradient(var(--text-2), var(--text-2));
  background-size: 100% 100%;
  color: var(--ink-0);
}

[data-buttons="c"] .btn[aria-pressed="true"],
[data-buttons="c"] .btn[aria-expanded="true"] {
  border-bottom-color: var(--signal);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 -4px 0 var(--signal);
}

[data-buttons="c"] .btn:disabled,
[data-buttons="c"] .btn[aria-disabled="true"] {
  border-bottom-color: var(--line);
  background-size: 100% 0;
  color: var(--text-3);
}

/* The focus ring is the same in every style. */
.btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-on-dark);
}

/* Paper surfaces (until the merch lane moves them to the dark ground). */
.btn--paper {
  border-color: var(--paper-text);
  background: var(--paper-text);
  color: var(--paper);
}

.btn--paper:focus-visible {
  box-shadow: var(--focus-on-paper);
}

/* ---------- Pills and labels ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  height: var(--pill-h);
  padding: 0 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--paper-text);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: var(--fs-pill);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* A small heading or caption: Archivo, sentence case, readable. Revision 0.3's monospaced
   index labels are gone (section 8). */
.label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--font-text);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--label-tracking);
  color: var(--text-2);
}

.label a {
  color: var(--text-2);
  text-decoration: none;
}

.label a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Section head: a large title, an optional line, an optional action ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head__title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  font-size: var(--fs-title);
  letter-spacing: var(--display-tracking);
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section-head__text {
  flex-basis: 100%;
  order: 3;
  max-width: var(--measure);
  color: var(--text-2);
  font-size: var(--fs-lead);
}

.section-head__action {
  flex: none;
}

/* ---------- Scroll-driven reveal (CSS only, no listeners) ---------- */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(1.75rem);
    }
  }
}

/* ---------- Footer: closes on the wordmark ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) var(--gutter) 0;
  background: var(--ink-0);
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: grid;
  gap: 2.5rem var(--gutter);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

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

.site-footer__list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--text-2);
  font-size: var(--fs-lead);
  text-decoration: none;
  transition: color var(--dur-ui) var(--ease-out);
}

.site-footer__list a:hover,
.site-footer__list a[aria-current="page"] {
  color: var(--text);
}

.site-footer__list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--signal);
}

.site-footer__place {
  color: var(--text-2);
  font-size: var(--fs-lead);
}

.site-footer__wordmark {
  margin: 0;
  padding-bottom: clamp(0.75rem, 1.6vw, 1.5rem);
  color: var(--text);
}

.site-footer__wordmark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.site-footer__wordmark text {
  fill: currentColor;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 900;
  letter-spacing: -0.02em;
}

@media (min-width: 48em) {
  .site-footer__top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Paper surfaces (the merch band) ---------- */

.on-paper :focus-visible,
.merch-band :focus-visible {
  box-shadow: var(--focus-on-paper);
}

/* ---------- Cross-document view transitions ---------- */

@view-transition {
  navigation: auto;
}

::view-transition-group(*) {
  animation-duration: var(--dur-page);
  animation-timing-function: var(--ease-stage);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur-ui);
}

/* ---------- Reduced motion: nothing moves ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  /* Still and front-facing, with no edge showing. */
  .brand {
    --spin-angle: 0deg;
  }

  .brand__face {
    transform: none;
    will-change: auto;
  }

  .brand__edge,
  .brand__rim {
    display: none;
  }

  .btn,
  .btn:hover,
  .btn:active,
  .btn .btn__arrow {
    transform: none !important;
  }
}
