/* ── Legally Brief: Federal — "The Weight of the Gavel" ── */

:root {
  --bg-primary:    #0a0e1a;
  --bg-deep:       #1a0a0a;
  --bg-surface:    rgba(240, 232, 216, 0.04);
  --bg-card:       rgba(10, 14, 26, 0.85);
  --text-primary:  #f0e8d8;
  --text-secondary:#b8af9a;
  --text-muted:    #6a6070;
  --accent-gold:   #c5963a;
  --accent-crimson:#8b2020;
  --accent-slate:  #3a3d4a;
  --ivory:         #f0e8d8;
  --navy:          #0a0e1a;
  --font-serif:    'Cormorant Garamond', 'Georgia', serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', monospace;
  --section-pad:   clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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.028;
  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;
}

a { color: var(--accent-gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ── Legal Ticker ── */
.ticker {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg-deep), var(--navy));
  border-bottom: 1px solid rgba(197, 150, 58, 0.15);
  padding: 0.65rem 0;
  z-index: 100;
}

.ticker__label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--accent-crimson);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
}

.ticker__track {
  display: flex;
  animation: tickerScroll 45s linear infinite;
  padding-left: 8rem;
}

.ticker__item {
  flex-shrink: 0;
  padding: 0 2.5rem;
  font-size: 0.78rem;
  color: var(--ivory);
  opacity: 0.75;
  white-space: nowrap;
  font-weight: 500;
}

.ticker__item::before {
  content: '■';
  margin-right: 0.75rem;
  color: var(--accent-gold);
  font-size: 0.5rem;
  vertical-align: middle;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(139, 32, 32, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(197, 150, 58, 0.06) 0%, transparent 50%),
              var(--bg-primary);
  overflow: hidden;
}

.hero__seal {
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0.6;
  font-size: 2rem;
}

.hero__overline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--ivory);
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 38rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent-slate);
}

.hero__rule {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  margin: 1.5rem auto 0;
  opacity: 0.4;
}

/* ── Section Base ── */
.brief-section {
  padding: var(--section-pad);
  border-bottom: 1px solid rgba(197, 150, 58, 0.08);
  position: relative;
}

.brief-section--dark {
  background: var(--bg-deep);
}

.brief-section--navy {
  background: linear-gradient(180deg, var(--navy), #0d1225);
}

.brief-section--accent {
  background: linear-gradient(135deg, rgba(139, 32, 32, 0.06), transparent 60%);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-gold);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--ivory);
  max-width: 48rem;
}

.section-subhead {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-style: italic;
}

.section-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(240, 232, 216, 0.78);
  max-width: 52rem;
}

.section-body p + p {
  margin-top: 1rem;
}

.section-source {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.section-source a {
  color: var(--accent-gold);
  opacity: 0.7;
}

.section-source a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── Quote / Pull Quote ── */
.pull-quote {
  border-left: 3px solid var(--accent-gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ivory);
  background: rgba(197, 150, 58, 0.04);
  max-width: 48rem;
}

.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  opacity: 0.7;
}

/* ── Split Layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 64rem;
}

.split__col {
  min-width: 0;
}

/* ── Ruling Card ── */
.ruling-card {
  background: var(--bg-surface);
  border: 1px solid rgba(197, 150, 58, 0.1);
  border-radius: 2px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.ruling-card__vote {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-crimson);
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(139, 32, 32, 0.3);
}

.ruling-card__vote--unanimous {
  color: var(--accent-gold);
  border-color: rgba(197, 150, 58, 0.3);
}

.ruling-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ivory);
}

.ruling-card__body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(240, 232, 216, 0.72);
}

/* ── Stat Row ── */
.stat-row {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.stat-block {
  text-align: center;
  min-width: 100px;
}

.stat-block__num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-block__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ── Impact Badge ── */
.impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 1px;
  margin-bottom: 1rem;
}

.impact-badge--high {
  background: rgba(139, 32, 32, 0.15);
  color: #d44;
  border: 1px solid rgba(139, 32, 32, 0.25);
}

.impact-badge--medium {
  background: rgba(197, 150, 58, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(197, 150, 58, 0.2);
}

.impact-badge--landmark {
  background: rgba(197, 150, 58, 0.15);
  color: #e8c060;
  border: 1px solid rgba(197, 150, 58, 0.3);
}

/* ── Divider ── */
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.3;
  margin: 2rem 0;
}

/* ── Timeline ── */
.timeline-item {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(197, 150, 58, 0.2);
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  background: var(--accent-gold);
  border-radius: 50%;
}

.timeline-item__date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.timeline-item__text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(240, 232, 216, 0.72);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(197, 150, 58, 0.1);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-deep);
}

.site-footer__brand {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  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(--accent-gold);
  box-shadow: 0 0 8px rgba(197, 150, 58, 0.4);
  margin-right: 0.5rem;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.site-footer__regen,
.site-footer__session,
.site-footer__timestamp {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.site-footer__link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--accent-gold);
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-30px);
}

.reveal--right {
  opacity: 0;
  transform: translateX(30px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .section-headline {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .stat-row {
    justify-content: center;
  }

  .ticker__label {
    padding: 0 0.6rem;
    font-size: 0.5rem;
  }

  .ticker__track {
    padding-left: 5.5rem;
  }

  .ticker__item {
    padding: 0 1.5rem;
    font-size: 0.7rem;
  }

  .pull-quote {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
  }

  .ruling-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 2.5rem 1.25rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero__seal {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
