@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Barlow:wght@300;400&display=swap');

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


:root {
  --ink: #1a1a1a;
  --ink-soft: #555;
  --ink-faint: #999;
  --paper: #faf9f7;
  --rule: #e8e6e1;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Barlow', sans-serif;
}

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

html { font-size: 18px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.8;
  min-height: 100vh;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0;
}

header .inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

header a.site-name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

header a.site-name:hover { color: var(--ink-soft); }

header nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

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

/* ── Main ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Post list ── */
.post-list { list-style: none; }

.post-list li {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list li:first-child { padding-top: 0; }

.post-list .post-date {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.post-list h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.post-list h2 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.post-list h2 a:hover { border-bottom-color: var(--ink); }

.post-list .excerpt {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── Single post ── */
.post-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }

.post-header .post-date {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.post-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-content h1, .post-content h2, .post-content h3 {
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.post-content h2 { font-size: 1.35rem; }
.post-content h3 { font-size: 1.1rem; }

.post-content p { margin-bottom: 1.5rem; }

.post-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: border-color 0.2s;
}

.post-content a:hover { border-bottom-color: var(--ink); }

.post-content blockquote {
  border-left: 2px solid var(--ink);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--ink-soft);
  font-style: italic;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--rule);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

.post-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem;
  border-radius: 2px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ── Back link ── */
.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.back-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  main { padding: 2.5rem 1.5rem 4rem; }
  header .inner { padding: 0 1.5rem; }
  .post-header h1 { font-size: 1.6rem; }
}
