:root {
  --bg: #f7f8fa; --surface: #ffffff; --text: #161b22; --muted: #59636e;
  --border: #d8dee4; --accent: #0f766e; --accent-soft: #e6f4f1; --code-bg: #eef2f6; --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --surface: #151b23; --text: #e6edf3; --muted: #8b949e;
    --border: #2b333e; --accent: #4fd1a5; --accent-soft: #132c28; --code-bg: #1c232d;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; line-height: 1.65; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand svg { width: 26px; height: 26px; display: block; }
.nav { display: flex; gap: 1.25rem; font-size: 0.94rem; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); text-decoration: none; }
main { padding: 2.5rem 0 3.5rem; }
.hero { margin-bottom: 2.25rem; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 0.2rem 0.55rem; border-radius: 999px; margin-bottom: 0.75rem; }
h1 { margin: 0 0 0.75rem; font-size: clamp(1.7rem, 4vw, 2.25rem); line-height: 1.2; }
h2 { margin: 1.9rem 0 0.8rem; font-size: 1.28rem; }
h3 { margin: 0 0 0.4rem; font-size: 1.04rem; }
.lead { color: var(--muted); font-size: 1.04rem; max-width: 62ch; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.card, .post-item, .tool-box, article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.card p, .post-item p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.94rem; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.post-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.post-title { font-size: 1.08rem; font-weight: 600; color: var(--text); }
article { padding: 1.7rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.12rem 0.35rem; border-radius: 5px; }
pre { background: var(--code-bg); padding: 1rem; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.84rem; text-transform: uppercase; }
.tool-box { margin-bottom: 1.4rem; }
.controls { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-end; margin: 0.85rem 0 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 120px; }
.field label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
input[type="number"], select { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 0.48rem 0.65rem; font-size: 0.95rem; }
button { background: var(--accent); color: #0b1412; border: none; border-radius: 7px; padding: 0.52rem 1rem; font-size: 0.93rem; font-weight: 600; cursor: pointer; }
.result-banner { background: var(--code-bg); border-radius: 8px; padding: 0.75rem 1rem; font-family: ui-monospace, monospace; font-size: 0.96rem; }
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: 0.86rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
