/* Generated from src/tokens.ts by scripts/build.ts. Edit the TypeScript, then rebuild. */
:root {
  --font-ui: "Instrument Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-code: "Spline Sans Mono Variable", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --word-space: 0.075em;
  --heading-tracking: -0.02em;
  --round-chip: 5px;
  --round-control: 7px;
  --round-card: 10px;
  --round-sheet: 12px;
  --round-dialog: 14px;
  --round-badge: 9999px;
  --motion-press: 90ms;
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --motion-panel: 260ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
  --bg: #f3f4f4;
  --surface: #ffffff;
  --raised: #ffffff;
  --surface-sunken: #ecedee;
  --hover: #f5f6f6;
  --border: #e2e4e6;
  --border-strong: #868b93;
  --text: #14171c;
  --text-secondary: #525862;
  --text-tertiary: #636973;
  --action: #14171c;
  --action-hover: #2c313a;
  --on-action: #ffffff;
  --spot: #f5a300;
  --on-spot: #14171c;
  --spot-subtle: #fff3d4;
  --spot-text: #845600;
  --success: #1f6b3f;
  --success-subtle: #e6f4eb;
  --warning: #9a4f00;
  --warning-subtle: #fff0e0;
  --danger: #b3231f;
  --danger-subtle: #fdeceb;
  --info: #1c5aa6;
  --info-subtle: #e8f1fc;
  --google-fill: #ffffff;
  --google-stroke: #747775;
  --google-text: #1f1f1f;
  --microsoft-fill: #ffffff;
  --microsoft-stroke: #8c8c8c;
  --microsoft-text: #5e5e5e;
  --rest: 0 1px 1px rgb(20 23 28 / 0.05);
  --elevation: 0 0 0 1px rgb(20 23 28 / 0.08), 0 16px 44px -10px rgb(20 23 28 / 0.28);
  --scrim: rgb(12 14 17 / 0.42);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0e11;
    --surface: #14171b;
    --raised: #1c2026;
    --surface-sunken: #0a0b0e;
    --hover: #1a1e23;
    --border: #282d34;
    --border-strong: #727a86;
    --text: #edeff2;
    --text-secondary: #a7aeb9;
    --text-tertiary: #8e96a2;
    --action: #edeff2;
    --action-hover: #ffffff;
    --on-action: #14171c;
    --spot: #ffb81f;
    --on-spot: #14171c;
    --spot-subtle: #33270b;
    --spot-text: #ffc247;
    --success: #7fd09a;
    --success-subtle: #13271b;
    --warning: #f5af66;
    --warning-subtle: #2e1f10;
    --danger: #ff9c94;
    --danger-subtle: #341816;
    --info: #8fbef5;
    --info-subtle: #132438;
    --google-fill: #131314;
    --google-stroke: #8e918f;
    --google-text: #e3e3e3;
    --microsoft-fill: #2f2f2f;
    --microsoft-stroke: #2f2f2f;
    --microsoft-text: #ffffff;
    --rest: inset 0 1px 0 rgb(255 255 255 / 0.04);
    --elevation: 0 0 0 1px #343a43, 0 18px 48px -8px rgb(0 0 0 / 0.75);
    --scrim: rgb(0 0 0 / 0.62);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e11;
  --surface: #14171b;
  --raised: #1c2026;
  --surface-sunken: #0a0b0e;
  --hover: #1a1e23;
  --border: #282d34;
  --border-strong: #727a86;
  --text: #edeff2;
  --text-secondary: #a7aeb9;
  --text-tertiary: #8e96a2;
  --action: #edeff2;
  --action-hover: #ffffff;
  --on-action: #14171c;
  --spot: #ffb81f;
  --on-spot: #14171c;
  --spot-subtle: #33270b;
  --spot-text: #ffc247;
  --success: #7fd09a;
  --success-subtle: #13271b;
  --warning: #f5af66;
  --warning-subtle: #2e1f10;
  --danger: #ff9c94;
  --danger-subtle: #341816;
  --info: #8fbef5;
  --info-subtle: #132438;
  --google-fill: #131314;
  --google-stroke: #8e918f;
  --google-text: #e3e3e3;
  --microsoft-fill: #2f2f2f;
  --microsoft-stroke: #2f2f2f;
  --microsoft-text: #ffffff;
  --rest: inset 0 1px 0 rgb(255 255 255 / 0.04);
  --elevation: 0 0 0 1px #343a43, 0 18px 48px -8px rgb(0 0 0 / 0.75);
  --scrim: rgb(0 0 0 / 0.62);
}
/* The stage: a panel that is dark in both themes. */
[data-stage] {
  color-scheme: dark;
  --bg: #0c0e11;
  --surface: #14171b;
  --raised: #1c2026;
  --surface-sunken: #0a0b0e;
  --hover: #1a1e23;
  --border: #282d34;
  --border-strong: #727a86;
  --text: #edeff2;
  --text-secondary: #a7aeb9;
  --text-tertiary: #8e96a2;
  --action: #edeff2;
  --action-hover: #ffffff;
  --on-action: #14171c;
  --spot: #ffb81f;
  --on-spot: #14171c;
  --spot-subtle: #33270b;
  --spot-text: #ffc247;
  --success: #7fd09a;
  --success-subtle: #13271b;
  --warning: #f5af66;
  --warning-subtle: #2e1f10;
  --danger: #ff9c94;
  --danger-subtle: #341816;
  --info: #8fbef5;
  --info-subtle: #132438;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-press: 0ms;
    --motion-fast: 0ms;
    --motion-base: 0ms;
    --motion-panel: 0ms;
  }
}

