/* Generated from src/tokens.ts by scripts/build.ts. Edit the TypeScript, then rebuild. */
:root {
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-code: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --round-control: 8px;
  --round-sheet: 16px;
  --round-badge: 9999px;
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --motion-slow: 250ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-sunken: #eceae6;
  --border: #e0ddd7;
  --border-strong: #77706a;
  --text: #1c1917;
  --text-secondary: #57514a;
  --action: #1c1917;
  --on-action: #ffffff;
  --spot: #f5a300;
  --spot-subtle: #fff3d1;
  --spot-text: #8a5a00;
  --success: #2f6b3a;
  --success-subtle: #eef6ee;
  --warning: #a85a00;
  --warning-subtle: #fff4e5;
  --danger: #b3261e;
  --danger-subtle: #fdeeec;
  --info: #1f5fa8;
  --info-subtle: #eaf2fb;
  --elevation: 0 1px 2px rgb(28 25 23 / 0.08), 0 8px 24px rgb(28 25 23 / 0.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141210;
    --surface: #1f1c19;
    --surface-sunken: #0e0c0b;
    --border: #35302b;
    --border-strong: #8c8378;
    --text: #f5f2ed;
    --text-secondary: #b3aaa0;
    --action: #f5f2ed;
    --on-action: #1c1917;
    --spot: #ffb81f;
    --spot-subtle: #3a2c0a;
    --spot-text: #ffb81f;
    --success: #8fd19a;
    --success-subtle: #17261a;
    --warning: #f2b25c;
    --warning-subtle: #2e2212;
    --danger: #f2998f;
    --danger-subtle: #301a17;
    --info: #8dbbec;
    --info-subtle: #16243a;
    --elevation: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141210;
  --surface: #1f1c19;
  --surface-sunken: #0e0c0b;
  --border: #35302b;
  --border-strong: #8c8378;
  --text: #f5f2ed;
  --text-secondary: #b3aaa0;
  --action: #f5f2ed;
  --on-action: #1c1917;
  --spot: #ffb81f;
  --spot-subtle: #3a2c0a;
  --spot-text: #ffb81f;
  --success: #8fd19a;
  --success-subtle: #17261a;
  --warning: #f2b25c;
  --warning-subtle: #2e2212;
  --danger: #f2998f;
  --danger-subtle: #301a17;
  --info: #8dbbec;
  --info-subtle: #16243a;
  --elevation: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.5);
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-base: 0ms;
    --motion-slow: 0ms;
  }
}

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

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/ibm-plex-sans-latin-400-normal.3b646991d3.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/ibm-plex-sans-latin-500-normal.0717336fb3.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/ibm-plex-sans-latin-600-normal.8960851d69.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/ibm-plex-mono-latin-400-normal.08949f728d.woff2") format("woff2");
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: 1.5rem;
}

h1.display {
  font-size: 2rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.0625rem;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 1.75rem;
  }

  h1.display {
    font-size: 2.5rem;
  }
}

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;
}

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

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.measure {
  max-width: 44rem;
}

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

.small {
  font-size: 0.875rem;
}

.nowrap {
  white-space: nowrap;
}

.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: 500;
}

.skip:focus {
  top: 1rem;
}

/* Logo: the ink follows the text colour and the dot is the spotlight. */
.logo {
  display: inline-flex;
}

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

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

.site-header {
  border-bottom: 1px solid var(--border);
}

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

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

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  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;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--action);
  border-radius: var(--round-control);
  background: var(--action);
  color: var(--on-action);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--motion-fast) var(--ease);
}

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

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

.button-quiet:hover {
  background: var(--surface-sunken);
  border-color: var(--border-strong);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.hero {
  padding: 3rem 0;
}

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

.hero-mark {
  display: none;
}

.hero-mark svg {
  width: 100%;
  height: auto;
}

@media (min-width: 48rem) {
  .hero {
    padding: 5rem 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 14rem;
    gap: 4rem;
  }

  .hero-mark {
    display: block;
  }
}

.lead {
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

.page {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.page section {
  margin-top: 2.5rem;
}

/* The six steps: a numbered list on hairlines, two columns on a wide screen. */
.steps {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid var(--border);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-family: var(--font-code);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.steps h3 {
  margin-bottom: 0.25em;
}

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

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

.definitions {
  display: grid;
  gap: 0;
  margin: 1.5rem 0;
}

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

.definitions dt {
  font-weight: 600;
}

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

@media (min-width: 48rem) {
  .definitions div {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 2rem;
  }

  .definitions dd {
    margin: 0;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--round-badge);
  font-size: 0.875rem;
  font-weight: 500;
}

.plain {
  padding-left: 1.25rem;
}

/* Legal text: one comfortable column. */
.legal {
  max-width: 48rem;
}

.legal h2 {
  margin-top: 2rem;
}

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

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

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

table {
  width: 100%;
  min-width: 40rem;
  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: 500;
  color: var(--text-secondary);
}

tbody th {
  font-weight: 600;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

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

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

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

.footer-company {
  margin: 0;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

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