/* ============================================================
   StatusRollup — foundation tokens.
   Forked from Dromos. Same fonts, same restraint, forest-green
   accent (operational lineage). Squared-off, no gradients,
   no glassmorphism. OKLCH tokens with neutrals lightly tinted
   toward the brand hue (h=165) so the page reads coordinated
   without losing chromatic restraint.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-roman.woff2") format("woff2-variations"),
    url("assets/fonts/fraunces-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2-variations"),
    url("assets/fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2-variations"), url("assets/fonts/inter.woff2")
    format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2-variations"),
    url("assets/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  /* ---------- Ink ---------- */
  --ink: oklch(16% 0.012 165);
  --ink-soft: oklch(36% 0.01 165);
  --muted: oklch(50% 0.012 165); /* AA-tightened against --bg */

  /* ---------- Surface (no pure white anywhere) ---------- */
  --bg: oklch(98% 0.005 165);
  --bg-alt: oklch(95% 0.006 165);
  --surface: oklch(99% 0.003 165);

  /* ---------- Lines ---------- */
  --border: oklch(89% 0.008 165);
  --rule: oklch(83% 0.01 165);

  /* ---------- Accent: forest green (operational lineage) ---------- */
  --accent: oklch(56% 0.13 158); /* eyebrow tick, status dot, primary, selection */
  --accent-ink: oklch(40% 0.11 160); /* italic em ink, link color */
  --accent-soft: oklch(94% 0.03 158); /* subtle fills */

  /* ---------- Accent on dark surface (footer, Dromos band) ---------- */
  --accent-bright: oklch(72% 0.14 158);

  /* ---------- Status semantics ---------- */
  --st-up: var(--accent);
  --st-up-soft: var(--accent-soft);
  --st-degraded: oklch(63% 0.13 75);
  --st-degraded-soft: oklch(95% 0.04 82);
  --st-out: oklch(50% 0.15 27);
  --st-out-soft: oklch(94% 0.025 27);
  --st-upstream: oklch(48% 0.01 240);
  --st-upstream-soft: oklch(94% 0.005 240);

  /* ---------- Sibling accent for Dromos band only ---------- */
  --orange: oklch(67% 0.15 45);
  --orange-bright: oklch(74% 0.13 50);

  /* ---------- Brand mark stack (cool greys to forest tick) ---------- */
  --brand-1: oklch(80% 0.006 240);
  --brand-2: oklch(56% 0.01 240);
  --brand-3: oklch(28% 0.012 240);
  --brand-4: var(--accent);

  /* ---------- Type families ---------- */
  --font-sans: "Inter", -apple-system, system-ui, Segoe UI, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---------- Type roles ---------- */
  --t-display-size: clamp(2.5rem, 5vw + 1rem, 5.25rem);
  --t-display-line: 1;
  --t-display-track: -0.035em;
  --t-display-weight: 400;

  --t-h1-size: clamp(2.25rem, 4vw, 3.25rem);
  --t-h1-line: 1.05;
  --t-h1-track: -0.03em;

  --t-h2-size: 1.5rem;
  --t-h2-line: 1.1;
  --t-h2-track: -0.022em;

  --t-h3-size: 1.1875rem;
  --t-h3-line: 1.2;
  --t-h3-track: -0.015em;

  --t-deck-size: clamp(1.0625rem, .5vw + 1rem, 1.25rem);
  --t-deck-line: 1.5;

  --t-body-size: 1.0625rem;
  --t-body-line: 1.55;

  --t-body-sm-size: 0.9375rem;
  --t-body-sm-line: 1.5;

  --t-meta-size: 0.7rem;
  --t-meta-track: 0.18em;
  --t-meta-weight: 500;

  --t-meta-xs-size: 0.62rem;
  --t-meta-xs-track: 0.18em;

  /* ---------- Layout ---------- */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 3vw, 2.25rem);

  /* ---------- Radii ---------- */
  --r-sm: 2px;
  --r-md: 4px;

  /* ---------- Elevation ---------- */
  --shadow-card: 0 1px 0 oklch(16% 0.012 165 / 0.02), 0 24px 60px -38px oklch(16% 0.012 165 / 0.18);

  /* ---------- Motion ---------- */
  --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --t-fast: .15s;
  --t-base: .2s;
  --t-slow: .3s;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--t-body-size);
  line-height: var(--t-body-line);
  text-wrap: pretty;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-variation-settings: "opsz" 144;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1-size);
  line-height: var(--t-h1-line);
  letter-spacing: var(--t-h1-track);
}
h2 {
  font-size: var(--t-h2-size);
  line-height: var(--t-h2-line);
  letter-spacing: var(--t-h2-track);
}
h3 {
  font-size: var(--t-h3-size);
  line-height: var(--t-h3-line);
  letter-spacing: var(--t-h3-track);
}

h1 em,
h2 em,
h3 em,
h4 em,
.display em,
.deck em {
  font-style: italic;
  color: var(--accent-ink);
  font-weight: 400;
}

p {
  color: var(--ink-soft);
  line-height: var(--t-body-line);
  margin: 0;
}

.display {
  font-family: var(--font-serif);
  font-weight: var(--t-display-weight);
  font-size: var(--t-display-size);
  line-height: var(--t-display-line);
  letter-spacing: var(--t-display-track);
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}

.deck {
  font-size: var(--t-deck-size);
  line-height: var(--t-deck-line);
  color: var(--ink-soft);
  max-width: 38em;
}

.meta {
  font-family: var(--font-mono);
  font-size: var(--t-meta-size);
  font-weight: var(--t-meta-weight);
  letter-spacing: var(--t-meta-track);
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--t-meta-size);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

code,
kbd,
samp,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), border-color var(--t-fast);
}
a.link,
.prose a {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--rule);
}
a.link:hover,
.prose a:hover {
  border-color: var(--accent);
}

* {
  box-sizing: border-box;
}

/* ---------- Focus: a single, visible accent ring everywhere ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
button:focus-visible,
[role="button"]:focus-visible,
[role="radio"]:focus-visible,
[role="switch"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 2px;
}
/* The wl-form input already styles its own focus border; suppress the global ring there. */
.wl-label input:focus-visible {
  outline: none;
}

/* ---------- Reduced motion: honor the system pref ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
