/*
 * Bandfolk marketing site.
 *
 * Every colour, spacing step and type token below is mirrored from
 * packages/shared/src/theme.ts. Nothing here is invented: if a value needs to
 * change, change it in theme.ts first and copy it across.
 *
 * stone400 (#9B9B96) reaches only 2.7:1 on the off-white background, so it is
 * never used for text, only for non-informational rules.
 */

/* ---------------------------------------------------------------- fonts -- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.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+2074, 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: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.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+2074, 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: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin Extended carries the characters Finnish, Danish and Norwegian need
   beyond Latin-1, so it is loaded rather than left to a fallback face. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens -- */

:root {
  /* palette, from theme.ts */
  --off-white: #fafaf8;
  --white: #ffffff;
  --ink: #141414;
  --stone-600: #6b6b68;
  --stone-400: #9b9b96;
  --stone-200: #e5e4e0;
  --near-black: #0e0e0e;
  --charcoal: #1a1a19;
  --charcoal-line: #2a2a28;
  --bone: #f5f5f3;
  --ash: #a8a8a4;
  --ash-dim: #6e6e6a;
  --pine: #1f4a3f;
  --pine-pressed: #163529;
  --pine-lifted: #235448;
  --pine-light: #6fb89c;
  --claret: #8c2f27;
  --claret-light: #e08b84;

  /* light scheme */
  --bg: var(--off-white);
  --surface: var(--white);
  --text: var(--ink);
  --text-secondary: var(--stone-600);
  --hairline: var(--stone-200);
  --accent: var(--pine);
  --accent-pressed: var(--pine-pressed);
  --on-accent: var(--white);
  --accent-text: var(--pine);
  --danger: var(--claret);

  /* 4pt base, 8pt rhythm */
  --space-xxs: 0.125rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.25rem;
  --space-xxl: 1.5rem;
  --space-xxxl: 2rem;
  --space-huge: 3rem;
  --space-section: 4.5rem;
  --gutter: 1.25rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --hairline-width: 1px;
  --tap-target: 44px;

  --measure: 34rem;
  --page-max: 68rem;

  --duration-fast: 180ms;
  --duration-base: 200ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--near-black);
    --surface: var(--charcoal);
    --text: var(--bone);
    --text-secondary: var(--ash);
    --hairline: var(--charcoal-line);
    --accent: var(--pine-lifted);
    --accent-pressed: var(--pine);
    --on-accent: var(--white);
    --accent-text: var(--pine-light);
    --danger: var(--claret-light);
  }
}

/* ---------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

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

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

/* Without this the width and height attributes, which are there so the layout
   reserves the right space before a photograph decodes, also fix the rendered
   height, and the element cannot be scaled by its own aspect ratio. */
img {
  height: auto;
}

/* ----------------------------------------------------------------- base -- */

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  /*
   * Long Swedish and Finnish compounds must break rather than overflow, but
   * automatic hyphenation is off: it split "innan" across two lines in the
   * Swedish hero, which reads as a typo at display size.
   */
  overflow-wrap: break-word;
  hyphens: manual;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background-color: var(--accent);
  color: var(--on-accent);
}

/* ----------------------------------------------------------------- dark -- */

/*
 * The app's deck is always dark so that video is the brightest thing on
 * screen. The site borrows that: the page opens and closes on a dark block and
 * reads the light content between them as the part with the house lights up.
 *
 * These are not overrides. The scheme tokens are re-pointed on the element, so
 * every rule inside keeps referring to --text, --hairline and --accent and
 * needs no dark-surface variant of its own.
 */
.stage,
.site-footer,
.page-home .site-header {
  --surface: var(--charcoal);
  --text: var(--bone);
  --text-secondary: var(--ash);
  --hairline: var(--charcoal-line);
  --accent: var(--pine-lifted);
  --accent-pressed: var(--pine);
  --accent-text: var(--pine-light);
  --danger: var(--claret-light);
  background-color: var(--near-black);
  color: var(--text);
}

/* ------------------------------------------------------------ structure -- */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 10;
  transform: translateY(-150%);
  background-color: var(--accent);
  color: var(--on-accent);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  border-bottom: var(--hairline-width) solid var(--hairline);
}

/* The header and the hero are one slab on the home page, so nothing rules
   across it. */
.page-home .site-header {
  border-bottom: 0;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 4.5rem;
  padding-block: var(--space-md);
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--tap-target);
}

.wordmark__mark {
  width: 22px;
  height: 22px;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
}

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

.site-nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 500;
}

main {
  flex: 1 0 auto;
}

/* ----------------------------------------------------------------- hero -- */

