/* ============================================================================
   SHADEWIRE v2 — "The Private Wire"
   Design system for shadewire.org. Self-hosted fonts, no third-party requests.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* environment — large areas of near-black, colour only where active */
  --void:      #08080c;
  --carbon:    #0e0e15;
  --elevated:  #14141d;

  /* structure */
  --hairline:  #1c1c27;
  --trace:     #2c2c3d;
  --edge:      #3a3a50;

  /* signal — violet reads as current moving through the system */
  --signal:    #7855de;
  --signal-hi: #8a68e8;
  --lumen:     #a78bfa;
  --glow:      rgba(120, 85, 222, 0.5);
  --wash:      rgba(120, 85, 222, 0.07);

  /* cold accent — telemetry and network readouts ONLY, never decoration */
  --cyan:      #67c9d9;

  /* text */
  --ink:       #ececf2;
  --silver:    #b6b8c4;
  --dim:       #8f90a4;
  --faint:     #7b7c98;   /* AA 4.5:1 on void, carbon and elevated */

  /* semantic status */
  --ok:        #56d6a0;
  --warn:      #e8b25c;
  --down:      #ef7a7a;

  /* type */
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --sans:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* rhythm */
  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --measure: 1240px;
  --sec-y:   clamp(4.5rem, 11vh, 8.5rem);
  --r-sm:    7px;
  --r:       10px;
  --r-lg:    12px;
  --r-pill:  999px;
  --nav-h:   62px;
}

/* ------------------------------------------------------------- baseline -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: rgba(120, 85, 222, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--lumen);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--signal); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--mono); font-size: 0.8rem; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.copy-fallback { position: fixed; left: -9999px; }

/* ------------------------------------------------------------ typography -- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }

.display {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 0.98;
  text-transform: uppercase;
}
.display .soft { color: var(--faint); }
.display .lit {
  background: linear-gradient(150deg, var(--lumen) 5%, var(--signal) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--lumen);
}

h2.head { font-size: clamp(1.75rem, 4vw, 2.9rem); letter-spacing: -0.032em; max-width: 20ch; }
h3.sub  { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.02em; }

.lede { font-size: clamp(1.03rem, 1.5vw, 1.2rem); color: var(--silver); max-width: 56ch; line-height: 1.7; }
.body { color: var(--dim); max-width: 62ch; }
.body + .body { margin-top: 1rem; }
.body strong, .lede strong { color: var(--ink); font-weight: 600; }

/* mono is reserved: addresses, versions, hostnames, status, protocol labels */
.mono, code, kbd { font-family: var(--mono); font-variant-ligatures: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow > span { white-space: nowrap; }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; flex: none;
  background: var(--signal); transform: rotate(45deg);
}
.eyebrow .accent { color: var(--lumen); }

/* ---------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--sec-y); position: relative; }
.section + .section { border-top: 1px solid var(--hairline); }

.stack   { display: grid; gap: 1.5rem; }
.stack-s { display: grid; gap: 0.75rem; }
.split   { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split.lean { grid-template-columns: 1.05fr 0.95fr; }
@media (max-width: 900px) { .split, .split.lean { grid-template-columns: 1fr; gap: 2.5rem; } }

.head-block { display: grid; gap: 1.1rem; max-width: 62ch; }

/* --------------------------------------------------------------- buttons -- */
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  --btn-bd: var(--trace);
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--btn-bd); border-radius: var(--r);
  color: var(--ink); background: transparent;
  position: relative; overflow: hidden;
  transition: border-color 0.22s, color 0.22s, background 0.22s, transform 0.16s;
  min-height: 46px;
}
.btn:hover { --btn-bd: var(--edge); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary { background: var(--signal); --btn-bd: var(--signal); color: #fff; font-weight: 500; }
.btn.primary:hover { background: var(--signal-hi); --btn-bd: var(--signal-hi); }
.btn.ghost { color: var(--silver); }
.btn.small { padding: 0.55rem 0.95rem; font-size: 0.72rem; min-height: 38px; }

/* a link that routes rather than underlines */
.route {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.05em;
  color: var(--lumen); position: relative; padding-bottom: 3px;
}
.route::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--lumen); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.route:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------ technical metadata -- */
.meta { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--faint); }
.meta .k { color: var(--faint); }
.meta .v { color: var(--silver); }

