:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e0ea;
  --soft: #f6f8fb;
  --accent: #315fdb;
  --accent2: #4f7cff;
  --navy: #171b24;
  --success: #176b47;
  --warning: #8a5a00;
  --danger: #9b2c2c;
  --max: 1120px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  border: 2px solid var(--accent);
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-icon {
  width: 34px;
  height: 34px;
  display: block;
}
.site-header nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-header nav a,
.site-footer nav a {
  color: #334155;
  text-decoration: none;
  border-radius: 6px;
}
.site-header nav a {
  padding: 0.45rem 0.65rem;
  font-size: 0.94rem;
}
.site-header nav a[aria-current="page"] {
  background: #eef3ff;
  color: #173f9f;
}
.site-header nav a:hover,
.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #9abdf5;
  outline-offset: 2px;
}
.page-shell {
  padding-block: 4.4rem 5rem;
}
.page-shell > h1:first-child {
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 880px;
  margin: 0 0 1.35rem;
}
.page-shell > h1:first-child + p {
  font-size: 1.2rem;
  max-width: 820px;
  color: #39465a;
}
.page-shell h2 {
  font-size: 1.65rem;
  line-height: 1.2;
  margin-top: 3.2rem;
  letter-spacing: -0.02em;
}
.page-shell h3 {
  line-height: 1.25;
}
.page-shell p,
.page-shell li {
  max-width: 820px;
}
.page-shell a {
  color: #174aa8;
  text-underline-offset: 3px;
}
.button {
  display: inline-block;
  border: 1px solid #aeb8c8;
  padding: 0.7rem 1rem;
  border-radius: 7px;
  text-decoration: none !important;
  font-weight: 650;
  margin: 0.4rem 0.45rem 0.3rem 0;
  color: #243044 !important;
  background: #fff;
}
.button.primary {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff !important;
}
.concept-grid,
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 2.3rem;
}
.concept-card,
.doc-card,
.release-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 8px 28px rgba(20, 35, 60, 0.055);
}
.concept-card {
  border-top: 4px solid var(--accent2);
}
.concept-card h3,
.doc-card h3 {
  margin-top: 0;
}
.doc-card a {
  text-decoration: none;
}
.doc-card a:hover {
  text-decoration: underline;
}
.notice {
  background: var(--soft);
  box-shadow: none;
}
.notice.beta {
  border-left: 4px solid var(--accent2);
}
.notice.warning {
  border-left: 4px solid #d18a00;
}
.notice.draft {
  border-left: 4px solid #8d5ec7;
}
.release-card dl {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 0.45rem 1rem;
}
.release-card dt {
  font-weight: 650;
}
.release-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.release-history-item {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.release-history-item:first-of-type {
  margin-top: 1.5rem;
}
.release-publications {
  line-height: 2;
}
.release-verification {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.release-verification summary {
  cursor: pointer;
  font-weight: 700;
}
.release-verification dl {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 0.45rem 1rem;
}
.release-verification dt {
  font-weight: 650;
}
.release-verification dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eef3ff;
  color: #244caa;
}
.muted {
  color: var(--muted);
}
code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  background: #f1f4f8;
  border-radius: 4px;
  padding: 0.08rem 0.25rem;
}
pre {
  overflow: auto;
  background: #111720;
  color: #e7edf7;
  padding: 1rem;
  border-radius: 8px;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}
table {
  border-collapse: collapse;
  max-width: 100%;
  display: block;
  overflow: auto;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 2rem 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}
.site-footer nav {
  display: flex;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-footer nav a {
  font-size: 0.9rem;
}
.legal h1,
.support h1,
.release h1,
.guide h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem) !important;
}
.legal h2 {
  font-size: 1.35rem;
}
.legal-status {
  font-weight: 700;
}
.hash {
  font-family: "Courier New", monospace;
  word-break: break-all;
}
@media (max-width: 800px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding-block: 0.75rem;
  }
  .site-header {
    position: static;
  }
  .site-header nav {
    justify-content: flex-start;
  }
  .site-header nav a {
    padding: 0.3rem 0.45rem;
  }
  .page-shell {
    padding-block: 3rem 4rem;
  }
  .concept-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
  .release-card dl {
    grid-template-columns: 1fr;
  }
  .release-card dd,
  .release-verification dd {
    margin-bottom: 0.55rem;
  }
  .release-verification dl {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.contact-form {
  max-width: 760px;
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.contact-form > label {
  display: block;
  font-weight: 650;
  margin: 1.25rem 0 0.35rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb8c8;
  border-radius: 7px;
  padding: 0.7rem 0.8rem;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid #9abdf5;
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-topics {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
}
.contact-topics legend {
  font-weight: 700;
}
.contact-topics label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 1.1rem 0.35rem 0;
}
.contact-topics input {
  width: 1.05rem;
  height: 1.05rem;
}
.field-help {
  margin: 0.2rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.required {
  font-size: 0.8rem;
  font-weight: 650;
  color: #6b4b00;
}
.cf-turnstile {
  margin: 1.35rem 0;
}
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-status {
  max-width: 760px;
  margin: 1.5rem 0;
}
.contact-form .button {
  font: inherit;
  cursor: pointer;
}
