@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap');

:root {
  --bg: #0b0f19;
  --bg-subtle: #111827;
  --surface: #1f293d;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

p, h1, h2, h3 {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Layout Containers */
.site-header, main, footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: 'Newsreader', serif;
  font-size: 20px;
  font-style: italic;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--text);
}

.nav-paper {
  color: var(--accent) !important;
  background: var(--accent-glow);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.2s ease;
}

.nav-paper:hover {
  background: rgba(56, 189, 248, 0.25);
}

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: var(--surface);
  color: var(--text);
  padding: 12px;
  z-index: 100;
}

.skip:focus {
  top: 10px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding: 90px 0 70px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--accent);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.divider {
  color: var(--border);
}

h1 {
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.08;
  margin-bottom: 24px;
}

h1 em {
  font-family: 'Newsreader', serif;
  color: var(--accent);
  font-weight: 400;
  font-style: normal;
}

.subtitle {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-description {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.actions {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.primary {
  background: var(--accent);
  color: #0b0f19;
}

.primary:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

.secondary {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
}

.secondary:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.byline {
  font-size: 13px;
  color: var(--muted);
}

/* Objective Panel Graphic */
.objective-panel {
  background: linear-gradient(145deg, var(--bg-subtle), var(--surface));
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.panel-question {
  font-family: 'Newsreader', serif;
  font-size: 34px;
  line-height: 1.2;
  margin: 28px 0;
  font-weight: 400;
}

.panel-question em {
  color: var(--accent);
  font-style: italic;
}

.objective-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.row-number {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  font-size: 12px;
}

.objective-row h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.objective-row p {
  font-size: 12px;
  color: var(--muted);
}

.signal {
  margin-left: auto;
  font-size: 18px;
  color: var(--accent);
}

.panel-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 11px;
  color: var(--muted);
}

/* Topic Strip */
.topic-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Sections & Grid */
.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

.overview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.prose {
  font-size: 16px;
  color: var(--muted);
}

.prose p {
  margin-bottom: 20px;
}

.prose .lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  font-family: 'Newsreader', serif;
}

.text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.text-link:hover {
  text-decoration: underline;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.section-heading > p {
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.framework-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.framework-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-index {
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-bottom: 24px;
}

.framework-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.framework-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.section-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

/* Results Section */
.results-section {
  margin-top: 70px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 50px;
}

.results-section .eyebrow {
  color: var(--accent);
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  margin: 36px 0 28px;
}

.metrics article {
  padding: 30px 20px 30px 0;
}

.metrics article + article {
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  padding-left: 40px;
}

.metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.metric span {
  font-size: 0.6em;
}

.metrics h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.metrics article > p:last-child {
  font-size: 13px;
  color: var(--muted);
}

.experiment-note {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  font-size: 13px;
}

.experiment-note strong {
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.experiment-note p {
  color: var(--muted);
}

/* Authors */
.authors-section h2 {
  font-size: 36px;
}

.authors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 30px;
}

.initials {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--accent);
  background: var(--bg-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.authors h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.authors p {
  font-size: 13px;
  color: var(--muted);
}

.small-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 30px;
  font-family: 'JetBrains Mono', monospace;
}

/* Citation Section */
.citation-section {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.citation-section h2 {
  font-size: 34px;
}

.citation-section p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-subtle);
  overflow: hidden;
}

summary {
  padding: 18px 24px;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  color: var(--accent);
  font-size: 20px;
}

details[open] summary {
  border-bottom: 1px solid var(--border);
}

pre {
  margin: 0;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  overflow: auto;
  color: #38bdf8;
  background: #090d16;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.footer-brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

/* Responsive queries */
@media(max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
  .overview { grid-template-columns: 1fr; gap: 30px; }
  .citation-section { grid-template-columns: 1fr; gap: 40px; }
}

@media(max-width: 760px) {
  .site-header nav > a:not(.nav-paper) { display: none; }
  .framework-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article + article { border-left: none; border-top: 1px solid rgba(56, 189, 248, 0.2); padding-left: 0; padding-top: 25px; }
  .experiment-note { grid-template-columns: 1fr; gap: 10px; }
  .authors { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 15px; text-align: center; }
}