.metarow { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

dl.specs { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.4rem; align-items: baseline; }
dl.specs dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
dl.specs dd { font-family: var(--mono); font-size: 0.82rem; color: var(--silver); }

/* ------------------------------------------------------- status indicator -- */
.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.status[data-state="online"]      { color: var(--ok); }
.status[data-state="online"] .dot { background: var(--ok); box-shadow: 0 0 8px rgba(86,214,160,0.7); }
.status[data-state="starting"]      { color: var(--warn); }
.status[data-state="starting"] .dot { background: var(--warn); animation: breathe 1.9s ease-in-out infinite; }
.status[data-state="stopping"]      { color: var(--warn); }
.status[data-state="stopping"] .dot { background: var(--warn); }
.status[data-state="offline"]      { color: var(--faint); }
.status[data-state="offline"] .dot { background: var(--trace); }
.status[data-state="maintenance"]      { color: var(--cyan); }
.status[data-state="maintenance"] .dot { background: var(--cyan); }
.status[data-state="unknown"]      { color: var(--faint); }
.status[data-state="unknown"] .dot { background: transparent; border: 1px solid var(--trace); }
.status[data-state="stale"]      { color: var(--warn); }
.status[data-state="stale"] .dot { background: var(--warn); }
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ------------------------------------------------------------- surfaces --- */
/* used deliberately, not as the default container */
.panel {
  background: var(--carbon);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  position: relative;
}
.panel.lit { border-color: var(--trace); }
.panel.tap { border-left: 2px solid var(--signal); }

.note {
  border-left: 2px solid var(--trace);
  padding: 0.15rem 0 0.15rem 1.1rem;
  color: var(--dim); font-size: 0.92rem; max-width: 60ch;
}
.note b { color: var(--silver); font-weight: 600; }

/* an operator aside — the human behind the infrastructure */
.operator {
  display: grid; gap: 0.55rem;
  border: 1px solid var(--hairline); border-radius: var(--r);
  background: linear-gradient(180deg, var(--wash), transparent 70%);
  padding: 1.2rem 1.4rem;
}
.operator .who {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--lumen);
}
.operator p { color: var(--dim); font-size: 0.93rem; max-width: 58ch; }

/* ------------------------------------------------------------ hairline UI -- */
.rule { height: 1px; background: var(--hairline); border: 0; }

.ledger { display: grid; }
.ledger > * { padding-block: 1.4rem; border-top: 1px solid var(--hairline); }
.ledger > *:first-child { border-top: 0; }

/* =========================================================== site header == */
.site-header {
  position: sticky; top: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.site-header.scrolled { background: rgba(8, 8, 12, 0.93); border-bottom-color: var(--hairline); }

.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
.brand img { height: 21px; width: auto; }
.brand .crumb {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--faint); text-transform: lowercase;
}
.brand .crumb b { color: var(--lumen); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 1.55rem; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.09em;
  color: var(--dim); position: relative; padding-block: 0.35rem;
  transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--lumen); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* network indicator — only asserts a state when the feed is fresh */
.wire-state {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 0.3rem 0.7rem; white-space: nowrap;
}
.wire-state .mark { width: 6px; height: 6px; background: var(--trace); transform: rotate(45deg); flex: none; }
.wire-state[data-state="online"] { color: var(--ok); border-color: rgba(86,214,160,0.28); }
.wire-state[data-state="online"] .mark { background: var(--ok); box-shadow: 0 0 8px rgba(86,214,160,0.65); }
.wire-state[data-state="degraded"] { color: var(--warn); border-color: rgba(232,178,92,0.3); }
.wire-state[data-state="degraded"] .mark { background: var(--warn); }

.nav-cta { flex: none; }

/* mobile drawer */
.nav-toggle { display: none; width: 42px; height: 42px; margin-left: auto; align-items: center; justify-content: center; border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform 0.25s;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .js .nav-toggle { display: flex; }
  .js .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--carbon); border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--gutter) 1.4rem;
    margin-left: 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .js .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .js .nav a { font-size: 0.95rem; padding: 0.95rem 0; border-bottom: 1px solid var(--hairline); letter-spacing: 0.04em; }
  .js .nav a::after { display: none; }
  .js .nav .wire-state { align-self: flex-start; margin-top: 1rem; }
  .js .nav .nav-cta { margin-top: 1rem; justify-content: center; }
  html:not(.js) .site-header { height: auto; position: relative; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 0.65rem; }
  html:not(.js) .nav { width: 100%; gap: 1rem; overflow-x: auto; }
  html:not(.js) .nav .wire-state,
  html:not(.js) .nav-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

