/* Prestwick Community Outreach
   Layout: logo-led hero, then calm full-width bands that alternate paper / slate / sun.
   Palette is taken straight from the logo: black hands, coral, slate and sun figures, mauve hearts. */
:root {
  --paper: #fbfaf8;
  --surface: #ffffff;
  --ink: #1f1d1c;
  --muted: #5d5855;
  --line: #e7e2dc;
  --slate: #32505e;
  --slate-deep: #26404c;
  --coral: #f47854;
  --sun: #f7cc61;
  --mauve: #855555;
  --link: #32505e;
  --on-slate: #f4f1ec;
  --on-slate-muted: #c9d5da;
  --sun-wash: #fdf1d2;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);

  --radius: 10px;
  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1e2528; --surface: #273034; --ink: #eeebe7; --muted: #b0aaa5; --line: #374246;
    --slate: #2f4d5a; --slate-deep: #243c47; --link: #9cc0cf; --on-slate: #f4f1ec; --on-slate-muted: #b9c8ce;
    --sun-wash: #2c3e47; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1e2528; --surface: #273034; --ink: #eeebe7; --muted: #b0aaa5; --line: #374246;
  --slate: #2f4d5a; --slate-deep: #243c47; --link: #9cc0cf; --on-slate: #f4f1ec; --on-slate-muted: #b9c8ce;
  --sun-wash: #2c3e47; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }

/* Three-colour rule taken from the three figures in the logo */
.tri { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 4px; }
.tri span:nth-child(1) { background: var(--coral); }
.tri span:nth-child(2) { background: var(--slate); }
.tri span:nth-child(3) { background: var(--sun); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; font-size: var(--step-0); line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-donate { background: var(--coral); color: #1f1d1c; }
.btn-donate:hover { background: #f68b6b; }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-slate { background: var(--slate); color: var(--on-slate); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 52px; height: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--line); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.nav .btn-donate { margin-left: 8px; padding: .55em 1.2em; }
.nav .btn-donate:hover { background: #f68b6b; }
.nav .nav-fb { display: inline-flex; align-items: center; gap: 10px; color: #1877f2; }
.nav-fb-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav .btn-donate { margin: 8px 0 0; justify-content: center; }
  .nav-fb-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--ink); }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 70%, transparent) 62%); }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { justify-self: center; width: min(100%, 400px); }
.hero-logo svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(70%, 260px); }
}

/* Quote */
.quote { background: var(--slate); color: var(--on-slate); }
.quote figure { margin: 0; max-width: 52rem; display: grid; gap: 18px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.3; text-wrap: pretty; }
.quote figcaption { color: var(--on-slate-muted); font-weight: 600; letter-spacing: .04em; }
.quote .mark { font-family: var(--font-display); color: var(--sun); font-size: 4rem; line-height: .5; display: block; height: .45em; }

/* Story */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.split > * { min-width: 0; }
.split h2 { font-size: var(--step-3); margin-top: 10px; }
.prose { display: grid; gap: 1.1em; max-width: 36em; color: var(--ink); }
.prose p { color: var(--muted); }
.prose p.lead { color: var(--ink); font-size: var(--step-1); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; }
.founded { margin-top: 26px; display: flex; align-items: baseline; gap: 12px; }
.founded strong { font-family: var(--font-display); font-weight: 400; font-size: 3.2rem; line-height: 1; color: var(--mauve); }
.founded span { color: var(--muted); max-width: 14em; line-height: 1.4; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Logo meaning */
.meaning { background: var(--surface); border-block: 1px solid var(--line); }
.meaning-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.meaning-grid > * { min-width: 0; }
.meaning-grid .logo-sm svg { width: 100%; height: auto; display: block; }
.meaning h2 { font-size: var(--step-3); margin: 10px 0 16px; }
.meaning .prose { max-width: 40em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; list-style: none; padding: 0; }
.pillars li { display: grid; gap: 6px; padding-top: 14px; border-top: 4px solid var(--c); }
.pillars strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }
.pillars span { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 760px) {
  .meaning-grid { grid-template-columns: 1fr; }
  .meaning-grid .logo-sm { width: 180px; }
  .pillars { grid-template-columns: 1fr; }
}

/* Section heads */
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 40em; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }

/* Board */
.board-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
.board-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font-weight: 500; }
.board-list .init { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: .95rem; background: var(--sun-wash); color: var(--ink); }
@media (max-width: 860px) { .board-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .board-list { grid-template-columns: 1fr; } }

/* Reports */
.reports { background: var(--sun-wash); }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.report { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 28px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.report:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(31, 29, 28, .35); }
.report .year { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--slate); }
.report .label { display: grid; gap: 2px; }
.report .label > span:not(.year) { color: var(--muted); font-size: var(--step--1); }
.report .arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: #1f1d1c; display: grid; place-items: center; font-size: 1.2rem; }
:root[data-theme="dark"] .report .year { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .report .year { color: var(--link); } }
@media (max-width: 640px) { .report-grid { grid-template-columns: 1fr; } }

/* Partners */
.partner-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.partner-grid li { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 4px; }
.partner-grid strong { font-weight: 600; line-height: 1.35; }
.partner-grid span { color: var(--muted); font-size: var(--step--1); }
.partner-grid a { color: inherit; }

/* Donate CTA band */
.cta { background: var(--slate); color: var(--on-slate); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: var(--step-3); max-width: 18em; }
.cta p { color: var(--on-slate-muted); margin-top: 10px; max-width: 34em; }

/* Donate page */
.page-hero { padding-block: clamp(40px, 6vw, 80px) 24px; }
.page-hero h1 { font-size: var(--step-4); margin-top: 10px; }
.page-hero p { color: var(--muted); font-size: var(--step-1); max-width: 36em; margin-top: 16px; }
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.way h2 { font-size: var(--step-2); }
.way .handle { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.05rem; background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; justify-self: start; }
.way p { color: var(--muted); }
.way address { font-style: normal; font-size: var(--step-1); line-height: 1.5; }
.way .btn { justify-self: start; margin-top: 4px; }
.way-num { font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mauve); }
:root[data-theme="dark"] .way-num { color: #d29b9b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .way-num { color: #d29b9b; } }
.note { margin-top: 28px; padding: 18px 22px; border-left: 4px solid var(--sun); background: var(--sun-wash); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); max-width: 46em; }
@media (max-width: 680px) { .ways { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--slate-deep); color: var(--on-slate); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px 40px; }
.footer-grid > * { min-width: 0; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand svg { width: 76px; height: auto; color: var(--on-slate); flex: none; }
.footer-brand p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
.footer-brand small { display: block; font-family: var(--font-body); font-size: .9rem; color: var(--on-slate-muted); margin-top: 6px; }
.site-footer h3 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-slate-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-slate); }
.site-footer address { font-style: normal; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 18px; font-size: var(--step--1); color: var(--on-slate-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer { --logo-slate: #8fb1c0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
/* The slate figure would vanish in dark mode, so lighten it there */
:root[data-theme="dark"] { --logo-slate: #6f9aad; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-slate: #6f9aad; } }
