/* rmpm.org placeholder: light editorial variant
   Identity matches the RMPM report template (reporting/pdf/theme.css):
   PBS Sans, RMPM blue/navy, teal->lime accent, white canvas. */

@font-face { font-family: "PBS Sans"; src: url("assets/fonts/PBSSans-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "PBS Sans"; src: url("assets/fonts/PBSSans.ttf") format("truetype");       font-weight: 400; font-display: swap; }
@font-face { font-family: "PBS Sans"; src: url("assets/fonts/PBSSans-Bold.ttf") format("truetype");  font-weight: 700; font-display: swap; }
@font-face { font-family: "PBS Sans"; src: url("assets/fonts/PBSSans-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --rmpm-blue:  #2638c4;
  --rmpm-navy:  #0a145a;
  --rmpm-teal:  #48d3cd;
  --rmpm-lime:  #c1cf33;
  --ink:        #14161f;
  --muted:      #5b6070;
  --rule:       #e3e6ee;
  --panel:      #f5f7fb;
  --accent:     linear-gradient(90deg, var(--rmpm-teal), var(--rmpm-lime));
  --gutter:     clamp(16px, 4.5vw, 56px);
  --max:        1240px;
  --ease:       cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "PBS Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--rmpm-teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--rmpm-navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

.accent-bar { height: 6px; background: var(--accent); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn--small { padding: 10px 18px; font-size: .9375rem; }
.btn--primary { background: var(--rmpm-navy); color: #fff; }
.btn--primary:hover { background: var(--rmpm-blue); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(38, 56, 196, .25); }
.btn--ghost { color: var(--rmpm-navy); box-shadow: inset 0 0 0 2px var(--rule); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--rmpm-navy); }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand .logo { height: 40px; width: auto; }
.logo--light { display: none; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: .9375rem; color: var(--rmpm-navy); }
.site-nav a:not(.btn):hover { color: var(--rmpm-blue); }
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .brand .logo { height: 32px; }
}

/* ---- Hero ------------------------------------------------------------ */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
/* Gradient glow: three layered blobs (base + two pseudo-elements) that
   breathe and drift on different, long periods so the motion never visibly loops. */
.hero-glow {
  position: absolute; right: -14%; top: -32%;
  width: min(940px, 100vw); aspect-ratio: 1;
  background:
    radial-gradient(circle at 38% 42%, rgba(72, 211, 205, .40), transparent 58%),
    radial-gradient(circle at 68% 64%, rgba(193, 207, 51, .36), transparent 56%),
    radial-gradient(circle at 62% 24%, rgba(38, 56, 196, .16), transparent 52%);
  filter: blur(34px);
  pointer-events: none;
  animation: glow-breathe 16s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-glow::before {
  inset: 12% 34% 34% 8%;
  background: radial-gradient(circle, rgba(72, 211, 205, .50), transparent 68%);
  animation: glow-drift-a 19s ease-in-out infinite alternate;
}
.hero-glow::after {
  inset: 38% 6% 8% 38%;
  background: radial-gradient(circle, rgba(193, 207, 51, .48), transparent 68%);
  animation: glow-drift-b 23s ease-in-out infinite alternate;
}
@keyframes glow-breathe {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.09) rotate(7deg); }
  100% { transform: scale(.95) rotate(-5deg); }
}
@keyframes glow-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-9%, 12%) scale(1.18); }
}
@keyframes glow-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, -10%) scale(.86); }
}
.hero-grid {
  position: relative;
  display: grid; gap: 32px 48px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; }
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: #fff;
  font-size: .8125rem; font-weight: 700; color: var(--muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rmpm-teal); box-shadow: 0 0 0 0 rgba(72, 211, 205, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(72, 211, 205, 0); } 100% { box-shadow: 0 0 0 0 rgba(72, 211, 205, 0); } }
