/* Minim launch site. Tokens and rules from docs/site/BRIEF.md. */

:root {
  --paper: #f7f2e9;
  --paper-raised: #fffcf6;
  --paper-sunken: #efe8db;
  --ink: #1f1a17;
  --ink-muted: #6b6159;
  --rule: #ddd3c3;
  --rule-strong: #b9ac98;
  --accent: #7a1f2b;
  --accent-hover: #631823;
  --accent-soft: #f3e3e1;
  --on-accent: #fffaf3;
  --success: #2f6b43;
  --success-soft: #e2efe4;
  --warning: #8a5a00;
  --warning-soft: #f7ead0;
  --gold: #a8873a;
  --shadow:
    0 1px 2px rgb(60 40 20 / 0.06), 0 8px 24px -8px rgb(60 40 20 / 0.14),
    0 24px 48px -24px rgb(60 40 20 / 0.18);

  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:
    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 10vw, 9rem);
  --header-h: 4rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16120f;
    --paper-raised: #1f1a16;
    --paper-sunken: #120f0c;
    --ink: #f1e9dc;
    --ink-muted: #a99d8e;
    --rule: #3a322b;
    --rule-strong: #5a4f44;
    --accent: #e3949b;
    --accent-hover: #eeaeb3;
    --accent-soft: #3a1f22;
    --on-accent: #1f0d10;
    --success: #8cc79d;
    --success-soft: #1e3324;
    --warning: #e3b766;
    --warning-soft: #3a2d14;
    --gold: #c9a95c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}

/* Base */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

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

section[id],
main {
  scroll-margin-top: var(--header-h);
}

main:focus {
  outline: none;
}

.num {
  font-variant-numeric: lining-nums tabular-nums;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(40rem + 2 * var(--gutter));
}

/* Type */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.4;
}

.display,
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.25rem);
}

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  margin-top: 0.85rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.75rem 0 0;
}

/* The faint staff: five 1px lines, 9px apart, behind a headline. */
.staff-band {
  position: relative;
}

.staff-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -100vw;
  right: -100vw;
  height: 37px;
  translate: 0 -50%;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--rule) 0,
    var(--rule) 1px,
    transparent 1px,
    transparent 9px
  );
  opacity: 0.4;
  pointer-events: none;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms var(--ease),
    transform 160ms var(--ease);
}

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

.button:active {
  transform: translateY(1px);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--accent-soft);
  border-radius: 999px;
}

.button--small {
  padding: 0 1.1rem;
}

.button--large {
  min-height: 3.5rem;
  padding: 0 2rem;
  font-size: 1.0625rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--rule);
}

.js .site-header {
  border-bottom-color: transparent;
  transition: border-color 200ms var(--ease);
}

.js .site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-block: 0.4rem;
  color: var(--ink);
  text-decoration: none;
}

.logo .mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--ink);
}

.site-header .logo .mark {
  color: var(--accent);
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1;
  padding-bottom: 0.15rem;
  color: var(--ink);
}

.site-nav {
  display: none;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  transition: color 160ms var(--ease);
}

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

.site-header .button {
  margin-left: auto;
}

@media (min-width: 48rem) {
  .site-nav {
    display: block;
  }

  .site-header .button {
    margin-left: 0.5rem;
  }
}

/* Hero */

.hero {
  overflow-x: clip;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    min-height: min(92vh, 56rem);
  }

  .hero-copy {
    grid-column: 1 / span 6;
  }

  .composition {
    grid-column: 7 / span 6;
  }
}

