:root {
  color-scheme: light dark;
  --background: #f6f5f2;
  --surface: #fff;
  --text: #24332d;
  --secondary: #59685f;
  --line: #dce3dc;
  --accent: #315e47;
  --soft: #edf3ed;
  --notice: #fff1d8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 5px; }
.skip { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--surface); }
.skip:focus { top: 16px; z-index: 2; }
.wrap { width: min(100% - 48px, 1040px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 23px; font-weight: 700; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 14px; }
nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); font-size: 15px; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.draft { margin-block: 0 28px; padding: 12px 18px; border-radius: 14px; background: var(--notice); color: #5b4622; font-size: 14px; }
.hero { padding-block: 54px 62px; max-width: 720px; }
.eyebrow { color: var(--secondary); font-size: 15px; font-weight: 600; letter-spacing: .035em; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.1; letter-spacing: -.04em; margin: 14px 0 24px; font-weight: 700; }
.lead { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.6; color: var(--secondary); max-width: 660px; }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 20px; min-height: 48px; padding: 10px 22px; background: var(--accent); color: #fff; border-radius: 16px; font-weight: 600; text-decoration: none; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; margin-bottom: 32px; max-width: 800px; }
.info h2 { margin-top: 0; font-size: 23px; letter-spacing: -.02em; }
.info p { margin-bottom: 0; color: var(--secondary); }
.reading { max-width: 740px; padding-block: 34px 32px; }
.reading h1 { font-size: clamp(32px, 4vw, 44px); }
.date { color: var(--secondary); font-size: 15px; }
.reading section { margin-top: 34px; }
.reading h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 12px; }
.reading p { margin: 0 0 16px; }
footer { border-top: 1px solid var(--line); margin-top: 32px; padding-block: 28px 40px; font-size: 15px; color: var(--secondary); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
footer p { margin-block: 8px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .top { display: block; padding-block: 20px 12px; }
  nav { gap: 0 20px; margin-top: 12px; }
  .draft { margin-bottom: 18px; }
  .hero { padding-block: 24px 40px; }
  .info { padding: 24px; border-radius: 20px; }
  .reading { padding-top: 18px; }
}
@media (prefers-color-scheme: dark) {
  :root { --background: #151e19; --surface: #1e2a23; --text: #eff4ef; --secondary: #bac9bf; --line: #3d4e42; --accent: #b2dbc0; --soft: #263b2d; --notice: #453a24; }
  .button { color: #1e3527; }
  .draft { color: #f2dfb9; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
