:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --panel: #151a16;
  --line: #343d35;
  --ink: #f3f0e7;
  --copy: #cbd2c8;
  --muted: #abb4a9;
  --gold: #c4a35a;
  --brass: #efcf88;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Bahnschrift", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(.875rem, 4vw, 3rem);
  --gap: clamp(.875rem, 2vw, 1.25rem);
  --pad: clamp(1rem, 2.4vw, 1.6rem);
  --radius: .375rem;
  --survey: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 420' fill='none' stroke='%23c4a35a'%3E%3Cg opacity='.22'%3E%3Cpath id='t' d='M640 38C567 32 546 86 476 84S383 12 303 49s-48 90-110 126S62 169 55 248s96 142 173 126 120 24 209 12 112-71 203-42'/%3E%3Cuse href='%23t' transform='matrix(.95 0 0 .88 32 30)'/%3E%3Cuse href='%23t' transform='matrix(.9 0 0 .78 64 57)'/%3E%3Cuse href='%23t' transform='matrix(.85 0 0 .65 96 87)'/%3E%3Cuse href='%23t' transform='matrix(.8 0 0 .54 128 119)'/%3E%3Cuse href='%23t' transform='matrix(.75 0 0 .42 160 147)'/%3E%3C/g%3E%3Cg opacity='.24'%3E%3Cpath d='M418 179v-16h16m112 0h16v16m0 92v16h-16m-112 0h-16v-16m64-46h16m-8-8v16M221 83h12m-6-6v12m80 236h10m-5-5v10'/%3E%3Ccircle cx='490' cy='225' r='40' stroke-dasharray='3 5'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--bg) radial-gradient(ellipse at top, #20271e, transparent 44rem) no-repeat;
  color: var(--copy);
  font: 1rem/1.6 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
:where(h1, h2, h3, p, ul, ol) { margin: 0; }
h1, h2, h3, strong { color: var(--ink); }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.14;
}
h1 { font-weight: 850; letter-spacing: -.05em; }
h2 { font-size: clamp(1.2rem, 2.6vw, 1.55rem); letter-spacing: -.025em; }
h3 { font-size: 1.125rem; }
a { color: var(--brass); text-underline-offset: .2em; }
a:hover { color: #ffe5ab; }
:focus-visible { outline: 2px solid #ffda88; outline-offset: 3px; }
code, kbd {
  font-family: var(--mono);
  border: 1px solid var(--line); border-radius: .2rem;
  padding: .06em .34em;
  color: var(--ink);
  background: #0d120e;
  font-size: .9em;
}
kbd { border-bottom-width: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 73rem); margin-inline: auto; }
main.wrap {
  flex: 1;
  min-width: 0;
  padding-block: clamp(1.3rem, 3.5vw, 2.8rem) clamp(2.6rem, 5vw, 4.5rem);
}
.site-header, .site-footer { background: #0f1310; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding: clamp(.5rem, 1vw, .72rem) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  color: var(--ink);
  font: 800 .9375rem/1.2 var(--display);
  letter-spacing: .09em;
  text-decoration: none;
}
.brand img { display: block; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; max-width: 100%; gap: .1rem; }
.site-nav a {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 2.75rem; min-height: 2.75rem;
  padding: 0 clamp(.2rem, 3vw - .53rem, .82rem);
  border-bottom: 2px solid transparent; border-radius: .2rem .2rem 0 0;
  color: var(--copy);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); background: #252419; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav a:focus-visible { outline-offset: -3px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding-block: 1rem;
  color: var(--muted);
  font-size: .8125rem;
}
.footer-row span { flex: 1 1 18rem; }
.footer-row a { margin-left: auto; padding-block: .55rem; }