.hero h1 {
  margin-top: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* The composition: slip, programme, stamp. */

.composition {
  position: relative;
  width: min(100%, 27rem);
  margin-inline: auto;
  padding: 8.5rem 0 1.5rem;
}

.plane {
  translate: var(--px, 0px) var(--py, 0px);
}

.plane--slip {
  position: absolute;
  top: 0;
  left: 0;
  width: min(17rem, 78%);
  rotate: -6deg;
}

.plane--programme {
  position: relative;
  width: min(22rem, calc(100% - 1.5rem));
  margin-left: auto;
  rotate: 2deg;
}

.plane--stamp {
  position: absolute;
  right: -0.25rem;
  bottom: 0.25rem;
  width: 5.5rem;
  height: 5.5rem;
  rotate: -10deg;
}

.slip,
.programme,
.ro-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.slip {
  padding: 1.1rem 1.25rem 1.25rem;
}

.slip-name {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
}

.slip-number {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.slip-number span {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.slip-days {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.bar {
  height: 0.5rem;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: var(--paper-sunken);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--fill, 1));
}

.programme,
.ro-card {
  padding: 1.4rem 1.4rem 1.2rem;
}

.foil {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
}

.programme-title {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.programme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-order,
.ro-list {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}

.hero-order li,
.ro-main {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: baseline;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.hero-order li + li {
  border-top: 1px solid var(--rule);
}

.hero-order time,
.ro-time {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
}

.ro-piece em,
.ro-piece i {
  font-family: var(--serif);
  font-size: 1rem;
}

.ro-piece i {
  font-style: italic;
}

.ro-who {
  display: block;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.ro-len {
  justify-self: end;
  color: var(--ink-muted);
}

.hero-order .is-interval {
  border-block: 1px solid var(--rule-strong);
}

.hero-order .is-interval + li {
  border-top: 0;
}

.programme-foot {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-strong);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.programme-foot strong {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.stamp {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--success);
  overflow: visible;
}

.stamp circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.stamp circle:first-child {
  fill: var(--paper-raised);
}

.stamp .thin {
  stroke-width: 0.75;
}

.stamp-caps {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: currentColor;
}

.stamp-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  fill: currentColor;
}

/* Chapters */

.chapter {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--rule);
}

.chapter-head {
  max-width: 44rem;
}

.chapter-intro {
  margin-top: 1.5rem;
  color: var(--ink-muted);
  max-width: 40rem;
}

/* 2. Programme note */

.note .narrow > p:not(.eyebrow) {
  margin-top: 1.5rem;
}

.note .narrow {
  text-align: left;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: 0.82;
  font-weight: 500;
  padding: 0.08em 0.1em 0 0;
  color: var(--accent);
}

.note-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--accent);
}

/* 3. How it works */

.movements {
  display: grid;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.movement {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}

.movement:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 56rem) {
  .movements {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .movement {
    padding: 0 2rem;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .movement:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .movement:last-child {
    padding-right: 0;
  }
}

.numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
}

.movement h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.movement-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.movement > p {
  color: var(--ink-muted);
}

.movement .text-link {
  align-self: flex-start;
}

.vignette {
  margin-top: 0.4rem;
  padding: 1.1rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  font-size: 0.875rem;
}

.vignette--practice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.mini-field {
  display: grid;
  gap: 0.3rem;
}

.mini-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.mini-input {
  display: flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
  font-size: 1rem;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  white-space: nowrap;
}

.mini-number {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-size: 1.375rem;
}

.vignette--practice .bar {
  grid-column: 1 / -1;
  margin-top: 0;
}

.vignette--practice .bar span {
  transition: transform 600ms var(--ease);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
}

.mini-table td {
  padding: 0.45rem 0.25rem;
  border-top: 1px solid var(--rule);
  vertical-align: baseline;
}

.mini-table tr:first-child td {
  border-top: 0;
}

.mini-table td:nth-child(2) {
  color: var(--ink-muted);
  white-space: nowrap;
}

.mini-table td:nth-child(3) {
  text-align: right;
}

.mini-table .is-open td {
  font-weight: 600;
}

.mini-table .session td {
  border-top: 0;
  padding: 0 0.25rem 0.6rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  border-left: 2px solid var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.mini-order li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: baseline;
  padding-block: 0.4rem;
  border-top: 1px solid var(--rule);
}

.mini-order li:first-child {
  border-top: 0;
}

.mini-order time {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
}

.mini-order em {
  font-family: var(--serif);
  font-size: 1rem;
}

.mini-order span {
  color: var(--ink-muted);
}

/* 4. The running order */

.scrolly {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.steps {
  display: grid;
  gap: 3.5rem;
}

.step {
  display: grid;
  gap: 1.5rem;
}

.step-copy {
  max-width: 30rem;
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--ink-muted);
}

.step h3 {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.step-copy p {
  margin-top: 0.6rem;
}

.step .ro-card {
  width: min(100%, 28rem);
}

.sticky-col {
  display: none;
}

.ro-row,
.ro-gap,
.ro-warn {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
}

.ro-row.is-on,
.ro-gap.is-on,
.ro-warn.is-on {
  grid-template-rows: 1fr;
  opacity: 1;
}

.ro-clip {
  min-height: 0;
  overflow: hidden;
}

.ro-row.is-on + .ro-row.is-on .ro-main {
  border-top: 1px solid var(--rule);
}

.ro-gap.is-on + .ro-main,
.ro-interval.is-on + .ro-row .ro-main {
  border-top: 0 !important;
}

.ro-interval .ro-main {
  border-block: 1px solid var(--rule-strong) !important;
}

.ro-gap span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 1.25rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.ro-gap span::before,
.ro-gap span::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--rule-strong);
}

.ro-warn p {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.875rem;
  font-weight: 600;
}

.ro-ok {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
  opacity: 0;
}

.ro-ok.is-on {
  opacity: 1;
}

.ro-ok:not(.is-on) {
  display: none;
}

/* A ticking value: the old one slides up, the new one in from below. */
.tick {
  display: inline-grid;
  clip-path: inset(0);
}

.tick > span {
  grid-area: 1 / 1;
}

.ro-len.tick {
  justify-items: end;
}

@media (prefers-reduced-motion: no-preference) {
  .js .ro-row,
  .js .ro-gap,
  .js .ro-warn {
    transition:
      grid-template-rows 400ms var(--ease),
      opacity 300ms var(--ease);
  }

  .js .ro-ok {
    transition: opacity 300ms var(--ease);
  }
}

@media (min-width: 64rem) {
  .js .scrolly {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28rem;
    gap: 4rem;
  }

  .js .steps {
    gap: 0;
    padding-block: 10vh 20vh;
  }

  .js .step {
    min-height: 70vh;
    align-content: center;
  }

  .js .step .ro-card {
    display: none;
  }

  .js .step-copy {
    color: var(--ink-muted);
    transition: color 300ms var(--ease);
  }

  .js .step.is-current .step-copy {
    color: var(--ink);
  }

  .js .sticky-col {
    display: block;
  }

  .js .sticky-card {
    position: sticky;
    top: max(calc(var(--header-h) + 1.5rem), calc(50vh - 15rem));
  }
}

/* 5. Features */

.listing {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
}

.listing li {
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr);
  grid-template-areas:
    "title leader"
    "copy copy";
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.4rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.listing h3 {
  grid-area: title;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
}

.leader {
  display: none;
  grid-area: leader;
  align-self: end;
  margin-bottom: 0.45rem;
  border-bottom: 1px dotted var(--rule-strong);
  transform-origin: left;
}

.listing p {
  grid-area: copy;
  color: var(--ink-muted);
}

@media (min-width: 48rem) {
  .listing li {
    grid-template-columns: minmax(12rem, max-content) minmax(2rem, 1fr) minmax(
        0,
        30rem
      );
    grid-template-areas: "title leader copy";
    column-gap: 1.25rem;
  }

  .leader {
    display: block;
  }

  .listing p {
    align-self: baseline;
  }
}

.not-in {
  max-width: 40rem;
  margin-top: 2.5rem;
}

.not-in p:last-child {
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

/* 6. The real app */

.try-grid {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 64rem) {
  .try-grid {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 3rem;
    align-items: start;
  }
}

.frame {
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.frame-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  background: var(--paper-sunken);
  border-bottom: 1px solid var(--rule-strong);
}

.frame-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.frame-tab:hover {
  color: var(--ink);
}

.frame-tab[aria-selected="true"] {
  background-color: var(--paper-raised);
  border-color: var(--rule-strong);
  color: var(--accent);
  font-weight: 600;
}

.frame-tab:focus-visible {
  outline-offset: -3px;
}

.frame-panel iframe {
  display: block;
  width: 100%;
  height: 44rem;
  border: 0;
  background: var(--paper);
}

.frame-note {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.hints ol {
  display: grid;
  gap: 0.9rem;
  font-size: 0.9375rem;
}

.hints li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
}

.hints .num {
  font-family: var(--serif);
  color: var(--ink-muted);
}

.hints .text-link {
  margin-top: 0.75rem;
}

@media (max-width: 40rem) {
  .frame-wrap {
    margin-inline: calc(-1 * var(--gutter));
  }

  .frame {
    border-radius: 0;
    border-inline: 0;
  }

  .frame-panel iframe {
    height: 38rem;
  }

  .frame-note {
    padding-inline: var(--gutter);
  }
}

/* 7. Your data stays home */

.data-band {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--paper-sunken);
  border-block: 1px solid var(--rule);
}

.data-list {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .data-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.data-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.25rem;
}

.icon {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  margin-top: 0.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}

.data-list h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.data-list p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* 8. Closing */

.closing {
  overflow-x: clip;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-block: var(--section-pad);
  text-align: center;
}

.closing-mark {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--accent);
}

