/*
  Danny's Light
  Layout concept: the page moves from night to light. It opens on the same
  near-black as the hummingbird logo (Danny under string lights), sets his own
  words as the centerpiece, then each band grows warmer and lighter as the
  story turns from loss to purpose. Colors come from the logo: gold is the
  glow (his words, the amounts given), flame orange marks things you can press,
  and the leaf green and flower pink appear only in small touches.
*/
:root {
  --night: #0d0a09;
  --night-2: #17110e;
  --night-line: #352821;
  --night-line-strong: #8c7b6d; /* 4.9:1 on --night, for outlines that must read as buttons */
  --on-night: #fbf3ea;
  --on-night-soft: #cfc0b0;

  --paper: #fbf6ef;
  --paper-2: #f3e9dc;
  --paper-line: #e6d7c4;
  --line-strong: #8a7462; /* 4.4:1 on white */
  --ink: #1b130e;
  --ink-soft: #5f4d40;

  --flame: #b23c0b; /* 4.9:1 on --paper-2, white text 5.9:1 */
  --flame-hover: #8f2f08;
  --flame-glow: #ff8a3d;
  --leaf: #1f7a47;
  --bloom: #c0266d;
  --amber: #f6ad3c;
  --amber-ink: #2a1a05;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 3vw, 1.85rem);
  --step-3: clamp(2rem, 5vw, 3rem);
  --step-4: clamp(2.9rem, 9vw, 5.6rem);

  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flame); text-underline-offset: 3px; }
a:hover { color: var(--flame-hover); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 6px; }
/* on the dark bands the ring turns amber so it stays visible */
.site-head :focus-visible, .hero :focus-visible, .band--night :focus-visible, .band--night-2 :focus-visible, .give .venmo :focus-visible, .site-foot :focus-visible { outline-color: var(--amber); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: var(--step-3); letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(64px, 10vw, 120px); }
.band--paper-2 { background: var(--paper-2); }
.band--night { background: var(--night); color: var(--on-night); }
.band--night-2 { background: var(--night-2); color: var(--on-night); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
}
.band--night .eyebrow, .band--night-2 .eyebrow, .hero .eyebrow, .give .eyebrow { color: var(--amber); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.band--night .lede, .band--night-2 .lede { color: var(--on-night-soft); }
.muted { color: var(--ink-soft); }
.band--night .muted, .band--night-2 .muted { color: var(--on-night-soft); }
/* plain text links on the dark bands use gold, since flame orange is too dark there */
.band--night a:not(.btn), .band--night-2 a:not(.btn), .hero a:not(.btn), .give .venmo a:not(.btn) { color: var(--amber); }
.measure { max-width: 62ch; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn--flame { background: var(--flame); color: #fff; }
.btn--flame:hover { background: var(--flame-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(178, 60, 11, .55); }
.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { color: var(--amber-ink); transform: translateY(-1px); box-shadow: 0 10px 34px -8px rgba(246, 173, 60, .55); }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--flame); color: var(--flame); }
.btn--line-night { border-color: var(--night-line-strong); color: var(--on-night); background: rgba(251, 243, 234, .06); }
.btn--line-night:hover { border-color: var(--amber); color: var(--on-night); background: rgba(251, 243, 234, .1); }
/* "Coming soon": reads as a clear label, not a faded button */
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border: 1.5px dashed var(--line-strong); pointer-events: none; box-shadow: none; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--night); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(13, 10, 9, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--on-night);
}
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; opacity: .6;
  background: linear-gradient(90deg, var(--leaf), var(--flame-glow) 35%, var(--amber) 62%, var(--bloom)); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--on-night); }
.nav { display: flex; align-items: center; gap: 4px 22px; font-size: 0.95rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--on-night-soft); text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--on-night); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.nav .btn:hover { color: var(--amber-ink); }
@media (max-width: 820px) { .nav .nav-hide { display: none; } }
@media (max-width: 480px) { .nav { column-gap: 14px; } .brand { font-size: 1.1rem; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(214, 72, 18, .30), transparent 70%),
    radial-gradient(30% 35% at 82% 30%, rgba(246, 173, 60, .16), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 9vw, 112px); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--amber); text-shadow: 0 0 40px rgba(246, 173, 60, .35); }
