/* Site styles.
   Replace the tokens below to rebrand: colors, fonts, and the page width.
   Every url() is an absolute path under src/; the build hashes the targets. */

/* ---------- Fonts ----------
   Proxima Nova is self-hosted: one @font-face per file in /fonts/. Ship only
   the faces this file uses (the tests check that CSS and fonts/ match). */

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-regular-fixed.7da545b6a4.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-semibold.59bb4c7c90.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-extrabold.da42406399.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Reduced glyph set with taller line metrics. Use only for standalone lines
   such as fine print, never inline in a regular paragraph. */
@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-italic.5c6c138e5c.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal-50: #f3f8f8;
  --teal-100: #dfecee;
  --teal-200: #c3dbde;
  --teal-300: #9ac2c6;
  --teal-400: #6da2a9;
  --teal-600: #436e77;
  --teal-800: #374d53;
  --teal-900: #314248;
  --teal-950: #1d2a2f;
  --green-300: #afd87e;
  --green-400: #8fc552;
  --green-500: #72ab37;
  --green-950: #18270c;
  --ink: #0c1416;

  --font-sans: "Proxima Nova", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --page-width: 40rem;
  --radius: 14px;
  --line: rgba(154, 194, 198, 0.16);
  --panel: rgba(49, 66, 72, 0.42);
  --glow-green: 0 0 0.06em rgba(175, 216, 126, 0.55), 0 0 0.5em rgba(143, 197, 82, 0.28);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--teal-50);
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(67, 110, 119, 0.5), transparent 70%),
    radial-gradient(ellipse 55% 35% at 92% 100%, rgba(114, 171, 55, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(29, 42, 47, 0) 0, var(--teal-950) 70vh),
    var(--teal-950) url("/img/grid.5422e44549.svg");
}

a {
  color: var(--green-300);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-400);
}

a:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(12, 20, 22, 0.55);
  border: 1px solid var(--line);
  color: var(--teal-100);
}

strong {
  font-weight: 600;
  color: var(--teal-50);
}

/* ---------- Top bar ---------- */

.topbar {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.1rem 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--teal-50);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--teal-50);
}

.brand img {
  display: block;
}

.nav {
  display: flex;
  gap: 0.35rem;
}

.nav a {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--teal-200);
  text-decoration: none;
}

.nav a:hover {
  color: var(--teal-50);
  background: rgba(154, 194, 198, 0.08);
}

.nav a[aria-current="page"] {
  color: var(--teal-50);
  background: rgba(154, 194, 198, 0.12);
}

/* ---------- Page ---------- */

.shell {
  flex: 1;
  width: 100%;
  max-width: calc(var(--page-width) + 32px);
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 5rem) 16px 4rem;
}

.hero {
  text-align: center;
}

.mark {
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 18px rgba(143, 197, 82, 0.28)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-300);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--teal-50);
  background: linear-gradient(180deg, var(--teal-50) 20%, var(--teal-200) 65%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.tagline,
.accent,
.not-found h1 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.tagline {
  margin: 0.6rem auto 0;
  max-width: 30rem;
  font-size: clamp(1.45rem, 5vw, 2.15rem);
  line-height: 1.2;
  color: var(--green-300);
  text-shadow: var(--glow-green);
  text-wrap: balance;
}

.accent {
  font-size: 1.15em;
  line-height: 1;
  color: var(--green-300);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--teal-50);
}

p {
  margin: 0 0 1rem;
  color: var(--teal-200);
}

/* ---------- Live status chips (filled in by /js/site.js) ---------- */

.live {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.live li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--panel);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  color: var(--teal-200);
}

.live time {
  font-variant-numeric: tabular-nums;
  color: var(--teal-50);
}

.js-status::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal-600);
}

.js-status.is-on {
  border-color: rgba(143, 197, 82, 0.45);
  color: var(--green-300);
}

.js-status.is-on::before {
  background: var(--green-400);
  box-shadow: 0 0 0 3px rgba(143, 197, 82, 0.2), 0 0 10px rgba(143, 197, 82, 0.7);
}

/* ---------- What this page proves ---------- */

.proof {
  margin-top: clamp(2.5rem, 8vh, 4rem);
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checks li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--teal-200);
  line-height: 1.55;
}

/* A green disc with a check drawn from two borders. */
.checks li::before,
.checks li::after {
  content: "";
  position: absolute;
}

.checks li::before {
  left: 1.05rem;
  top: 1.15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(143, 197, 82, 0.16);
  border: 1px solid rgba(143, 197, 82, 0.5);
}

.checks li::after {
  left: 1.53rem;
  top: 1.43rem;
  width: 0.34rem;
  height: 0.6rem;
  border: solid var(--green-300);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- About and 404 ---------- */

.page-head {
  margin-bottom: 2rem;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--green-400);
  border-radius: 999px;
  color: var(--green-300);
  text-decoration: none;
  box-shadow: 0 0 0.9em rgba(143, 197, 82, 0.18);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-400);
  color: var(--green-950);
}

.not-found {
  text-align: center;
  padding-top: clamp(1rem, 6vh, 4rem);
}

.not-found h1 {
  font-size: clamp(3.25rem, 14vw, 6rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--green-300);
  text-shadow: var(--glow-green);
}

.not-found p {
  max-width: 28rem;
  margin: 1rem auto 1.25rem;
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  padding: 1.5rem 16px 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-logo img {
  display: block;
  width: 140px;
  height: auto;
}

.fineprint {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--teal-400);
}

.fineprint code {
  font-style: normal;
  font-size: 0.85em;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