.hero, .page-head {
  --pad: clamp(1.125rem, 4.25vw, 3.25rem);
  position: relative;
  isolation: isolate;
  padding: var(--pad);
  border: 1px solid #444c3c; border-radius: var(--radius);
  background: linear-gradient(116deg, #1c231c, #141a15 55%, #26281b);
  box-shadow: 0 .75rem 2rem #0004;
}
.hero::before, .page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #c4a35a16 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(#c4a35a16 1px, transparent 1px) 0 0 / 28px 28px,
    var(--survey) right -2rem center / auto max(100%, 26rem) no-repeat;
  opacity: .74;
  mask-image: linear-gradient(100deg, transparent 5%, #000 95%);
  pointer-events: none;
}
.hero::after, .page-head::after, .card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--pad);
  width: 3.75rem;
  border-top: 2px solid var(--gold);
  pointer-events: none;
}
.hero {
  display: grid;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.3rem);
  margin-bottom: var(--gap);
  padding-block: clamp(1.5rem, 5vw, 4rem);
}
.hero-text { min-width: 0; container-type: inline-size; }
.eyebrow {
  padding-bottom: .82rem;
  color: var(--brass);
  font: 700 .75rem/1.45 var(--mono); letter-spacing: .095em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.75rem, 8.5vw, 4.65rem);
  font-size: clamp(1.75rem, 11.7cqi, 4.65rem);
}
.lead { max-width: 58ch; margin-top: .78rem; font-size: clamp(1rem, 1.6vw, 1.13rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1.2rem; }
.actions:empty { display: none; }
.hero .actions { margin-block: 1.35rem 0; }
.btn, .more {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 750;
}
.btn {
  justify-content: center;
  padding: .55rem .875rem;
  border: 1px solid #879481; border-radius: .24rem;
  background: #1a211b;
  color: var(--ink);
  text-decoration: none;
}
.btn::after, .more::after, .console::before {
  content: "";
  flex: none;
  display: inline-block;
  width: .42rem; height: .42rem;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
}
.btn:hover { background: #273027; border-color: var(--gold); color: var(--brass); }
.btn-primary {
  border-color: var(--gold);
  background: linear-gradient(170deg, #e6c47a, var(--gold));
  color: #161208;
}
.btn-primary:hover { background: var(--brass); border-color: var(--brass); color: #161208; }

.status-card {
  min-width: 0;
  padding: clamp(.9rem, 2vw, 1.3rem);
  border: 1px solid #465145;
  border-top: 2px solid var(--signal); border-radius: var(--radius);
  background: linear-gradient(155deg, #202820, #101511 74%);
  box-shadow: 0 .65rem 1.4rem #0005;
  --signal: #e7a892;
  --halo: #e7a89233;
}
.is-online { --signal: #8be5a3; --halo: #8be5a333; }
.is-offline strong { color: #ffe0d4; }
.status-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  font: 700 .8125rem/1.35 var(--mono); letter-spacing: .065em; text-transform: uppercase;
}
.status-head::after {
  content: "";
  margin-left: auto;
  width: 1.45rem; height: .6rem;
  background: repeating-linear-gradient(120deg, #acb69a50 0 2px, transparent 2px 5px);
}
.dot {
  flex: none;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 .2rem var(--halo);
}
.status-line { margin-top: .45rem; font: .875rem/1.55 var(--mono); }
.status-live { display: flex; align-items: baseline; gap: .55rem; font-size: .875rem; }
.status-card .status-live { margin-top: .75rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.page-head + .status-live {
  margin-bottom: var(--gap);
  padding: .7rem .9rem;
  border: 1px solid #734943; border-radius: var(--radius);
  background: #241918;
}

.badge {
  display: inline-block;
  flex: none;
  padding: .22em .52em;
  border: 1px solid; border-radius: .2rem;
  font: 750 .75rem/1.35 var(--mono); letter-spacing: .065em; text-transform: uppercase;
}
.badge-live { background: #9d302f; color: #fff5f3; border-color: #ca635e; }
.badge-shipped { background: #1c3527; color: #b9ecc4; border-color: #557c60; }
.badge-working { background: #382d18; color: #f9d794; border-color: #8a7245; }
.console {
  display: inline-block;
  max-width: 100%;
  padding: .52rem .62rem;
  border-color: #3a483c;
  border-left-color: var(--gold);
  font-size: .8125rem;
  line-height: 1.45;
}
.console::before { margin-inline: .06rem .55rem; color: var(--gold); vertical-align: .12em; }
.status-card .console { display: block; margin-top: .9rem; }

.grid-2, .grid-auto { display: grid; gap: var(--gap); }
.grid-2 + .grid-2 { margin-top: var(--gap); }
.card {
  position: relative;
  min-width: 0;
  padding: var(--pad);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, #1a201b, var(--panel) 65%);
}
.card::before { width: 1.65rem; border-top-width: 1px; }
.card :is(h2, h3) { margin-bottom: .65rem; }
.card p + .console { margin-top: .75rem; }
.card ul { padding-left: 1.15rem; }
.card ul > li + li { margin-top: .48rem; }
.card ul > li::marker { color: var(--gold); }
.facts { list-style-type: square; }
.muted { color: var(--muted); font-size: .9375rem; }
.facts + .muted { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .8rem; }
main > .muted { padding: var(--pad); border: 1px dashed #606c60; border-radius: var(--radius); }

.mini-ladder, .card .patch-list { list-style-type: ""; padding: 0; }
.mini-ladder li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .62rem;
  border-bottom: 1px solid var(--line);
  padding-block: .58rem;
}
.pos, .sr { font: 700 .8125rem/1.4 var(--mono); }
.pos {
  min-width: 1.7rem;
  padding: .18rem .25rem;
  border: 1px solid var(--line); border-radius: .2rem;
  color: var(--muted);
  text-align: center;
}
.mini-ladder li:first-child .pos { background: #32291a; border-color: #786644; color: var(--brass); }
.name { color: var(--ink); font-weight: 700; }
.sr { color: var(--brass); }
.more { margin-top: .25rem; }

.page-head { margin-bottom: var(--gap); }
.page-head h1 { font-size: clamp(2.15rem, 6vw, 4.1rem); }
.steps {
  list-style-type: decimal-leading-zero;
  padding-left: 3.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(90deg, #20271f 3.1rem, var(--panel) 3.1rem);
}
.steps li { padding: .85rem var(--pad); border-left: 1px solid var(--line); }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::marker { color: var(--brass); font: 700 .875rem var(--mono); }
.steps ~ .card { margin-top: var(--gap); }
.section-title {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-block: 1.7rem .72rem;
}
.section-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.map-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 1.75rem; }
.card .map-list > li { margin: 0; padding-block: .63rem; border-bottom: 1px solid var(--line); }
.map-list strong { display: block; color: var(--brass); }

.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #8e8162 #171c18;
  border: 1px solid var(--line); border-radius: var(--radius);
}
table.ladder { width: 100%; min-width: 32rem; border-collapse: collapse; background: var(--panel); font-variant-numeric: tabular-nums; }
.ladder :is(th, td) { padding: .76rem clamp(.62rem, 1.4vw, .9rem); text-align: start; }
.ladder th {
  background: #222922;
  color: var(--ink);
  font: 700 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.ladder td { border-top: 1px solid var(--line); }
.ladder tbody tr:nth-child(even) { background: #1a201b; }
.ladder .num { text-align: end; white-space: nowrap; }
.ladder .name { max-width: 16rem; }
.ladder tbody :is(td:nth-child(4), tr:first-child td:first-child) { color: var(--brass); font-weight: 750; }
.ladder td:nth-child(3) { white-space: nowrap; }
.rank-icon { object-fit: contain; vertical-align: middle; margin-right: .45rem; }

.patch-day + .patch-day { margin-top: var(--gap); }
.patch-day h2 { color: var(--brass); font: 700 1.05rem/1.35 var(--mono); }
.patch-list li { padding-block: .65rem .15rem; border-top: 1px solid var(--line); }
.patch-list .badge { margin-right: .4rem; }
.area { color: var(--ink); font-weight: 700; margin-right: .42rem; }

@media (max-width: 23.5rem) {
  .site-nav a { flex: 1 1 28%; text-align: center; }
}
@media (min-width: 48rem) {
  html { scrollbar-gutter: stable; }
  .grid-2, .grid-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 54rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(18.5rem, 33%); }
  main:has(> .steps) {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18.5rem, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: var(--gap);
  }
  main:has(> .steps) > .page-head { grid-column: 1 / -1; margin: 0; }
  .steps { grid-row: span 2; }
  .steps ~ :is(.actions, .card) { margin: 0; }
}
@media (min-width: 64rem) {
  .grid-auto { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .page-head + .grid-auto { --cols: 3; }
  .page-head + .grid-auto > :is(:nth-child(4), :nth-child(7)) { grid-column: span 2; }
  .page-head + .grid-auto > :nth-child(4) ul { columns: 2; column-gap: 1.65rem; }
  .page-head + .grid-auto > :nth-child(4) li { break-inside: avoid; }
}
@media (prefers-reduced-motion: no-preference) {
  .is-online .dot { animation: signal 2.2s ease-out 2; }
}
@keyframes signal {
  from { box-shadow: 0 0 0 0 #8be5a380; }
  to { box-shadow: 0 0 0 .6rem #8be5a300; }
}
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  .site-nav a[aria-current="page"] { border-bottom-color: LinkText; }
  .dot { border: 1px solid CanvasText; }
}