/* No bottom rule: the waveform is the rule. */
.hero {
  padding-block: clamp(3.5rem, 1.5rem + 7vw, 7rem) 0;
}

/*
 * Headline on the left, the app on the right.
 *
 * This is the arrangement every app worth downloading uses, for a plain reason:
 * the one thing a visitor wants at the fold is to see the thing. A photograph
 * of musicians here would say what the copy already says, and say it slower.
 *
 * The card column is a fixed 21rem rather than a fraction, so the app is drawn
 * at the size an app is and the headline takes whatever is left. The columns
 * align at the top rather than at their centres: the card is taller than the
 * copy, and centring it opened a hand's width of empty stage above the eyebrow.
 *
 * The copy is in two parts so that the card can come between them when they
 * stack. Below 62rem the reading order is headline, app, store badges, which
 * puts the product on the first screen of a phone; with the badges above it the
 * app fell below the fold, which defeats the point of leading with it.
 */
.hero__inner {
  display: grid;
  gap: var(--space-xxl);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 22rem;
    column-gap: var(--space-huge);
    row-gap: var(--space-xxl);
  }

  .hero__copy {
    grid-area: 1 / 1;
  }

  /* Pinned to the foot of the card rather than left floating under the lead,
     so the badges and the card's buttons end on the same line. */
  .hero__cta {
    grid-area: 2 / 1;
    align-self: end;
  }

  .hero__product {
    grid-area: 1 / 2 / span 2;
  }
}

.hero__eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4rem);
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin-bottom: var(--space-xxl);
}

.hero__lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--text-secondary);
  max-width: var(--measure);
  margin-bottom: var(--space-xxxl);
}

/* Space for the waveform, which sits flush against the bottom of the block. */
.hero .wrap {
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

/* The grid's row gap sets the distance to whatever comes next, so the last
   paragraph of each part must not add its own. */
.hero__copy > :last-child,
.hero__cta > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------ app card -- */

/*
 * The app's swipe card, drawn rather than photographed.
 *
 * Every value below is a scheme token, so on the near-black stage the card
 * takes the same charcoal surface, the same hairline and the same pine as the
 * app itself does on its own dark deck. That is the point of drawing it: the
 * mock cannot drift away from the palette, because it is made of the palette.
 */
/* Capped at the width of a phone rather than allowed to grow with the column,
   so it stays a card and never becomes a poster. */
.hero__product {
  margin: 0;
  width: min(100%, 22rem);
}

.deck {
  display: grid;
  gap: var(--space-md);
}

.deck__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--surface);
  border: var(--hairline-width) solid var(--hairline);
}

/* Portrait, because a clip shot on a phone is portrait. */
.deck__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* The whole argument of the app is that you can hear the person, so the card
   says it is a clip rather than a headshot. Stroked at the weight of a rule. */
.deck__play {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  color: var(--bone);
  opacity: 0.85;
}

.deck__meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-huge) var(--space-xl) var(--space-xl);
  /* Mixed from the surface token rather than a literal rgba, so the scrim
     follows the palette. It reaches solid at the bottom edge, which is where
     the text sits, so the name is read off a flat colour and not off a
     photograph. */
  background-image: linear-gradient(
    to top,
    var(--near-black) 0%,
    color-mix(in srgb, var(--near-black) 72%, transparent) 45%,
    transparent 100%
  );
}

.deck__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--bone);
}

.deck__role {
  font-size: 0.9375rem;
  color: var(--ash);
}

.deck__note {
  font-size: 0.8125rem;
  color: var(--ash);
}

/* Not buttons and not links: nothing here is operable, and the app is not
   installed yet. They are drawn because a card with no verdict under it is not
   the screen anybody will actually see. */
