/* Practical AI Community: the billboard. Same neutrals, type and radius as the
   free community's billboard (aass.community); its own accent: blue, not
   yellow, so the two sites never read as one. Light and dark, the system decides.
   The accent is never body text: always a field with its own text color on it.
   Accent pairs (the gate checks the ratios):
     light  field #1D4ED8, text #FFFFFF  6.70:1   field on page #F3F3F1  6.03:1
     dark   field #7AA7FF, text #0F1216  7.87:1   field on page #0F1216  7.87:1 */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/SchibstedGrotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 96%;
  ascent-override: 101.7%;
  descent-override: 26.9%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --bg: #F3F3F1;
  --surface: #E6E6E2;
  --ink: #12161C;
  --ink-2: #454B55;
  --ink-3: #5A606B;
  --edge: #6B7280;
  --line: #D6D6D2;
  --signal: #1D4ED8;
  --signal-hover: #1E40AF;
  --on-signal: #FFFFFF;
  --hl: url("/hl-light.svg");
  --error: #B3261E;
  --font-sans: "Schibsted Grotesk", "Schibsted Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --wrap: 1100px;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1216;
    --surface: #181C22;
    --ink: #F3F3F1;
    --ink-2: #B9BEC6;
    --ink-3: #8A929E;
    --edge: #8A929E;
    --line: #2A2F37;
    --error: #F0A596;
    --signal: #7AA7FF;
    --signal-hover: #9DC0FF;
    --on-signal: #0F1216;
    --hl: url("/hl-dark.svg");
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
input, button { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; line-height: 1.08; overflow-wrap: break-word; }
p, li { text-wrap: pretty; overflow-wrap: break-word; }
::selection { background: var(--signal); color: var(--on-signal); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--signal); } }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--signal); color: var(--on-signal);
  padding: 12px 18px; border-radius: var(--r); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.link {
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: var(--edge);
}
.link:hover, .link:focus-visible { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.mono { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.005em; color: var(--ink-3); }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 1.15rem; }
.mark img { width: 34px; height: 34px; }
.back { font-weight: 650; font-size: 1rem; }

/* the highlighter: the accent marks the word that matters (a field with its own text on it) */
.hl {
  background-image: var(--hl);
  background-repeat: no-repeat;
  background-size: 100% 1.08em;
  background-position: 0 58%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.02em 0.16em;
  margin-inline: -0.16em;
  color: var(--on-signal);
}

/* hero */
.hero { padding-block: clamp(3.5rem, 2rem + 8vw, 9rem) clamp(3rem, 2rem + 5vw, 6rem); }
.hero h1 {
  font-size: clamp(3rem, 9vw + 0.5rem, 8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-block: 18px 28px;
}
.lead { font-size: clamp(1.15rem, 0.4vw + 1.05rem, 1.35rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 52ch; }
.hero .lead + .lead { margin-top: 16px; color: var(--ink-2); }

/* bands */
.band { border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.band h2 { font-size: clamp(1.8rem, 2vw + 1.1rem, 3rem); letter-spacing: -0.025em; margin-bottom: clamp(24px, 3vw, 44px); }
.band .intro { color: var(--ink-2); max-width: 52ch; margin: -12px 0 28px; }

.rows { list-style: none; padding: 0; border-top: 1px solid var(--line); counter-reset: rec; }
.rows > li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 6px 0;
  padding-block: clamp(20px, 2.4vw, 32px);
  border-bottom: 1px solid var(--line);
  counter-increment: rec;
}
.rows > li::before {
  content: counter(rec, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); padding-top: 0.5em;
}
.rows h3 { font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem); letter-spacing: -0.01em; font-weight: 700; }
.rows p { color: var(--ink-2); max-width: 60ch; }
.rows .go { margin-top: 6px; font-weight: 650; }
@media (min-width: 901px) {
  .rows > li { grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 7fr); gap: 0 40px; align-items: baseline; }
  .rows > li::before { grid-row: auto; padding-top: 0; }
}

/* the waiting list */
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: clamp(20px, 3vw, 36px); max-width: 44rem; }
.field-label { display: block; font-weight: 620; font-size: 0.975rem; margin-bottom: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.input {
  flex: 1 1 16rem; min-width: 0; min-height: 52px; padding: 0 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--edge); border-radius: var(--r); font-size: 1.0625rem;
}
.input::placeholder { color: var(--ink-3); }
.input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-color: var(--signal); }
.input[aria-invalid="true"] { border-color: var(--error); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: var(--r);
  background: var(--signal); color: var(--on-signal);
  font-weight: 700; font-size: 1rem; white-space: nowrap;
}
.btn:hover { background: var(--signal-hover); }
.btn:active { transform: translateY(1px); }
fieldset { border: 0; padding: 0; min-width: 0; }
fieldset:disabled .input, fieldset:disabled .btn { opacity: 0.55; cursor: not-allowed; }
fieldset:disabled .btn:hover { background: var(--signal); }
.note { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.note strong { color: var(--ink); }
.status { margin-top: 16px; font-weight: 650; }
.status[data-state="error"] { color: var(--error); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--ink-2); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
