@font-face {
  font-family: DocumentGeist;
  src: url("/assets/brand/fonts/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: DocumentInter;
  src: url("/assets/brand/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #62625d;
  --canvas: #fafaf8;
  --paper: #fff;
  --line: #e8e8e5;
  --accent: #004f99;
  --soft: #f0f0ec;
  --focus: #3758d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: DocumentGeist, DocumentInter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

a:hover { color: #003d76; }

.shell { width: min(940px, calc(100% - 48px)); margin-inline: auto; }

header { background: var(--canvas); border-bottom: 1px solid var(--line); }

.header {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark { display: inline-flex; width: 84px; height: 60px; align-items: center; flex-shrink: 0; }
.wordmark img { display: block; width: 84px; height: 60px; object-fit: contain; }

nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--ink); }

main { padding-block: 56px 72px; }

h1, h2, h3 { font-family: DocumentGeist, DocumentInter, Arial, sans-serif; font-weight: 580; line-height: 1.2; letter-spacing: -.035em; }
h1 { max-width: 850px; margin: 0 0 28px; font-size: clamp(36px, 4.2vw, 48px); }
h2 { margin: 38px 0 16px; font-size: 27px; }
h3 { margin: 25px 0 12px; font-size: 21px; }
p, li { color: #444440; font-size: 16px; }
ul { padding-left: 24px; }
li { margin: 8px 0; }

.card, .notice {
  margin: 28px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.notice { background: var(--soft); }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 15px; }
th, td { padding: 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
code { overflow-wrap: anywhere; padding: 3px 6px; border-radius: 6px; background: var(--soft); }

.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 20px;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.back:hover { border-color: #d4d4cf; background: var(--soft); color: var(--ink); }
footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.metrika-pixel { position: absolute; left: -9999px; width: 1px; height: 1px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 8px; }

@media (max-width: 620px) {
  .shell { width: calc(100% - 36px); }
  .header { min-height: 0; align-items: flex-start; flex-direction: column; gap: 16px; padding: 18px 0; }
  .header nav { gap: 10px 16px; }
  .header nav a { font-size: 13px; }
  main { padding-top: 38px; }
  .card, .notice { padding: 20px; }
  h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