/* =============================================================== hero ===== */
.hero { position: relative; padding-block: clamp(3.5rem, 9vh, 7rem) clamp(3.5rem, 8vh, 6rem); overflow: clip; }
/* pages without a viz column shouldn't leave a canyon under the headline */
.hero.compact { padding-block: clamp(3rem, 8vh, 5.5rem) clamp(1.5rem, 3vh, 2.5rem); }
.hero.compact + .section { padding-top: clamp(2.5rem, 6vh, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; } }

.hero-copy { display: grid; gap: 1.5rem; }
.hero .display { margin-top: 0.4rem; }
.hero .tagline {
  display: flex; gap: 1.15rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: lowercase;
}
.hero .tagline span:nth-child(1) { color: var(--silver); }
.hero .tagline span:nth-child(2) { color: var(--lumen); }
.hero .tagline span:nth-child(3) { color: var(--lumen); }

/* ambient field behind the hero — one soft violet source, no blobs */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -30%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(120,85,222,0.11), transparent 62%);
  pointer-events: none;
}

/* ======================================================= topology graph === */
.topo { width: 100%; height: auto; overflow: visible; }
.hero-viz .topo { max-width: 560px; margin-inline: auto; }
.topo .link { stroke: var(--trace); stroke-width: 1.25; fill: none; }
.topo .link.active { stroke: var(--edge); }
.topo .packet { fill: var(--lumen); filter: drop-shadow(0 0 5px var(--glow)); }
.topo .ring { fill: none; stroke: var(--trace); stroke-width: 1; }
.topo .node-body { fill: var(--carbon); stroke: var(--trace); stroke-width: 1.25; }
.topo .node-core { fill: var(--signal); }
.topo .hub .node-body { fill: var(--elevated); stroke: var(--signal); stroke-width: 1.5; }
.topo .hub .node-core { fill: var(--lumen); filter: drop-shadow(0 0 8px var(--glow)); }
.topo .label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; fill: var(--dim); text-transform: uppercase; }
.topo .hub .label { fill: var(--ink); }
.topo .sublabel { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.1em; fill: var(--faint); }

/* linear chain diagram (device -> link -> mesh -> services) */
.chain { display: grid; gap: 0; counter-reset: hop; }
.chain-hop {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding-block: 1.15rem; position: relative;
}
.chain-hop .glyph {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--trace); border-radius: var(--r-sm); background: var(--carbon);
  position: relative; z-index: 1;
}
.chain-hop .glyph i { width: 8px; height: 8px; background: var(--trace); transform: rotate(45deg); display: block; }
.chain-hop:first-child .glyph i, .chain-hop:last-child .glyph i { background: var(--signal); }
/* the wire between hops */
.chain-hop::before {
  content: ""; position: absolute; left: 17px; top: 2.6rem; bottom: -1.15rem; width: 1px;
  background: linear-gradient(180deg, var(--trace), var(--trace));
}
.chain-hop:last-child::before { display: none; }
.chain-hop .hop-title { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.chain-hop .meta { margin-top: 0.2rem; }

/* ================================================ editorial creed sections = */
.creed { display: grid; }
.creed-item {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  padding-block: clamp(2.75rem, 7vh, 5rem);
  border-top: 1px solid var(--hairline);
}
.creed-item:first-child { border-top: 0; padding-top: clamp(1rem, 3vh, 2rem); }
@media (max-width: 820px) { .creed-item { grid-template-columns: 1fr; gap: 1.1rem; } }

.creed-word {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 5.4rem);
  letter-spacing: -0.045em; line-height: 0.92; text-transform: uppercase;
  color: var(--ink);
}
.creed-item:nth-child(2) .creed-word { color: var(--lumen); }
.creed-item:nth-child(3) .creed-word {
  background: linear-gradient(150deg, var(--lumen), var(--signal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .creed-word { transition: none; }
}
.creed-body { display: grid; gap: 1rem; padding-top: 0.5rem; }

/* ======================================================= product split ==== */
.product {
  display: grid; gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--hairline); border-radius: var(--r);
  background: var(--carbon);
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.25s;
}
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--trace); transition: background 0.3s;
}
.product:hover { border-color: var(--trace); transform: translateY(-2px); }
.product:hover::before { background: var(--signal); }
.product h3 { font-size: 1.5rem; }
.product .capabilities { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--dim); border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 0.22rem 0.6rem; background: var(--void);
}

