/* Leafront site: paper and ink, one leaf green. System fonts only (no external fonts, CDN or analytics). */
:root {
  --paper: #f7f5ee;
  --ink: #1f2a22;
  --muted: #5d6a60;
  --line: #d9d6cb;
  --leaf: #2f6b3f;
  --measure: 44rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
}
a { color: var(--leaf); text-underline-offset: 0.2em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem; }

.site-head { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.wordmark svg { width: 1.6rem; height: 1.6rem; }
.site-nav { display: flex; gap: 1rem; font-size: 0.95rem; }

.doc { padding-bottom: 4rem; }
.doc-head { border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; padding-bottom: 1rem; }
.label { color: var(--leaf); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { font-size: 1.8rem; line-height: 1.3; margin: 0.25rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.num { color: var(--leaf); font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; margin-right: 0.6em; }
.meta, .note { color: var(--muted); font-size: 0.9rem; }
.points { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1rem 1rem 2.25rem; }
.toc { font-size: 0.95rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-weight: 600; }
tbody th { font-weight: 600; width: 38%; }
.hero h1 { font-size: 2rem; margin-top: 2rem; }

.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 1.5rem 0 2.5rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-foot p { margin: 0.75rem 0 0; }
