@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f4efe8;
  --surface: #fcfbf7;
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --accent: #4f6df5;
  --accent-soft: rgba(79, 109, 245, 0.12);
  --accent-strong: #2a7f62;
  --border: rgba(31, 41, 55, 0.12);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f172a;
    --surface: rgba(15, 23, 42, 0.92);
    --surface-strong: rgba(15, 23, 42, 0.82);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #8b9dff;
    --accent-soft: rgba(139, 157, 255, 0.16);
    --accent-strong: #4ade80;
    --border: rgba(148, 163, 184, 0.2);
    --shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4efe8;
  --surface: #fcfbf7;
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --accent: #4f6df5;
  --accent-soft: rgba(79, 109, 245, 0.12);
  --accent-strong: #2a7f62;
  --border: rgba(31, 41, 55, 0.12);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-strong: rgba(15, 23, 42, 0.82);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #8b9dff;
  --accent-soft: rgba(139, 157, 255, 0.16);
  --accent-strong: #4ade80;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, #ece5d8 100%);
  line-height: 1.6;
  transition: background 220ms ease, color 220ms ease;
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  }
}

body,
p,
li,
blockquote {
  font-size: 1rem;
}

p,
li,
.timeline-content p,
.site-footer p {
  max-width: 65ch;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.topbar {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-strong) 100%);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .topbar,
@media (prefers-color-scheme: dark) .topbar {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(17, 24, 39, 0.92) 100%);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.3);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px var(--border);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.theme-switch input {
  display: none;
}

.slider {
  width: 46px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  position: relative;
}

.slider::before {
  content: "";
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 16px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 180ms ease;
}

.theme-switch input:checked + .slider::before {
  transform: translateX(22px);
}

.page-shell {
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero-card,
.panel {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-strong) 100%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.lead {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.lead.secondary {
  margin-top: 0.8rem;
}

.info-card {
  padding: 1.3rem;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.info-card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.info-card ul {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-card li {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.panel {
  display: block;
}

.panel p {
  margin-bottom: 0.9rem;
}

.site-footer {
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--accent);
}

.timeline {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.timeline-marker {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.timeline-content h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.timeline-content p {
  margin: 0;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card,
  .panel {
    grid-template-columns: 1fr;
    padding: 1.3rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 1rem 1rem 2rem;
  }

  .site-footer {
    padding: 0 1rem 1.5rem;
  }
}