.hero .lede { color: var(--on-night-soft); }
.hero-portrait { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: 0 40px 90px -34px rgba(214, 72, 18, .55), 0 0 0 1px rgba(255, 170, 110, .22);
}
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { width: min(78%, 340px); order: -1; }
}

/* ---------- his words ---------- */
.words { position: relative; overflow: hidden; }
.words::before { content: ""; position: absolute; inset: auto 0 -30% 0; height: 80%; background: radial-gradient(50% 60% at 50% 100%, rgba(214, 72, 18, .22), transparent 70%); pointer-events: none; }
.words figure { position: relative; margin: 0 auto; max-width: 980px; display: grid; gap: 28px; text-align: center; justify-items: center; }
.words blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.45rem, 3.6vw, 2.4rem); line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
.words blockquote .glow { color: var(--amber); font-style: normal; font-weight: 600; text-shadow: 0 0 36px rgba(246, 173, 60, .35); }
.words figcaption { display: grid; gap: 4px; }
.words figcaption strong { font-family: var(--body); font-weight: 600; letter-spacing: 0.04em; }
.words figcaption span { color: var(--on-night-soft); font-size: var(--step--1); }
.mark { width: 56px; height: 56px; color: var(--amber); opacity: .9; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.story-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-photos img { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px -28px rgba(27, 19, 14, .55); }
.story-photos .tall { grid-row: span 2; aspect-ratio: 3 / 4.4; height: 100%; }
.story-photos .short { aspect-ratio: 1; }
.story-copy { display: grid; gap: 22px; min-width: 0; }
.story-copy .lede { color: var(--ink); }
.pill-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-facts span { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--paper-line); font-weight: 600; font-size: 0.95rem; }
.pill-facts b { font-family: var(--display); font-weight: 600; color: var(--flame); margin-right: 4px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* timeline: a real sequence of dates */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 18px; padding: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: calc(9.5rem + 3px); top: 10px; bottom: 0; width: 2px; background: var(--paper-line); }
.timeline li:last-child::before { display: none; }
.timeline time { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-align: right; padding-right: 22px; position: relative; }
.timeline time::after { content: ""; position: absolute; right: -9px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--flame); }
.timeline li.loss time::after { background: var(--flame); }
.timeline p { color: var(--ink-soft); }
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .timeline li::before { left: 5px; }
  .timeline time { text-align: left; padding-right: 0; }
  .timeline time::after { right: auto; left: -26px; }
}
.callout { margin-top: 8px; padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--paper-line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: center; }
.callout .num { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; color: var(--flame); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.callout p { color: var(--ink-soft); }
@media (max-width: 480px) { .callout { grid-template-columns: 1fr; } }

/* ---------- mission ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.pillar svg { width: 40px; height: 40px; color: var(--flame); }
.pillar p { color: var(--ink-soft); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.gifts { display: grid; gap: 16px; }
.gift { border: 1px solid var(--night-line); border-radius: var(--radius); padding: 24px 26px; display: grid; gap: 6px; background: rgba(255, 255, 255, .02); }
.gift .amount { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 7vw, 3.8rem); line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; text-shadow: 0 0 40px rgba(246, 173, 60, .25); }
.gift .what { font-weight: 600; }
.photo-card { margin: 0; display: grid; gap: 12px; }
.photo-card img { width: 100%; border-radius: var(--radius); }
.photo-card figcaption { color: var(--on-night-soft); font-size: var(--step--1); }
.thanks { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.thanks blockquote { margin: 0; display: grid; gap: 18px; }
.thanks blockquote p { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; }
.thanks cite { font-style: normal; color: var(--on-night-soft); font-weight: 600; letter-spacing: 0.04em; font-size: var(--step--1); }
.thanks img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
@media (max-width: 860px) { .thanks { grid-template-columns: 1fr; } }

.press { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(20px, 4vw, 40px); border-radius: calc(var(--radius) + 6px); background: var(--night-2); border: 1px solid var(--night-line); }
.press img { border-radius: 12px; }
.press-copy { display: grid; gap: 16px; min-width: 0; }
.press-copy h3 { font-size: var(--step-2); }
.press-copy .pull { margin: 0; border-left: 3px solid var(--amber); padding-left: 16px; display: grid; gap: 8px; }
.press-copy .pull p { font-family: var(--display); font-style: italic; font-size: var(--step-1); line-height: 1.45; color: var(--on-night); }
.press-copy .pull cite { font-style: normal; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.04em; color: var(--on-night-soft); }
@media (max-width: 860px) { .press { grid-template-columns: 1fr; } }

/* ---------- events ---------- */
.event { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.event-poster { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(27, 19, 14, .6); transition: transform .25s ease; }
.event-poster:hover { transform: translateY(-2px); }
.event-copy { display: grid; gap: 20px; min-width: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0; }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 800px) { .event { grid-template-columns: 1fr; } .event-poster { max-width: 420px; } }


/* ---------- give ---------- */
.give { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); }
.give::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 55% at 20% 30%, rgba(214, 72, 18, .28), transparent 70%), radial-gradient(25% 30% at 22% 25%, rgba(246, 173, 60, .14), transparent 70%); }
.give .wrap { position: relative; }
.give-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.venmo { display: grid; gap: 18px; justify-items: start; }
.venmo-card { background: #fff; border-radius: var(--radius); padding: 12px; width: min(100%, 300px); box-shadow: 0 30px 70px -25px rgba(214, 72, 18, .6); }
.venmo-card img { width: 100%; }
.venmo .muted, .give .lede { color: var(--on-night-soft); }
.form { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--flame); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); }
.form-note[data-tone="ok"] { color: var(--leaf); font-weight: 600; }
.form-note:empty { display: none; }
@media (max-width: 860px) { .give-grid { grid-template-columns: 1fr; } }

