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

:root {
  --bg: #ffffff;
  --bg-elev: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --acc: #2563eb;
  --acc-contrast: #ffffff;
  --tag-bg: #eef2ff;
  --tag-text: #3730a3;
  --shadow: 0 1px 2px rgba(2, 6, 23, 0.06), 0 2px 8px rgba(2, 6, 23, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-elev: #111936;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #1f2a44;
    --acc: #60a5fa;
    --acc-contrast: #0b1020;
    --tag-bg: #1f2a44;
    --tag-text: #c7d2fe;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 12px rgba(0, 0, 0, 0.25);
  }
}

html {
  scroll-behavior: smooth;
}

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

/* Layout */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.hero {
  padding: 96px 0 64px;
  background: linear-gradient(180deg, var(--bg-elev), transparent);
  border-bottom: 1px solid var(--border);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-title {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.site-nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--bg-elev);
  outline: none;
}

/* Hero */
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(2rem, 3.6vw + 1rem, 3.25rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 10px;
}

.social {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 12px 0 0;
}

.social a {
  color: var(--muted);
  text-decoration: none;
}

.social a:hover,
.social a:focus-visible {
  color: var(--acc);
  outline: none;
}

/* Cards */
.card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.card-body {
  min-width: 0;
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.card-actions {
  display: flex;
  align-items: start;
  gap: 8px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding-left: 16px;
  margin: 0 0 22px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--acc);
  border-radius: 50%;
}

.timeline-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tags */
.tags {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Buttons */
.button {
  display: inline-block;
  border: 1px solid var(--acc);
  background: var(--acc);
  color: var(--acc-contrast);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, filter 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  outline: none;
}

.button.secondary {
  background: transparent;
  color: var(--acc);
}

.button.small {
  padding: 8px 10px;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  background: var(--bg-elev);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 8px;
  padding: 8px 12px;
  background: var(--acc);
  color: var(--acc-contrast);
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 720px) {
  .site-header .container {
    gap: 12px;
  }
  .site-nav a {
    margin-left: 10px;
  }
  .card {
    grid-template-columns: 1fr;
  }
}
