/* The public front page (/), 2026-11-24 redesign.
   Horizon palette, copied from /home (web/public/wall/home.css) so the front door and the
   signed-in wall read as one place. No script on this page at all; this file is the only style
   (the CSP allows style-src 'self' and nothing inline).
   The one flourish is the planet's limb across the top: a thin flare-to-violet edge that fades in
   once (1.2 s). Under prefers-reduced-motion it is simply there. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap;
  src: url("fonts/atkinson-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap;
  src: url("fonts/atkinson-700.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap;
  src: url("fonts/chakra-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #07050d; --bg-2: #0e0a1a; --line: #2c2346;
  --ink: #f1ecff; --ink-2: #bdb3da; --ink-3: #9a90b6;
  --accent: #b388ff; --accent-ink: #07050d; --flare: #ff8a3d;
  --glow: rgb(179 136 255 / .30); --glow-2: rgb(255 138 61 / .22);
  --focus: #ffb27a;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f1fa; --bg-2: #ebe5f6; --line: #ddd4ee;
    --ink: #17112a; --ink-2: #4b4266; --ink-3: #635a7e;
    --accent: #6a3fcf; --accent-ink: #ffffff; --flare: #b4500e;
    --glow: rgb(106 63 207 / .18); --glow-2: rgb(255 138 61 / .28);
    --focus: #b4500e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  overflow-wrap: break-word;
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative; overflow-x: clip;
}

/* ---- the horizon -------------------------------------------------------- */
.sky {
  position: absolute; inset: 0 0 auto 0; height: clamp(130px, 21vh, 190px);
  overflow: hidden; pointer-events: none;
  /* fade the bottom edge: the glow is clipped here, and a hard clip reads as a seam */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.limb {
  position: absolute; left: 62%; top: calc(100% - 40px);
  width: 320vmax; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: var(--bg);
  border-top: 1.5px solid var(--flare);
  box-shadow: 0 -2px 18px 0 var(--glow-2), 0 -14px 70px 6px var(--glow);
}
@media (prefers-reduced-motion: no-preference) {
  .limb { animation: rise 1.2s ease-out both; }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- content ------------------------------------------------------------ */
.page, .foot {
  position: relative; width: min(60rem, 100% - 2rem); margin-inline: auto;
}
.page { padding-top: clamp(150px, 25vh, 225px); flex: 1 0 auto; }
.page > * { max-width: 36rem; }

h1 {
  margin: 0;
  font: 600 clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem)/1.04 "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.012em; text-wrap: balance; overflow-wrap: break-word;
}
.lede { margin: 1rem 0 0; color: var(--ink-2); font-size: 1.125rem; text-wrap: pretty; }

.act { margin: 1.75rem 0 0; }
.signin {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.6rem;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; letter-spacing: .01em;
}
.signin:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }

h2 {
  margin: clamp(2.5rem, 7vh, 3.75rem) 0 .5rem;
  font: 600 1.125rem/1.3 "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
}
.open { list-style: none; margin: 0; padding: 0; }
.open li {
  display: grid; grid-template-columns: 11rem 1fr; gap: .15rem 1.25rem; align-items: baseline;
  padding: .7rem 0; border-top: 1px solid var(--line);
}
.open li:last-child { border-bottom: 1px solid var(--line); }
.open a {
  color: var(--ink); font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--flare); text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.open a:hover { color: var(--accent); }
.open span { color: var(--ink-3); font-size: 1rem; }
@media (max-width: 34rem) {
  .open li { grid-template-columns: 1fr; padding: .8rem 0; }
}

.foot { padding: 2.5rem 0 2rem; font-size: .9375rem; }
.foot a { display: inline-block; padding: .4rem 0; color: var(--ink-3); text-underline-offset: .22em; }
.foot a:hover { color: var(--ink); }

a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.signin:focus-visible { border-radius: 999px; }

@media (forced-colors: active) {
  .limb { border-top-color: CanvasText; box-shadow: none; }
  .signin { border: 1px solid ButtonText; }
}
