/* ── Legally Brief: California — "Golden State, New Chapter" ── */
:root {
  --bg-primary: #0a0a12;
  --bg-deep: #0a1a2e;
  --bg-surface: rgba(255,255,255,0.04);
  --bg-surface-hover: rgba(255,255,255,0.07);
  --text-primary: #eaeaf0;
  --text-secondary: #c0c8d0;
  --text-muted: #6a7280;
  --gold: #e8a838;
  --gold-dim: rgba(232,168,56,0.12);
  --coral: #d45a3a;
  --coral-dim: rgba(212,90,58,0.10);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.10);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --max-w: 1100px;
  --gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

/* ── TICKER ── */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(232,168,56,0.15);
  padding: 0.6rem 0;
  z-index: 100;
}
.ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  will-change: transform;
}
.ticker__item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.ticker__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 0.6rem;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--gold);
}
.ticker__hot { color: var(--coral); font-weight: 600; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem,12vw,8rem) var(--gap) clamp(3rem,8vw,6rem);
  overflow: hidden;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(10,26,46,0.9) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 80% 70%, rgba(212,90,58,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 820px; }
.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: normal;
  color: var(--coral);
}
.hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero__meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.hero__tag--scotus { border-color: rgba(212,90,58,0.3); color: var(--coral); }
.hero__tag--vote { border-color: rgba(232,168,56,0.3); color: var(--gold); }

/* ── SECTIONS ── */
.brief-section {
  padding: clamp(3rem,6vw,5rem) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-body {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.75;
}
.section-body + .section-body { margin-top: 1rem; }

/* ── SPLIT LAYOUT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.split__aside {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.aside-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.aside-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── LAWS CARD GRID ── */
.laws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.law-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.law-card:hover {
  border-color: rgba(232,168,56,0.2);
  background: var(--bg-surface-hover);
}
.law-card__bill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.law-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.law-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── PULLQUOTE ── */
.pullquote {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 0 1.25rem 1.5rem;
  margin: 2rem 0;
  max-width: 640px;
}
.pullquote__text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
}
.pullquote__cite {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* ── BANNER ── */
.banner {
  background: linear-gradient(135deg, var(--bg-deep) 0%, rgba(212,90,58,0.08) 100%);
  border: 1px solid rgba(212,90,58,0.15);
  border-radius: 10px;
  padding: clamp(2rem, 4vw, 3rem);
  margin: 1.5rem 0;
}
.banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.banner__body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}

/* ── TIMELINE ── */
.timeline { margin-top: 2rem; }
.timeline__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.timeline__marker {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.35rem;
  box-shadow: 0 0 8px rgba(232,168,56,0.4);
}
.timeline__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.timeline__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── STAT ROW ── */
.stat-row {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
  margin: 2rem 0;
}
.stat {
  text-align: center;
  min-width: 100px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ── QUICK HITS GRID ── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.quick-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.3s ease;
}
.quick-item:hover { border-color: rgba(232,168,56,0.2); }
.quick-item__icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.quick-item__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.quick-item__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── TWO-COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.col-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1.5rem;
}
.col-card__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.col-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.col-card__body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── CENTERED SECTION ── */
.centered {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.centered .section-body { margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.site-footer {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
}
.site-footer__brand {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.site-footer__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  margin-right: 0.5rem;
  animation: ft-pulse 2.5s ease-in-out infinite;
}
@keyframes ft-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.site-footer__regen,
.site-footer__session,
.site-footer__timestamp {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.site-footer__archive {
  display: inline-flex;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer__archive:hover { color: var(--gold); }

/* ── SOURCE LINK ── */
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.2s ease;
}
.source-link:hover { color: var(--gold); }
.source-link::after { content: ' →'; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero__meta { gap: 0.75rem; }
  .stat-row { justify-content: center; }
  .laws-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
}
