/* xuranium.com — the homepage only. The app pages, /about, /terms and the twenty legal
   documents use styles.css and are deliberately not touched by this file.
   No JavaScript, no external requests: the one web font is self-hosted (font-src 'self'). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0D1112;
  --surface: #182020;
  --surface-subtle: #121819;
  --signal: #C7F36B;
  --foreground: #F3F4F0;
  --muted: #A6AFAB;
  --border: #29302E;
  --amber: #F2B84B;
  --unknown: #8FA0B8;

  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 75rem; margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: var(--pad); top: 0.5rem; background: var(--signal); color: var(--background); padding: 0.5rem 0.8rem; z-index: 2; }

/* ------------------------------------------------------------ header */

.top { border-bottom: 1px solid var(--border); }
.top .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0 1.5rem; padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px;
  text-decoration: none;
  font: 600 1.02rem/1 var(--display); letter-spacing: 0.2em;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-left: -0.1rem; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 0.92rem/1 var(--display); color: var(--muted); text-decoration: none;
  transition: color 0.15s;
}
.top nav a:hover, .top nav a:focus-visible { color: var(--foreground); }

/* ------------------------------------------------------------ shared type */

.eyebrow {
  font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--signal);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.1; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 38rem; }

main > .wrap + .wrap { margin-top: clamp(3.5rem, 8vw, 6rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 1.25rem; border-radius: 3px; border: 1px solid var(--border);
  font: 600 0.95rem/1 var(--display); text-decoration: none; color: var(--foreground);
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover, .btn:focus-visible { border-color: var(--muted); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--background); }
.btn.primary:hover, .btn.primary:focus-visible { background: #d6f88c; border-color: #d6f88c; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

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

.hero { padding-top: clamp(1.75rem, 4.5vw, 3rem); display: grid; gap: 1.25rem clamp(2rem, 5vw, 4rem); align-items: end; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero .lead { font-size: 1.02rem; }
.hero .actions { margin-top: 1.25rem; }

/* ------------------------------------------------------------ latest (generated) */

main > .wrap + .latest { margin-top: clamp(2rem, 4.5vw, 3rem); }
.latest-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.latest-head h2 { font-size: 1.5rem; display: inline-flex; align-items: center; gap: 0.65rem; }
.latest-head .upd { font: 500 0.8rem/1.4 var(--mono); color: var(--muted); }
.latest-head .more { margin-left: auto; }
.more { display: inline-flex; align-items: center; min-height: 44px; color: var(--signal); font: 500 0.95rem var(--display); text-underline-offset: 0.2em; }

/* the one moving thing on the page: the feed is live */
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--signal); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }

.cards { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
@media (min-width: 46rem) { .cards { grid-template-columns: 1fr 1fr; } .cards .first { grid-column: 1 / -1; } }
@media (min-width: 64rem) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards .first { grid-column: span 2; }
  .cards .fill.w2 { grid-column: span 2; }
  .first.card .st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
  .first.card .st div { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.7rem 0; }
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 6px;
  padding: 1.1rem 1.2rem 0.4rem; transition: border-color 0.15s;
}
.card:hover { border-color: #4a5a2c; }
.card:has(h3 a:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.card h3 a:focus-visible { outline: none; }
.subj { font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); }
.card h3 { margin-top: 0.45rem; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.01em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.card .deck {
  margin-top: 0.5rem; color: var(--muted); font-size: 0.93rem; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.card:has(.thumb) > :is(.subj, h3, .deck) { margin-right: 5.4rem; }
.thumb {
  position: absolute; top: 1.1rem; right: 1.2rem; width: 4.5rem; height: 6rem; overflow: hidden;
  border-radius: 4px; border: 1px solid var(--border); background: #F3EBDF;
}
/* the cover is a 9:16 poster; show only Noah and Lila, below its headline */
.thumb img { position: absolute; left: -35%; bottom: 0; width: 170%; max-width: none; height: auto; }

.st { margin: auto 0 0; padding-top: 0.9rem; font-size: 0.86rem; }
.st div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 0.75rem; padding: 0.45rem 0; border-top: 1px solid var(--border); }
.st dt { color: var(--muted); }
.st dd { font: 600 0.88rem/1.35 var(--display); }
.ok { color: var(--signal); } .warn { color: var(--amber); } .unk { color: var(--unknown); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); min-height: 44px; }
.foot time { font: 500 0.78rem/1 var(--mono); color: var(--muted); }
.vid {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.1rem;
  color: var(--signal); font: 600 0.88rem/1 var(--display); text-decoration: none;
}
.vid:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the newest brief leads */
.first.card { padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem) 0.4rem; background: var(--surface); }
.first.card h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.08; letter-spacing: -0.025em; margin-top: 0.7rem; max-width: 20ch; }
.first.card .deck { font-size: 1.02rem; margin-top: 0.8rem; -webkit-line-clamp: 4; line-clamp: 4; max-width: 36rem; }
.first.card .st { font-size: 0.92rem; }
.first.card .st dd { font-size: 0.98rem; }

.card.fill { padding: 0; border-style: dashed; background: none; }
.card.fill a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 6rem; padding: 1rem; text-align: center; color: var(--signal); font: 500 0.95rem var(--display); text-decoration: none; border-radius: 6px; }
.card.fill a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ------------------------------------------------------------ how we work */

.how { display: grid; gap: 1rem 2.5rem; }
.how h2 { font-size: 1.5rem; }
.how ul { display: grid; gap: 1rem 2rem; }
.how li { border-top: 2px solid var(--signal); padding-top: 0.8rem; color: var(--muted); font-size: 0.95rem; }
.how li b { display: block; margin-bottom: 0.25rem; color: var(--foreground); font: 600 1.05rem/1.3 var(--display); }
@media (min-width: 52rem) {
  .how { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; }
  .how ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how .more { grid-column: 2; margin-top: -0.5rem; }
}

/* ------------------------------------------------------------ follow */

.follow .panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1rem 3rem; align-items: center;
}
.follow h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
@media (min-width: 52rem) { .follow .panel { grid-template-columns: minmax(0, 1fr) auto; } }

/* ------------------------------------------------------------ standards */

.standards h2 { margin-top: 0.8rem; max-width: 22ch; }
.standards dl { margin-top: 2rem; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
@media (min-width: 44rem) { .standards dl { grid-template-columns: 1fr 1fr; } }
.standards dl > div { background: var(--background); padding: 1.25rem 1.35rem 1.4rem; }
.standards dt { font: 600 1.02rem/1.3 var(--display); }
.standards dd { margin-top: 0.4rem; color: var(--muted); font-size: 0.94rem; }
.standards .corr { margin-top: 1.25rem; color: var(--muted); max-width: 44rem; }
.standards .corr a, footer a { text-decoration-color: var(--border); text-underline-offset: 0.2em; }
.standards .corr a:hover, footer a:hover { text-decoration-color: currentColor; }

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

footer { margin-top: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
footer .wrap { padding-top: 2.25rem; padding-bottom: 3rem; display: grid; gap: 2rem 3rem; }
@media (min-width: 48rem) { footer .wrap { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
footer .brand { color: var(--foreground); }
footer h3 { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--foreground); }
footer .promise { margin-top: 0.4rem; max-width: 22rem; }
footer .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .pulse::after { animation: none; }
}
@media (max-width: 30rem) {
  .actions .btn { width: 100%; }
}
