:root {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #6ea8fe;
  --border: #262b36;
  --max-width: 46rem;
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #1a1d24;
    --muted: #5b6472;
    --accent: #2563eb;
    --border: #e3e6ec;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--border);
  padding-block: 4rem 2.5rem;
  background: linear-gradient(180deg, var(--surface), transparent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  margin: 0 0 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.contact a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact span {
  color: var(--muted);
}

/* Sections */
main section {
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--border);
}
main section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.entry {
  margin-bottom: 1.75rem;
}
.entry:last-child {
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry h3 {
  margin: 0;
  font-size: 1.1rem;
}

.dates {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.org {
  color: var(--accent);
  margin: 0.15rem 0 0.6rem;
  font-size: 0.95rem;
}

.entry ul {
  margin: 0;
  padding-left: 1.1rem;
}
.entry li {
  margin-bottom: 0.3rem;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.tags li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
}

footer {
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-page {
  padding-block: 6rem;
  text-align: center;
}

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