.eyebrow {
  margin: 0 0 18px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rmpm-blue);
}
h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7.6vw, 6.25rem);
  font-weight: 900; line-height: .98; letter-spacing: -.025em;
  color: var(--rmpm-navy);
  text-wrap: balance;
}
.hl {
  background-image: var(--accent);
  background-repeat: no-repeat;
  background-size: 100% .14em;
  background-position: 0 92%;
}
.lede { margin: 0 0 28px; font-size: clamp(1.125rem, 1.6vw, 1.25rem); font-weight: 300; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: clamp(56px, 8vw, 96px) 0 0;
  border-top: 2px solid var(--rmpm-navy);
}
.stat { padding: 24px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--rule); }
@media (max-width: 719px) {
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
.stat dt { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1; color: var(--rmpm-navy); letter-spacing: -.02em; }
.stat dd { margin: 10px 0 0; color: var(--muted); max-width: 26ch; }

/* ---- Section heads ----------------------------------------------------- */
.section-head {
  display: grid; gap: 12px 48px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
@media (min-width: 960px) { .section-head { grid-template-columns: 8fr 4fr; align-items: end; } }
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 900; line-height: 1.02; letter-spacing: -.02em;
  color: var(--rmpm-navy);
}
.section-head p { margin: 0; color: var(--muted); }
.amp { font-weight: 300; color: var(--rmpm-blue); }

/* ---- Stations: numbered editorial list ------------------------------- */
.stations { padding: clamp(56px, 8vw, 104px) 0; background: var(--panel); }
.station-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.station { border-bottom: 1px solid var(--rule); }
.station-link {
  position: relative;
  display: grid; align-items: center; gap: 6px 24px;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  padding: 26px 12px 26px 0;
  text-decoration: none;
  transition: background 260ms var(--ease), padding 260ms var(--ease);
}
.station-link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--brand); transform: scaleY(0); transform-origin: bottom;
  transition: transform 260ms var(--ease);
}
.station-link:hover, .station-link:focus-visible { background: #fff; padding-left: 20px; }
.station-link:hover::before, .station-link:focus-visible::before { transform: scaleY(1); }
.station-num { font-size: .875rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.station-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.station-name { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.1; color: var(--rmpm-navy); letter-spacing: -.01em; }
.station-desc { color: var(--muted); }
.station-meta {
  grid-column: 2; justify-self: start;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.station-meta::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.station-url { grid-column: 3; grid-row: 1 / span 2; font-weight: 700; color: var(--rmpm-blue); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.arrow { display: inline-block; transition: transform 260ms var(--ease); }
.station-link:hover .arrow, .cta:hover .arrow { transform: translateX(6px); }
@media (min-width: 900px) {
  .station-link { grid-template-columns: 3rem minmax(0, 1fr) 11rem 13rem; }
  .station-meta { grid-column: 3; grid-row: 1; }
  .station-url { grid-column: 4; grid-row: 1; justify-self: end; }
}
@media (max-width: 560px) {
  .station-link { grid-template-columns: 2rem minmax(0, 1fr); }
  .station-url { grid-column: 2; grid-row: auto; }
}

/* ---- Mission ------------------------------------------------------------ */
.mission { padding: clamp(72px, 11vw, 144px) 0; background: #fff; }
.label {
  display: inline-block; margin: 0 0 24px; padding-bottom: 8px;
  border-bottom: 3px solid; border-image: var(--accent) 1;
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rmpm-blue);
}
.mission-text {
  margin: 0; max-width: 22ch;
  font-size: clamp(2rem, 5.2vw, 4.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
  color: var(--rmpm-navy);
  text-wrap: balance;
}

/* ---- Support CTAs -------------------------------------------------------- */
.support { padding: 0 0 clamp(72px, 10vw, 128px); }
.cta-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cta {
  display: flex; flex-direction: column; gap: 10px;
  padding: 32px; min-height: 260px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: #fff;
  text-decoration: none;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.cta:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 20, 90, .10); border-color: transparent; }
.cta--donate { background: var(--rmpm-navy); color: #fff; border-color: var(--rmpm-navy); }
.cta-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rmpm-blue); }
.cta--donate .cta-kicker { color: var(--rmpm-teal); }
.cta-title { font-size: 1.75rem; font-weight: 900; line-height: 1.1; color: var(--rmpm-navy); }
.cta--donate .cta-title { color: #fff; }
.cta-desc { flex: 1; color: var(--muted); }
.cta--donate .cta-desc { color: rgba(255, 255, 255, .78); }
.cta-go { font-weight: 700; color: var(--rmpm-blue); display: inline-flex; gap: 10px; }
.cta--donate .cta-go { color: var(--rmpm-lime); }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--rule); }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-top: 56px; padding-bottom: 40px;
}
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo { width: 240px; margin-bottom: 20px; }
address { font-style: normal; color: var(--muted); font-size: .9375rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rmpm-navy); }
.footer-col a { text-decoration: none; color: var(--muted); font-size: .9375rem; }
.footer-col a:hover { color: var(--rmpm-blue); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 28px;
  border-top: 1px solid var(--rule);
  font-size: .8125rem; color: var(--muted);
}
.footer-legal p { margin: 0; }
.footer-legal p:last-child { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: var(--muted); }

/* ---- Reveal on scroll ---------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.station-list .station:nth-child(2) { transition-delay: 60ms; }
.station-list .station:nth-child(3) { transition-delay: 120ms; }
.station-list .station:nth-child(4) { transition-delay: 180ms; }
.station-list .station:nth-child(5) { transition-delay: 240ms; }
.station-list .station:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---- RMPBS+ nested under Rocky Mountain PBS (light list layout) ------- */
.station--feature .sub-station {
  display: grid; gap: 4px 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: -6px 0 24px calc(3rem + 24px);
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 260ms var(--ease);
}
.station--feature .sub-station:hover { box-shadow: 0 10px 28px rgba(10, 20, 90, .08); }
.sub-kicker { grid-column: 1; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sub-name { grid-column: 1; font-size: 1.375rem; font-weight: 900; color: var(--rmpm-navy); line-height: 1.1; }
.sub-desc { grid-column: 1; color: var(--muted); }
.sub-url { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-weight: 700; color: var(--rmpm-blue); white-space: nowrap; display: inline-flex; gap: 10px; }
.sub-station:hover .arrow { transform: translateX(6px); }
@media (max-width: 560px) {
  .station--feature .sub-station { margin-left: calc(2rem + 24px); grid-template-columns: minmax(0, 1fr); }
  .sub-url { grid-column: 1; grid-row: auto; }
}
