:root {
  color-scheme: light;
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dbe2ea;
  --blue: #1769e0;
  --blue-soft: #eaf2ff;
  --danger: #a33a3a;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.65; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid rgba(23, 105, 224, .28); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--ink); color: white; }
.skip:focus { top: 12px; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: 0; }
.mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; background: #07172e; border: 1px solid #207ce7; font-size: 14px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }

main { padding: 72px 0 88px; }
.hero { padding: 20px 0 56px; max-width: 820px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
h1, h2, h3 { line-height: 1.2; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); font-weight: 760; }
h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); }
h3 { margin: 0 0 8px; font-size: 18px; }
.lede { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.button.primary { border-color: var(--blue); background: var(--blue); color: white; }

.band { border-top: 1px solid var(--line); padding: 44px 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card p, .muted { color: var(--muted); }
.document { max-width: 840px; }
.document section { padding: 28px 0; border-top: 1px solid var(--line); }
.document section:first-of-type { border-top: 0; }
.document p, .document li { color: #384454; }
.document li + li { margin-top: 7px; }
.notice { margin: 24px 0; padding: 15px 17px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: #234064; }
.danger { border-left-color: var(--danger); background: #fff2f2; color: #6e2c2c; }
.meta { margin-top: 18px; color: var(--muted); font-size: 13px; }
.lang-block { margin-top: 42px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding: 28px 0 38px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav { align-items: flex-start; flex-direction: column; padding: 16px 0; gap: 12px; }
  .nav-links { justify-content: flex-start; }
  main { padding-top: 44px; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
