:root {
  --bg: #111;
  --fg: #eee;
  --dim: #888;
  --link: #fff;
  --accent: #fff;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;
  --max-width: 680px;
  --spacing: 2rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --fg: #111;
    --dim: #666;
    --link: #000;
    --accent: #000;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
  margin-bottom: 4rem;
}

h1 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.bio {
  margin: 0 0 1.5rem 0;
  color: var(--dim);
  max-width: 35ch;
}

.links {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 13px;
}

.links a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--dim);
}

.links a:hover {
  border-bottom-color: var(--fg);
}

/* Sections */
section {
  margin-bottom: 4rem;
}

h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
  margin: 0 0 1.5rem 0;
  font-weight: 400;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

@media (prefers-color-scheme: light) {
  h2 {
    border-bottom: 1px solid #eee;
  }
}

/* Lists */
.list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.item-title {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
}

.item-title:hover {
  text-decoration: underline;
}

.item-sub {
  color: var(--dim);
  font-size: 14px;
  margin: 0 0 0.25rem 0;
}

.item-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
}

.item-desc {
  margin: 0;
  color: var(--dim);
  max-width: 50ch;
}

.item-tags {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  opacity: 0.7;
}

/* Simple List (Writing) */
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.simple-list a {
  color: var(--fg);
  text-decoration: none;
}

.simple-list a:hover {
  text-decoration: underline;
}

.simple-list .date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
}

.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  opacity: 0.5;
}
