@font-face { font-family: 'Nunito'; src: url('fonts/Nunito%5Bwght%5D.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/Fraunces%5BSOFT,WONK,opsz,wght%5D.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --font: 'Nunito', -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: 'Fraunces', Georgia, "Times New Roman", serif;
  --bg: #efe9df;
  --panel: #e4dccd;
  --card: #faf7f1;
  --ink: #1f2a26;
  --ink-2: #55635d;
  --line: #d8cfbf;
  --primary: #1f6b5c;
  --primary-ink: #ffffff;
  --primary-soft: #d9e9e2;
  --high: #c4651d;
  --high-ink: #8a4410;
  --high-soft: #f7e6d2;
  --danger: #b3261e;
  --danger-soft: #f8e1dc;
  --sun: #e9b94d;
  --shadow: 0 10px 28px rgba(31, 42, 38, 0.10);
  --shadow-sm: 0 4px 14px rgba(31, 42, 38, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #131a21;
    --panel: #182028;
    --card: #1c252e;
    --ink: #ede6da;
    --ink-2: #aab3ad;
    --line: #2d3843;
    --primary: #8fd0bd;
    --primary-ink: #131a21;
    --primary-soft: #1f3a35;
    --high: #f0ad5a;
    --high-ink: #f3c689;
    --high-soft: #3a2a16;
    --danger: #ff928a;
    --danger-soft: #3b1f1d;
    --sun: #f2c45e;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.30);
  }
}

html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.45; overflow-x: clip; }
* { box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 60, "WONK" 0; line-height: 1.12; margin: 0; color: var(--ink); }
h1 { font-weight: 500; font-size: 40px; }
h2 { font-weight: 600; font-size: 30px; margin-bottom: 20px; }
h3 { font-weight: 600; font-size: 21px; }
a:focus-visible, .number:focus-visible { outline: 3px solid var(--high); outline-offset: 2px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 5; padding: 12px 18px; min-height: 44px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Hero: the photograph edge to edge, then the title on a solid plate that overlaps it. Nothing is set on the picture. */
.hero { padding: 0 16px 8px; }
.hero picture { display: block; margin: 0 -16px; }
.hero-photo { width: 100%; height: 300px; object-fit: cover; object-position: 70% 45%; }
.plate { position: relative; margin: -40px auto 0; max-width: 980px; background: var(--card); border-radius: 16px; padding: 28px 22px 26px; box-shadow: var(--shadow); }
.cairn { width: 44px; height: 44px; stroke: var(--primary); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; margin-bottom: 12px; }
.lead { font-size: 18px; max-width: 62ch; margin: 14px 0 22px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); text-decoration: none; font-weight: 700; font-size: 17px; transition: transform 150ms ease; }
.btn.help { background: var(--danger-soft); color: var(--danger); }
.btn:active { transform: translateY(1px); }
.crisis-line { margin: -10px 0 20px; font-weight: 700; }
.crisis-line a { color: inherit; }
.where { margin: 0; font-size: 15px; color: var(--ink-2); }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
section { padding: 44px 0 0; }
.section-lead { color: var(--ink-2); font-size: 16px; max-width: 60ch; margin: -8px 0 20px; }

/* Three headed boxes with line drawings. No plates behind the drawings, no outlines. */
.boxes { display: grid; grid-template-columns: 1fr; gap: 18px; }
.box { background: var(--card); border-radius: 16px; padding: 24px 22px 22px; box-shadow: var(--shadow-sm); transition: transform 150ms ease; }
.box:hover { transform: translateY(-2px); }
.drawing { width: 64px; height: 64px; stroke: var(--primary); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; margin-bottom: 14px; }
.drawing.small { width: 56px; height: 56px; flex: none; margin: 0; }
.box h3 { margin-bottom: 8px; }
.box p { color: var(--ink-2); font-size: 16px; }

/* Quiet card: panel tone, no shadow */
.also { margin-top: 18px; background: var(--panel); border-radius: 16px; padding: 24px 22px; }
.also h3 { margin-bottom: 12px; }
.also ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px 24px; }
.also li { font-size: 16px; }
.also strong { font-weight: 800; color: var(--ink); }
.also p { font-size: 16px; }

/* The six photographs as a calm strip with captions */
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.strip figcaption { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }

/* Private by design */
.private { margin-top: 44px; padding: 0; }
.private { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow-sm); }
.private h2 { font-size: 24px; margin-bottom: 10px; }
.private p { font-size: 16px; }

/* If you need help now: soft tint, inset bar at the left, no border. */
.now { margin-top: 24px; padding: 26px 22px 24px; background: var(--danger-soft); border-radius: 16px; box-shadow: inset 5px 0 0 var(--danger); }
.now h2 { color: var(--danger); font-size: 28px; margin-bottom: 10px; }
.now > p { font-size: 16px; margin-bottom: 18px; }
.numbers { display: grid; grid-template-columns: 1fr; gap: 12px; }
.number { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 18px 20px; background: var(--card); border-radius: 14px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 150ms ease; }
.number:active { transform: translateY(1px); }
.num { font-size: clamp(30px, 10vw, 40px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.what { font-size: 15px; font-weight: 600; color: var(--ink-2); }

footer { max-width: 1100px; margin: 40px auto 0; padding: 0 16px 32px; color: var(--ink-2); font-size: 15px; }
.credits { font-size: 13px; margin-top: 10px; }

@media (min-width: 520px) {
  .boxes { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  html, body { font-size: 18px; }
  h1 { font-size: 56px; }
  h2 { font-size: 34px; }
  h3 { font-size: 22px; }
  .hero { padding: 0 24px 8px; }
  .hero picture { margin: 0; }
  .hero-photo { height: 520px; object-position: center 45%; border-radius: 0 0 20px 20px; }
  .plate { margin-top: -96px; padding: 36px 40px 32px; }
  .lead { font-size: 20px; }
  main { padding: 0 24px; }
  section { padding-top: 64px; }
  .boxes { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .box { padding: 28px 26px 26px; }
  .also { padding: 28px 30px; }
  .also ul { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .private { flex-direction: row; padding: 32px 34px; gap: 28px; }
  .private h2 { font-size: 28px; }
  .now { padding: 32px 34px 30px; }
  .numbers { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .num { font-size: 48px; }
  footer { padding: 0 24px 40px; }
}

@media (min-width: 1200px) {
  .hero-photo { height: 600px; }
  .plate { margin-top: -120px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .box:hover, .btn:active, .number:active { transform: none; }
}
