:root {
  --bg: #fbf9f4;
  --surface: #ffffff;
  --text: #24302a;
  --muted: #5f6d64;
  --accent: #3f7d4e;
  --accent-soft: #e6f0e4;
  --line: #e7e2d6;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161a17;
    --surface: #1d221e;
    --text: #e6ebe6;
    --muted: #9aa69d;
    --accent: #7dbb8a;
    --accent-soft: #23302550;
    --line: #2c332d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 64px; }

.hero h1 { font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 34em; }

.section-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 48px 0 16px; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.post-card h2 { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.35; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 10px; font-size: 0.78rem; margin-left: 6px; }

article h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; }
article h2 { font-size: 1.2rem; margin: 32px 0 8px; }
article ul, article ol { padding-left: 1.3em; }
article li { margin: 4px 0; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 18px; margin: 20px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 0.93rem; color: var(--muted);
}
.facts strong { color: var(--text); font-weight: 600; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); margin: 24px 0; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.7rem; }
  article h1 { font-size: 1.55rem; }
}