/* The public site. Colours, type and shape come from @tramoya/brand's tokens (prepended at build). */

@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/assets/instrument-sans-latin-wght-normal.2ee17598a9.woff2") format("woff2");
}

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

/* In proportion to each text: the font's own space between words is narrow. */
* {
  word-spacing: var(--word-space);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
}

h1.display {
  max-width: 15ch;
  font-size: clamp(2.25rem, 1.35rem + 3.9vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
}

h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--motion-fast) var(--ease);
}

a:hover {
  text-decoration-color: var(--spot);
  text-decoration-thickness: 2px;
}

/* The ring is ink, 2 px, with the amber halo under it. */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 0;
  box-shadow: 0 0 0 5px var(--spot);
  border-radius: 2px;
}

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

/* Dark in both themes: what is behind the scene. */
[data-stage] {
  background: var(--surface-sunken);
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 79rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.measure {
  max-width: 42rem;
}

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

.small {
  font-size: 0.875rem;
}

.nowrap {
  white-space: nowrap;
}

.lead {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--text-secondary);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--action);
  color: var(--on-action);
  border-radius: var(--round-control);
  font-weight: 540;
}

.skip:focus {
  top: 1rem;
}

.logo {
  display: inline-flex;
}

.logo svg {
  height: 2rem;
  width: auto;
}

.brand-link {
  display: inline-flex;
  padding: 0.5rem 0;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-header:not([data-stage]) {
  border-bottom: 1px solid var(--border);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 -0.75rem;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 540;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--spot);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

.nav-list .lang {
  color: var(--text-secondary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: var(--round-control);
  background: var(--action);
  color: var(--on-action);
  font-weight: 540;
  text-decoration: none;
  transition:
    background-color var(--motion-fast) var(--ease),
    transform var(--motion-press) var(--ease);
}

.button:hover {
  background: var(--action-hover);
  text-decoration: none;
}

.button:active {
  transform: scale(0.975);
}

/* The cover: the words on the stage, and the product as it is, half out of it. */
.cover-stage {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--border-strong);
  padding: 7.5rem 0 15rem;
}

.cover-record .cover-stage {
  padding-top: 3.5rem;
}

.cover-stage > .wrap {
  position: relative;
}

.cover-stage .lead {
  margin: 1.5rem 0 2rem;
}

.cover-screen {
  position: relative;
  margin-top: -12rem;
}

.screen {
  overflow: hidden;
  max-width: 75rem;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--round-sheet);
  background: var(--bg);
}

