:root {
  color-scheme: light;
  --page: #f7f7f5;
  --ink: #181817;
  --muted: #686863;
  --line: #d9d9d3;
  --card: #ffffff;
  --accent: #365a42;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121311;
  --ink: #f1f1eb;
  --muted: #aaa9a1;
  --line: #30312d;
  --card: #191a17;
  --accent: #b4d4b6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 1.5rem; }
.wordmark { font-weight: 750; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.04em; }
.wordmark span { color: var(--accent); }
.theme-toggle { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 100px; padding: .42rem .75rem; cursor: pointer; font: inherit; font-size: .86rem; }
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--ink); }
.theme-label { margin-left: .35rem; }
.intro { padding: 6.5rem 0 5.5rem; }
.eyebrow, .post-meta { color: var(--muted); font-size: .83rem; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow { margin: 0 0 1.3rem; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 680px; margin: 0; font-size: clamp(2.55rem, 8vw, 4.7rem); font-weight: 500; }
.lede { max-width: 535px; margin: 1.8rem 0 0; color: var(--muted); font-size: 1.08rem; }
.posts { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 0; color: var(--muted); }
.section-heading h2 { margin: 0; font-family: inherit; font-size: .82rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.section-heading p { margin: 0; font-size: .9rem; }
.post-card { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.1rem 0; text-decoration: none; transition: padding .18s ease, color .18s ease; }
.post-card:hover { padding-inline: .45rem; color: var(--accent); }
.post-card p { max-width: 520px; margin: .65rem 0 0; color: var(--muted); }
.post-card .post-meta { margin: 0; }
.post-card h3 { margin: .45rem 0 0; font-size: clamp(1.65rem, 4vw, 2.25rem); font-weight: 500; }
.arrow { font-size: 1.5rem; }
.site-footer { display: flex; justify-content: space-between; margin-top: 7rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 0; }

.article { max-width: 660px; padding: 4.5rem 0 3rem; }
.back { display: inline-block; margin-bottom: 3.5rem; color: var(--muted); text-underline-offset: .2em; }
.article-header { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); }
.article-copy { font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; line-height: 1.78; }
.article-copy p { margin: 1.55rem 0; }
.article-copy h2 { margin: 3rem 0 1rem; font-size: 1.9rem; font-weight: 500; }
.article-copy a { color: var(--accent); text-underline-offset: .18em; }
.article-image { margin: 2.3rem 0; }
.article-image img { display: block; width: 100%; height: auto; border-radius: .2rem; background: var(--card); }
.article-image figcaption { margin-top: .65rem; color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .84rem; line-height: 1.45; }

@media (max-width: 520px) {
  .wrap { width: min(100% - 2rem, 760px); }
  .intro { padding: 4rem 0; }
  .theme-label { display: none; }
  .article { padding-top: 2.5rem; }
}
