/* DAfree: ink on paper. Palette from the DAfree logo and site: charcoal ink, slate and powder blue,
   red for red flags, and the yellow of the gull's beak as a small accent. */
:root {
  --paper: #fbfaf7;
  --paper-2: #f4f2ed;
  --card: #ffffff;
  --mist: #e9eff6;
  --mist-2: #dae4f0;
  --ink: #2b2523;
  --ink-2: rgba(43, 37, 35, .74);
  --ink-3: rgba(43, 37, 35, .54);
  --line: rgba(43, 37, 35, .12);
  --line-2: rgba(43, 37, 35, .22);
  --slate: #5d7188;
  --slate-2: #8796a8;
  --red: #940606;
  --red-2: #b8241c;
  --beak: #e8b530;
  --beak-soft: rgba(232, 181, 48, .22);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 37, 35, .04), 0 12px 32px rgba(43, 37, 35, .06);
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--mist-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Paper background ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 60% at 80% -10%, var(--mist) 0%, rgba(233, 239, 246, 0) 60%), var(--paper); }
.sky__grain { position: absolute; inset: -50%; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Safety strip ---------- */
.safety { position: relative; z-index: 60; background: var(--ink); font-size: 13px; letter-spacing: .01em; color: rgba(255, 255, 255, .78); }
.safety__in { max-width: var(--wrap); margin: 0 auto; padding: 7px var(--gutter); display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.safety strong { color: #fff; font-weight: 600; }
.safety a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.safety__more { display: flex; gap: 18px; }
@media (max-width: 760px) { .safety__more { display: none; } .safety__in { justify-content: center; text-align: center; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .35s, border-color .35s, box-shadow .35s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(251, 250, 247, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav__in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: color .2s, background .2s; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); background: var(--mist); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--mist-2); }
.nav__cta { flex: none; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
.nav-open .nav__burger span { background: transparent; }
.nav-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav .nav__links, .nav .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}
.menu { position: fixed; inset: 0; z-index: 45; background: rgba(251, 250, 247, .98); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow-y: auto; }
.nav-open .menu { opacity: 1; visibility: visible; }
.menu a { font-family: var(--serif); font-size: clamp(26px, 7vw, 36px); text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu a[aria-current="page"] { color: var(--slate); font-style: italic; }
.menu .btn { margin-top: 22px; font-family: var(--sans); font-size: 16px; justify-content: center; border-bottom: 0; color: #fff; }
.nav-open { overflow: hidden; }

/* ---------- Type ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--plain::before { display: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(40px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
em, .gold-em { font-style: italic; color: var(--slate); }
h1 em, h2 em, h3 em { font-weight: 500; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.7; max-width: 640px; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; color: var(--ink-3); }
.center { text-align: center; }
.center .lede, .lede.center { margin-left: auto; margin-right: auto; }
.rule { width: 46px; height: 1px; background: var(--ink); opacity: .35; border: 0; margin: 26px 0; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s; line-height: 1.2; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--gold { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(43, 37, 35, .16); }
.btn--gold:hover { transform: translateY(-2px); background: #000; box-shadow: 0 16px 34px rgba(43, 37, 35, .22); }
.btn--ghost { background: var(--mist-2); color: var(--ink); }
.btn--ghost:hover { background: #cbd8e8; transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }
.link { color: var(--slate); text-decoration: none; border-bottom: 1px solid rgba(93, 113, 136, .35); transition: border-color .2s, color .2s; }
.link:hover { border-bottom-color: var(--slate); color: var(--ink); }
.arrow-link { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Sections & panels ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 170px) 0; }
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } }

/* Page hero (sub pages) */
.phero { padding: clamp(80px, 12vw, 150px) 0 clamp(50px, 7vw, 90px); position: relative; }
.phero h1 { font-size: clamp(40px, 6vw, 76px); max-width: 15ch; }
.phero .lede { margin-top: 26px; }
.phero__gull { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + 20px)); top: 38%; width: clamp(80px, 12vw, 160px); opacity: .35; color: var(--ink); }
@media (max-width: 700px) { .phero__gull { display: none; } }

/* ---------- Gull glyph ---------- */
.gull { display: inline-block; width: 46px; height: auto; color: var(--ink); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Helplines block ---------- */
.help { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.help > div { background: var(--card); padding: 22px 22px 20px; }
.help h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 8px; }
.help a.num { font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; display: block; line-height: 1.2; }
.help a.num:hover { color: var(--red); }
.help p { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; line-height: 1.55; }
@media (max-width: 900px) { .help { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .help { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.dawn-cta { text-align: center; padding: clamp(110px, 15vw, 200px) 0 clamp(100px, 13vw, 170px); position: relative; background: linear-gradient(180deg, rgba(218, 228, 240, 0), var(--mist-2) 40%, var(--mist-2)); overflow: hidden; }
.dawn-cta h2 { font-size: clamp(40px, 6.4vw, 88px); }
.dawn-cta .lede { margin: 24px auto 38px; }
.dawn-cta .btn-row { justify-content: center; }
.dawn-cta .btn--ghost { background: var(--card); }
.dawn-cta__gull { width: 78px; margin: 0 auto 26px; color: var(--ink); animation: soar 7s ease-in-out infinite; }
@keyframes soar { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.donate-form { display: inline; margin: 0; }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--ink); padding: 70px 0 110px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.foot .help { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.foot .help > div { background: #231e1c; }
.foot .help h4 { color: var(--slate-2); }
.foot .help a.num { color: #fff; }
.foot .help a.num:hover { color: var(--beak); }
.foot .help p { color: rgba(255, 255, 255, .55); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot__logo img { height: 62px; width: auto; margin-bottom: 18px; }
.foot h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-2); font-weight: 600; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: rgba(255, 255, 255, .78); transition: color .2s; }
.foot a:hover { color: #fff; }
.foot .small { color: rgba(255, 255, 255, .5); }
.foot__social { display: flex; gap: 10px; margin-top: 20px; }
.foot__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; }
.foot__social a:hover { border-color: #fff; }
.foot__social svg { width: 17px; height: 17px; }
.foot__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Video dialog ---------- */
.vdialog { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-height: 94vh; overflow: visible; }
.vdialog::backdrop { background: rgba(28, 24, 22, .86); backdrop-filter: blur(8px); }
.vdialog video { width: 100%; height: auto; border-radius: 14px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.vdialog__close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vdialog__close svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; letter-spacing: .02em; color: var(--ink-2); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--slate); background: #fff; box-shadow: 0 0 0 4px var(--mist); }
.hp { position: absolute; left: -9999px; }

/* ---------- Prose (long reads) ---------- */
.prose { font-size: 18px; line-height: 1.85; color: rgba(43, 37, 35, .86); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 23px; margin: 1.6em 0 .5em; color: var(--slate); font-style: italic; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--slate); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.2em; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
