/* ==========================================================================
   Keep DLI at Atkinson: site styles
   Colors and fonts live in :root so they're easy to change in one place.
   ========================================================================== */

:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --surface-2: #fdf1e1;
  --ink: #1d2433;
  --ink-soft: #4a5263;
  --line: #ead9c3;
  --primary: #b8420f;        /* burnt orange */
  --primary-ink: #ffffff;
  --primary-dark: #8f300a;
  --accent: #f2a518;         /* cheetah gold */
  --accent-ink: #1d2433;
  --deep: #12304a;           /* deep navy */
  --deep-ink: #ffffff;
  --ok: #1f7a4d;
  --error: #b42318;
  --focus: #1a73e8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 36, 51, .06), 0 6px 20px rgba(29, 36, 51, .06);
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --wrap-narrow: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--deep); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: var(--wrap-narrow); }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header & language bar ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 var(--line); }

.lang-bar { background: var(--deep); color: var(--deep-ink); }
.lang-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.lang-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px; gap: 4px; }
.lang-switch button {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem;
  padding: 7px 18px; border-radius: 999px; color: #fff; background: transparent; min-height: 40px;
}
.lang-switch button:hover { background: rgba(255,255,255,.18); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 420px) {
  .lang-label span { display: none; }
  .lang-switch button { padding: 7px 14px; }
}

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); font-weight: 700; }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
}
.brand-text { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; }