/* ===================================================== transparency strip = */
.wire-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.wire-cell { background: var(--carbon); padding: 1.15rem 1.25rem; display: grid; gap: 0.5rem; }
.wire-cell .name { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

/* ========================================================= download cards = */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1rem; }
.platform {
  display: grid; gap: 1rem; align-content: start;
  padding: 1.5rem; border: 1px solid var(--hairline); border-radius: var(--r);
  background: var(--carbon);
  transition: border-color 0.25s, transform 0.2s, background 0.25s;
}
.platform:hover { border-color: var(--trace); transform: translateY(-2px); background: var(--elevated); }
.platform.featured { border-color: var(--trace); background: linear-gradient(180deg, var(--wash), var(--carbon) 60%); }
.platform .os-row { display: flex; align-items: center; gap: 0.7rem; }
.platform .os-row svg { width: 20px; height: 20px; color: var(--lumen); flex: none; }
.platform .os-row h3 { font-size: 1.2rem; }
.platform .unavailable { color: var(--faint); font-size: 0.86rem; }

/* ============================================================ game cards == */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }

.server {
  display: grid; gap: 0; align-content: start;
  border: 1px solid var(--hairline); border-radius: var(--r);
  background: var(--carbon); overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}
.server:hover { border-color: var(--trace); transform: translateY(-2px); }
.server[data-state="offline"] { opacity: 0.78; }

.server-art { position: relative; aspect-ratio: 460 / 215; background: var(--elevated); overflow: hidden; }
.server-art img { width: 100%; height: 100%; object-fit: cover; }
.server[data-state="offline"] .server-art img { filter: grayscale(0.9) brightness(0.55); }
/* typographic fallback when no artwork mirrored */
.server-art.fallback, .fs-art.fallback { display: grid; place-items: center; background: var(--elevated); min-height: 150px; }
.server-art.fallback span, .fs-art.fallback span {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.1rem, 3.4vw, 1.6rem); letter-spacing: -0.02em;
  color: var(--faint); padding: 0 1rem; text-align: center;
}
.server-body { padding: 1.15rem 1.25rem 1.35rem; display: grid; gap: 0.85rem; }
.server-body h3 { font-size: 1.15rem; }
.server-body .game-name { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; }
.server-body p.desc { color: var(--dim); font-size: 0.89rem; }

.occupancy { display: grid; gap: 0.4rem; }
.occupancy .figures { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 0.8rem; color: var(--silver); }
.occupancy .figures .label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.occupancy .figures b { color: var(--lumen); font-weight: 600; }
.occupancy progress {
  display: block; width: 100%; height: 3px; border: 0;
  appearance: none; background: var(--hairline); border-radius: var(--r-pill); overflow: hidden;
}
.occupancy progress::-webkit-progress-bar { background: var(--hairline); }
.occupancy progress::-webkit-progress-value { background: var(--signal); }
.occupancy progress::-moz-progress-bar { background: var(--signal); }
.occupancy .unknown { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

.server-facts { display: grid; gap: 0.65rem; padding-block: 0.1rem; }
.server-fact { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.server-fact > .label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint);
}
.player-count { font-family: var(--mono); font-size: 0.8rem; color: var(--silver); }
.player-count b { color: var(--lumen); font-weight: 600; }
.player-count.muted, .player-count.unknown { color: var(--faint); }
.player-count.stale { color: var(--warn); }

