/*
 * The holding page at the bare domain (docs/box.md, "The holding page"), in Aether's
 * look as the gateway's page and the edge's pages have it: Night, Air and Haze with one
 * starlight gold, Cormorant Garamond for the name and Manrope for the words.
 *
 * The two faces are served from this site alone (fonts/, each with its SIL Open Font
 * License), Latin subsets from Fontsource 5.3.0 as the main repository ships them. The
 * page loads nothing from anywhere else, and runs no script.
 *
 * Every colour is a token on `:root`; the dark variant follows the reader's setting, and
 * every pair of text and ground clears 4.5:1 in both. Phone first: one centred column.
 */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --ink: #0d1017;
  --paper: #f4f5f7;
  --muted: #4a5260;
  --line: #dde1e8;
  --accent-text: #7a5a14;
  --haze: rgb(243 217 164 / 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecf2;
    --paper: #0d1017;
    --muted: #9aa3b2;
    --line: #1e2430;
    --accent-text: #f3d9a4;
    --haze: rgb(243 217 164 / 0.07);
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse 70% 45% at 50% 38%, var(--haze), transparent 70%),
    var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  overflow-wrap: anywhere;
}

main {
  box-sizing: border-box;
  width: 100%;
  max-width: 34rem;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  padding-bottom: 6px;
  border: 1.5px solid var(--accent-text);
  border-radius: 50%;
  font: 600 40px/1 var(--display);
  color: var(--accent-text);
}

h1 {
  margin: 1.5rem 0 0;
  font: 600 clamp(3.25rem, 14vw, 5rem) / 1 var(--display);
  letter-spacing: 0.01em;
}

.lead {
  margin: 1.25rem auto 0;
  max-width: 22ch;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  line-height: 1.4;
}

.note {
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  max-width: 16rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
