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

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --bg: #faf9f7;
  --border: #e0ddd8;
  --accent: #1a1a1a;
  --max-width: 640px;
}

body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 0, 0, 0.08);
}

a {
  color: var(--text);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

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

/* Layout */
.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

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

header h1 {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 50ch;
}

header p + p {
  margin-top: 0.5rem;
}

/* Navigation */
nav {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

nav a {
  color: var(--text-secondary);
  margin-right: 1.5rem;
}

nav a:hover {
  color: var(--text);
}

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

section h2 {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Entry list */
.entries {
  list-style: none;
}

.entries li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
}

.entries li + li {
  border-top: 1px solid var(--border);
}

.entry-title {
  font-size: 1.05rem;
  font-weight: 400;
}

.entry-date {
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-left: 1.5rem;
  font-variant-numeric: tabular-nums;
}

/* Article pages */
.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.article-meta a {
  color: var(--text-secondary);
}

.back-link {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

article + .back-link {
  margin-top: 3rem;
}

.prose p {
  margin-top: 1.25rem;
}

.prose p:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose em {
  font-style: italic;
}

.prose strong {
  font-weight: 600;
}

.prose ul, .prose ol {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose figure {
  margin: 2rem 0;
}

.prose figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

.prose .image-row {
  display: flex;
  gap: 0.5rem;
}

.prose .image-row img {
  min-width: 0;
  height: auto;
  flex: 1;
}

.prose figcaption {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

.prose blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
}

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

.article-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 600px) {
  .site {
    padding: 2.5rem 1.25rem 4rem;
  }

  header {
    margin-bottom: 3rem;
  }

  .entries li {
    flex-direction: column;
    gap: 0.1rem;
  }

  .entry-date {
    margin-left: 0;
  }

  .article-header h1 {
    font-size: 1.35rem;
  }

  .prose .image-row {
    flex-direction: column;
  }
}
