:root {
  --bg: #f6f1e7; --surface: #fffdf8; --ink: #1d1a15; --muted: #6a6256;
  --line: #e2d9c8; --accent: #137f95; --accent-ink: #ffffff; --brass: #b4892f;
  --radius: 10px; --max: 760px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15130f; --surface: #1f1c17; --ink: #efe8da; --muted: #a59b8a;
    --line: #353027; --accent: #4fb6c9; --accent-ink: #0d1416; --brass: #d4ab55; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
main { padding: 40px 0 64px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.meta { color: var(--muted); font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 16px 0; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid .card { margin: 0; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.app-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.app-head img { width: 84px; height: 84px; border-radius: 20px; flex: none; }
table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
.flush { margin: 0; }
.byline { margin: 4px 0 0; }
section { scroll-margin-top: 16px; }
section + section { margin-top: 48px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { margin-left: 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
