:root {
  --bg: #f5efe3; --surface: #fffaf1; --ink: #1b1f1d; --ink-2: #4a514d; --line: #dccfb8;
  --tile: #fff6e6; --tile-edge: #e2cfae; --tile-ink: #2a221a; --brand: #0f6b62; --brand-soft: #d7ebe6;
  --sans: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412; --surface: #172019; --ink: #eef2ec; --ink-2: #a9b5ad; --line: #26322c;
    --tile: #f3e6cc; --tile-edge: #b9a27a; --tile-ink: #231c13; --brand: #5fd3c2; --brand-soft: #18302b;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(780px, 100% - 40px); margin-inline: auto; }
header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; }
.logo b { color: var(--brand); }
.tile { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 7px;
  background: var(--tile); color: var(--tile-ink); font-weight: 800; font-size: 16px; box-shadow: 0 2px 0 var(--tile-edge); }
.tile sub { position: absolute; right: 3px; bottom: 1px; font-size: 8px; opacity: .7; }
.lang { font-size: 14px; font-weight: 700; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); }
main { padding: 56px 0 72px; }
h1 { font-family: var(--serif); font-size: clamp(36px, 6vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
.meta { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.summary { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.summary ul { margin-top: 8px; padding-left: 20px; }
nav.toc { margin-top: 28px; }
nav.toc ol { padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
nav.toc a { color: var(--ink-2); text-decoration: none; }
nav.toc a:hover { color: var(--ink); text-decoration: underline; }
h2 { margin-top: 48px; font-family: var(--serif); font-size: 27px; line-height: 1.2; letter-spacing: -.01em; }
h3 { margin-top: 24px; font-size: 17px; }
p, ul, ol, table { margin-top: 12px; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
th { background: color-mix(in srgb, var(--line) 35%, transparent); border-top: 0; font-size: 14px; }
.note { padding: 16px 18px; border-radius: 16px; background: var(--brand-soft); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
footer { padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer a { color: inherit; font-weight: 600; text-decoration: none; }
@media (max-width: 640px) { nav.toc ol { columns: 1; } th, td { padding: 9px 10px; } }
