:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --panel: #15171c;
  --line: #2a2e36;
  --text: #f4f6f8;
  --muted: #a6adb8;
  --accent: #ff2d1f;
  --link: #ffb300;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header,
.site-footer {
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 1px;
  background: rgba(12, 13, 16, 0.94);
}

.site-footer {
  border-width: 1px 0 0;
}

.nav,
.footer-inner,
main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #08090b;
  font-weight: 900;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  padding: 64px 0;
}

.hero {
  max-width: 760px;
  padding-bottom: 24px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.3rem, 8vw, 4.8rem);
}

h2 {
  margin: 44px 0 14px;
  font-size: 1.8rem;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.22rem;
}

p,
li {
  color: var(--muted);
}

.lead {
  font-size: 1.2rem;
  color: #d7dbe1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.doc {
  max-width: 820px;
}

.language-block {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 10px;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

ul {
  padding-left: 1.25rem;
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  main {
    padding: 42px 0;
  }
}
