/* We Are Jane Doe: site styles. Fonts are self-hosted so no third party sees visitors. */
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ground: #F2F5F4;
  --card: #FFFFFF;
  --ink: #1D2422;
  --ink-2: #3A4643;
  --muted: #56625F;
  --line: #D5DFDC;
  --field: #A9B8B4;
  --teal: #1F5F5B;
  --teal-dark: #123F3C;
  --teal-soft: #DCE8E5;
  --teal-tint: #E6F0EE;
  --warn-bg: #F5E6D8;
  --warn-ink: #6B3A12;
  --exit: #B4462F;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #E0A23A; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.reading { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Crisis strip */
.crisis { background: var(--ink); color: #E8EEEC; font-size: 14px; padding: 10px 24px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; text-align: center; }
.crisis a { color: #9FD6D0; }
.crisis a[href^="tel"] { color: #FFFFFF; font-weight: 700; text-decoration: none; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; font-weight: 500; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.exit { text-decoration: none; background: var(--exit); color: #FFFFFF; padding: 12px 18px; border-radius: 8px; font-weight: 700; border: none; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.exit:hover { background: #8F3524; color: #FFFFFF; }
.nav a.exit { padding: 12px 18px; }
.exit-hint { font-size: 12px; color: var(--muted); width: 100%; text-align: right; margin-top: -6px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -0.02em; line-height: 1.05; }
.page-title { font-size: clamp(36px, 5vw, 48px); }
h2 { font-size: clamp(28px, 3.4vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 15px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.between { justify-content: space-between; align-items: end; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 2px solid var(--teal); }
.btn-primary { background: var(--teal); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #FFFFFF; }
.btn-ghost { background: var(--card); color: var(--teal); }
.btn-ghost:hover { background: var(--teal-tint); }
.btn-light { background: #FFFFFF; color: var(--teal); border-color: #FFFFFF; }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.btn-link { background: none; border: none; color: var(--teal); text-decoration: underline; font: inherit; font-weight: 600; cursor: pointer; padding: 8px 2px; min-height: 44px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.pill { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 10px 16px; border-radius: 999px; cursor: pointer; border: 2px solid var(--teal); background: var(--card); color: var(--teal); }
.pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--teal); color: #FFFFFF; }

.cw { align-self: flex-start; font-size: 13px; font-weight: 600; background: var(--warn-bg); color: var(--warn-ink); padding: 6px 10px; border-radius: 999px; }

/* Sections & cards */
.section { padding: 72px 0; }
.section-white { background: var(--card); }
.section-teal { background: var(--teal); color: #FFFFFF; padding: 64px 0; }
.section-teal p { color: #D7ECE9; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-soft { background: var(--ground); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.card-soft:hover { background: var(--teal-tint); color: var(--ink); }
.card-soft strong { font-size: 22px; }
.card-soft .go { font-weight: 600; color: var(--teal); }
.note { background: var(--teal-soft); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.note-warn { background: var(--warn-bg); color: #3B230C; border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }

/* Hero */
.hero { padding: 64px 0 88px; display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.quote { background: var(--teal-soft); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.quote p:first-child { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--ink); }

/* Stories */
.story-body { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #26302E; white-space: pre-line; }
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid #E3EAE8; }
.empty { text-align: center; padding: 40px 24px; }

/* Forms */
form .field { display: flex; flex-direction: column; gap: 8px; }
label.lbl, legend.lbl { font-size: 17px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea { font: inherit; font-size: 17px; padding: 14px; border: 1px solid var(--field); border-radius: 10px; background: #FFFFFF; color: var(--ink); width: 100%; }
textarea.story { font-family: var(--serif); font-size: 18px; line-height: 1.6; resize: vertical; min-height: 280px; }
fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0 0 10px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 16px; }
.check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--teal); }
.check-top { align-items: flex-start; line-height: 1.5; }
.check-top input { margin-top: 3px; }
.checks { display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--field); background: #FFFFFF; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--teal); background: var(--teal-tint); }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.choice b { display: block; font-size: 16px; }
.choice span { font-size: 15px; color: var(--ink-2); }
.reach { background: var(--ground); border: 1px solid #C9D6D3; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 20px; letter-spacing: 0.08em; padding: 14px; border: 1px dashed var(--teal); border-radius: 10px; background: var(--ground); }
.error { color: #9B2C1A; font-weight: 600; }
.hidden { display: none !important; }

/* Help */
.line { gap: 6px; padding: 22px; }
.line .where { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.line .name { font-size: 19px; font-weight: 700; }
.line a.num { font-size: 22px; font-weight: 700; text-decoration: none; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { background: var(--ground); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.big-serif { font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { font: inherit; font-size: 16px; font-weight: 600; min-height: 44px; padding: 12px 20px; border-radius: 10px; cursor: pointer; border: 2px solid var(--teal); background: var(--card); color: var(--teal); }
.tab[aria-selected="true"] { background: var(--teal); color: #FFFFFF; }

ul.plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

footer.site-footer { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 14px; color: var(--muted); padding-top: 40px; padding-bottom: 40px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 32px 0 56px; }
  .quote { padding: 28px; }
  .quote p:first-child { font-size: 22px; }
  .card { padding: 22px; }
  /* On phones the quick exit floats in the corner so it's always one tap away. */
  .nav a.exit { position: fixed; right: 12px; bottom: 12px; z-index: 20; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
  .exit-hint { display: none; }
  footer.site-footer { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
