:root {
  color-scheme: light dark;
  --bg: #F7F9F8;
  --ink: #17201B;
  --muted: #5C6862;
  --hairline: #DFE5E1;
  --accent: #0E7C4A;
  --accent-hover: #0A6039;
  --accent-ink: #FFFFFF;
  --panel: #EEF2EF;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1412;
    --ink: #E6ECE8;
    --muted: #93A29A;
    --hairline: #243029;
    --accent: #41C98A;
    --accent-hover: #5CD69C;
    --accent-ink: #0F1412;
    --panel: #161D19;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- status bar (signature) ---- */

.statusbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.25rem;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.statusbar-site { color: var(--muted); }

.statusbar-status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
    50%      { box-shadow: 0 0 0 6px transparent; }
  }
}

/* ---- layout: key/value rows ---- */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2.5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.row:last-of-type { border-bottom: none; }

@media (min-width: 768px) {
  .row { grid-template-columns: 176px 1fr; }
}

.key {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-top: 0.35rem;
}

.val { max-width: 62ch; }

.val > * + * { margin-top: 1rem; }

/* ---- hero ---- */

.hero { padding-top: 5.5rem; }

h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.button:hover { background: var(--accent-hover); }

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.button-ghost:hover {
  background: var(--panel);
  border-color: var(--muted);
}

/* ---- sections ---- */

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.pillar { padding: 1.5rem 0; }

.pillar + .pillar { border-top: 1px solid var(--hairline); margin-top: 0; }

.pillar p { margin-top: 0.5rem; color: var(--muted); }

/* ---- links ---- */

a {
  color: var(--accent);
  text-decoration: none;
}

.val a:hover { text-decoration: underline; text-underline-offset: 3px; }

a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- footer ---- */

footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.mono-small {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- load-in ---- */

@media (prefers-reduced-motion: no-preference) {
  .hero .val > * {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 480ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }
  .hero .val > *:nth-child(2) { animation-delay: 60ms; }
  .hero .val > *:nth-child(3) { animation-delay: 120ms; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* ---- print ---- */

@media print {
  .hero .val > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .statusbar { position: static; }
}
