/* ============ 4b. Page content below the lamp ============
   Plain reading text on the panel colors, so it follows Paper, Soot and Night with the controls.
   It adds no colors of its own. The lamp page and the static pages (about, privacy) share it. */
.page {
  position: relative; background: var(--panel); color: var(--ink);
  font-size: 16px; line-height: 1.6; font-weight: 450;
}
/* Not --safe-side: that is the larger inset, for the centered panel. Text keeps clear of each side's own inset. */
.page-inner {
  max-width: 720px; margin: 0 auto;
  padding: 56px max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
}

/* The rule that separates the content from the lamp */
.stage + .page { border-top: 1px solid var(--edge); }

/* In full screen the light is all there is, and there is nothing to scroll to.
   The prefixed rule stays apart: a browser that doesn't know a selector drops the whole group. */
:fullscreen .page { display: none; }
:-webkit-full-screen .page { display: none; }

.page h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.15; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
.page h2 { font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; text-wrap: balance; }
.page h3 { font-size: 17px; line-height: 1.3; font-weight: 650; }
.page h3 + p, .page p + p { margin-top: 12px; }
.page h1 + p { margin-top: 16px; }
.page p, .page li { max-width: 62ch; }
.page .lead { font-size: 18px; }
.page strong { font-weight: 650; }

/* Sections are separated by a rule, not boxes */
.page section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--edge); }
.page h2 + * { margin-top: 20px; }

.page a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page a:hover { text-decoration-thickness: 2px; }

/* ---- How to: numbered steps ---- */
.steps { list-style: none; display: grid; gap: 24px; counter-reset: step; }
.steps li { position: relative; padding-left: 48px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1.5px solid var(--line); border-radius: 50%;
  font-size: 15px; font-weight: 600; line-height: 1;
}

/* ---- Uses: one column on phones, two from the breakpoint in responsive.css ---- */
.uses { display: grid; gap: 28px; }

/* Each use has a small scene: a dark room lit by a screen. The room and its furniture use the
   --scene tokens, and the light uses --lamp, which drawLight() keeps equal to the lamp above.
   So the glow is the color you picked, goes dark when the sleep timer ends, and is red in Night mode. */
.use-art {
  display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; margin-bottom: 16px;
  border: 1px solid var(--edge); border-radius: 12px; background: var(--scene);
}
.use-art .ln { fill: none; stroke: var(--scene-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.use-art .soft { stroke-opacity: .5; }
.use-art .f { fill: var(--scene-fill); }
.use-art .lit { fill: var(--lamp); }
.use-art .g { fill: var(--lamp); stroke: none; }
.use-art .ray { fill: none; stroke: var(--lamp); stroke-width: 2; stroke-linecap: round; stroke-opacity: .75; }
.use-art .rim { stroke-width: 4; stroke-opacity: .95; }

/* ---- Benefits and FAQ ---- */
.points { list-style: none; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 22px; }
.points li::before {
  /* A border, not a fill: forced colors recolor borders but drop backgrounds */
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; border: 4px solid var(--line); border-radius: 50%;
}
.faq { display: grid; gap: 24px; }

/* ---- Footer: it shares the page's colors, so it is a .page of its own ---- */
/* Padding, not a margin: a margin here would collapse out of the footer and show the light's color */
.site-footer .page-inner { padding-top: 56px; padding-bottom: calc(24px + var(--safe-bottom)); }
.site-footer nav { padding-top: 8px; border-top: 1px solid var(--edge); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer a, .back { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Static pages (about, privacy) ---- */
html.doc, html.doc body { background: var(--panel); }
.doc main .page-inner { padding-top: 24px; }
.back { margin-bottom: 16px; }
.doc .page section + section { margin-top: 32px; padding-top: 32px; }
