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

html, body {
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #ffffff;
  --text:        #1a1410;
  --text-muted:  #555;
  --text-dim:    #999;
  --rule:        #f0f0f0;
  --rule-soft:   #ece8df;
  --rule-strong: #e2e2e2;
  --link:        #1d4ed8;
  --link-purple: #551a8b;
  --accent:      #b85c3a;
  --accent-bg:   #f4ede8;
  --meta-color:  #888;
  --font-serif:  "Source Serif 4", Georgia, serif;
  --font-mono:   "IBM Plex Mono", ui-monospace, monospace;
}

body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ─── Layout ─────────────────────────────────────────── */

.page {
  padding: 88px 0 96px;
}

.column {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Title block ─────────────────────────────────────── */

h1 {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--text);
}

h1 .adj {
  font-style: italic;
  font-weight: 300;
  color: #888;
}

.tagline {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: #666;
  line-height: 1.5;
  margin: 0 0 56px;
}

/* ─── Section headings ────────────────────────────────── */

h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 72px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--text);
}

/* ─── About ───────────────────────────────────────────── */

.about p {
  margin: 0 0 1.1em;
  font-size: 16px;
}

/* ─── Elsewhere ───────────────────────────────────────── */

.elsewhere-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.elsewhere-links a {
  color: var(--link-purple);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.elsewhere-links a:hover {
  color: var(--accent);
}

.elsewhere-links .sep {
  color: #ccc;
}

/* ─── Projects ────────────────────────────────────────── */

.project {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  column-gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.project-thumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.project h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.project h3 a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.project h3 a:hover {
  color: var(--accent);
}

.project-blurb {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 4px;
}

/* ─── Recent writing ──────────────────────────────────── */

.post {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.post h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.3;
}

.post h3 a {
  color: inherit;
  text-decoration: none;
}

.post h3 a:hover {
  color: var(--accent);
}

.post-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.read-more {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.read-more a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.read-more a:hover {
  color: var(--accent);
}
