:root {
  --bg: #0c1624;
  --panel: #131f33;
  --panel-deep: #080f1a;
  --accent: #e8a838;
  --accent-soft: #f5c060;
  --text: #f0e8d8;
  --white: #ffffff;
  --muted: #7a96b4;
  --info: #3a7bd5;
  --danger: #c0392b;
  --success: #3d9e6a;
  --border: rgba(232, 168, 56, 0.3);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  color: var(--text);
  background:
    linear-gradient(rgba(58, 123, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 123, 213, 0.035) 1px, transparent 1px),
    radial-gradient(circle at top, rgba(232, 168, 56, 0.12), transparent 28%),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto, auto;
  line-height: 1.7;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
}

body::before {
  top: 8rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.5rem transparent,
    0 0 0 5rem rgba(245, 192, 96, 0.08),
    0 0 0 7.5rem transparent;
}

body::after {
  left: -3rem;
  bottom: 5rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid var(--info);
  box-shadow:
    2rem 2rem 0 rgba(58, 123, 213, 0.08),
    4rem 4rem 0 rgba(58, 123, 213, 0.04);
}

a {
  color: var(--accent-soft);
}

.container {
  position: relative;
  z-index: 1;
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(0);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled {
  backdrop-filter: blur(14px);
  background: rgba(8, 15, 26, 0.86);
  border-bottom-color: rgba(232, 168, 56, 0.18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  font-family: "DM Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 0.55rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--accent-soft);
  background: rgba(232, 168, 56, 0.09);
  border-color: rgba(232, 168, 56, 0.28);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(232, 168, 56, 0.28);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
}

.section,
.hero {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 5.5rem;
}

.hero h1,
.section h1 {
  margin: 0 0 1rem;
  line-height: 1.06;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  color: var(--white);
  text-wrap: balance;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 4vw, 3rem);
}

.section h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.hero p,
.lead {
  max-width: 68ch;
  font-size: 1.22rem;
  color: var(--text);
}

.kicker {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.blue-bg,
.white-bg {
  background: transparent;
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.highlight-card,
.card,
.bibtex-details {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 31, 51, 0.98), rgba(11, 20, 34, 0.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-copy,
.highlight-card,
.card {
  overflow: hidden;
}

.hero-copy {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
}

.highlight-card {
  padding: 1.4rem;
  border-left: 3px solid var(--info);
}

.highlight-card h2 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  color: var(--accent);
}

.highlight-card a {
  color: var(--accent-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.hero-meta span,
.entry-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 56, 0.22);
  background: rgba(8, 15, 26, 0.55);
}

.btn-row {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.05rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--accent);
  color: #111111;
}

.btn-outline {
  border-color: rgba(240, 232, 216, 0.28);
  color: var(--text);
  background: rgba(19, 31, 51, 0.38);
}

.btn-blue {
  background: rgba(58, 123, 213, 0.16);
  border-color: rgba(58, 123, 213, 0.28);
  color: var(--text);
}

.card a.btn-blue {
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.single-column {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
}

.policy-card {
  border-left-color: var(--info);
}

.policy-card p + .btn {
  display: inline-block;
  margin-top: 1rem;
}

.policy-media-grid {
  display: grid;
  grid-template-columns: minmax(460px, 560px) minmax(260px, 1fr);
  gap: 1.15rem;
  align-items: start;
  margin-top: 1rem;
}

.policy-video {
  width: 100%;
  max-width: 560px;
  display: block;
  justify-self: start;
  border-radius: 14px;
  border: 1px solid rgba(58, 123, 213, 0.22);
  background: var(--panel-deep);
  aspect-ratio: 16 / 9;
  min-height: 315px;
}

.policy-hearing-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 0;
  align-content: start;
}

.policy-hearing-meta .btn {
  margin-top: 0.8rem;
  justify-self: start;
}

.research-card {
  border-left-color: var(--accent);
}

.card h2,
.card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--accent);
}

.card h2 {
  font-size: 2rem;
}

.card h3 {
  font-size: 1.65rem;
}

.card p {
  margin: 0.55rem 0 0;
}

.card a {
  color: var(--accent-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.link-row a {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(232, 168, 56, 0.22);
  border-radius: 999px;
  background: rgba(8, 15, 26, 0.48);
}

.bibtex-details {
  margin-top: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-left: 3px solid var(--danger);
  background: linear-gradient(180deg, rgba(8, 15, 26, 0.98), rgba(11, 20, 34, 0.98));
}

.bibtex-details summary {
  cursor: pointer;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bibtex-details pre {
  margin: 0.8rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "DM Mono", monospace;
  font-size: 0.88rem;
  color: var(--text);
}

.site-footer {
  padding: 1.4rem 0 2.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 760px) {
  .policy-media-grid {
    grid-template-columns: 1fr;
  }

  .policy-video {
    min-height: 220px;
  }
}

@media (max-width: 700px) {
  .section,
  .hero {
    padding: 3.5rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    right: 4%;
    top: 66px;
    background: rgba(8, 15, 26, 0.96);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    min-width: 170px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-copy,
  .highlight-card,
  .card,
  .bibtex-details {
    border-radius: 14px;
  }

  .hero h1,
  .section h1 {
    line-height: 1.1;
  }
}
