:root {
  color-scheme: dark;
  --canvas: #090c10;
  --canvas-deep: #05070a;
  --surface: rgba(10, 15, 21, 0.88);
  --surface-raised: rgba(14, 21, 29, 0.94);
  --ink: #edf4f8;
  --muted: #a9bac5;
  --muted-deep: #71828e;
  --line: rgba(193, 214, 225, 0.18);
  --line-strong: rgba(193, 214, 225, 0.35);
  --blue: #56aaff;
  --blue-quiet: #193d5c;
  --amber: #f1aa42;
  --amber-quiet: #5c4018;
  --red: #ef6d63;
  --green: #65c49c;
  --max-width: 1180px;
  --edge: clamp(1.25rem, 4vw, 4rem);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(84, 170, 255, 0.035) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(180deg, rgba(239, 244, 248, 0.025) 1px, transparent 1px) 0 0 / 68px 68px,
    radial-gradient(circle at 15% -12%, rgba(49, 116, 173, 0.21), transparent 31rem),
    radial-gradient(circle at 100% 18%, rgba(159, 103, 25, 0.13), transparent 30rem),
    var(--canvas);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.013) 0 1px, transparent 1px 4px);
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration-color: rgba(86, 170, 255, 0.62);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

button,
code,
pre,
.brand,
.eyebrow,
.nav-link,
.data-label,
.status-label,
.guide-kicker,
.section-index,
.tag,
.footer-title,
.breadcrumbs,
.facts dt,
.facts dd,
.site-meta,
.menu-button {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: -4rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--canvas);
  background: var(--amber);
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(18px);
}

.site-header-inner,
.page-shell,
.site-footer-inner {
  width: min(100% - (var(--edge) * 2), var(--max-width));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  min-height: 4.9rem;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.68rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-decoration: none;
}

.brand::before {
  width: 0.58rem;
  height: 0.58rem;
  content: "";
  border: 1px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(86, 170, 255, 0.13), 0 0 18px rgba(86, 170, 255, 0.65);
}

.brand small {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted-deep);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 4.9rem;
  padding: 0 0.86rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  border-color: var(--blue);
  background: linear-gradient(180deg, transparent, rgba(86, 170, 255, 0.08));
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.page-shell {
  padding-block: clamp(2.6rem, 6vw, 5.8rem) 4rem;
}

.breadcrumbs {
  margin: 0 0 1rem;
  color: var(--muted-deep);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.breadcrumbs a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(2rem, 5vw, 5.8rem);
  align-items: start;
  padding-bottom: clamp(2.9rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow,
.guide-kicker,
.section-index {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.7rem, 5.5vw, 5.45rem);
  font-weight: 750;
  letter-spacing: -0.065em;
}

h2 {
  max-width: 25ch;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  font-weight: 730;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
  font-weight: 720;
}

.lede {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.75;
}

.status-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 170, 66, 0.54);
  background: linear-gradient(135deg, rgba(86, 170, 255, 0.06), rgba(241, 170, 66, 0.06)), var(--surface);
  box-shadow: var(--shadow);
}

.status-panel::after {
  position: absolute;
  top: 0;
  right: 1.2rem;
  width: 72px;
  height: 2px;
  content: "";
  background: var(--amber);
  box-shadow: 0 0 18px rgba(241, 170, 66, 0.62);
}

.status-panel-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line);
}

.status-panel-heading h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.tag {
  display: inline-block;
  padding: 0.23rem 0.46rem;
  color: #171006;
  background: var(--amber);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.facts {
  margin: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.75fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt,
.facts dd {
  margin: 0;
  font-size: 0.77rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  color: var(--amber);
  text-align: right;
}

.facts dd code {
  color: inherit;
}

.hero-note {
  margin: 0;
  padding: 0 1.35rem 1.2rem;
  color: var(--muted-deep);
  font-size: 0.78rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.section-index {
  margin-top: 0.5rem;
  color: var(--muted-deep);
}

.section-heading p:last-child {
  max-width: 48rem;
  margin: -0.35rem 0 0;
  color: var(--muted);
}

.guide-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-lane {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.guide-lane.player {
  border-color: rgba(86, 170, 255, 0.67);
}

.guide-lane.developer {
  border-color: rgba(241, 170, 66, 0.67);
}

.guide-lane-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.guide-lane-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.guide-lane.player h2,
.guide-lane.player .guide-kicker {
  color: var(--blue);
}

.guide-lane.developer h2,
.guide-lane.developer .guide-kicker {
  color: var(--amber);
}

.guide-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li + li {
  border-top: 1px solid var(--line);
}

.guide-list a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 4.4rem;
  padding: 0.8rem 1.4rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.guide-list a:hover {
  background: rgba(255, 255, 255, 0.035);
}

.guide-icon {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--blue);
  font-size: 0.9rem;
  line-height: 1;
}

.developer .guide-icon {
  color: var(--amber);
}

.guide-list strong,
.guide-list small {
  display: block;
}

.guide-list strong {
  font-size: 0.96rem;
}

.guide-list small {
  margin-top: 0.1rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
}

.arrow {
  color: var(--muted);
  font-size: 1.35rem;
  transition: transform 150ms ease;
}

.guide-list a:hover .arrow {
  color: currentColor;
  transform: translateX(0.25rem);
}

.evidence-boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.evidence-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.4rem;
}

.evidence-item + .evidence-item {
  border-left: 1px solid var(--line-strong);
}

.evidence-symbol {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.evidence-item:last-child .evidence-symbol {
  border-color: var(--amber);
  color: var(--amber);
}

.evidence-item h3,
.evidence-item p {
  margin: 0;
}

.evidence-item p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.callout {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--amber);
  color: var(--muted);
  background: rgba(241, 170, 66, 0.07);
}

.callout strong {
  color: var(--ink);
}

.callout.info {
  border-color: var(--blue);
  background: rgba(86, 170, 255, 0.075);
}

.callout.danger {
  border-color: var(--red);
  background: rgba(239, 109, 99, 0.07);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #05070a;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1.3fr) repeat(2, minmax(9rem, 1fr));
  gap: 2rem;
  padding-block: 2.5rem;
}

.site-footer p {
  max-width: 30rem;
  margin: 0.4rem 0 0;
  color: var(--muted-deep);
  font-size: 0.83rem;
}

.footer-title {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--blue);
}

.site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin: 0;
  padding: 0.9rem 0;
  color: var(--muted-deep);
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
}

