:root {
  --paper: #F5F6F2;
  --ink: #1C2430;
  --ink-soft: #4A5566;
  --copper: #A8703A;
  --slate: #3D5A66;
  --line: #DBDCD3;
  --max-width: 680px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

a {
  color: var(--slate);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--copper); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

header.site .mark {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

header.site nav a {
  margin-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}

header.site nav a:hover { color: var(--copper); }

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  max-width: 14ch;
  margin-bottom: 0.6rem;
}

.hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 3rem;
}

.index-list {
  margin-top: 2.5rem;
}

.index-list h2.section-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.post-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.post-row:first-of-type { border-top: 1px solid var(--line); }

.post-row a.title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  flex: 1;
}

.post-row a.title:hover { color: var(--copper); }

.post-row .date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Post page */
.post-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

article.post h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  max-width: 20ch;
}

article.post h2 {
  font-size: 1.3rem;
  margin-top: 2.2rem;
}

article.post p {
  margin: 0 0 1.3em;
}

article.post ul, article.post ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}

article.post li { margin-bottom: 0.5em; }

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

article.post .byline {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.back-link:hover { color: var(--copper); }

@media (max-width: 480px) {
  header.site { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  header.site nav a { margin-left: 0; margin-right: 1.2rem; }
}
