:root {
  --maroon: #7a2238;
  --maroon-dark: #4e1524;
  --ink: #1d2230;
  --muted: #5b6573;
  --line: #e3e6ec;
  --bg: #f7f7f9;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
.wrap { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }

header.site { background: var(--card); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: .75rem; padding-top: .9rem; padding-bottom: .9rem; }
header.site a.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
header.site img { width: 36px; height: 36px; }
header.site nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .95rem; }
header.site nav a { text-decoration: none; color: var(--muted); }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--maroon); }

.hero { padding: 3.5rem 0 2.5rem; text-align: center; }
.hero img { width: 88px; height: 88px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: .6rem 0 .3rem; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

section { margin-bottom: 2.5rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
main.doc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.75rem 2rem; margin: 2rem auto 3rem; }
main.doc h1 { margin-top: 0; font-size: 2rem; }
.meta { color: var(--muted); font-size: .95rem; }
.note { background: #f3eef0; border-left: 4px solid var(--maroon); padding: .8rem 1rem; border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: .5rem 0 1rem; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: .5rem .6rem; }
th { background: var(--bg); }

footer.site { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .9rem; }
footer.site .wrap { padding-top: 1.2rem; padding-bottom: 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
footer.site .links { margin-left: auto; display: flex; gap: 1rem; }

@media (max-width: 560px) {
  header.site nav { gap: .8rem; font-size: .9rem; }
  main.doc { padding: 1.1rem 1.1rem 1.5rem; border-radius: 0; border-left: 0; border-right: 0; }
  footer.site .links { margin-left: 0; }
}
