/* The Wonder Question. Brand from the logo: its blue and gray; ink for type; white paper. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/atkinson-400.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/atkinson-400i.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/atkinson-700.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/atkinson-next-800.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/bricolage-800.woff2) format('woff2'); }

:root {
  --paper: #ffffff; --ink: #10202e; --muted: #4c5a66; --line: #d9e2ea;
  --blue: #0b72ba; --blue-ink: #ffffff; --wash: #eaf3fa; --field: #ffffff;
  --display: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Verdana, sans-serif;
  --brand: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Atkinson Hyperlegible', Verdana, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d161e; --ink: #e9eff4; --muted: #a3b1bd; --line: #24323d;
    --blue: #4ea7e6; --blue-ink: #06121b; --wash: #13232f; --field: #101c26;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }

/* Top bar */
.bar { padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font: 800 17px/1 var(--brand); letter-spacing: 0.08em; text-transform: uppercase; }

/* Hero: the question, with the logo's diagonal band behind it. */
.hero { position: relative; overflow: hidden; padding-block: 48px 36px; }
.hero::before { content: ""; position: absolute; top: -140px; right: -220px; width: 640px; height: 360px; background: var(--wash); transform: rotate(32deg); z-index: -1; }
.hero h1 { margin: 0; max-width: 15ch; font: 800 clamp(42px, 8vw, 80px)/1.02 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { margin: 24px 0 0; max-width: 34em; font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: 999px; font: 700 18px/1.2 var(--body); text-decoration: none; border: 2px solid var(--blue); cursor: pointer; }
.button.primary { background: var(--blue); color: var(--blue-ink); }
.button.secondary { background: transparent; color: var(--blue); }
.number { margin-top: 18px; color: var(--muted); }
.number strong { color: var(--ink); font: 800 22px/1.2 var(--display); letter-spacing: 0.01em; }

section { padding-block: 64px; border-top: 1px solid var(--line); }
/* The form follows the hero closely: it is the hero's second way to ask. */
#ask { padding-top: 40px; }
section h2 { margin: 0 0 12px; font: 800 clamp(30px, 4.5vw, 42px)/1.1 var(--display); text-wrap: balance; }
section .intro { margin: 0 0 32px; color: var(--muted); max-width: 36em; }

/* Ask form */
.ask { display: grid; gap: 18px; max-width: 640px; }
.ask label { display: block; font-weight: 700; }
.ask label > textarea, .ask label > input { display: block; margin-top: 6px; }
.ask .hint { font-weight: 400; color: var(--muted); font-size: 16px; }
.ask textarea, .ask input { width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font: 400 18px/1.5 var(--body); }
.ask textarea { min-height: 140px; resize: vertical; }
.ask .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .ask .row { grid-template-columns: 1fr; } }
.ask .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ask .note { margin: 0; color: var(--muted); font-size: 16px; }
.ask .status { margin: 0; font-weight: 700; }
.ask .status.error { color: #b3261e; }
@media (prefers-color-scheme: dark) { .ask .status.error { color: #ff8a80; } }
.thanks { max-width: 640px; padding: 24px; border-radius: 16px; background: var(--wash); }
.thanks h3 { margin: 0 0 8px; font: 800 26px/1.2 var(--display); }
.thanks p { margin: 0; }

/* Jay */
.me { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 700px) { .me { grid-template-columns: 1fr; gap: 24px; } .me img { width: 180px; } }
.me img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.me p { margin: 0 0 14px; max-width: 34em; }

/* What's offered */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.offer { padding: 22px; border-radius: 16px; background: var(--wash); }
.offer h3 { margin: 0 0 6px; font: 800 21px/1.25 var(--display); }
.offer p { margin: 0; color: var(--muted); font-size: 17px; }
.crisis { margin-top: 24px; font-size: 16px; color: var(--muted); }

/* Footer and plain pages */
footer { padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.page { padding-block: 32px 64px; }
.page h1 { font: 800 clamp(34px, 6vw, 52px)/1.1 var(--display); margin: 8px 0 24px; text-wrap: balance; }
.page h2 { font: 800 24px/1.25 var(--display); margin: 36px 0 8px; }
.page p, .page li { max-width: 40em; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
