/* The homepage (ADR 0239, HOMEPAGE-PLAN.md). It opens on Lumen & Oak's day, drawn in line, then the product itself; the sections
   after it are rebuilt one at a time. Its samples are fixed and labelled: nothing here reads, saves
   or sends. styles.css holds what every page shares and the day's sample window; each rebuilt section has
   a stylesheet of its own (hero.css, product.css, say.css). */

/* ── A dark band: the storm. The mark never stands on it (ADR 0237, amended 19 November 2026). ── */
.on-dark {
  --background: var(--dark);
  --ink: var(--on-dark);
  --ink-2: var(--on-dark);
  --muted: var(--on-dark-muted);
  --line: var(--line-on-dark);
  --paper: var(--dark-raised);
  --primary: var(--accent-action);
  --primary-hover: var(--accent-action);
  --on-primary: var(--forest-900);
  background: var(--dark);
  color: var(--ink);
}

.on-dark .button.dark {
  background: var(--accent-action);
  color: var(--forest-900);
}

.on-dark .alpha-badge {
  border-color: var(--line-on-dark);
  background: transparent;
  color: var(--on-dark-muted);
}

/* A heading's second line is said plainly, in a quieter ink. */
:is(h1, h2) em {
  color: var(--muted);
  font-style: normal;
}

/* ── The close: the mark rises on its horizon, then one line and the one way in ─────────────────
   It stands on the light ground, as the mark always does (BRAND.md). app.mjs adds .mark-rise when it is
   well in view: the horizon draws, the sun rises through it and the rays open. Until then a mark below
   the fold waits unseen (.is-set). Without scripting, and with reduced motion, the mark simply stands. */
.closing {
  --closing-mark: clamp(104px, 11vw, 144px);
  position: relative;
  padding: var(--space-9) 0;
  overflow: hidden;
  text-align: center;
}

/* The horizon runs the full width, on the mark's own horizon (21 of its 32 units down). */
.closing::before {
  content: "";
  position: absolute;
  inset: calc(var(--space-9) + var(--closing-mark) * 21 / 32) 0 auto;
  border-top: 1px solid var(--line);
}

.closing .closing-mark {
  position: relative;
  width: var(--closing-mark);
  height: var(--closing-mark);
}

.closing-mark.is-set:not(.mark-rise) svg {
  opacity: 0;
}

.closing h2 {
  margin-top: var(--space-6);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
}

.closing .button {
  margin-top: var(--space-6);
}
