/* Protocol N-0 — landing page. Dark technical / blueprint, on the game's palette
   (ink #0b0d11, oxide-red, brass), monospace serials. No frameworks, no web fonts. */

:root {
  --ink:        #0b0d11;
  --ink-2:      #11141b;
  --panel:      #14181f;
  --line:       #232a34;
  --text:       #d7dce3;
  --muted:      #8a93a0;
  --oxide:      #c2502f;   /* oxide-red stamp */
  --brass:      #c9a24a;   /* brass magic accent */
  --good:       #6fae6a;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

/* faint blueprint grid + vignette behind everything */
.grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .35;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}

header, main, footer { position: relative; z-index: 1; }
main { max-width: 880px; margin: 0 auto; padding: 0 22px 64px; }

/* top bar */
.bar {
  max-width: 880px; margin: 0 auto; padding: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mark {
  font-family: var(--mono); font-weight: 700; letter-spacing: .28em;
  font-size: 15px; color: var(--text);
  padding-left: 12px; border-left: 3px solid var(--oxide);
}
.serial {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  color: var(--muted); text-transform: uppercase;
}

/* hero */
.hero { padding: 40px 0 28px; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .3em;
  color: var(--brass); margin: 0 0 14px;
}
h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.02; margin: 0 0 18px;
  letter-spacing: -.01em; font-weight: 800;
}
.lede { font-size: 18px; color: #c2c8d1; max-width: 60ch; margin: 0 0 30px; }
.lede strong { color: var(--text); font-weight: 650; }

/* download CTA */
.cta { margin: 6px 0 8px; }
.download {
  display: inline-flex; align-items: center; gap: 16px;
  text-decoration: none; color: #120c08;
  background: linear-gradient(180deg, var(--brass), #b08a35);
  border: 1px solid #d8b85f; border-radius: 10px;
  padding: 15px 22px;
  box-shadow: 0 1px 0 #e8cf86 inset, 0 14px 30px -14px rgba(201,162,74,.55);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.download:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 1px 0 #e8cf86 inset, 0 18px 36px -14px rgba(201,162,74,.7); }
.download:active { transform: translateY(0); }
.dl-glyph { font-size: 22px; line-height: 1; opacity: .8; }
.dl-text { display: flex; flex-direction: column; line-height: 1.2; }
.dl-main { font-weight: 750; font-size: 16px; }
.dl-sub { font-family: var(--mono); font-size: 11.5px; opacity: .75; letter-spacing: .04em; }
.cta-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; max-width: 56ch; }
.cta-note em { color: var(--brass); font-style: normal; }

/* generic panel */
.panel, .how {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; margin: 34px 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.panel-head h2 { margin: 0; }
.status { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; display: inline-flex; align-items: center; gap: 7px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(111,174,106,.18); }
.status.down .dot { background: var(--oxide); box-shadow: 0 0 0 3px rgba(194,80,47,.18); }

/* bulletin feed */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feed li.item {
  border-left: 2px solid var(--oxide); padding: 2px 0 2px 16px;
}
.feed .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .05em; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.feed .chip { color: var(--brass); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; text-transform: uppercase; letter-spacing: .12em; }
.feed .title { font-weight: 650; color: var(--text); }
.feed .body { color: #b9c0c9; font-size: 14.5px; margin-top: 2px; }
.feed-empty { color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* how */
.steps { margin: 0; padding-left: 20px; color: #c2c8d1; }
.steps li { margin: 8px 0; }
.how code, .steps code { font-family: var(--mono); font-size: 12.5px; color: var(--brass); background: #0c0f15; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.fineprint { color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* footer */
.foot { max-width: 880px; margin: 0 auto; padding: 26px 22px 40px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .18em; display: flex; gap: 12px; }
.foot .sep { opacity: .5; }

@media (max-width: 540px) {
  .download { width: 100%; }
  .serial { display: none; }
}
