/* OpenSanta Project — site styles
   Dark, clean, modern. Palette from the official logo, used on near-black.
   Type is self-hosted Figtree (SIL Open Font License 1.1, see assets/fonts/OFL.txt).
   No trackers, no remote assets, no external fonts.
   Logo files in assets/logo/ are referenced by stable names; do not recolor the artwork. */

@font-face {
  font-family: Figtree;
  src: url("../assets/fonts/Figtree-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0E1110;
  --card: #161A19;
  --band: #131716;
  --red: #E11221;
  --gold: #E5B464;
  --gold-deep: #B8862B;
  --green-ui: #6FAE72; /* UI only; logo green is unchanged */
  --white: #FFFFFF;
  --text: #A8B0AD;
  --line: rgba(255, 255, 255, 0.08);
  --card-border: #232826;
  --radius: 1.25rem;
  --max: 1120px;
  --sans: Figtree, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq-bar { animation: none !important; }
  .card, .steps li, .timeline li, .faq details { transition: none !important; }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}

@media (min-width: 840px) {
  body { font-size: 1.125rem; }
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-underline-offset: 0.15em; }
a:hover { color: var(--white); }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  color: var(--white);
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 17, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.wordmark:hover { color: var(--white); }
.wordmark img { width: 40px; height: 40px; flex: none; }
.wordmark-name { font-size: 1.15rem; color: var(--white); }

.desktop-nav { display: none; }
.desktop-nav ul,
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.desktop-nav a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
}
.desktop-nav a:hover,
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--white);
}

.record-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  border-radius: 999px;
}
.record-pill:hover { color: var(--white); background: #c80f1c; }

.nav-toggle { position: relative; flex: none; }
.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--white);
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0 0;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.6rem;
}
.nav-toggle[open] .mobile-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.45rem;
  min-width: 12.5rem;
}

@media (min-width: 800px) {
  .desktop-nav { display: block; }
  .nav-toggle { display: none; }
}

/* Layout */
main#content { flex: 1; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}
@media (min-width: 840px) {
  .wrap { padding: 2.625rem 1.5rem 3.55rem; }
  .header-inner { padding: 0.65rem 1.5rem; }
}

.band { background: var(--band); }
.page-intro { padding-top: 2.25rem; padding-bottom: 0; }
@media (min-width: 840px) {
  .page-intro { padding-top: 3rem; }
}

/* Hero */
.hero { background: var(--bg); }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
  display: grid;
  gap: 1.15rem;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.kicker::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}
.kicker.is-status::before { background: var(--red); }
.hero h1 {
  font-size: clamp(2.15rem, 8vw, 3.5rem);
  max-width: 11.5em;
}
.hero .lead,
.lede {
  margin-top: 0.85rem;
  color: var(--text);
  max-width: 42rem;
}
.cta-row { margin-top: 1.5rem; }
.cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0.85rem 1.5rem 0.8rem;
  border-radius: 1.15rem;
  box-shadow: 0 8px 28px rgba(225, 18, 33, 0.35);
  min-height: 64px;
}
.cta-btn:hover { color: var(--white); background: #c80f1c; }
.cta-main { font-size: 1.15rem; line-height: 1.2; }
.cta-badge {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
}
.hero-logo {
  margin: 0;
  order: -1;
  justify-self: center;
  width: 48%;
  max-width: 161px;
}

@media (min-width: 840px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 432px;
    padding: 4rem 1.5rem 0;
    gap: 0.85rem;
  }
  .hero h1 { font-size: 3.75rem; }
  .hero-logo {
    order: 0;
    width: min(100%, 432px);
    max-width: 432px;
    justify-self: start;
  }
  .hero-logo img { width: 100%; height: auto; }
  .cta-btn {
    display: inline-flex;
    width: auto;
    min-width: 16rem;
    border-radius: 999px;
    padding: 0.9rem 1.85rem 0.85rem;
  }
}

/* Soundbar divider */
.wave-break {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  overflow: visible;
  pointer-events: none;
  background: transparent;
}
.wave-break svg {
  display: block;
  height: 90px;
  width: auto;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(229, 180, 100, 0.35));
}
.eq-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: eq 1.5s ease-in-out infinite;
}
.eq-bar:nth-child(1) { animation-duration: 1.7s; animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-duration: 1.25s; animation-delay: 0.12s; }
.eq-bar:nth-child(3) { animation-duration: 1.55s; animation-delay: 0.05s; }
.eq-bar:nth-child(4) { animation-duration: 1.15s; animation-delay: 0.2s; }
.eq-bar:nth-child(5) { animation-duration: 1.8s; animation-delay: 0.08s; }
.eq-bar:nth-child(6) { animation-duration: 1.2s; animation-delay: 0.16s; }
.eq-bar:nth-child(7) { animation-duration: 1.45s; animation-delay: 0.04s; }
.eq-bar:nth-child(8) { animation-duration: 1.3s; animation-delay: 0.18s; }
.eq-bar:nth-child(9) { animation-duration: 1.6s; animation-delay: 0.1s; }
@keyframes eq {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.58); }
}