.address-row { display: flex; align-items: stretch; gap: 0.5rem; }
.address-row .addr {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 0.79rem; color: var(--silver);
  background: var(--void); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 0.55rem 0.7rem;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.address-row .addr::-webkit-scrollbar { display: none; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--trace); border-radius: var(--r-sm); padding: 0 0.85rem; min-height: 40px;
  color: var(--silver); transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.copy-btn:hover { border-color: var(--lumen); color: var(--lumen); }
.copy-btn[data-copied="true"] { border-color: var(--ok); color: var(--ok); background: rgba(86,214,160,0.08); }

.restricted { font-size: 0.85rem; color: var(--dim); display: grid; gap: 0.5rem; }

.visibility {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
}
.visibility[data-v="public"]    { color: var(--ok); }
.visibility[data-v="members"]   { color: var(--lumen); }
.visibility[data-v="mesh"]      { color: var(--cyan); }
.visibility[data-v="whitelist"] { color: var(--warn); }

/* featured server panel */
.featured-server {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border: 1px solid var(--trace); border-radius: var(--r);
  background: linear-gradient(140deg, var(--wash), var(--carbon) 55%);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
@media (max-width: 820px) { .featured-server { grid-template-columns: 1fr; } }
.featured-server .fs-copy { display: grid; gap: 1rem; }
.featured-server h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); text-transform: uppercase; letter-spacing: -0.035em; }
.featured-server .game-name { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.featured-server .fs-art { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--hairline); }

#all-head { margin-top: clamp(2.25rem, 5vh, 3.25rem); }

/* aggregate readout */
.aggregate {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
}
.aggregate b { color: var(--lumen); font-weight: 600; }
.aggregate .stale { color: var(--warn); }

/* feed-level failure notice */
.feed-notice {
  display: grid; gap: 0.6rem;
  border: 1px solid var(--hairline); border-left: 2px solid var(--warn);
  border-radius: var(--r); background: var(--carbon);
  padding: 1.3rem 1.5rem;
}
.feed-notice-title { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warn); font-weight: 500; }
.feed-notice p { color: var(--dim); font-size: 0.9rem; max-width: 60ch; }

/* ============================================================== forms ===== */
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}
.field .req { color: var(--signal); }
.field .hint { font-size: 0.78rem; color: var(--faint); font-family: var(--sans); letter-spacing: 0; text-transform: none; }

.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: var(--void); border: 1px solid var(--trace); border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem; min-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(120,85,222,0.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--down); box-shadow: 0 0 0 3px rgba(239,122,122,0.14);
}
.field .err, .choice-error { font-size: 0.8rem; color: var(--down); min-height: 1.1em; }

/* selectable service cards */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 720px) { .choices { grid-template-columns: 1fr; } }
.choice {
  display: grid; gap: 0.6rem; text-align: left; align-content: start;
  padding: 1.3rem; border: 1px solid var(--trace); border-radius: var(--r);
  background: var(--carbon); position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.16s;
}
.choice:hover { border-color: var(--edge); transform: translateY(-2px); }
.choice[aria-pressed="true"] { border-color: var(--signal); background: linear-gradient(180deg, var(--wash), var(--carbon) 70%); }
.choice .tick {
  position: absolute; top: 1rem; right: 1rem;
  width: 19px; height: 19px; border: 1px solid var(--trace); border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; color: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.choice[aria-pressed="true"] .tick { background: var(--signal); border-color: var(--signal); color: #fff; }
.choice .choice-title { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--ink); padding-right: 2rem; }
.choice p { color: var(--dim); font-size: 0.88rem; }
.choice .grant { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); line-height: 1.6; }
.choice .grant b { color: var(--lumen); font-weight: 500; }

/* numbered process — not a terminal, a procedure */
.process { display: grid; gap: 0; counter-reset: step; }
.process li {
  list-style: none; counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding-block: 1.15rem; border-top: 1px solid var(--hairline);
}
.process li:first-child { border-top: 0; }
.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.72rem; color: var(--lumen);
  padding-top: 0.25rem; letter-spacing: 0.1em;
}
/* ::before is column 1; both text children must stay in column 2, or the
   description wraps under the number instead of under its own title. */
.process li > b,
.process li > span { grid-column: 2; }
.process li > b { color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }
.process li > span { color: var(--dim); font-size: 0.92rem; }

/* form status region */
.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status[data-tone="error"]   { color: var(--down); }
.form-status[data-tone="ok"]      { color: var(--ok); }
.form-status[data-tone="working"] { color: var(--dim); }

.submitted { display: grid; gap: 1rem; padding: 1.75rem; border: 1px solid var(--trace); border-radius: var(--r); background: linear-gradient(180deg, var(--wash), var(--carbon) 70%); }
.submitted h3 { font-size: 1.3rem; }
.submitted .ref { font-family: var(--mono); font-size: 0.82rem; color: var(--lumen); }

