/* ------------------------------
   Core Theme
---------------------------------*/
:root {
  --bg: #0b0b0b;            /* page background */
  --panel: #121212;         /* card/bg */
  --panel-2: #161616;       /* hover/active */
  --text: #e8e8e8;          /* primary text */
  --muted: #a7a7a7;         /* secondary text */
  --accent: #8ab4ff;        /* links/buttons */
  --accent-ghost: #2b2f3a;  /* ghost button bg */
  --ring: #2f80ed;          /* focus ring */
  --border: #232323;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: radial-gradient(1200px 600px at 10% 0%, #0d0d0d 0%, var(--bg) 60%) fixed;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem 0;
}

h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem); }

/* Layout */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.content {
  padding: 2rem 0 4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(11,11,11,.9), rgba(11,11,11,.6));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #6aa0ff);
  box-shadow: 0 0 0 4px rgba(138,180,255,.15);
}

.brand-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: .01em;
}

.nav {
  display: none;
  gap: 1.25rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }

@media (min-width: 880px) {
  .nav { display: inline-flex; }
}

/* Hero */
.hero {
  padding: 4.5rem 0 2.5rem;
}
.hero-inner {
  text-align: left;
}
.hero-title {
  max-width: 26ch;
  margin-bottom: .75rem;
}
.hero-subtitle {
  max-width: 60ch;
  margin: 0 0 1.5rem 0;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  transition: transform .04s ease, background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--ring);
}

.btn-primary {
  background: linear-gradient(180deg, #1a1a1a, var(--panel-2));
  color: var(--text);
  border-color: #2a2a2a;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #1e1e1e, #1a1a1a);
}

.btn-ghost {
  background: var(--accent-ghost);
  color: #cfe0ff;
  border-color: #394255;
}
.btn-ghost:hover {
  background: #343a46;
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--panel), #101010);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 1.25rem; }

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .6rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Lists & Links */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li + li { margin-top: .5rem; }

.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.link:hover {
  color: #cfe0ff;
  border-color: rgba(138,180,255,.35);
}
.link.subtle {
  color: var(--muted);
}
.link.subtle:hover {
  color: var(--text);
  border-color: transparent;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: .25rem 0 0 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--border);
}
.timeline-item:first-child { border-top: 0; }
.timeline-date {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.timeline-content { color: var(--text); }
.timeline .divider {
  display: inline-block;
  padding: 0 .5rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,.3), transparent);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 2rem;
}
.muted { color: var(--muted); }

/* Accessibility: focus styles for interactive elements */
a:focus-visible, button:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 10px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
