@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Fraunces:opsz,wght@9..144,600;9..144,800&display=swap');
/* style.css - controls how every page looks.
   The site walks from night (The Harm) to dawn (Get Help). Each page picks a "theme" below
   with a class on <body>. Change a color here and every page that uses it updates. */

/* default + The Harm: deepest night */
:root, .t-night {
  --bg:#0b0e14; --text:#eee9df; --muted:#9ba3ae; --card:#131925; --line:#263041;
  --accent:#f2a04a; --bar-gray:#657089; --ink-2:#c8cdd4; --helpbg:#2a1d12; --todo:#2b2610;
  --display:"Fraunces", Georgia, serif; --body:"DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
/* The Numbers: first hint of blue */
.t-dusk1 {
  --bg:#162033; --text:#eef0f3; --muted:#a3adbd; --card:#1e2b42; --line:#33445f;
  --accent:#f4a24d; --bar-gray:#7a8aa6; --ink-2:#d0d6e0; --helpbg:#33281f; --todo:#3a3416; color-scheme: dark;
}
/* Casino Games: dusk */
.t-dusk2 {
  --bg:#26364f; --text:#f3f1ec; --muted:#b4bdcb; --card:#30425f; --line:#465a7a;
  --accent:#f6b04f; --bar-gray:#8c9db8; --ink-2:#dde2ea; --helpbg:#3d3226; --todo:#43401f; color-scheme: dark;
}
/* The Law: daylight */
.t-day {
  --bg:#ece7dc; --text:#1f2a37; --muted:#566272; --card:#fbf8f1; --line:#d3ccbd;
  --accent:#b4531b; --bar-gray:#8896a6; --ink-2:#33404f; --helpbg:#f6e3d3; --todo:#fff3c2; color-scheme: light;
}
/* Get Help: sunrise */
.t-dawn {
  --bg:#fdf4e0; --text:#2a2218; --muted:#6a5d49; --card:#fffaf0; --line:#ecdcb9;
  --accent:#b34a12; --bar-gray:#a99c85; --ink-2:#3f3425; --helpbg:#fbe3c6; --todo:#fff0b8; color-scheme: light;
}

* { box-sizing: border-box; }
body { margin:0; font-family:var(--body); font-size:17px; line-height:1.65; color:var(--text); background:var(--bg); }

header { background:var(--bg); border-bottom:1px solid var(--line); padding:14px 20px; }
header a { color:var(--text); text-decoration:none; }
.site-name { font-family:var(--display); font-weight:800; font-size:1.3rem; }
nav { margin-top:8px; display:flex; flex-wrap:wrap; gap:6px 18px; }
nav a { font-size:.95rem; color:var(--muted); font-weight:500; }
nav a:hover { color:var(--text); }
nav a.current { color:var(--text); border-bottom:2px solid var(--accent); }

main { max-width:720px; margin:0 auto; padding:32px 20px 64px; }

h1,h2,h3 { font-family:var(--display); font-weight:800; line-height:1.15; }
h1 { font-size:2.3rem; margin:0 0 12px; }
h2 { font-size:1.65rem; margin-top:2em; padding-bottom:8px; border-bottom:1px solid var(--line); }
h3 { font-size:1.25rem; margin-top:1.6em; }
p.lead { font-size:1.2rem; color:var(--muted); }
a { color:var(--accent); }

.help-box { background:var(--helpbg); border-left:5px solid var(--accent); padding:14px 18px; margin:24px 0; border-radius:4px; }
.help-box strong { color:var(--accent); }

.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:16px 18px; margin:14px 0; }
.card a { font-weight:600; }

table { width:100%; border-collapse:collapse; margin:16px 0; font-size:.9rem; display:block; overflow-x:auto; }
th,td { border:1px solid var(--line); padding:8px 10px; text-align:left; vertical-align:top; }
th { background:var(--card); }

.stat-row { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; }
.stat { flex:1 1 200px; min-width:0; background:var(--card); border:1px solid var(--line); border-top:4px solid var(--accent); border-radius:8px; padding:14px 16px; font-size:.95rem; color:var(--muted); }
.stat .big { display:block; font-family:var(--display); font-size:1.9rem; font-weight:800; color:var(--text); line-height:1.15; }

