/* Fluttering Wings Foundation
   Layout: one calm reading column, a quiet header, generous white space.
   Purple comes from the foundation's butterfly logo. Gold marks the one
   thing we ask of visitors: give. */
:root {
  --bg: #faf8fc;
  --surface: #ffffff;
  --ink: #231533;
  --muted: #5d4f6e;
  --line: #e6def0;
  --accent: #5a1596;
  --accent-soft: #f1eafa;
  --logo-bg: #ffffff;
  --gold: #e3a33a;
  --gold-ink: #2a1d05;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem);
  --measure: 40rem;
  --wide: 64rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #150f1d; --surface: #1d1527; --ink: #eee8f5; --muted: #b4a7c4;
    --line: #33283f; --accent: #c39bf5; --accent-soft: #2a1f38; --logo-bg: #f6f1fb; --gold: #f0b552; --gold-ink: #241803;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #150f1d; --surface: #1d1527; --ink: #eee8f5; --muted: #b4a7c4;
    --line: #33283f; --accent: #c39bf5; --accent-soft: #2a1f38; --logo-bg: #f6f1fb; --gold: #f0b552; --gold-ink: #241803;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--step--1); }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--accent); }
.nav a.nav-give { color: var(--accent); font-weight: 600; }

/* Page body */
main { padding-block: 48px 72px; }
.prose { max-width: var(--measure); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
.prose > * + * { margin-top: 1.1em; }
.prose > h2 { margin-top: 1.8em; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

/* Home hero */
.hero { display: grid; gap: 32px 48px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.hero-text { display: grid; gap: 24px; min-width: 0; }
.hero-logo { margin: 0; background: var(--logo-bg); border-radius: 16px; padding: 24px; justify-self: center; max-width: 26rem; width: 100%; }
.hero-logo img { display: block; width: 100%; }
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 36rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--accent); color: var(--accent); background: transparent;
  font-size: var(--step--1); font-family: var(--font-body); cursor: pointer;
}
.btn-give { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn:hover { filter: brightness(1.05); }

.honor { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: var(--step-1); margin: 0; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 32px; padding-top: 40px; }
.pillars > div { min-width: 0; }
.pillars h2 { font-size: var(--step-1); margin-bottom: 8px; }
.pillars p { margin: 0 0 8px; color: var(--muted); }

/* Story */
.story-quote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.6; }
.story-quote p + p { margin-top: 1em; }
.signoff { font-family: var(--font-display); font-style: italic; }

/* Callouts */
.callout { background: var(--accent-soft); border-radius: 10px; padding: 20px 22px; max-width: var(--measure); }
.callout h2, .callout h3 { font-size: var(--step-1); margin-bottom: 6px; }
.callout p { margin: 0.4em 0 0; }

/* Board */
.board { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; max-width: var(--measure); }
.board li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.board li:last-child { border-bottom: 1px solid var(--line); }
.board .name { font-family: var(--font-display); font-size: var(--step-1); }
.board .role { color: var(--muted); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; align-self: center; }

/* Contact form */
form { display: grid; gap: 16px; max-width: 32rem; margin-top: 24px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: var(--step--1); }
input, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: var(--step--1); color: var(--muted); margin: 0; }
.form-status { font-weight: 600; margin: 0; }

/* Draft markers: visible only in the preview. Must be gone before launch. */
.todo { background: var(--gold); color: var(--gold-ink); padding: 0 6px; border-radius: 4px; font-family: var(--font-body); font-style: normal; font-size: 0.85em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: grid; gap: 6px; padding-block: 28px; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
