:root {
  --bg: #f7f3ec;
  --paper: #fffdf9;
  --ink: #2b2620;
  --muted: #6f655a;
  --line: #e4dccf;
  --accent: #b5592a;
  --accent-soft: #f3e3d6;
  --green: #4e6b3a;
  --wood: #c99a62;
  --roof: #7a3b22;
  --sky: #dbe8ef;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1915;
    --paper: #24201b;
    --ink: #ece4d8;
    --muted: #a99d8e;
    --line: #3a332b;
    --accent: #e08a55;
    --accent-soft: #3a2a1f;
    --green: #8fb070;
    --wood: #a87c4a;
    --roof: #8f4a2c;
    --sky: #2a3a44;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 Georgia, "PT Serif", "Times New Roman", serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font: 700 20px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.logo svg { width: 34px; height: 34px; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
nav.main a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 0 0 12px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0; }
.hero-art { margin: 28px 0 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }

h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 36px 0 8px; }
h2 { font-size: 25px; line-height: 1.3; margin: 40px 0 10px; }
h3 { font-size: 20px; margin: 26px 0 6px; }
.meta { font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted); }

main { padding-bottom: 48px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 24px 0; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.card h3 { margin-top: 4px; }
.card p { margin: 6px 0 0; color: var(--muted); }
.card a.more { display: inline-block; margin-top: 10px; font: 15px system-ui, -apple-system, "Segoe UI", sans-serif; }

.post {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; margin: 22px 0;
}
.post h2 { margin-top: 4px; }
.tag {
  display: inline-block; font: 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .03em;
  background: var(--accent-soft); color: var(--accent); padding: 5px 8px; border-radius: 20px; margin-right: 6px;
}

.progress { margin: 26px 0; }
.stage { display: grid; grid-template-columns: 140px 1fr 48px; gap: 12px; align-items: center; margin: 10px 0;
  font: 15px system-ui, -apple-system, "Segoe UI", sans-serif; }
.bar { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.stage .pct { text-align: right; color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; border-bottom: none; }
.table-scroll { overflow-x: auto; }

blockquote {
  margin: 22px 0; padding: 12px 18px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0;
}
.note { font-size: 15px; color: var(--muted); }

ul.checks { padding-left: 0; list-style: none; }
ul.checks li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

footer.site { border-top: 1px solid var(--line); background: var(--paper); }
footer.site .wrap { padding-top: 22px; padding-bottom: 28px; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stage { grid-template-columns: 100px 1fr 40px; }
  .post { padding: 16px; }
}
