:root {
  --bg: #f6f5f1;
  --text: #22252a;
  --muted: #666b73;
  --rule: #d9d6cc;
  --accent: #1f5f8b;
  --accent-text: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --text: #e4e2dc;
    --muted: #9a9ea6;
    --rule: #33363d;
    --accent: #6fb3e0;
    --accent-text: #0e1114;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  flex: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
}

.since,
.year,
.note,
footer {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

.since {
  margin: 0 0 .5rem;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
}

.timeline {
  list-style: none;
  margin: 2rem 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.timeline li {
  display: flex;
  gap: 1.25rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}

.year {
  flex: 0 0 3rem;
  color: var(--accent);
  font-size: .9rem;
  padding-top: .15rem;
}

.button {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: bold;
}

.button:hover,
.button:focus-visible { opacity: .88; }

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.note {
  margin: .6rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}

.contact {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

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

footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
}
