:root {
  color-scheme: light dark;
  --bg: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 2px; }
header, main, footer { width: min(100% - 64px, 960px); margin-inline: auto; }
header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
nav { display: flex; gap: 28px; font-size: 14px; }
nav a { color: var(--muted); text-decoration: none; padding-block: 12px; }
nav a[aria-current="page"] { color: var(--ink); }
main { padding-block: 56px 64px; }
h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 16px; }
h2 { font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 16px; }
p { margin: 0 0 14px; }
.intro { font-size: 17px; color: var(--muted); max-width: 660px; margin-bottom: 40px; }
.card { border-top: 1px solid var(--line); padding-block: 30px; }
.card p, .card ol, .card ul { max-width: 740px; }
.card > :last-child { margin-bottom: 0; }
.card ol, .card ul { padding-left: 22px; margin-block: 0 16px; }
li { padding-left: 4px; }
li + li { margin-top: 8px; }
li::marker { color: var(--muted); }
strong { font-weight: 600; }
.date { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.contact { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding-block: 24px 36px; color: var(--muted); font-size: 12px; line-height: 1.9; }
footer a { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161617; --ink: #f5f5f7; --muted: #a1a1a6; --line: #424245; --soft: #1d1d1f; }
}
@media (max-width: 520px) {
  header, main, footer { width: calc(100% - 40px); }
  header { min-height: 76px; gap: 16px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand img { width: 34px; height: 34px; border-radius: 8px; }
  nav { gap: 16px; font-size: 13px; }
  main { padding-block: 36px 40px; }
  .intro { margin-bottom: 32px; }
  .card { padding-block: 26px; }
}
