/* Sonic Boom Tracker — site stylesheet. No framework, no web fonts. */

:root {
  --navy-900: #070e1c;
  --navy-800: #0b1526;
  --navy-700: #122039;
  --navy-600: #1b2d4d;
  --ink: #16213a;
  --ink-soft: #3e4a63;
  --muted: #6b7489;
  --line: #dde2ec;
  --paper: #f6f7fb;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --sky: #38bdf8;
  --sky-deep: #0284c7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 21, 38, 0.08), 0 1px 2px rgba(11, 21, 38, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--amber-deep); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 750; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.35em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--navy-900); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: .75rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; font-weight: 650;
  background: var(--amber); color: var(--navy-900); text-decoration: none;
  border: 2px solid var(--amber); transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #fbbf24; border-color: #fbbf24; color: var(--navy-900); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-small { padding: .55rem 1.05rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,21,38,.92); backdrop-filter: blur(10px); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: -.01em; font-size: 1.05rem; }
.brand-sub { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.site-nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: .55rem .8rem; border-radius: 8px; font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav-cta { margin-left: .5rem; }
.nav-cta .btn { color: var(--navy-900); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; width: 44px; height: 40px; position: relative; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--white); border-radius: 2px; content: ""; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-bar { top: 18px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,.08); padding: .5rem 1.25rem 1rem; }
  html.js .site-nav { display: none; }
  html.js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: .8rem .5rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); padding-left: .9rem; }
  .nav-cta { margin: .75rem 0 0; }
  .nav-cta .btn { display: inline-flex; width: 100%; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-800); overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg, .hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem); max-width: 40rem; }
.hero h1 { color: var(--white); margin-bottom: .6em; }
.hero .lead { color: rgba(255,255,255,.82); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero .eyebrow { color: var(--sky); }
.hero-quote { font-style: italic; color: var(--amber); font-weight: 600; }
@media (max-width: 700px) {
  .hero-art img { object-position: 66% 50%; }
  .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,21,38,.62), rgba(11,21,38,.78)); }
}

/* Page headers */
.page-head { background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-head h1 { color: var(--white); max-width: 22ch; }
.page-head .lead { color: rgba(255,255,255,.8); max-width: 52ch; }
.page-head .eyebrow { color: var(--sky); }
.page-head::after { content: ""; position: absolute; right: -8%; top: -40%; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(56,189,248,.18), transparent 70%); pointer-events: none; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy-800); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.82); }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Cards */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(11,21,38,.12); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: var(--sky); margin-bottom: 1.1rem; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--ink-soft); flex: 1; }
.card-more { font-weight: 650; color: var(--sky-deep); text-decoration: none; }
.card:hover .card-more { color: var(--amber-deep); }

/* Split layout */
.split { display: grid; gap: 3rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split figure { margin: 0; }
.figure-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.figure-frame.dark { background: var(--navy-800); border-color: var(--navy-600); }
figcaption { font-size: .92rem; color: var(--muted); margin-top: .7rem; line-height: 1.5; }

/* News */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.news-item { display: grid; grid-template-columns: 9rem 1fr; gap: 1.2rem; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); align-items: baseline; }
.news-item time { font-size: .92rem; font-weight: 650; color: var(--amber-deep); letter-spacing: .02em; }
.news-item a { font-weight: 600; color: var(--ink); text-decoration: none; }
.news-item a:hover { color: var(--sky-deep); text-decoration: underline; }
.news-item .source { display: block; font-size: .88rem; color: var(--muted); margin-top: .2rem; font-weight: 400; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: .3rem; } }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.8rem; }
.prose figure { margin: 2rem 0; }
.prose .callout { border-left: 4px solid var(--amber); background: #fff8e8; padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1.6rem 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Stats / facts */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 2rem 0; }
.fact { background: var(--navy-800); color: var(--white); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.fact strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--amber); letter-spacing: -.02em; line-height: 1.1; margin-bottom: .3rem; }
.fact span { font-size: .95rem; color: rgba(255,255,255,.8); }

/* Roles (volunteer) */
.roles { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.role { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.role-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.role-num { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--amber-deep); }
.role h3 { margin: 0; }
.role .card-icon { margin: 0; }
.role ul { color: var(--ink-soft); }
.role p { color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; display: grid; gap: .9rem; }
.checklist li { padding-left: 2.2rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.45rem; height: 1.45rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23f59e0b'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%230b1526' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.checklist strong { color: var(--ink); }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--white); border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.8); margin: 0; max-width: 50ch; }
.cta::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(56,189,248,.08); pointer-events: none; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; } }

/* Contact strip */
.contact-strip { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.5rem 1.8rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.contact-strip a.email { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.contact-strip a.email:hover { color: var(--sky-deep); }

/* Newsletter */
.signup { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.signup input[type="email"] { flex: 1 1 240px; font: inherit; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.signup input:focus { outline: 3px solid rgba(56,189,248,.35); border-color: var(--sky-deep); }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 3.5rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr 1fr; }
.footer-about p { max-width: 36ch; margin-top: 1rem; font-size: .98rem; }
.footer-heading { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: .45rem; }
.footer-links a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: rgba(255,255,255,.55); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* 404 */
.notfound { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .nav-toggle-bar { transition: none; }
}
