/* ---------------------------------------------------------------------
   Dataløs — the page is full. A dense, quiet hex dump covers the viewport
   and the data is absent exactly where there is language: the clearing is
   the dilated silhouette of the wordmark itself.

   The field is enhancement. Without it — no JS, no canvas — what remains
   is paper, a wordmark and two sentences, which is the whole page.
   --------------------------------------------------------------------- */

:root {
  /* five colours, no more */
  --paper: #E7E8E3;  /* pale cool ground — archival, not cream */
  --ink:   #17191B;  /* wordmark, body */
  --field: #5C6660;  /* the byte glyphs, always drawn translucent */
  --rule:  #9DA39D;  /* address gutter, separator */
  --mark:  #35566F;  /* links, focus */

  /* Named, not self-hosted — the font pipeline is a separate task. Until it
     lands these resolve to the fallbacks, which is why the stacks are real. */
  --f-display: "IBM Plex Serif", "STIX Two Text", Georgia, "Times New Roman", serif;
  --f-body:    "IBM Plex Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* one screen, no scroll */
}

body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: clamp(1.25rem, 3.5vmin, 2.5rem);
}

/* Transparent canvas over the paper. Bytes are never erased from it: the
   ones that fall inside the wordmark's silhouette are simply never written,
   so the monospace grid stays in register and every glyph drawn is whole. */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, footer { position: relative; z-index: 1; }

main {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(1.75rem, 5.5vh, 4rem);
  align-self: center;
  padding-block: clamp(1rem, 5vh, 3rem);
}

h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 15.5vw, 10.5rem);
  line-height: 1;
  letter-spacing: -0.018em;
  margin: 0;
  padding: 0;
  width: fit-content;   /* the box must hug the glyphs — the absence reads its rect */
}

.lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(0.98rem, 0.75vw + 0.78rem, 1.2rem);
  line-height: 1.6;
  letter-spacing: 0.002em;
  text-wrap: balance;
  opacity: 0.86;
}

footer {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em 2.4em;   /* no separator glyph: space is the separator */
  font-family: var(--f-mono);
  font-size: clamp(0.75rem, 0.5vw + 0.62rem, 0.88rem);
  letter-spacing: 0.01em;
  line-height: 1.7;
  text-align: center;
  max-width: min(46ch, 100%);   /* one line where it fits, stacked where it does not */
}

a {
  color: var(--mark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: color-mix(in srgb, var(--mark) 45%, transparent);
  border-radius: 2px;
  transition: color 120ms linear, text-decoration-color 120ms linear;
}
a:hover { color: var(--ink); text-decoration-color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 4px;
  text-decoration-color: var(--mark);
}

/* short viewports (landscape phones) — tighten rather than scroll */
@media (max-height: 560px) {
  main { gap: clamp(0.9rem, 3vh, 1.6rem); padding-block: 0.5rem; }
  h1 { font-size: clamp(2.6rem, 11vw, 5rem); }
  .lede { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
