:root {
  color-scheme: light;
  --paper: #f3efe6;
  --paper-raised: #fbf9f3;
  --ink: #26332e;
  --muted: #69736e;
  --line: #d8d2c6;
  --accent: #c65e3a;
  --green: #5f7668;
  --shadow: 0 20px 45px rgba(55, 47, 36, .08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #19201d;
  --paper-raised: #222a26;
  --ink: #e9e5dc;
  --muted: #a8b0ab;
  --line: #38413c;
  --accent: #e5825f;
  --green: #9bb2a4;
  --shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
.shell { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 86px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.wordmark { font: 700 1.25rem/1 Georgia, serif; text-decoration: none; letter-spacing: -.02em; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: 24px; font-size: .92rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; }
.hero { padding: 110px 0 90px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); }
.lede { max-width: 680px; margin: 32px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); }
.section-block { padding: 70px 0 90px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: 2rem; }
.section-heading a { color: var(--muted); font-size: .9rem; }
.note-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
.note-card { min-height: 280px; padding: 26px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.note-card.featured { background: var(--green); color: #fff; border-color: transparent; }
.note-card h3 { margin: 42px 0 14px; font-size: 1.65rem; }
.note-card h3 a { text-decoration: none; }
.note-card p:last-child { margin-bottom: 0; opacity: .78; }
.meta { margin: 0; color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.featured .meta { color: rgba(255,255,255,.68); }
.quote-block { padding: 85px 0 95px; text-align: center; }
.quote-block p { margin: 0 0 12px; font: italic clamp(1.7rem, 4vw, 3.3rem)/1.25 Georgia, serif; }
.quote-block span { color: var(--muted); font-size: .85rem; }
.site-footer { padding: 34px 0 44px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer p { margin: 0; }
.reading-page { min-height: calc(100vh - 190px); padding: 90px 0 110px; }
.reading-page > h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
.reading-page.narrow { max-width: 780px; }
.entry { max-width: 760px; margin-top: 80px; padding-top: 38px; border-top: 1px solid var(--line); }
.entry h2, .archive-group h2, .prose h2 { margin: 12px 0 20px; font-size: 2.2rem; }
.entry p:not(.meta), .prose { font-family: Georgia, serif; font-size: 1.12rem; }
.archive-group { margin-top: 70px; }
.archive-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.archive-group li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.archive-group time { color: var(--muted); font-size: .85rem; }
.archive-group.muted { color: var(--muted); }
.prose { margin-top: 60px; }
.prose li { margin: .5rem 0; }
.missing-page { min-height: 100vh; display: grid; align-content: center; justify-items: start; }
.missing-page h1 { font-size: clamp(3rem, 8vw, 6rem); }
.missing-page > p:not(.eyebrow) { color: var(--muted); }
.button-link { display: inline-block; margin-top: 24px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 20px 0; }
  nav { grid-column: 1 / -1; grid-row: 2; gap: 18px; overflow-x: auto; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .hero { padding: 75px 0 65px; }
  .note-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 230px; }
  .site-footer { display: grid; gap: 8px; }
}
