:root {
  color-scheme: light;
  --paper: #fbf9f5;
  --ink: #373c30;
  --muted: #696d60;
  --line: #e4e5d9;
  --orange: #b95128;
  --leaf: #52724c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--orange); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; border-radius: 2px; }
::selection { background: #f4d9b4; color: #333b2d; }
.page { width: min(100% - 64px, 720px); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; letter-spacing: 1px; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--orange); color: #fffaf0; font-family: Georgia, serif; font-size: 23px; letter-spacing: -2px; padding-right: 2px; }
nav { display: flex; gap: 25px; font-size: 14px; color: var(--muted); }
.intro { padding: 66px 0 61px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; color: var(--leaf); font-size: 11px; letter-spacing: 2px; font-weight: 600; }
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
h1 { margin: 0 0 19px; font-size: clamp(30px, 6vw, 40px); font-weight: 650; line-height: 1.4; letter-spacing: -1px; }
.accent { color: var(--orange); margin-left: 3px; }
.intro-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.95; }
.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
h2 { margin: 0; font-size: 14px; font-weight: 600; }
.section-heading > span { font-size: 12px; color: var(--muted); }
.entry { padding: 29px 0 27px; border-bottom: 1px solid var(--line); }
.entry-meta { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.entry-meta time { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.entry-meta > span { color: var(--leaf); }
h3 { margin: 11px 0 12px; font-size: 20px; line-height: 1.6; font-weight: 600; letter-spacing: -.2px; }
.entry p, .about p { margin: 9px 0 0; font-size: 14px; color: var(--muted); line-height: 1.95; overflow-wrap: anywhere; }
.about { padding: 32px 0 40px; }
.about h2 { color: var(--ink); margin-bottom: 12px; }
.about .about-note { color: var(--leaf); margin-top: 12px; font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.site-footer a { text-underline-offset: 4px; }
.site-footer a:hover { text-decoration: underline; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--paper); padding: 10px 16px; z-index: 2; }
.skip-link:focus { top: 12px; }
.error-content { padding: 80px 0; }
.error-content p { line-height: 1.9; color: var(--muted); }
.error-content a { display: inline-block; color: var(--orange); margin-top: 15px; }

@media (max-width: 520px) {
  .page { width: calc(100% - 40px); }
  .site-header { padding: 23px 0; }
  .intro { padding: 48px 0 44px; }
  h1 { letter-spacing: -.5px; }
  .entry { padding: 25px 0; }
  h3 { font-size: 19px; }
  .about { padding: 28px 0 32px; }
  .site-footer { flex-wrap: wrap; column-gap: 20px; row-gap: 8px; padding-bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}