/* ================================================== product window mock === */
/* abstract representation — deliberately NOT a fake screenshot */
.window {
  border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden;
  background: var(--carbon); box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.window-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--hairline); background: var(--elevated); }
.window-bar .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--trace); }
.window-bar .title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--faint); margin-left: 0.3rem; }
.window-inner { display: grid; grid-template-columns: 54px 150px 1fr; min-height: 250px; }
@media (max-width: 560px) { .window-inner { grid-template-columns: 44px 1fr; } .window-inner .w-chan { display: none; } }
.w-rail { border-right: 1px solid var(--hairline); padding: 0.75rem 0; display: grid; gap: 0.6rem; justify-items: center; align-content: start; background: var(--void); }
.w-rail i { width: 26px; height: 26px; border-radius: 9px; background: var(--elevated); display: block; }
.w-rail i.on { background: var(--signal); }
.w-chan { border-right: 1px solid var(--hairline); padding: 0.9rem 0.75rem; display: grid; gap: 0.55rem; align-content: start; }
.w-chan i { height: 8px; border-radius: var(--r-pill); background: var(--elevated); display: block; }
.w-chan i.on { background: var(--trace); }
.w-main { padding: 0.9rem 1rem; display: grid; gap: 0.85rem; align-content: end; }
.w-msg { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.w-msg .av { width: 22px; height: 22px; border-radius: 50%; background: var(--elevated); }
.w-msg .lines { display: grid; gap: 0.32rem; }
.w-msg .lines i { height: 7px; border-radius: var(--r-pill); background: var(--elevated); display: block; }
.w-msg .lines i.k { background: var(--trace); }

/* ============================================================== footer ==== */
.site-footer { border-top: 1px solid var(--hairline); padding-block: clamp(3rem, 7vh, 4.5rem) 2.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand img { height: 22px; width: auto; opacity: 0.9; }
.footer-brand p { color: var(--faint); font-size: 0.88rem; max-width: 34ch; }

.footer-col { display: grid; gap: 0.7rem; align-content: start; }
.footer-col .footer-head {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); font-weight: 400;
}
.footer-col a { font-size: 0.9rem; color: var(--dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--lumen); }

.footer-base {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.footer-base .sig { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--faint); }
.footer-base .sig .prompt { color: var(--faint); }

/* ============================================================ utilities === */
.mt-s { margin-top: 0.75rem; } .mt-m { margin-top: 1.5rem; } .mt-l { margin-top: 2.5rem; }
.dim { color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------ layout helpers --- */
/* These exist so no page needs an inline style attribute: the CSP is
   script-src/style-src 'self' with no unsafe-inline, and style="" would be
   blocked by style-src-attr. */
.bullets { padding-left: 1.1rem; }
.bullets li + li { margin-top: 0.35rem; }
.narrow { max-width: 16ch; }
.wrap-meta { line-height: 1.6; }
.eyebrow.muted { color: var(--dim); }
.legend-gap { margin-bottom: 1rem; }
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
html:not(.js) #access-form,
html:not(.js) #aggregate,
html:not(.js) #release-latest { display: none; }

/* window mock bar widths, so the markup stays style-attribute free */
.w-chan i:nth-child(1) { width: 70%; }
.w-chan i:nth-child(2) { width: 52%; }
.w-chan i:nth-child(3) { width: 64%; }
.w-chan i:nth-child(4) { width: 44%; }
.w-chan i:nth-child(5) { width: 58%; }
.w-msg:nth-child(1) .lines i:nth-child(1) { width: 62px; }
.w-msg:nth-child(1) .lines i:nth-child(2) { width: 150px; }
.w-msg:nth-child(1) .lines i:nth-child(3) { width: 104px; }
.w-msg:nth-child(2) .lines i:nth-child(1) { width: 48px; }
.w-msg:nth-child(2) .lines i:nth-child(2) { width: 126px; }
.w-msg:nth-child(3) .lines i:nth-child(1) { width: 70px; }
.w-msg:nth-child(3) .lines i:nth-child(2) { width: 168px; }
.w-msg:nth-child(3) .lines i:nth-child(3) { width: 88px; }

/* An author `display` rule beats the UA sheet's [hidden] rule, so state it
   explicitly — otherwise elements toggled with .hidden stay visible. */
[hidden] { display: none !important; }
