/* HZN DayZ - site stylesheet.
   Hand-written (no framework) so the page ships as one small file with no build
   step and no CDN dependency.

   Visual language is a field comms terminal: near-black steel, hairline rules,
   square corners, and monospace for anything that is data rather than prose.
   Exactly one accent colour, used sparingly - if something is accented it is
   either live, interactive, or important. No gradients: they were the main
   reason the old design read as generic.

   The accent is sampled from the HZN mark (#1e88e6) so the logo reads as part
   of the interface. Text sits at #4ba3ef instead: the mark's blue is only
   ~3.6:1 on the panels, which fails WCAG AA for body-sized type. */

:root {
  --bg: #0a0b0c;
  --bg-2: #0e1011;
  --panel: #131618;
  --panel-2: #171b1e;
  --line: #22272b;
  --line-2: #333a40;
  --text: #dfe3e6;
  --muted: #949ca2;
  --dim: #697177;
  --accent: #1e88e6;
  --accent-2: #4ba3ef;
  --accent-ink: #4ba3ef;
  --ok: #62b36b;
  --off: #d2564b;
  --r: 3px;
  --ui: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}

/* Fine scanlines plus a top vignette. Costs nothing, no image request, and gives
   the flat panels some surface so they do not look like empty divs. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.013) 0 1px, transparent 1px 3px),
    radial-gradient(130% 85% at 50% -15%, #15191c 0%, var(--bg) 62%);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p { margin: 0; }

::selection { background: var(--accent); color: #04121e; }

/* Visible keyboard focus everywhere, since the accent is the only highlight. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section-sm { padding: 2.75rem 0; }

/* Section label, prefixed like a channel tag on a radio set. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: "//"; color: var(--dim); }

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 64ch;
}

/* Display headings. Uppercase and tightly tracked; the size ramp lives here
   rather than in inline styles on each template. */
.h1, .h2 { text-transform: uppercase; }
.h1 {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  letter-spacing: -0.015em;
  margin: 0.85rem 0 1rem;
}
.h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: 0.005em;
  margin: 0.6rem 0 1.3rem;
}
/* Accent word in a heading (was gradient-filled text). */
.grad { color: var(--accent-ink); }

.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- header ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(10, 11, 12, 0.93);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 1rem;
  text-transform: uppercase;
}
.brand img, .foot-brand img { display: block; border-radius: 2px; }
.brand-text { color: var(--text); }

.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-family: var(--mono);
  font-size: 0.79rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
/* :not(.btn) so the Discord button keeps its own padding and colour. */
.menu > a:not(.btn) {
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.menu > a:not(.btn):hover { color: var(--text); }
.menu > a.on { color: var(--text); border-bottom-color: var(--accent); }
.soon {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.28rem 0.6rem;
}

/* Status tag for anything not finished yet. Deliberately not accent-coloured:
   the accent means live/interactive, and a WIP marker is the opposite of that. */
.tag-wip {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 0.2rem 0.45rem;
}

/* Site-wide build notice. Sits above the header so it is the first thing read,
   and is plain text rather than a dismissible banner - it should not be possible
   to miss that the cluster is still being built. */
.buildnote {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.55rem 1rem;
}
.buildnote strong {
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.buildnote a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.buildnote a:hover { border-bottom-color: var(--accent); }

.burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  /* 44px square: the minimum comfortable touch target. */
  width: 44px;
  height: 44px;
  align-items: center;
}
.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.81rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* A button label is one line. Without this a narrow flex track (the hero row,
     a collapsed nav) wraps the text and the button grows absurdly tall. */
  white-space: nowrap;
  line-height: 1.25;
  min-height: 42px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--accent); background: var(--panel); color: #fff; }
/* Light fill rather than accent fill: the accent is now within 1.25:1 of Discord
   blurple, so two brand-coloured fills side by side in the hero read as one
   smudge. Keeping primary light leaves three unmistakable button roles. */
.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #0a0b0c;
  font-weight: 700;
}
.btn-primary:hover { background: #fff; border-color: #fff; color: #0a0b0c; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.74rem; min-height: 34px; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 0.87rem; flex-shrink: 0; }

/* Discord Blurple - the only place a second brand colour is allowed. */
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }

/* Fixed pixel box, belt-and-braces with the width/height attributes on the
   inline SVG: an em-based icon scales with the label and an unstyled one
   expands to its intrinsic size. Both distort the button. */
.btn svg, .ico-discord { width: 18px; height: 18px; flex: 0 0 18px; }

