/* Shared styling for the site's secondary pages (currently /donation).
 *
 * ⚠ The tokens below are DUPLICATED from the inline <style> in html/index.html.
 * That is deliberate. The landing page is one 40 KB hand-written file with its
 * own hero canvas, carousel and scroll machinery; lifting its stylesheet out
 * would be a rewrite of the page that converts, to save a copy of twelve custom
 * properties. If a token changes, change it in both places — the list is short
 * and the failure is visible on sight.
 *
 * Served from public/, so it is copied verbatim and is NOT hashed. It is linked
 * as /styles/page.css and caches under the default rule in public/_headers,
 * not the immutable /assets/* one.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blueprint: #0b2550;
  --blueprint-line: rgba(180, 210, 255, 0.55);
  --blueprint-line-dim: rgba(180, 210, 255, 0.18);
  --blueprint-text: #d4e8ff;
  --ff-serif: 'DM Serif Display', Georgia, serif;
  --ff-sans: 'DM Sans', sans-serif;
  --ff-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  background: var(--blueprint);
  color: var(--blueprint-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Blueprint grid, fixed behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line-dim) 1px, transparent 1px),
    linear-gradient(rgba(180, 210, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 210, 255, 0.04) 1px, transparent 1px);
  background-position: 0 12px;
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 0 10px;
  background: var(--blueprint);
  border-bottom: 1px solid rgba(180, 210, 255, 0.12);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.nav-back {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--blueprint-text); }

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 52px 96px;
}

.section-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, 0.4);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: rgba(180, 210, 255, 0.3);
}

h1 {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
h1 em { font-style: italic; color: #7db8ff; }

h2 {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  margin: 56px 0 18px;
}

p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(212, 232, 255, 0.78);
  margin-bottom: 18px;
  max-width: 62ch;
}

p strong { color: var(--blueprint-text); font-weight: 500; }

a.inline {
  color: #7db8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 184, 255, 0.35);
}
a.inline:hover { border-bottom-color: #7db8ff; }

.rule {
  height: 1px;
  background: rgba(180, 210, 255, 0.12);
  margin: 56px 0;
}

/* Support options: one card per rail. */
.rails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0 8px;
}

.rail {
  display: block;
  padding: 24px;
  background: rgba(180, 210, 255, 0.05);
  border: 1px solid rgba(180, 210, 255, 0.18);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.rail:hover {
  background: rgba(180, 210, 255, 0.1);
  border-color: rgba(180, 210, 255, 0.4);
  transform: translateY(-2px);
}

.rail-name {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blueprint-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rail-name::after {
  content: '\2197';
  color: rgba(180, 210, 255, 0.45);
  font-size: 13px;
}

.rail-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(212, 232, 255, 0.62);
}

/* A rail whose URL is not filled in yet. Visibly inert, never clickable --
 * a disabled-looking card reads as "not ready", a live-looking card that goes
 * nowhere reads as broken. config/check-dist.mjs fails the build if the
 * placeholder token survives to dist/. */
.rail-pending {
  opacity: 0.45;
  border-style: dashed;
  pointer-events: none;
}
.rail-pending .rail-name::after { content: '\2014'; }

.spend-list {
  list-style: none;
  margin: 24px 0 8px;
  padding: 0;
}
.spend-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(212, 232, 255, 0.78);
  max-width: 62ch;
}
.spend-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: rgba(180, 210, 255, 0.45);
}

.note {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(212, 232, 255, 0.5);
  border-left: 1px solid rgba(180, 210, 255, 0.2);
  padding-left: 18px;
  max-width: 62ch;
}

footer {
  position: relative;
  z-index: 1;
  background: rgba(5, 18, 45, 0.6);
  border-top: 1px solid rgba(180, 210, 255, 0.1);
  padding: 36px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy,
.footer-links a {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(180, 210, 255, 0.3);
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(180, 210, 255, 0.6); }

@media (max-width: 768px) {
  nav { padding: 0 20px 0 8px; }
  main { padding: 110px 24px 72px; }
  footer { padding: 28px 24px; }
  h2 { margin-top: 44px; }
}