/* charts: plain HTML/CSS. Gray = context, accent = the thing to notice */
figure.chart { margin:20px 0; padding:16px 18px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.chart .title { display:block; font-weight:700; font-size:1.02rem; line-height:1.3; }
.chart .sub { display:block; color:var(--muted); font-size:.88rem; margin-top:2px; }
.bar-row { margin-top:14px; }
.bar-label { font-size:.92rem; color:var(--ink-2); margin-bottom:4px; }
.bar-track { display:flex; align-items:center; gap:8px; }
.bar { height:20px; width:calc(var(--w) * 0.72%); min-width:3px; background:var(--bar-gray); border-radius:0 4px 4px 0; }
.bar.hl { background:var(--accent); }
.bar.zero { display:none; }
.bar-val { font-weight:700; font-size:.95rem; white-space:nowrap; }
.legend { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:14px; font-size:.88rem; color:var(--ink-2); }
.legend i { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:-1px; background:var(--bar-gray); }
.legend i.hl { background:var(--accent); }
.stack { display:flex; gap:2px; height:28px; margin-top:12px; }
.stack span { display:block; height:100%; }
.stack .seg-gray { background:var(--bar-gray); border-radius:4px 0 0 4px; }
.stack .seg-hl { background:var(--accent); border-radius:0 4px 4px 0; }
details.table-view { margin-top:14px; font-size:.9rem; }
details.table-view summary { cursor:pointer; color:var(--accent); font-weight:600; }
.pictogram svg { display:block; width:100%; max-width:380px; height:auto; margin:12px 0 4px; }

.steps { margin:16px 0; padding:0; list-style:none; counter-reset:step; }
.steps li { display:flex; gap:12px; align-items:flex-start; margin:10px 0; padding:12px 14px; background:var(--card); border:1px solid var(--line); border-radius:8px; counter-increment:step; }
.steps li::before { content:counter(step); flex:0 0 30px; height:30px; border-radius:50%; background:var(--accent); color:var(--bg); font-weight:800; display:flex; align-items:center; justify-content:center; }

.todo { background:var(--todo); border:1px dashed #c9a800; padding:10px 14px; border-radius:4px; font-size:.95rem; }

/* "Next" link at the bottom of each page: the walk toward the light */
.next { margin:44px 0 0; padding-top:20px; border-top:1px solid var(--line); text-align:right; font-family:var(--display); font-weight:800; font-size:1.25rem; }
.next a { text-decoration:none; }
.next small { display:block; font-family:var(--body); font-weight:500; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }

footer { background:var(--bg); padding:22px 20px; color:var(--muted); font-size:.9rem; border-top:1px solid var(--line); }
footer p { max-width:720px; margin:0 auto; }

/* ================= HOME PAGE: one long walk from night to dawn ================= */
.band { display:flow-root; padding:56px 20px; background:var(--bg); color:var(--text); }
.band .in { max-width:860px; margin:0 auto; }
.horizon { height:110px; }                       /* gradient strip between bands, no text on it */
.hero { padding-top:64px; position:relative; overflow:hidden; text-align:left; }
.hero .stars { position:absolute; inset:0; width:100%; height:100%; opacity:.9; }
.hero .in { position:relative; }
.eyebrow { font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); font-size:.8rem; }
.hero h1 { font-size:clamp(2.5rem,8vw,4.8rem); max-width:13ch; margin:14px 0 0; }
.hero h1 em { font-style:normal; color:var(--accent); }
.hero p.lead { max-width:36rem; margin:22px 0 0; color:var(--ink-2); }
.hero .help-box { max-width:36rem; margin:26px 0 0; }
.scrollcue { margin-top:30px; color:var(--muted); font-size:.85rem; letter-spacing:.12em; text-transform:uppercase; }

.sec > div { min-width:0; }
.sec { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:12px 48px; align-items:center; }
.sec .num { font-weight:700; letter-spacing:.14em; text-transform:uppercase; font-size:.8rem; color:var(--muted); }
.sec .bigstat { font-family:var(--display); font-weight:800; font-size:clamp(2.6rem,7vw,4.6rem); line-height:1; color:var(--accent); margin:6px 0 8px; overflow-wrap:anywhere; }
.sec .cap { color:var(--ink-2); max-width:22rem; }
.sec h2 { margin:0 0 8px; padding:0; border:0; font-size:2rem; }
.sec p { margin:0 0 16px; color:var(--muted); }
.btn { display:inline-block; padding:10px 20px; border-radius:999px; background:var(--accent); color:var(--bg); font-weight:700; text-decoration:none; }
.btn:hover { filter:brightness(1.08); }
.sec.sun { align-items:start; }
.about h2 { font-size:1.4rem; }
.about { max-width:720px; margin:0 auto; }

@media (max-width:720px) {
  .sec { grid-template-columns:minmax(0,1fr); }
  h1 { font-size:2rem; }
  .band { padding:44px 20px; }
}

.sec .bigstat.phone { font-size:clamp(1.7rem,4.4vw,2.7rem); }

/* ================= TALK PAGE: story box and contact form ================= */
.story { margin:24px 0; padding:18px 22px; background:var(--card); border:1px solid var(--line); border-left:5px solid var(--accent); border-radius:6px; font-family:var(--display); font-size:1.2rem; line-height:1.55; }
.story small { display:block; margin-top:12px; font-family:var(--body); font-size:.85rem; color:var(--muted); }
.pull { margin:20px 0; padding:14px 18px; border-left:5px solid var(--accent); background:var(--card); border-radius:4px; font-family:var(--display); font-size:1.1rem; }
.pull small { display:block; margin-top:6px; font-family:var(--body); font-size:.85rem; color:var(--muted); }
.cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.cols .card { margin:0; }
.cols h3 { margin:0 0 6px; font-size:1.1rem; }
.cols ul { margin:0; padding-left:1.1em; }
form.talk { margin:20px 0; padding:20px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
form.talk label { display:block; font-weight:700; margin:16px 0 6px; }
form.talk label:first-child { margin-top:0; }
form.talk .hint { display:block; font-weight:400; font-size:.88rem; color:var(--muted); }
form.talk input[type=text], form.talk input[type=email], form.talk textarea {
  width:100%; padding:10px 12px; font:inherit; font-size:16px; color:var(--text); background:var(--bg);
  border:1px solid var(--line); border-radius:6px;
}
form.talk textarea { min-height:160px; resize:vertical; }
form.talk .opt { display:flex; gap:10px; align-items:flex-start; font-weight:500; margin:8px 0; }
form.talk .opt input { margin-top:5px; accent-color:var(--accent); }
form.talk button { margin-top:18px; border:0; cursor:pointer; font:inherit; font-weight:700; }
.formnote { margin:12px 0 0; font-size:.9rem; color:var(--muted); }
.sent { display:none; margin-top:14px; padding:12px 14px; border-radius:6px; background:var(--helpbg); border-left:5px solid var(--accent); }
@media (max-width:720px) { .cols { grid-template-columns:minmax(0,1fr); } }

.story.long { font-family:var(--body); font-size:1.05rem; line-height:1.7; border-left-width:5px; }
.story.long p { margin:0 0 1em; }
.story.long p:last-child { margin-bottom:0; }

/* ================= HOME PAGE: "put it in perspective" tiles ================= */
.wowhead { max-width:860px; margin:0 auto 22px; }
.wowhead h2 { margin:0 0 6px; padding:0; border:0; font-size:2rem; }
.wowhead p { margin:0; color:var(--muted); }
.wow { max-width:860px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; }
.tile { min-width:0; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:20px 20px 16px; display:flex; flex-direction:column; }
.tile .wowbig { font-family:var(--display); font-weight:800; font-size:2.6rem; line-height:1.05; color:var(--accent); overflow-wrap:anywhere; }
.tile p { margin:8px 0 12px; color:var(--text); }
.tile .gfx { margin:2px 0 12px; }
.tile .gfx svg { display:block; width:100%; max-width:260px; height:auto; }
.tile .gfx .stack { margin-top:0; }
.tile .mini { display:flex; align-items:center; gap:8px; margin:6px 0; font-size:.85rem; color:var(--ink-2); }
.tile .mini .b { height:14px; border-radius:0 4px 4px 0; background:var(--bar-gray); }
.tile .mini .b.hl { background:var(--accent); }
.tile .math { margin-top:auto; padding-top:10px; border-top:1px solid var(--line); font-size:.8rem; line-height:1.45; color:var(--muted); }
.tile .more { display:inline-block; margin-top:8px; font-weight:600; font-size:.9rem; }
.wownote { max-width:860px; margin:18px auto 0; font-size:.85rem; color:var(--muted); }