.screen img {
  width: 100%;
}

/* The battens hang from the bar of the cover. They come down once, and then the light goes on. */
.fly {
  position: absolute;
  inset: 0;
  max-width: 79rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.battens {
  display: flex;
  gap: 4%;
  height: 100%;
}

.batten {
  --drop: 2.5rem;
  position: relative;
  flex: 1;
  height: var(--drop);
  border: solid var(--border-strong);
  border-width: 0 1px;
  animation: down calc(var(--motion-panel) * 2.6) var(--ease) backwards;
}

.batten::after {
  content: "";
  position: absolute;
  inset: auto -6px -5px;
  height: 5px;
  background: var(--text-secondary);
}

.batten span {
  display: none;
}

.batten-order {
  --drop: 3.5rem;
  animation-delay: 70ms;
}

.batten-signature {
  --drop: 4.25rem;
  animation-delay: 140ms;
}

.batten-activation {
  --drop: 5rem;
  animation-delay: 210ms;
}

.batten-delivery {
  --drop: 3.75rem;
  animation-delay: 280ms;
}

.batten-close {
  --drop: 2.25rem;
  animation-delay: 350ms;
}

.batten-activation::after {
  height: 7px;
  inset-block-end: -7px;
  background: var(--spot);
}

/* Not built yet: its batten is there, without its bar. */
.batten-close::after {
  height: 0;
  border-top: 2px dashed var(--border-strong);
  background: none;
}

@keyframes down {
  from {
    transform: translateY(-24rem);
  }
}

@keyframes light {
  from {
    opacity: 0;
  }
}

/* The story: each step, and its screens hung from the line above. */
.story {
  padding-top: 5rem;
}

.story-head {
  padding-bottom: 3.5rem;
}

.story-head .lead {
  margin-top: 1rem;
}

.step {
  position: relative;
  padding: 2rem 0 5rem;
  border-top: 4px solid var(--text);
}

.step-text h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
}

.step-text p {
  max-width: 34rem;
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.piece {
  position: relative;
  margin-top: 3rem;
}

.piece::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 10%;
  width: 80%;
  height: 1.5rem;
  border: solid var(--border-strong);
  border-width: 0 1px;
}

.piece picture {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 4px solid var(--text);
  border-radius: 0 0 var(--round-sheet) var(--round-sheet);
  background: var(--surface);
}

.piece img {
  width: 100%;
}

/* A screen that is not there yet. */
.piece-next p {
  display: grid;
  place-items: center;
  min-height: 9rem;
  margin: 0;
  padding: 1.5rem;
  border: 2px dashed var(--border-strong);
  border-top-width: 4px;
  text-align: center;
  color: var(--text-secondary);
}