.closing h2 {
  max-width: 18ch;
  margin-top: 1.25rem;
}

.closing-line {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.closing .button {
  margin-top: 2rem;
}

.closing-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* 9. Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem 2rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.logo--small {
  min-height: 0;
  padding: 0;
  gap: 0.35rem;
}

.logo--small .mark {
  width: 1.5rem;
  height: 1.5rem;
}

.logo--small .wordmark {
  font-size: 1.125rem;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-underline-offset: 4px;
}

.site-footer nav a:hover {
  color: var(--ink);
}

/* Motion: only with JS, and only when motion is allowed. */

@media (prefers-reduced-motion: no-preference) {
  .js .plane {
    animation: settle 600ms var(--ease) both;
  }

  .js .plane--programme {
    animation-delay: 120ms;
  }

  .js .plane--stamp {
    animation-name: stamp;
    animation-delay: 240ms;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 600ms var(--ease),
      transform 600ms var(--ease);
  }

  .js .frame.reveal {
    transform: translateY(16px);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .js .leader {
    transform: scaleX(0);
    transition: transform 500ms var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
  }

  .js .leader.is-in {
    transform: scaleX(1);
  }

  .js .vignette--teacher .badge,
  .js .vignette--teacher .session td {
    opacity: 0;
    transition:
      opacity 300ms var(--ease),
      transform 300ms var(--ease);
  }

  .js .vignette--teacher .badge {
    transform: scale(0.9);
  }

  .js .vignette--teacher .session td {
    transform: translateY(-4px);
  }

  .js .vignette--teacher.is-in .badge,
  .js .vignette--teacher.is-in .session td {
    opacity: 1;
    transform: none;
  }

  .js .vignette--teacher.is-in tr:nth-child(5) .badge {
    transition-delay: 250ms;
  }

  .js .vignette--teacher.is-in .session td {
    transition-delay: 700ms;
  }

  .js .closing-mark .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .js .closing-mark.is-in .draw--head {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 500ms var(--ease);
  }

  .js .closing-mark.is-in .draw--stem {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 400ms var(--ease) 500ms;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(1.08);
  }
}