/* ---------- about page ---------- */
@media (min-width: 801px) { .about-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.about-hero .hero-portrait img { aspect-ratio: 5 / 4; object-position: 50% 60%; border-radius: var(--radius); }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lists > div { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.lists ul { margin: 0; padding: 0; list-style: none; display: grid; }
.lists li { padding: 10px 0; border-bottom: 1px solid var(--paper-line); font-family: var(--display); font-size: 1.15rem; }
.lists li:last-child { border-bottom: 0; }
@media (max-width: 680px) { .lists { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-soft); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: var(--on-night-soft); border-top: 1px solid var(--night-line); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 36px; }
.site-foot h3 { font-family: var(--body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night); margin-bottom: 12px; }
.site-foot p, .site-foot address { font-style: normal; font-size: 0.95rem; }
.site-foot a { color: var(--on-night); }
.site-foot a:hover { color: var(--amber); }
.foot-brand { display: grid; gap: 14px; }
.foot-brand .brand { font-size: 1.35rem; }
.foot-brand q { font-family: var(--display); font-style: italic; color: var(--on-night); }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--night-line); padding-top: 20px; font-size: var(--step--1); }
@media (max-width: 860px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* Hero eyebrow: one line, sized to the space it has */
.hero-eyebrow { white-space: nowrap; font-size: clamp(0.7rem, 3.3vw, 1.1rem); letter-spacing: 0.1em; }
@media (min-width: 801px) { .hero-eyebrow { font-size: clamp(0.9rem, 1.5vw + 0.15rem, 1.1rem); } }

/* Top photo is decoration only: no tap-to-enlarge or long-press preview */
.hero-portrait img { pointer-events: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* Logo: the hummingbird on black, as a small badge in the header and full in the footer */
.logo-mark { width: 52px; height: 52px; border-radius: 12px; flex: none; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 16px rgba(246,113,40,.35); }
.foot-logo { width: 140px; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }

@media (max-width: 400px) { .logo-mark { width: 44px; height: 44px; } .brand { gap: 8px; } }