.band {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

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

.split .muted {
  margin: 0.75rem 0 0;
}

.definitions {
  display: grid;
  margin: 0;
}

.definitions div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.split .definitions div:first-child {
  padding-top: 0;
  border-top: 0;
}

.definitions dt {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.definitions dd {
  max-width: 40rem;
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
}

.step-text .definitions {
  margin-top: 1.5rem;
}

.step-text .definitions div {
  padding: 0.75rem 0;
}

.step-text .definitions dt {
  font-size: 1rem;
}

.step-text .definitions dd {
  font-size: 0.9375rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.names {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.not-yet {
  max-width: 42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-yet li {
  padding: 0.75rem 0;
  border-top: 1px dashed var(--border-strong);
}

.page {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.page > .lead {
  margin: 1.25rem 0 2.5rem;
}

.page > .definitions {
  margin: 3rem 0;
}

.hung {
  overflow: hidden;
  border-top: 4px solid var(--text);
}

.mailbox {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 0.6rem + 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Legal text: one comfortable column. */
.legal h1 {
  margin-bottom: 1rem;
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
}

.legal .lead {
  margin-top: 1.25rem;
}

.legal section:not(.table-scroll),
.legal > p,
.legal > h1 {
  max-width: 44rem;
}

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

.legal li {
  margin-bottom: 0.5em;
}

.table-scroll {
  margin: 1.5rem 0;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-top: 0;
  border-bottom: 1px solid var(--border-strong);
  font-weight: 540;
  color: var(--text-secondary);
}

tbody th {
  font-weight: 600;
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 4px solid var(--border-strong);
}

.closing {
  padding: 3rem 0 6rem;
}

.closing h2 {
  font-size: clamp(2.25rem, 1.35rem + 3.9vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.closing .lead {
  margin: 1.25rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-grid p {
  margin: 0.5rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

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

@media (min-width: 48rem) {
  .wrap,
  .fly {
    padding: 0 2rem;
  }

  .header-row {
    padding-top: 0;
    padding-bottom: 0;
  }

  .cover-stage {
    padding: 5rem 0 27rem;
  }

  .cover-record .cover-stage {
    padding-top: 4.5rem;
  }

  .cover-screen {
    margin-top: -23.5rem;
  }

  .cover-home h1.display,
  .cover-home .lead {
    max-width: 52%;
  }

  .battens {
    gap: 2.6%;
    width: 44%;
    margin-left: auto;
  }

  .batten {
    --drop: 8rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .batten span {
    display: block;
    padding-bottom: 0.6rem;
    font-size: clamp(0.75rem, 0.35rem + 0.75vw, 1rem);
    font-weight: 540;
    color: var(--text-secondary);
  }

  .batten-order {
    --drop: 11.5rem;
  }

  .batten-activation::before {
    content: "";
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    width: 15.5rem;
    height: 26rem;
    margin-left: -7.75rem;
    background: var(--spot-subtle);
    clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
    animation: light calc(var(--motion-panel) * 1.6) ease-out 900ms backwards;
  }

  .batten-signature {
    --drop: 15.5rem;
  }

  .batten-activation {
    --drop: 20rem;
    flex: 1.35;
  }

  .batten-activation span {
    color: var(--text);
    font-weight: 600;
  }

  .batten-delivery {
    --drop: 13.5rem;
  }

  .batten-close {
    --drop: 9rem;
  }

  .story {
    padding-top: 7rem;
  }

  .step {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2.5rem 0 7rem;
  }

  .pieces {
    display: grid;
    gap: 1.5rem;
    align-items: start;
  }

  .step .pieces {
    margin-top: -2.5rem;
  }

  .piece::before {
    height: 3rem;
  }

  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    gap: 3.5rem;
  }

  .band {
    padding: 6rem 0;
  }

  .page {
    padding-top: 5rem;
    padding-bottom: 7rem;
  }

  .page > .definitions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3.5rem;
    margin: 4rem 0;
  }

  .site-footer {
    padding-top: 4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-company {
    grid-column: 1 / -1;
  }
}

/* Below this the words of a step go over its screens, which need the width. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .step {
    display: block;
  }

  .step .pieces {
    margin-top: 1rem;
  }
}

@media (min-width: 48rem) {
  .step-signature .pieces,
  .step-close .pieces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Each hangs from its own height, as battens do. */
  .piece-signed,
  .piece-next {
    margin-top: 8rem;
  }

  .piece-signed::before,
  .piece-next::before {
    height: 8rem;
  }

  .piece-difference {
    width: 30rem;
    margin: 1.5rem 0 0 auto;
  }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .piece-signed,
  .piece-next {
    margin-top: 3rem;
  }

  .piece-signed::before,
  .piece-next::before {
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .batten,
  .batten-activation::before {
    animation: none;
  }
}