.nav-toggle { display: none; appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 700; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--primary-dark); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.site-nav a.nav-cta { background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 8px 16px; box-shadow: none; }
.site-nav a.nav-cta:hover { background: var(--primary-dark); color: #fff; }
.site-nav a.nav-icon { padding: 8px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { width: 100%; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); }
  .site-nav a.nav-cta { justify-content: center; margin-top: 6px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  appearance: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; min-height: 48px; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #e09210; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-ghost:hover { background: var(--deep); color: #fff; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--surface-2); color: var(--deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .95rem; }
.link-button { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Hero ---------- */

.hero { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, var(--accent) 0 7px, transparent 8px),
                    radial-gradient(circle at 70% 60%, var(--accent) 0 5px, transparent 6px),
                    radial-gradient(circle at 45% 85%, var(--accent) 0 6px, transparent 7px);
  background-size: 120px 110px, 90px 100px, 140px 130px;
}
.hero-inner { position: relative; padding: 56px 0 64px; display: grid; gap: 32px; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 80px 0 88px; } }
.hero h1 { color: #fff; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e6ecf2; max-width: 38em; }
.hero .eyebrow { color: var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: var(--primary-dark); margin-bottom: .6em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.stats { display: grid; gap: 12px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--accent); min-width: 3.2ch; }
.stat-label { color: #e6ecf2; font-size: .98rem; line-height: 1.4; }
.stat-source { font-size: .8rem; color: #b9c6d3; margin: 4px 0 0; }
.stat-source a { color: #b9c6d3; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 40em; margin-bottom: 28px; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }

.why-list, .ask-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li { padding: 16px 18px 16px 20px; background: var(--surface); border-left: 5px solid var(--primary); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.ask-list { counter-reset: ask; }
.ask-list li { counter-increment: ask; position: relative; padding: 4px 0 4px 52px; min-height: 40px; }
.ask-list li::before {
  content: counter(ask); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700;
}

.split { display: grid; gap: 32px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 32px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #ffe9dc; }

.connect-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page heads (inner pages) ---------- */

.page-head { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 40px 0 32px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.page-head .lede { margin-bottom: .6em; }
.privacy-note { font-size: .95rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.privacy-note::before { content: "🔒"; }

/* ---------- Letter tool ---------- */

.steps { display: grid; gap: 22px; padding-bottom: 32px; }
.step h2 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; }
.step-num { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--deep); color: #fff; font-family: var(--font-body); font-size: 1.05rem; }
.hint { color: var(--ink-soft); }
.hint.small, .small { font-size: .92rem; }

.grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-weight: 700; }
.req { font-weight: 400; font-size: .85rem; color: var(--primary-dark); }
input[type=text], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #cdbba3; border-radius: var(--radius-sm); padding: 11px 12px; min-height: 48px;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid rgba(26,115,232,.2); outline-offset: 0; }

.prompts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prompts-label { font-weight: 700; color: var(--ink-soft); font-size: .95rem; margin-right: 4px; }
.chip { appearance: none; font: inherit; font-size: .92rem; cursor: pointer; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 6px 12px; border-radius: 999px; }
.chip:hover { border-color: var(--primary); }
.chip::before { content: "+ "; color: var(--primary); font-weight: 700; }

.r-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 14px 10px; margin: 0 0 14px; }
.r-group legend { font-weight: 700; font-family: var(--font-head); font-size: 1.15rem; color: var(--deep); padding: 0 6px; }
.r-group-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .92rem; margin: 2px 0 6px; }
.r-count { color: var(--ink-soft); margin-right: auto; }
.r-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 700px) { .r-list { grid-template-columns: 1fr 1fr; column-gap: 12px; } }
.recipient { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; }
.recipient:hover { background: var(--surface-2); }
.recipient input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); }
.r-text { display: grid; line-height: 1.35; min-width: 0; }
.r-name { font-weight: 700; }
.r-title { font-size: .92rem; color: var(--ink-soft); }
.r-email { font-size: .82rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.badge { justify-self: start; font-size: .75rem; font-weight: 700; background: #fff3d6; color: #7a4b00; border: 1px solid #f0d28c; border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
.total-selected { font-weight: 700; margin: 0; }

.segmented { display: inline-flex; border: 1.5px solid var(--deep); border-radius: 999px; padding: 3px; gap: 3px; justify-self: start; }
.segmented button { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 700; padding: 6px 16px; border-radius: 999px; cursor: pointer; color: var(--deep); min-height: 38px; }
.segmented button[aria-pressed="true"] { background: var(--deep); color: #fff; }

.to-list { display: flex; flex-wrap: wrap; gap: 6px; }
.to-chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .88rem; }
.to-chip-form { border-style: dashed; }

.letter-preview { font-family: var(--font-body); font-size: 1rem; background: #fffdf9; min-height: 380px; }
.edited-note { background: #fff3d6; border: 1px solid #f0d28c; border-radius: var(--radius-sm); padding: 8px 12px; font-size: .92rem; display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }

.send-box { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.send-label { font-weight: 700; margin-bottom: 8px; }
.send-buttons, .copy-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.send-buttons .btn { flex: 1 1 140px; }
.error { color: var(--error); font-weight: 700; background: #fdecea; border-radius: var(--radius-sm); padding: 8px 12px; }

.done { border: 2px solid var(--ok); }
.done h2 { color: var(--ok); }
.forms-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.forms-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.clear-row { text-align: center; font-size: .92rem; color: var(--ink-soft); }
.clear-row span { margin-left: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--deep); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: opacity .2s, transform .2s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Updates ---------- */

.timeline { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; }
.update-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: .92rem; color: var(--ink-soft); }
.tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--deep); border: 1px solid var(--line); }
.tag-news { background: #e7f0fb; border-color: #c4d8f2; }
.tag-meeting { background: #fff3d6; border-color: #f0d28c; }
.tag-action { background: #fde6dc; border-color: #f4bfa6; }
.tag-resource { background: #e5f4ec; border-color: #b9e0c9; }
.update-links { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }

/* ---------- Stories ---------- */

.stories { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 36px; }
.story { margin: 0; position: relative; padding-top: 34px; }
.story::before { content: "“"; position: absolute; top: -6px; left: 18px; font-family: var(--font-head); font-size: 4.5rem; color: var(--accent); line-height: 1; }
.story blockquote { margin: 0 0 12px; font-size: 1.05rem; }
.story figcaption { font-weight: 700; color: var(--deep); }
.story img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; float: right; margin-left: 10px; }
.empty { text-align: center; padding: 32px; color: var(--ink-soft); border: 2px dashed var(--line); border-radius: var(--radius); margin-bottom: 32px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--deep); color: #dbe4ec; margin-top: 56px; padding: 40px 0 48px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 2fr 1fr; } }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-small { font-size: .85rem; color: #b9c6d3; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; align-content: start; }

main > .section:last-child { padding-bottom: 0; }
.update-title { font-size: 1.3rem; }

@media (max-width: 820px) {
  .nav-row { gap: 10px; min-height: 58px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand-text { font-size: 1.02rem; line-height: 1.2; }
  .brand-mark { width: 34px; height: 34px; font-size: 1.15rem; flex: none; }
  .lang-bar-inner { min-height: 46px; }
  .lang-switch button { min-height: 36px; }
}

/* ---------- Thank-you page ---------- */
.thanks-head { text-align: center; }
.thanks-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; font-weight: 700; margin: 0 auto 12px; }
.thanks-head h1 { color: var(--ok); }
.notice { background: #fff3d6; border: 1px solid #f0d28c; border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; margin: 0; }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { background: #176e3c; color: #fff; }
