:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #1a1a1a;
  --text: #f2f0ea;
  --muted: #a5a5a2;
  --border: #343638;
  --red: #d72638;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}
header,
main,
footer,
.preview {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -2px;
  text-decoration: none;
}
.brand span {
  color: var(--red);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.document {
  overflow-wrap: anywhere;
}
html[dir="rtl"] .document a {
  direction: ltr;
  unicode-bidi: isolate;
}
nav a {
  padding: 10px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
nav a:hover,
nav a[aria-current] {
  color: var(--text);
}
.preview {
  border-inline-start: 2px solid #e3b341;
  margin-block: 24px;
  padding: 8px 16px;
  color: #e3b341;
  font-size: 13px;
}
.hero {
  padding: 55px 0 42px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 20px;
}
h1 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.07;
  letter-spacing: -2px;
  font-weight: 800;
  margin: 0 0 24px;
}
.subtitle {
  max-width: 610px;
  font-size: 21px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.metadata {
  font-size: 13px;
  color: var(--muted);
  margin: 28px 0 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  display: block;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.card:hover {
  border-color: var(--muted);
}
.number {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.card h2 {
  font-size: 21px;
  margin: 38px 0 12px;
  line-height: 1.4;
}
.card h2 span {
  float: right;
  font-weight: 400;
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.document {
  max-width: 760px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  overflow-wrap: anywhere;
}
.document h2 {
  font-size: 25px;
  line-height: 1.35;
  margin: 44px 0 18px;
  letter-spacing: -0.4px;
}
.document h3 {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 28px;
}
.document p,
.document li {
  color: #c5c5c1;
}
.document ul {
  padding-inline-start: 24px;
}
.document li {
  margin: 10px 0;
}
.document code {
  font-family: inherit;
  color: #e3b341;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  margin-top: 90px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 12px;
}
.action {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.notice {
  border-inline-start: 2px solid #e3b341;
  padding-inline-start: 16px;
  font-size: 14px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--text);
  color: var(--bg);
  z-index: 2;
}
.skip:focus {
  top: 10px;
}
bdi {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 720px) {
  header,
  main,
  footer,
  .preview {
    width: calc(100% - 40px);
  }
  header {
    min-height: 84px;
  }
  .brand {
    font-size: 30px;
  }
  nav {
    gap: 20px;
  }
  .hero {
    padding: 35px 0;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 24px;
  }
  .card h2 {
    margin-top: 20px;
  }
  .subtitle {
    font-size: 18px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
    margin-top: 56px;
  }
  .document h2 {
    font-size: 23px;
  }
  body {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  header,
  nav,
  .skip,
  footer {
    display: none;
  }
  main {
    width: 100%;
  }
  .hero {
    padding: 0 0 20px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: 0;
  }
  .document {
    max-width: none;
  }
  .document p,
  .document li,
  .subtitle,
  .metadata {
    color: #333;
  }
  .document h2 {
    break-after: avoid;
  }
  .document code {
    color: #333;
  }
  a {
    color: inherit;
  }
  .preview {
    color: black;
    border-color: black;
  }
}
