/* Base */
:root {
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --bg: #fafafa;
  --border: #ddd;
  --link: #1a1a1a;
  --link-hover: #000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e5e5;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --bg: #111;
    --border: #333;
    --link: #e5e5e5;
    --link-hover: #fff;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  line-height: 1.6;
}

body {
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  color: var(--text);
  background: var(--bg);
  padding: 3rem 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Layout */
header {
  margin-bottom: 2rem;
}

section {
  margin-bottom: 3rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Articles */
article {
  margin-bottom: 2rem;
}

article:last-child {
  margin-bottom: 0;
}

article a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s;
}

article a:hover {
  color: var(--link-hover);
  border-color: var(--text);
}

.meta {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.375rem 0;
  letter-spacing: 0.02em;
}

.abstract {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.muted {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Footer */
footer {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

footer a:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 2rem 1rem;
  }
}