/* Section heads & cards */
.section-head { max-width: 36rem; margin-bottom: 1.3rem; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
@media (min-width: 840px) {
  .section-head h2 { font-size: 2.25rem; }
}
.page-intro h1 { font-size: clamp(2rem, 5vw, 3rem); }
.section-head p { margin-top: 0.55rem; color: var(--text); }

.cards { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 -1px 0 var(--gold), 0 8px 28px rgba(229, 180, 100, 0.08);
}
.card h3 { font-size: 1.2rem; margin: 0.65rem 0 0.45rem; }
.card p { color: var(--text); }

.step-top { display: flex; align-items: center; }
.step-n {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  box-sizing: border-box;
  border: 1.5px solid transparent;
  background: transparent;
}
.step-n.is-green {
  color: #6FAE72;
  border-color: #6FAE72;
  background: rgba(111, 174, 114, 0.18);
}
.step-n.is-gold {
  color: #E5B464;
  border-color: #E5B464;
  background: rgba(229, 180, 100, 0.18);
}
.icon-accent { width: 32px; height: 32px; color: var(--gold); }

#how { padding-top: 0; }

/* Status / tracker */
.status-mobile { display: block; }
.status-kicker {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  color: var(--white);
}
.progress-thin {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
}
.progress-thin > span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
}
.tracker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  gap: 0.35rem;
}
@media (min-width: 700px) {
  .status-mobile { display: none; }
  .tracker { display: flex; }
}
.tracker li { flex: 1 1 0; min-width: 0; }
.tracker .stage-label,
.tracker li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 0.45rem 0.3rem;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: clamp(0.68rem, 2.4vw, 0.9rem);
  line-height: 1.15;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.tracker .is-current .stage-label,
.tracker .is-current > span,
.tracker [aria-current="step"] .stage-label {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.tracker .is-done .stage-label {
  border-color: var(--gold-deep);
  color: var(--gold);
}
.tracker-note {
  margin-top: 1rem;
  color: var(--text);
}
.tracker-updated { font-size: 0.92rem; }

/* Inner-page steps & timeline */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.steps li:hover {
  border-top-color: var(--gold);
  box-shadow: 0 -1px 0 var(--gold), 0 8px 28px rgba(229, 180, 100, 0.08);
}
.steps .n {
  display: block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.steps li:nth-child(even) .n { color: var(--green-ui); }
.steps li strong { display: block; color: var(--white); margin-bottom: 0.35rem; }
.steps li em { color: var(--text); font-style: italic; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  border-left: 2px solid var(--card-border);
  margin-left: 0.6rem;
}
.timeline li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.3rem;
  margin-left: 1.1rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline .when {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.timeline strong { display: block; color: var(--white); margin-bottom: 0.35rem; }

/* Prose, lists, FAQ */
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 0.9rem; }
.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.prose li { margin: 0.35rem 0; }
.prose li strong { color: var(--white); }

.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.2rem 1.15rem;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-top-color: var(--gold); }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--white);
  padding: 1rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 1rem; }

.credit-line {
  display: block;
  color: var(--gold);
  background: rgba(229, 180, 100, 0.12);
  border: 1px solid rgba(229, 180, 100, 0.28);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
main, .site-footer {
  overflow-wrap: break-word;
}

/* Support / donate */
.support { text-align: center; }
.support h2 { margin-bottom: 0.7rem; }
.support p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.btn-donate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin-top: 1.25rem;
  padding: 0.85rem 1.6rem 0.8rem;
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
}
.btn-donate:hover,
.btn-donate:focus-visible {
  color: var(--bg);
  background: var(--gold);
}
.btn-donate .cta-main { font-size: 1.05rem; line-height: 1.2; }
.btn-donate .cta-badge {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Donate page */
.donate-narrow {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.donate-narrow .lede,
.donate-narrow .prose {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.donate-narrow .prose h2 { text-align: left; }
.donate-cards { margin: 0 auto 2.25rem; text-align: left; }
.donate-cards .card { padding: 1.15rem 1rem 1.2rem; }
.donate-cards h3 { font-size: 1.05rem; margin: 0.55rem 0 0; }
.donate-actions { text-align: center; margin: 1.25rem 0 1.5rem; }
.donate-actions .btn-donate { margin-top: 0; }

.refuse-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.refuse-list li {
  position: relative;
  padding-left: 1.55rem;
  margin: 0.45rem 0;
}
.refuse-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.8em;
  font-weight: 700;
  color: var(--text);
  opacity: 0.85;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.5rem;
  color: var(--text);
  font-size: 0.95rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.45rem;
}
.site-footer strong { color: var(--white); font-weight: 800; }
.site-footer a { font-weight: 650; }

/* Utilities */
.muted { color: var(--text); }
.small { font-size: 0.92rem; }
.doc-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem 2rem;
}
@media (min-width: 700px) {
  .doc-links { grid-template-columns: 1fr 1fr; }
}
.doc-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--gold);
  padding: 0.35rem 0;
  min-height: 44px;
}
.doc-links a::after {
  content: "→";
  flex: none;
  font-weight: 700;
}
.doc-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.15em; }
