:root {
  --bg: #f7f5f0;
  --surface: #fffdf9;
  --ink: #1f2a24;
  --muted: #5d6b62;
  --accent: #2f6b4f;
  --line: #e3ddd2;
  --radius: 14px;
  --max: 760px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a17;
    --surface: #1a221e;
    --ink: #e9ece7;
    --muted: #9aa79e;
    --accent: #86c5a3;
    --line: #28322c;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

/* --- header --- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600;
  letter-spacing: .01em;
}
.brand svg { width: 26px; height: 26px; fill: var(--accent); flex: none; }
.brand small { font-weight: 400; color: var(--muted); font-size: 13px; letter-spacing: 0; }

.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 560px) {
  .brand small { display: none; }
  .nav { gap: 12px; font-size: 14px; }
}

/* --- hero --- */

.hero { padding: 56px 0 40px; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  font-weight: 500;
}
.hero p { margin: 0; color: var(--muted); max-width: 56ch; font-size: 18px; }

.hero-art {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #dfe9df, #f0ece1 55%, #e8dfd2);
  display: block;
  width: 100%;
  height: auto;
}
@media (prefers-color-scheme: dark) {
  .hero-art { background: linear-gradient(160deg, #1d2a23, #202a26 55%, #2a2622); }
}

/* --- sections --- */

.section { padding: 12px 0 40px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px; font-weight: 500; margin: 0;
}
.section-head a { font-size: 14px; }

/* --- cards --- */

.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(31 42 36 / 8%); }
.card figure { margin: 0; background: var(--line); aspect-ratio: 16 / 9; }
.card svg { display: block; width: 100%; height: 100%; }
.card .body { padding: 14px 16px 18px; }
.card time { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 6px 0 6px; font-size: 17px; line-height: 1.35; font-weight: 600; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

/* --- prose --- */

.prose { max-width: 68ch; }
.prose h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500; font-size: 26px; margin: 40px 0 12px;
}
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic;
}
.prose img, .prose svg.wide { max-width: 100%; height: auto; border-radius: var(--radius); }

.lede { font-size: 19px; color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* --- list --- */

.entries { list-style: none; margin: 0; padding: 0; }
.entries li { border-top: 1px solid var(--line); }
.entries li:last-child { border-bottom: 1px solid var(--line); }
.entries a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 2px; text-decoration: none; color: var(--ink);
}
.entries a:hover { color: var(--accent); }
.entries time { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* --- footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px; padding: 28px 0 40px;
  color: var(--muted); font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