.discord-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  /* Accent edge marks it as the page's primary action. */
  border-left: 2px solid #5865f2;
}
.discord-cta-text { flex: 1 1 24rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Coordinate grid, faded off diagonally so it reads as a map overlay bleeding
   in from the corner rather than a panel sitting behind the text. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(75, 163, 239, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 163, 239, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(155deg, #000 0%, transparent 58%);
  -webkit-mask-image: linear-gradient(155deg, #000 0%, transparent 58%);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
  text-transform: uppercase;
  margin: 0.9rem 0 1.1rem;
}
.hero .lead { font-size: 1.08rem; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.livebar {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.79rem;
  color: var(--muted);
}
.livebar strong { color: var(--text); font-weight: 600; }

.dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(98, 179, 107, 0.55);
  animation: pulse 2.6s infinite;
}
.dot.off { background: var(--off); animation: none; }

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(98, 179, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(98, 179, 107, 0); }
}
/* Respect a reduced-motion preference: kill the pulse rather than annoy. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- panels / cards ---------- */

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem;
}

/* A stat is a readout, not a hero number: mono digits, left-aligned, with a
   hairline accent tick instead of a giant gradient numeral. */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.05rem 1.15rem;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.stat .n {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat .l {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Server card */
.srv { display: flex; flex-direction: column; gap: 0.85rem; }
.srv:hover { border-color: var(--line-2); }
.srv-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}
.srv-map {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.srv h3 { font-size: 1.08rem; margin-top: 0.3rem; }
.srv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bar {
  height: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.5s ease;
}

.srv-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.77rem;
  color: var(--muted);
}

.mono { font-family: var(--mono); font-size: 0.85em; }

/* ---------- spec list ---------- */

/* Replaces the old three-cards-with-abstract-icons block. Numbered rows read as
   a spec sheet, which suits the subject better than decorative icon tiles. */
.specs {
  border-top: 1px solid var(--line);
  counter-reset: spec;
}
.spec {
  counter-increment: spec;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.spec::before {
  content: counter(spec, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent-ink);
  padding-top: 0.15rem;
}
.spec h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.spec p { color: var(--muted); font-size: 0.95rem; max-width: 68ch; }

/* ---------- travel network diagram ---------- */

.netwrap {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.75rem;
  /* Grid backdrop makes it read as a plotted chart, not a floating graphic. */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
}
.netwrap svg { display: block; width: 100%; height: auto; }

.net-edge {
  stroke: var(--accent);
  stroke-width: 0.35;
  opacity: 0.35;
}
.net-edge.hot { opacity: 0.85; stroke-width: 0.6; }

.net-node circle {
  fill: var(--bg-2);
  stroke: var(--line-2);
  stroke-width: 0.4;
  transition: stroke 0.2s;
}
.net-node.online circle { stroke: var(--accent); }
.net-node:hover circle { stroke: #fff; }
.net-node text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 2.5px;
  font-weight: 600;
  text-anchor: middle;
}
.net-node .sub {
  fill: var(--muted);
  font-size: 2.1px;
  font-weight: 400;
}

/* ---------- tables ---------- */

/* Horizontal scroll keeps wide tables usable on a phone without squashing the
   connect strings, which must stay copyable in one piece. */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.tbl th {
  text-align: left;
  padding: 0.65rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: rgba(75, 163, 239, 0.05); }

.tag {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.1rem 0.2rem 0.1rem 0;
}

/* ---------- prose (rules / join) ---------- */

.prose { max-width: 74ch; }
.prose h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ol, .prose ul { margin: 0.6rem 0; padding-left: 1.15rem; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--accent-ink); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-ink); border-bottom: 1px solid rgba(75, 163, 239, 0.4); }
.prose a:hover { border-bottom-color: var(--accent-ink); }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  margin-top: 2.5rem;
}
.foot-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
}
.foot-brand { display: flex; align-items: center; gap: 0.7rem; }
.foot-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.foot-brand strong { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; }
.foot-brand span { color: var(--dim); font-family: var(--mono); font-size: 0.75rem; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot-links a:hover { color: var(--accent-ink); }
.foot-note {
  flex-basis: 100%;
  color: var(--dim);
  font-size: 0.76rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .section { padding: 3.25rem 0; }
  .section-sm { padding: 2.25rem 0; }
  .burger { display: flex; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
  }
  .menu.open { display: flex; }
  /* Full-width rows with a real touch target, each separated by a hairline. */
  .menu > a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .menu > a.on { border-bottom-color: var(--accent); }
  .menu > a.btn { margin-top: 0.9rem; width: 100%; }
  .menu .soon { align-self: flex-start; margin-top: 0.9rem; }

  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: 2.5rem 1fr; gap: 0 1rem; padding: 1.25rem 0; }
  .discord-cta { flex-direction: column; align-items: stretch; }
  .discord-cta .btn { width: 100%; }
  /* Node labels are sized in SVG user units; bump them so they stay legible
     once the diagram is only ~330px wide. */
  .net-node text { font-size: 3.2px; }
  .net-node .sub { font-size: 2.7px; }
}

/* Narrow phones (360px and under). Nothing may overflow horizontally. */
@media (max-width: 420px) {
  .wrap, .nav-inner, .foot-inner { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding: 3.25rem 0 2.5rem; }
  .hero-cta { gap: 0.6rem; }
  /* Stack the hero actions: three nowrap buttons cannot share a 328px row. */
  .hero-cta .btn { width: 100%; }
  .srv-top { flex-direction: column; gap: 0.5rem; }
  .srv-badge { align-self: flex-start; }
  .foot-inner { gap: 1.25rem; }
  .foot-brand, .foot-links { flex-basis: 100%; }
}