.deck__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.deck__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  padding: var(--space-sm) var(--space-md);
  border: var(--hairline-width) solid var(--hairline);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.deck__button--accept {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* The site says elsewhere that the photographs are generated. This says what
   the card is, which is the part a visitor cannot work out on their own. */
.hero__caption {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/*
 * The equaliser in the wordmark, stretched until it becomes the divider
 * between the stage and the page. It is doing a structural job, so it is drawn
 * at the density of a rule rather than the scale of an illustration.
 */
.waveform {
  display: block;
  width: 100%;
  height: 3.5rem;
}

.waveform__quiet {
  fill: var(--charcoal-line);
}

.waveform__loud {
  fill: var(--pine-lifted);
}

/* --------------------------------------------------------------- prose -- */

.page-head {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) var(--space-xxxl);
  border-bottom: var(--hairline-width) solid var(--hairline);
}

.page-head h1 {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  max-width: 22ch;
}

.page-head__meta {
  margin-top: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.prose {
  max-width: var(--measure);
  padding-block: var(--space-huge) var(--space-section);
}

.prose > * + * {
  margin-top: var(--space-xl);
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: var(--space-section);
  padding-top: var(--space-xxl);
  border-top: var(--hairline-width) solid var(--hairline);
}

.prose h3 {
  font-size: 1.0625rem;
  margin-top: var(--space-xxxl);
}

.prose h2 + *,
.prose h3 + * {
  margin-top: var(--space-md);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: var(--space-sm);
}

.prose dl {
  display: grid;
  gap: var(--space-md);
}

.prose dt {
  font-weight: 600;
}

.prose dd {
  margin: 0;
  color: var(--text-secondary);
}

.prose strong {
  font-weight: 600;
}

.prose address {
  font-style: normal;
  color: var(--text-secondary);
}

.lede {
  font-size: 1.1875rem;
  color: var(--text-secondary);
}

/* Marked gaps the operator still has to fill. Deliberately conspicuous. */
.todo {
  font-weight: 500;
  color: var(--text);
  background-color: var(--surface);
  border: var(--hairline-width) solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
  white-space: normal;
}

.callout {
  border: var(--hairline-width) solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  padding: var(--space-xl);
}

.callout > * + * {
  margin-top: var(--space-md);
}

.callout h2,
.callout h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------- blocks -- */

.section {
  padding-block: var(--space-section);
  border-bottom: var(--hairline-width) solid var(--hairline);
}

.section .wrap > h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  max-width: 24ch;
  margin-bottom: var(--space-xxl);
}

/*
 * Rehearsal marks. A score numbers its sections in the margin so a room full
 * of players can be told where to start; the home page is numbered the same
 * way, which gives the four sections an audible order instead of four equal
 * slabs of text.
 */
.section__index {
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: var(--space-md);
}

.section__intro {
  max-width: var(--measure);
  color: var(--text-secondary);
  margin-bottom: var(--space-huge);
}

.grid {
  display: grid;
  gap: var(--space-xxxl);
  /* 13rem rather than 15rem so the four audience cards form one row at 1280. */
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

/*
 * The four audience cards are a list of who the app is for, and a list is best
 * set as a list.
 *
 * They used to open on a photograph each. Four photographs across a section
 * whose text is two lines per card turned a short taxonomy into a gallery: the
 * imagery was the largest thing on the page and the argument was the smallest,
 * and no photograph of an empty drum kit tells you anything about a band that
 * needs a drummer. A rule above each one groups them just as well and leaves
 * the words the loudest thing in the section.
 */
.card {
  display: flex;
  flex-direction: column;
  border-top: var(--hairline-width) solid var(--hairline);
  padding-top: var(--space-lg);
}

/*
 * Heading and body align across the whole row rather than only at the top edge,
 * so headings of one and two lines do not push the paragraphs on to different
 * baselines. Without subgrid the cards keep their own rhythm, which is the
 * layout above and still reads correctly.
 */
@supports (grid-template-rows: subgrid) {
  .card {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    /* A subgrid inherits the parent's gaps, and the parent's row gap is the
       distance between two rows of cards, not between a heading and its
       paragraph. The margin below sets that instead. */
    row-gap: 0;
  }
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}

.card p {
  color: var(--text-secondary);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-huge) var(--space-xxxl);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Bar lines. The four steps were already counted 1 to 4, so ruling them
   vertically turns the count into a measure rather than a numbered list. */
.steps > li {
  counter-increment: step;
  border-left: var(--hairline-width) solid var(--hairline);
  padding-left: var(--space-lg);
}

/* A bar line carries meaning, unlike the hairlines that only bound a box, so
   on the dark surface it is drawn at a weight that still reads as a rule. */
.stage .steps > li {
  border-left-color: var(--ash-dim);
}

.steps > li::before {
  content: counter(step);
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: var(--space-sm);
}

.steps h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-xs);
}

.steps p {
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------- price -- */

.price {
  display: grid;
  gap: var(--space-xxl);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 46em) {
  .price {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: var(--space-huge);
  }
}

.price__tag {
  border: var(--hairline-width) solid var(--hairline);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  padding: var(--space-xxl);
}

.price__amount {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: block;
}

.price__note {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: var(--space-md);
}

.price__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-md);
}

.price__list li {
  padding-left: 1.75rem;
  position: relative;
}

.price__list li::before {
  /* A hairline tick drawn in CSS, so no icon font and no extra request. */
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.5em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 1.5px solid var(--accent-text);
  border-bottom: 1.5px solid var(--accent-text);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------- badges -- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Not links: the apps are unpublished, so a link here would either 404 or
   point at someone else's listing. Rendered as static, non-interactive marks
   with the coming-soon state in the accessible name. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 3.5rem;
  padding: var(--space-md) var(--space-xl);
  border: var(--hairline-width) solid var(--hairline);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  color: var(--text-secondary);
}

