:root {
  color: #17201d;
  background: #f7f5ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  --ink: #17201d;
  --muted: #5d6863;
  --accent: #176b55;
  --line: #d9ddd7;
  --paper: #fffef9;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #eef3ed 0, #f7f5ef 25rem);
}

a { color: inherit; }
a:focus-visible { outline: 3px solid #75bda9; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

.site-header,
.site-footer,
main {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(23, 32, 29, .14);
}

.brand { display: grid; text-decoration: none; line-height: 1.15; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.brand-subtitle { color: var(--muted); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
.editor-link { padding: .65rem .8rem; color: var(--muted); font-size: .88rem; text-underline-offset: .2em; }

main { min-height: calc(100vh - 11rem); }
.intro { max-width: 48rem; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.intro .eyebrow { margin-bottom: 0; }
.article-heading h1, .error-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: .99;
  letter-spacing: -.045em;
}

.empty-state {
  max-width: 48rem;
  margin-bottom: 8rem;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 254, 249, .72);
}
.empty-state h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 5vw, 2.8rem); }
.empty-state p { margin: .65rem 0 0; color: var(--muted); }

.year-group { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr; gap: clamp(1rem, 5vw, 4rem); margin-bottom: 6rem; }
.year { position: sticky; top: 1rem; align-self: start; margin: 0; font: 700 clamp(2rem, 5vw, 3.5rem)/1 Georgia, serif; }
.month-group + .month-group { margin-top: 5rem; }
.month-group > h3 { margin: 0 0 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.article-list { display: grid; gap: 1.5rem; }
.article-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.article-card:not(:has(.card-media)) { grid-template-columns: 1fr; }
.card-media { min-height: 15rem; background: #dce4df; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: clamp(1.3rem, 4vw, 2.2rem); }
time { color: var(--muted); font-size: .82rem; }
.card-content h4 { margin: .6rem 0 .8rem; font: 700 clamp(1.55rem, 3vw, 2.25rem)/1.08 Georgia, serif; letter-spacing: -.02em; }
.card-content h4 a { text-decoration-thickness: .05em; text-decoration-color: transparent; text-underline-offset: .12em; }
.card-content h4 a:hover { text-decoration-color: currentColor; }
.card-content p { margin: 0 0 1.2rem; color: #43504b; }
.read-link { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .4rem; color: var(--accent); font-weight: 700; text-underline-offset: .2em; }

.article-page { max-width: 52rem; margin-inline: auto; padding: 3rem 0 7rem; }
.back-link { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--muted); text-underline-offset: .2em; }
.article-heading { padding: clamp(2rem, 7vw, 5rem) 0 2.5rem; }
.article-heading h1 { margin-top: .8rem; font-size: clamp(2.6rem, 7vw, 5rem); }
.article-excerpt { max-width: 44rem; margin: 1.5rem 0 0; color: #43504b; font-size: clamp(1.05rem, 2.5vw, 1.35rem); }
.hero { margin: 0 0 3rem; }
.hero img { width: 100%; border-radius: .8rem; }
.hero figcaption { margin-top: .7rem; color: var(--muted); font-size: .85rem; }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 2.2vw, 1.24rem); line-height: 1.78; }
.article-body p { margin: 0 0 1.45em; overflow-wrap: anywhere; }
.article-body h2, .article-body h3 { margin: 1.8em 0 .6em; line-height: 1.2; }
.article-body h2 { font-size: 1.45em; }
.article-body h3 { font-size: 1.2em; }
.article-body ul, .article-body ol { margin: 0 0 1.45em; padding-left: 1.5em; }
.article-body li { padding-left: .15em; overflow-wrap: anywhere; }
.article-body li + li { margin-top: .35em; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; overflow-wrap: anywhere; }

.error-page { max-width: 48rem; padding: clamp(5rem, 12vw, 10rem) 0; }
.error-page p:not(.eyebrow) { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

@media (max-width: 48rem) {
  .site-header, .site-footer, main { width: min(100% - 1.25rem, 72rem); }
  .year-group { grid-template-columns: 1fr; gap: 2rem; }
  .year { position: static; }
  .article-card { grid-template-columns: 1fr; }
  .card-media { min-height: 12rem; aspect-ratio: 16 / 9; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
