/* SPDX-License-Identifier: GPL-3.0-only */
/* Trillium brand tokens (Stage), from brand/tokens/tokens.css */
:root {
  /* Trillium brand tokens (Stage). Generated from tokens.json */
  --tr-black: #0C0C0D; /* Primary ground. ~58% of any layout. */
  --tr-graphite: #232326; /* Panels, cards, icon ground. ~20%. */
  --tr-ash: #8A8580; /* Secondary text on black (5.4:1). */
  --tr-ash-light: #B3ADA4; /* Resting UI icons and captions on black (8.8:1). */
  --tr-warm-white: #F4F1EA; /* Text on black (17.3:1); light ground. ~13%. */
  --tr-signal: #FF5A1F; /* The brand orange: mark, active state, primary button. ~6%. */
  --tr-amber: #FFB020; /* Levels, meters, highlights only. ~3%. */
  --tr-ember: #E8480F; /* Mark color on light grounds (not for text). */
  --tr-rust: #C23D0E; /* Orange text on light grounds (4.7:1 on warm white). */
  --tr-unavailable: #55524D; /* Disabled UI on black (decorative, not for text). */
  --tr-connected: #6FAE9A; /* Connected / OK status dot. */
  --tr-record: #FF5A1F; /* Alias of signal for live/record states. */
  --tr-bg: var(--tr-black);
  --tr-surface: var(--tr-graphite);
  --tr-text: var(--tr-warm-white);
  --tr-text-muted: var(--tr-ash);
  --tr-accent: var(--tr-signal);
  --tr-on-accent: var(--tr-black);
  --tr-icon-rest: var(--tr-ash-light);
  --tr-icon-hover: var(--tr-warm-white);
  --tr-icon-active: var(--tr-signal);
  --tr-font-display: "Outfit", "Inter", system-ui, sans-serif;
  --tr-font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --tr-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --tr-radius-card: 20px;
  --tr-radius-control: 10px;
}

/* Light grounds (release notes, print, docs) */
.tr-light {
  --tr-bg: var(--tr-warm-white);
  --tr-surface: #FFFFFF;
  --tr-text: var(--tr-black);
  --tr-text-muted: #55524D;
  --tr-accent-text: var(--tr-rust);
}

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

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--tr-black); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 60% 55% at 50% 44%, #18181b 0%, var(--tr-black) 72%) var(--tr-black);
  color: var(--tr-warm-white); font-family: var(--tr-font-mono);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; }
main { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.5rem 4vh; }
h1 { margin: 0; line-height: 0; font-size: 1rem; font-weight: 400; }
.flow { width: min(52vh, 72vw, 470px); height: auto; margin: 0 auto clamp(1.75rem, 5vh, 3rem); }
.word { width: clamp(140px, 14vw, 190px); height: auto; margin: 0 auto; }
.line { margin: 1.15rem 0 0; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tr-ash-light); }

@media (prefers-reduced-motion: no-preference) {
  .flow { animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) backwards; }
  .word, .line { animation: fade 1.2s ease-out 1s backwards; }
}
@keyframes settle { from { opacity: 0; transform: scale(.96); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 560px) {
  main { padding-bottom: 8vh; }
  .flow { width: min(84vw, 340px); }
  .word { width: 150px; }
  .line { font-size: .6875rem; }
}
