:root {
  --bg: #f6f1e8;
  --line: rgba(48, 43, 35, 0.16);
  --line-strong: rgba(48, 43, 35, 0.28);
  --text: #1f1a15;
  --muted: #63584b;
  --accent: #8f3d2e;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", "Avenir Next", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(143, 61, 46, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(53, 91, 108, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(143, 61, 46, 0.4);
  text-underline-offset: 0.18em;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

.page-header .lede,
.post-meta,
.archive-intro {
  color: var(--muted);
}

.brand-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}

.social-link:hover {
  color: var(--text);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--line-strong);
}

.site-main {
  padding-top: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.page-header h1,
.section h2,
.archive-item h3,
.timeline-copy h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.section h2 {
  font-size: 1.45rem;
}

.home-intro {
  max-width: 44rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
}

.home-intro-secondary {
  max-width: 42rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
}

.page-header .lede {
  max-width: 42rem;
  margin: 14px 0 0;
  font-size: 1rem;
}

.section {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-label,
.post-meta,
.archive-date {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-label-empty {
  visibility: hidden;
}

.timeline-copy p,
.archive-item p,
.prose p,
.prose li {
  font-size: 1rem;
}

.timeline-copy p,
.timeline-copy h3,
.archive-item h3,
 .archive-item p {
  margin-top: 0;
}

.section p,
.section ul {
  max-width: 42rem;
}

.section ul,
.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.page-shell,
.post-shell {
  max-width: 760px;
}

.page-header {
  margin-bottom: 22px;
}

.prose {
  font-family: var(--serif);
}

.prose h2,
.prose h3 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--sans);
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  margin: 0 0 1rem;
}

.prose code {
  padding: 0.12rem 0.34rem;
  border-radius: 6px;
  background: rgba(32, 26, 21, 0.06);
  font-family: var(--mono);
  font-size: 0.9em;
}

.prose pre {
  overflow-x: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.archive-list {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.archive-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.archive-item:first-child {
  border-top: 0;
}

.archive-item h3 {
  margin-bottom: 8px;
}

.archive-item p {
  margin-bottom: 0;
}

.empty-state {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-item {
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 0 16px 56px;
  }

  .site-header {
    padding-top: 18px;
  }

  .brand-name {
    font-size: 1.2rem;
  }
}