.site-meta span::before {
  margin-right: 0.45rem;
  color: var(--blue);
  content: "//";
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-body > * + * {
  margin-top: 1.35rem;
}

.article-body > h2 {
  margin-top: 3.35rem;
}

.article-body > h2:first-child {
  margin-top: 0;
}

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

.article-body h2,
.article-body h3,
.article-body strong {
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.article-body li + li {
  margin-top: 0.5rem;
}

.article-body code {
  padding: 0.15rem 0.3rem;
  color: #d9ecfa;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88em;
}

.article-body pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  color: #dcebf7;
  background: #05070a;
  box-shadow: inset 3px 0 0 var(--blue);
}

.article-body pre code {
  padding: 0;
  background: transparent;
}

.article-aside {
  position: sticky;
  top: 6.5rem;
  padding: 1rem 0.85rem 1rem 1rem;
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(86, 170, 255, 0.07), transparent 78%);
}

.article-aside h2 {
  margin-bottom: 0.85rem;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.article-aside ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: aside;
}

.article-aside li {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  counter-increment: aside;
  font-size: 0.8rem;
}

.article-aside li + li {
  margin-top: 0.75rem;
}

.article-aside li::before {
  color: var(--blue);
  content: "0" counter(aside);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.article-aside a {
  text-decoration: none;
}

.article-aside a:hover {
  color: var(--blue);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.status-card {
  padding: 1.35rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.status-card.source {
  box-shadow: inset 3px 0 0 var(--blue);
}

.status-card.manual {
  box-shadow: inset 3px 0 0 var(--amber);
}

.status-card.experimental {
  box-shadow: inset 3px 0 0 var(--red);
}

.status-card h3,
.status-card p {
  margin: 0;
}

.status-card p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-label {
  margin-bottom: 0.75rem !important;
  color: var(--blue) !important;
  font-size: 0.67rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual .status-label {
  color: var(--amber) !important;
}

.experimental .status-label {
  color: var(--red) !important;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.status-table th,
.status-table td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.status-table th {
  width: 28%;
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.73rem;
  font-weight: 500;
}

.status-table td {
  color: var(--ink);
}

.status-table td:last-child {
  color: var(--muted);
}

.status-chip {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.15rem 0.35rem;
  border: 1px solid currentColor;
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.65rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.status-chip.manual {
  color: var(--amber);
}

.status-chip.pending {
  color: var(--red);
}

.not-found {
  max-width: 44rem;
  padding-block: 9rem;
}

.not-found h1 {
  max-width: none;
}

@media (max-width: 1080px) {
  .site-header-inner {
    min-height: 4.25rem;
    gap: 1rem;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--edge);
    left: var(--edge);
    display: none;
    padding: 0.45rem;
    border: 1px solid var(--line-strong);
    background: rgba(5, 7, 10, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .nav-link {
    min-height: 3rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-color: var(--blue);
  }

  .hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2rem;
  }

  .article-aside {
    position: static;
    order: -1;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .section-index {
    margin-top: 0;
  }

  .guide-split,
  .evidence-boundary,
  .status-grid,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .evidence-item + .evidence-item {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --edge: 1.15rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 3.6rem);
  }

  .facts > div {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .facts dd {
    text-align: left;
  }

  .status-table,
  .status-table tbody,
  .status-table tr,
  .status-table th,
  .status-table td {
    display: block;
    width: 100%;
  }

  .status-table tr {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .status-table th,
  .status-table td {
    padding: 0.15rem 0;
    border: 0;
  }
}

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