:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --line: #e5e5e5;
  --accent: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --muted: #9a9a9a;
    --bg: #111111;
    --line: #2a2a2a;
    --accent: #ececec;
  }
}

* { box-sizing: border-box; }

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

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

section {
  margin-top: 3.5rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

p { margin: 0 0 0.75rem; }

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--muted); }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.list li:last-child { border-bottom: 1px solid var(--line); }
.list p { margin: 0.25rem 0 0; color: var(--muted); }
.period { color: var(--muted); font-size: 0.9rem; }

.button {
  display: inline-block;
  margin: 1rem 0.5rem 0 0;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.button:hover {
  background: var(--accent);
  color: var(--bg);
}

footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
}

@media (max-width: 30rem) {
  main { padding-top: 3rem; }
  .list li { grid-template-columns: 1fr; gap: 0.25rem; }
}
