:root {
  --bg: #f7f5f0; --ink: #1a1a1a; --muted: #5c5c5c; --line: #ddd6c8;
  --accent: #0b6e4f; --card: #fff; --warn: #8a5a00;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
header, main, footer { max-width: 720px; margin: 0 auto; padding: 1.25rem 1.1rem; }
.brand { font-family: var(--ui); font-weight: 700; margin: 0; }
.brand a { color: inherit; text-decoration: none; }
.tag { font-family: var(--ui); color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0 0; }
h1 { font-size: 1.85rem; line-height: 1.25; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.lede { font-size: 1.05rem; color: #333; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; margin: 1.2rem 0; }
.card h2 { margin: 0.2rem 0 0.5rem; }
.card a { color: var(--accent); }
.kw { font-family: var(--ui); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0; }
.meta-box { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; font-family: var(--ui); font-size: 0.95rem; }
.small { color: var(--muted); font-size: 0.88rem; }
.breadcrumb { font-family: var(--ui); font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--accent); }
pre { background: #1e2430; color: #e8eef7; padding: 0.85rem 1rem; border-radius: 8px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; }
code { font-family: var(--mono); font-size: 0.9em; }
.ad-slot, .aff-slot {
  border: 1px dashed #b9a88a; background: #fff8e8; border-radius: 8px;
  padding: 0.85rem 1rem; margin: 1.25rem 0; font-family: var(--ui); font-size: 0.9rem;
}
.ad-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--warn); margin: 0 0 0.35rem; font-weight: 700; }
.disclosure { font-size: 0.82rem; color: var(--muted); }
footer { font-family: var(--ui); font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }
footer a { color: var(--accent); }
.related { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--ui); }
.related h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.related ul { padding-left: 1.1rem; margin: 0; }
.related a { color: var(--accent); }
.tool-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; font-family: var(--ui); }
.tool-box label { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.65rem; }
.tool-box input, .tool-box select { width: 100%; padding: 0.45rem 0.5rem; margin-top: 0.2rem; border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); }
.tool-box button { margin-top: 0.9rem; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 0.55rem 0.9rem; font-weight: 600; cursor: pointer; }
.tool-out { margin-top: 0.75rem; background: #1e2430; color: #e8eef7; padding: 0.75rem; border-radius: 8px; font-family: var(--mono); font-size: 0.82rem; white-space: pre-wrap; }
