@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-Italic-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --text: #1a1a1a;
  --bg: #fafaf8;
  --muted: #6b6b6b;
  --border: #e0e0e0;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;
}

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

html { font-size: 18px; }

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  padding: 3rem 1.5rem;
  max-width: 65ch;
  margin: 0 auto;
}

h1 { font-size: 1.8rem; margin-bottom: 1.5rem; line-height: 1.3; }
h2 { font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-top: 2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }

a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--muted); }

blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

code {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: #f0f0ee;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
}

pre {
  background: #f0f0ee;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}

pre code { background: none; padding: 0; }

ul, ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

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

.meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.site-header { margin-bottom: 3rem; display: flex; justify-content: space-between; align-items: baseline; }
.site-header a { text-decoration: none; }
.site-title { font-size: 1.15rem; color: var(--muted); letter-spacing: 0.02em; }
.site-header nav { display: flex; gap: 1.2rem; }
.site-header nav a { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 1.2rem; }
.post-list .date { color: var(--muted); font-size: 0.85rem; display: block; }

.about-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

em { font-style: italic; }
strong { font-weight: 700; }

@media (max-width: 600px) {
  html { font-size: 16px; }
  body { padding: 2rem 1rem; }
}

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}

.site-footer a {
  color: #666;
  text-decoration: none;
}

.site-footer a:hover {
  color: #333;
}