/* ---------- Brand tokens (from the Hope in the Halls logo) ---------- */
:root {
  --pink: #f19e95;          /* logo pink: backgrounds, accents */
  --pink-deep: #b8474f;     /* readable pink for buttons & text (AA on white) */
  --pink-tint: #fdf1ef;
  --teal: #7dd5c0;          /* logo teal: backgrounds, accents */
  --teal-deep: #17705f;     /* readable teal for links & labels (AA on white) */
  --teal-tint: #eaf8f4;
  --ink: #2a2423;
  --muted: #5f5654;
  --bg: #fffdfc;
  --line: #f0e3e0;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(184, 71, 79, .08);
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .55em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--pink-deep); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--pink-deep); margin-bottom: .75em; }
.hl-pink { color: var(--pink-deep); }
.hl-teal { color: var(--teal-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 2px solid var(--pink-deep); background: var(--pink-deep); color: #fff;
  padding: .75em 1.5em; border-radius: 999px; font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: #9e3a42; border-color: #9e3a42; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal-deep); }
.btn-ghost:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-small { padding: .4em 1.1em; font-size: .95rem; }
.btn-block { display: block; text-align: center; width: 100%; }
.text-link { font-weight: 700; text-decoration: none; color: var(--teal-deep); }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 252, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 62px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--pink-deep); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; text-align: center; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 1021px) and (max-width: 1240px) {
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { font-size: .92rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 8vw, 88px);
  background:
    radial-gradient(circle at 88% 30%, rgba(125, 213, 192, .35), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(241, 158, 149, .28), transparent 40%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero-bear { width: 100%; max-width: 400px; justify-self: center; }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-bear { max-width: 260px; grid-row: 1; }
}

.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 48px); background: linear-gradient(180deg, var(--pink-tint), var(--bg)); }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-teal { background: var(--teal-tint); }
.section-pink { background: var(--pink-tint); }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.prose p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card-accent-pink { border-top: 5px solid var(--pink); }
.card-accent-teal { border-top: 5px solid var(--teal); }
.card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.icon-pink { background: var(--pink-tint); --icon: var(--pink-deep); }
.icon-teal { background: var(--teal-tint); --icon: var(--teal-deep); }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--icon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.partner { margin-top: 40px; background: #fff; border: 2px dashed var(--teal); border-radius: var(--radius); padding: 28px; text-align: center; }
.partner .eyebrow { color: var(--teal-deep); }
.partner-name { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin-bottom: .3em; }
.partner p:last-child { color: var(--muted); margin: 0; }

/* ---------- Toy drive gallery ---------- */
.gallery-block { margin-top: 48px; }
.gallery-title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.gallery-intro { color: var(--muted); max-width: 640px; }
.gallery { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-caption { margin: 10px 4px 0; font-weight: 700; font-size: .95rem; text-align: center; }
.gallery-thanks { margin: 28px auto 0; max-width: 720px; text-align: center; background: #fff; border: 2px solid var(--pink); border-radius: var(--radius); padding: 18px 24px; font-weight: 700; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 28px; margin: 28px 0; }
.event { display: grid; grid-template-columns: auto 1fr 260px; gap: 28px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.event[hidden] { display: none; }
.event-compact { grid-template-columns: auto 1fr; }
.event-date { width: 76px; text-align: center; border-radius: 16px; overflow: hidden; border: 2px solid var(--pink); background: #fff; }
.event-month { display: block; background: var(--pink-deep); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding: 4px 0; }
.event-day { display: block; font: 600 2.1rem/1.3 var(--font-head); color: var(--ink); }
.event-kind { color: var(--teal-deep); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3em; }
.event-body h3 { font-size: 1.5rem; }
.event-facts, .event-steps { padding-left: 1.2em; color: var(--muted); }
.event-facts { list-style: none; padding: 0; }
.event-facts li, .event-steps li { margin-bottom: 6px; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.event-flyer { display: block; text-decoration: none; text-align: center; font-weight: 700; font-size: .9rem; color: var(--teal-deep); }
.event-flyer img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 8px; }
.home-events { background: var(--teal-tint); }
@media (max-width: 900px) {
  .event { grid-template-columns: auto 1fr; }
  .event-flyer { grid-column: 1 / -1; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .event { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
  .event-date { width: 64px; }
}

/* ---------- Newsletter (Substack) ---------- */
.substack-embed { display: block; width: 100%; max-width: 480px; height: 320px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.newsletter-link { margin-top: 14px; }
.issue-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.issue-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(184, 71, 79, .14); }
.issue-card h3 { color: var(--ink); }
.issue-card .text-link { margin-top: auto; }
.issue-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 16px; background: var(--pink-tint); }
.issue-date { font-size: .9rem; color: var(--muted) !important; margin-bottom: .4em; }
.home-issues { margin-top: 48px; }
.home-issues h3 { font-size: 1.4rem; }

/* ---------- Team ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px; background: var(--pink-tint); border-radius: 999px; width: fit-content; max-width: 100%; margin-bottom: 36px; }
.tab { padding: .6em 1.3em; border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--pink-deep); }
.tab[aria-selected="true"] { background: var(--pink-deep); color: #fff; box-shadow: 0 4px 12px rgba(184, 71, 79, .25); }
/* Without JavaScript every group shows, one after another */
.js .tab-panel[hidden] { display: none; }
.tab-panel + .tab-panel { margin-top: 56px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel:focus-visible { outline-offset: 8px; border-radius: 8px; }
.team-section { padding-top: 16px; }
.coming-soon { background: var(--teal-tint); border: 2px dashed var(--teal); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 600px) {
  .tabs { border-radius: 20px; width: 100%; }
  .tab { flex: 1 1 calc(50% - 8px); text-align: center; padding: .6em .5em; white-space: normal; }
}
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 28px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 24px; margin-top: 28px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.person p { color: var(--muted); font-size: .98rem; }
.person h3 { margin-bottom: .15em; }
.person-role { color: var(--pink-deep) !important; font-weight: 700; font-size: .95rem !important; }
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--teal); }
.person-large .avatar { width: 170px; height: 170px; border-color: var(--pink); }
.avatar-initials { display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-deep); font: 600 2.4rem var(--font-head); }
.person-large .avatar-initials { background: var(--pink-tint); color: var(--pink-deep); font-size: 3rem; }
/* Placeholder (no photo yet): same size and shape as a real team photo */
.team-grid .avatar-initials { width: 100%; max-width: 260px; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radius); font-size: 3.2rem; }
.linkedin { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: #0a66c2; font-size: .95rem; }
.linkedin svg { width: 20px; height: 20px; }
.linkedin:hover { text-decoration: underline; }
.join { text-align: center; }

/* ---------- Donate ---------- */
.donate { background: linear-gradient(135deg, var(--teal) 0%, #a5e3d4 100%); }
.donate a:not(.btn) { color: var(--ink); font-weight: 700; }
.donate-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.donate-box { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(23, 112, 95, .15); }
.donate-note { margin: 0 0 16px; text-align: center; color: var(--muted); }
.fine { font-size: .88rem; color: var(--muted); margin: 16px 0 0; text-align: center; }
@media (max-width: 820px) { .donate-inner { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: 11px 13px; border: 1px solid #e6d6d3; border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--teal-deep); outline-offset: 1px; }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cfcd; padding: 48px 0; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.footer-bear { width: 84px; height: auto; margin-bottom: 8px; }
.footer-title { font: 600 1.3rem var(--font-head); color: #fff; margin: 0 0 4px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; margin: 8px 0 0; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* Real photos: tall rounded rectangle so full-length photos fit */
.person img.avatar { width: 100%; max-width: 260px; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; object-position: top; }
/* Founders: show the whole photo at its natural shape (e.g. landscape) */
.person-large img.avatar { max-width: 100%; aspect-ratio: auto; object-fit: contain; }
