:root {
  --bg: #fdfdfc;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e6e6e3;
  --accent: #2f5d50;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #e8e8e6;
    --muted: #9a9a96;
    --line: #2c2c2a;
    --accent: #8fc1b0;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px 48px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header { margin-bottom: 48px; }
h1 { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.meta { color: var(--muted); margin: 0; }
.sep { margin: 0 6px; }

section { margin-bottom: 44px; }
h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 0 0 20px;
}

.item { margin-bottom: 24px; }
h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.date, .sub { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.sub { white-space: normal; }
.cite { color: var(--muted); font-size: 0.92rem; margin: 2px 0 6px; }
p { margin: 6px 0; }
ul { margin: 6px 0; padding-left: 20px; }
li { margin: 3px 0; }
code { font-size: 0.9em; }

.skills { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 0; }
.skills dt { color: var(--muted); }
.skills dd { margin: 0; }

footer { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 600px) {
  main { padding-top: 40px; }
  .row { flex-direction: column; gap: 0; }
  .date { white-space: normal; }
  .skills { grid-template-columns: 1fr; }
  .skills dt { margin-top: 8px; }
}