.badge svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--text-secondary);
}

.badge__text {
  display: grid;
  line-height: 1.3;
}

.badge__store {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
}

.badge__status {
  font-size: 0.8125rem;
}

/* ---------------------------------------------------------------- forms -- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  padding: var(--space-md) var(--space-xxl);
  border-radius: var(--radius-sm);
  border: var(--hairline-width) solid var(--accent);
  background-color: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--duration-fast) ease;
}

.button:hover {
  background-color: var(--accent-pressed);
  border-color: var(--accent-pressed);
  color: var(--on-accent);
}

.button--quiet {
  background-color: transparent;
  border-color: var(--hairline);
  color: var(--text);
}

.button--quiet:hover {
  background-color: transparent;
  border-color: var(--text-secondary);
  color: var(--text);
}

/* ----------------------------------------------------------------- faq -- */

.faq {
  display: grid;
  gap: 0;
  max-width: var(--measure);
}

.faq > div {
  border-top: var(--hairline-width) solid var(--hairline);
  padding-block: var(--space-xxl);
}

.faq > div:last-child {
  border-bottom: var(--hairline-width) solid var(--hairline);
}

.faq h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}

.faq p {
  color: var(--text-secondary);
}

.faq p + p {
  margin-top: var(--space-md);
}

/* -------------------------------------------------------------- closing -- */

/*
 * The one photograph on the site that is allowed to be large, and the only one
 * that bleeds.
 *
 * Held to a single deliberate moment rather than sprinkled as tiles, and put
 * where a photograph earns its space: at the end, after the argument is made,
 * as the room you are trying to get into. It runs to both viewport edges with
 * no radius and no gutter, so it is the page going dark rather than a picture
 * placed on the page, and it fades into the footer's near-black so there is no
 * seam between the two.
 */
.closing {
  position: relative;
  background-color: var(--near-black);
}

/*
 * A band, not a panel. A wide viewport is wider than the file's own 26:9, so
 * the crop is held to the top: the players' heads are in the upper third and
 * anything centred takes them off while filling the lower half with floor.
 */
.closing__photo {
  display: block;
  width: 100%;
  height: clamp(11rem, 4.5rem + 19vw, 22rem);
  object-fit: cover;
  object-position: center top;
}

.closing::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  /* Deep enough that the join lands inside the photograph's own shadows rather
     than at a line across it. */
  height: 55%;
  background-image: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--near-black) 55%, transparent) 55%,
    var(--near-black) 100%
  );
}

/* The photograph is the end of the light part of the page, so the rule that
   would have closed the section above it is redundant. */
.section:has(+ .closing) {
  border-bottom: 0;
}

/* --------------------------------------------------------------- footer -- */

/* The lights go down again. Every page ends on the same dark block, which is
   also what gives the long legal pages an ending instead of a stop. */
.site-footer {
  padding-block: var(--space-section) var(--space-xxxl);
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-huge) var(--space-xxxl);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.site-footer h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

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

.site-footer li + li {
  margin-top: var(--space-xxs);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: 0.9375rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a[aria-current='page'] {
  font-weight: 500;
}

.lang-switcher a[aria-current='true'] {
  font-weight: 600;
  color: var(--accent-text);
}

.site-footer__legal {
  margin-top: var(--space-section);
  padding-top: var(--space-xxl);
  border-top: var(--hairline-width) solid var(--hairline);
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: grid;
  gap: var(--space-sm);
}

.site-footer__legal p {
  max-width: 48rem;
}

/* ------------------------------------------------------------------ 404 -- */

.notfound {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--space-section);
}

.notfound h1 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  margin-bottom: var(--space-xl);
}

.notfound p {
  color: var(--text-secondary);
  max-width: var(--measure);
  margin-bottom: var(--space-xxxl);
}

/* A class rather than a style attribute, so the CSP can stay free of
   'unsafe-inline' for styles. */
.notfound__cta {
  margin-top: var(--space-xxxl);
}

/* --------------------------------------------------------------- utils -- */

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

.stack-sm > * + * {
  margin-top: var(--space-md);
}

.stack > * + * {
  margin-top: var(--space-xl);
}

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

@media print {
  .site-header,
  .site-footer__grid,
  .waveform,
  .closing,
  .skip-link {
    display: none;
  }

  body,
  .site-footer,
  .stage {
    background: #fff;
    color: #000;
  }
}
