/* The holding page for whyindex.fyi. Brand palette from brand/manifest.json, at pairs that
   manifest already records as meeting contrast: ink ground with paper text, marker yellow as the
   display accent on ink, ink text on the cloud cards. One page, one screen where it fits. No
   script; the assets are the dark lockup, copied from brand/logo/ unaltered, and IBM Plex from
   Google Fonts. Plex is the only thing on this page that is fetched from anywhere else, and every
   stack falls back to a system face if it does not arrive. */
:root {
  color-scheme: dark;
  --paper: #f4efe4;
  --cloud: #fffdf8;
  --ink: #182e42;
  --signal: #2457c5;
  --note-red: #f15f48;
  --marker: #f3d35d;
  --leaf: #b8c9bd;
  /* IBM Plex, with system stacks behind each so the page still sets if the webfont never
     arrives. Serif carries the display voice, Sans the reading, Mono the labels. */
  --display: "IBM Plex Serif", "Bookman Old Style", Georgia, "Times New Roman", serif;
  --reading: "IBM Plex Sans", "Segoe UI", Aptos, Arial, Helvetica, sans-serif;
  --utility: "IBM Plex Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --gutter: clamp(1.25rem, 5vw, 6rem);
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--reading);
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.15rem);
  font-synthesis: none;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--ink);
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 5;
  padding: 0.7rem 0.95rem;
  background: var(--marker);
  color: var(--ink);
  font-family: var(--utility);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }

.page {
  display: grid;
  flex: 1;
  align-content: center;
  padding: clamp(2.5rem, 7vh, 5.5rem) var(--gutter);
  background:
    radial-gradient(circle at 84% 14%, rgb(241 95 72 / 0.34), transparent 48%),
    radial-gradient(circle at 6% 86%, rgb(36 87 197 / 0.7), transparent 56%),
    linear-gradient(155deg, #0e1c2b 10%, var(--ink) 52%, #24456a);
}

.page-inner { display: grid; gap: clamp(0.9rem, 2vh, 1.6rem); width: min(100%, 68rem); }

.lockup {
  width: min(100%, 27rem);
  height: auto;
  margin-bottom: clamp(0.5rem, 2vh, 1.5rem);
}

.kicker {
  margin: 0;
  color: var(--marker);
  font-family: var(--utility);
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The display size answers the window's height as well as its width, so the whole page holds a
   short desktop window without scrolling. */
h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, min(6.6vw, 10svh), 6.5rem);
  line-height: 0.9;
}

h1 em { color: var(--marker); font-style: normal; }

.dek {
  max-width: 46rem;
  margin: 0;
  padding-left: 1.25rem;
  border-left: 0.45rem solid var(--note-red);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.3rem);
  line-height: 1.5;
}

.live { margin-top: clamp(0.75rem, 2vh, 1.75rem); }

.live h2 {
  margin-bottom: clamp(0.75rem, 1.6vh, 1.25rem);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
}

.live-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-list a {
  display: grid;
  gap: 0.5rem;
  height: 100%;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 2px solid var(--paper);
  background: var(--cloud);
  color: var(--ink);
  text-decoration: none;
}

.live-list a:hover { background: var(--marker); }

.live-tag {
  width: max-content;
  padding: 0.3rem 0.55rem;
  background: var(--ink);
  color: var(--marker);
  font-family: var(--utility);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-question {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.live-host {
  font-family: var(--utility);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.soon {
  max-width: 46rem;
  margin: clamp(0.5rem, 1.5vh, 1.25rem) 0 0;
  color: var(--leaf);
  font-family: var(--utility);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.55;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--gutter);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--utility);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer p { margin: 0; }

.attribution {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; color: #000; }
  .page, footer { background: #fff; color: #000; }
  .skip-link { display: none; }
}
