/* Parkinson's Disease Project — site styles
   Designed for readability: large type, high contrast, big tap targets. */
:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --alt: #efe8dc;
  --ink: #1b2a33;
  --muted: #4a5a63;
  --line: #ddd3c3;
  --primary: #1f4e5f;
  --primary-ink: #ffffff;
  --primary-hover: #163a47;
  --accent: #f2b24c;
  --accent-ink: #1b2a33;
  --accent-hover: #e39f30;
  --focus: #c2410c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27,42,51,.06), 0 8px 24px rgba(27,42,51,.07);
  --wrap: 1180px;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11191e; --surface: #18232a; --alt: #142026; --ink: #eef2f3; --muted: #b5c2c8; --line: #2b3a42;
    --primary: #7cc4d6; --primary-ink: #0d1a1f; --primary-hover: #a3d8e5; --focus: #fb923c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1875rem/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.mt { margin-top: 2.5rem; }
.small, .hint { font-size: .95rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: .6rem; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 46ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .7em 1.4em;
  border-radius: 999px; font: 700 1.05rem/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: var(--primary-ink); }
.btn-donate { background: var(--accent); color: var(--accent-ink); }
.btn-donate:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-light { background: #fff; color: #1f4e5f; }
.btn-light:hover { background: #f2f2f2; color: #1f4e5f; }
.btn-block { width: 100%; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.02rem/1.15 var(--display); }
.brand img { width: 44px; height: 44px; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a, .sub-toggle { display: flex; align-items: center; gap: 6px; padding: 12px 14px; min-height: 48px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font: 700 1rem var(--font); background: none; border: 0; cursor: pointer; }
.site-nav > ul > li > a:hover, .sub-toggle:hover, .site-nav li.active > a, .site-nav li.active > .sub-toggle { background: var(--alt); color: var(--ink); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 290px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.sub a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sub a:hover, .sub a[aria-current] { background: var(--alt); }
.has-sub.open > .sub { display: block; }
@media (hover: hover) and (min-width: 981px) { .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; } }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 700 1rem var(--font); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: var(--shadow); max-height: calc(100vh - 76px); overflow: auto; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .sub-toggle { width: 100%; justify-content: space-between; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0; }
.hero-inner, .page-hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-img, .page-hero-img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); background: var(--alt); }
.page-hero:not(.has-image) .page-hero-inner { grid-template-columns: 1fr; }
.page-hero .btn { margin-top: .5rem; }
@media (max-width: 860px) { .hero-inner, .page-hero-inner { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section.alt { background: var(--alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head a { font-weight: 700; }
.intro-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 760px) { .intro-grid { grid-template-columns: 1fr; gap: 8px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card p { color: var(--muted); }
.card-link { margin-top: auto; font-weight: 700; color: var(--primary); }
.meta { color: var(--muted); font-size: .95rem; margin-bottom: .4rem; }

/* Quote */
.quote-section { background: var(--primary); }
.quote { margin: 0 auto; max-width: 900px; text-align: center; }
.quote blockquote { margin: 0 0 1rem; font: 600 clamp(1.4rem, 2.8vw, 2rem)/1.35 var(--display); color: var(--primary-ink); }
.quote figcaption { color: var(--primary-ink); opacity: .85; font-weight: 700; }

/* Trust + donate */
.trust { display: flex; gap: 32px; align-items: center; }
.trust img { flex: none; width: 140px; }
@media (max-width: 640px) { .trust { flex-direction: column; align-items: flex-start; } }
.donate-band { background: var(--alt); border-top: 1px solid var(--line); }
.donate-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 20px; flex-wrap: wrap; }
.donate-band h2 { margin-bottom: .3em; }
.donate-band p { margin: 0; color: var(--muted); }
.donate-band .btn-light { background: var(--accent); color: var(--accent-ink); }
.donate-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; } }
.donate-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.donate-box hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.trust-inline { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li p { margin: 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 2rem; }
.callout p:last-child { margin-bottom: 0; }
.source, .disclaimer { font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.signature { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.signature span { font-family: var(--font); font-size: 1rem; font-weight: 400; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 2rem 0; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); }
.pillar:hover { border-color: var(--primary); }
.pillar h3 { color: var(--primary); }
.pillar p { color: var(--muted); margin: 0; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; margin-bottom: 2rem; }
.member { margin: 0; }
.member img { border-radius: 20px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 12px; }
.member strong { display: block; font-family: var(--display); font-size: 1.3rem; }
.member span { color: var(--muted); }

/* Blog post */
.post-header { padding: clamp(36px, 6vw, 64px) 0 24px; }
.post-image { border-radius: 20px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 56px; }
.post-nav a { display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; }
.post-nav a span { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* Events */
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.event { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.event-date { flex: none; width: 72px; height: 76px; border-radius: 12px; background: var(--primary); color: var(--primary-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.event-date span { text-transform: uppercase; font-size: .85rem; font-weight: 700; letter-spacing: .08em; }
.event-date strong { font: 700 1.9rem var(--display); }
.event h3 { margin-bottom: .2em; }
.event h3 a { color: var(--ink); }
.event p:last-child { margin-bottom: 0; }
.past .event { opacity: .75; }
.event-facts { display: grid; gap: 12px; margin: 0 0 1.5rem; }
.event-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.event-facts dt { font-weight: 700; }
.event-facts dd { margin: 0; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.ways { display: grid; gap: 20px; }
.ways h3 { margin-bottom: .2em; color: var(--primary); }
.ways p { margin: 0; color: var(--muted); }
.pdp-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent); outline-offset: 0; }
.field.check label { display: flex; gap: 12px; font-weight: 400; align-items: flex-start; }
.field.check input { width: 24px; height: 24px; min-height: 0; flex: none; margin-top: 3px; accent-color: var(--primary); }
.req { color: var(--focus); }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: var(--focus); }
.contact-info p { margin-bottom: 1.2em; }

/* Footer */
.site-footer { background: #15303a; color: #dbe6ea; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.15rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .1em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 220px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4em; }
.footer-trust { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .95rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 2rem 0; }
.gallery img { border-radius: 12px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
/* Maps, RSVP, event actions */
.pdp-map { width: 100%; height: 380px; border-radius: var(--radius); border: 1px solid var(--line); margin: 0 0 2rem; background: var(--alt); }
@media (max-width: 600px) { .pdp-map { height: 300px; } }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rsvp { border-top: 1px solid var(--line); padding-top: 2rem; }
