/* Supreme Conflict - site styles. Dark modern-military look, one brass accent, faction tints only on the army cards. */
:root {
  --bg: #0b0d0c;
  --bg-2: #101412;
  --panel: #151a17;
  --panel-2: #1a201c;
  --line: #27302a;
  --line-2: #364139;
  --text: #e3e6df;
  --muted: #9aa49b;
  --faint: #6f7a71;
  --accent: #c9a45c;
  --accent-ink: #15120a;
  --usa: #6a98dc;
  --rus: #d65f55;
  --ok: #7fb07a;
  --radius: 4px;
  --wrap: 1160px;
  --gutter: 16px;
  --head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #e2c283; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4.4vw, 44px); text-transform: uppercase; }
h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font-family: var(--mono); font-size: .9em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.eyebrow {
  font: 600 14px/1.2 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: 19px; color: #cfd4cc; max-width: 62ch; }
.muted { color: var(--muted); }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 12, .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand svg { flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font: 600 15px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 10px 9px; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.head-cta { flex: none; }
@media (max-width: 899px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .head-cta { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 4px calc(var(--gutter) * -1) 0; padding: 0 calc(var(--gutter) - 9px) 4px; }
}
@media (max-width: 380px) { .brand span { font-size: 16px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 20px; border-radius: var(--radius);
  font: 700 17px/1.1 var(--head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--text); background: transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--muted); color: var(--text); background: rgba(255,255,255,.04); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #dbb873; border-color: #dbb873; color: var(--accent-ink); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 15px; }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 21px; }
.btn small { font: 500 14px/1 var(--body); letter-spacing: 0; text-transform: none; opacity: .8; }

/* hero */
.hero {
  position: relative; padding: 40px 0 52px;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(201,164,92,.07), transparent 70%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 100% 48px,
    var(--bg);
}
.hero-grid { display: grid; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); line-height: .92; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 6px; }
.hero h1 .wt { display: block; font: 600 15px/1.3 var(--head); letter-spacing: .2em; color: var(--muted); margin-top: 12px; }
.hero .pitch { font: 600 clamp(23px, 2.8vw, 31px)/1.2 var(--head); color: var(--text); margin: 18px 0 12px; max-width: 26ch; }
.hero .sub { color: #c8cdc5; max-width: 54ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { font: 600 13px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border: 1px solid var(--line-2); color: var(--muted); border-radius: 2px; }
.tags li.on { color: var(--accent); border-color: rgba(201,164,92,.5); }
.hero-shot { position: relative; margin: 0; background: #000; border: 1px solid var(--line-2); }
.hero-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-shot::before, .hero-shot::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); pointer-events: none; }
.hero-shot::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.hero-shot::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
}

/* sections */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section.alt { background: var(--bg-2); }
.sec-head { margin-bottom: 34px; max-width: 760px; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; }
@media (max-width: 599px) { section { padding: 52px 0; } }

/* what it is */
.about { display: grid; gap: 34px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.facts div { background: var(--panel); padding: 18px 16px; }
.facts dt { font: 700 30px/1 var(--head); color: var(--text); letter-spacing: .02em; }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* armies */
.armies { display: grid; gap: 22px; }
@media (min-width: 900px) { .armies { grid-template-columns: 1fr 1fr; } }
.army { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--side); border-radius: var(--radius); padding: 24px 22px; min-width: 0; }
.army.usa { --side: var(--usa); }
.army.rus { --side: var(--rus); }
.army-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.army-head h3 { font-size: 30px; margin: 0; }
.army-head .code { font: 600 14px/1 var(--head); letter-spacing: .16em; color: var(--side); }
.doctrine { color: #c8cdc5; margin: 10px 0 18px; }
.tier { border-top: 1px solid var(--line); padding: 14px 0 6px; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
.tier-label { font: 700 15px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--side); padding-top: 4px; }
.tier-label span { display: block; font-weight: 600; color: var(--faint); font-size: 13px; letter-spacing: .06em; }
.chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 15px; line-height: 1.2; padding: 5px 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 2px; }
.chips li.key { border-color: var(--side); color: #fff; }
.chips li .k { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
@media (max-width: 420px) { .tier { grid-template-columns: 1fr; gap: 6px; } }
.roster-note { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* features */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--panel); padding: 24px 22px; }
.feature svg { color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: #c3c8c0; font-size: 16px; margin: 0; }

/* experimentals */
.exps { display: grid; gap: 22px; }
@media (min-width: 900px) { .exps { grid-template-columns: 1fr 1fr; } }
.exp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.exp.usa { --side: var(--usa); }
.exp.rus { --side: var(--rus); }
.exp figure { margin: 0; border-bottom: 1px solid var(--line); background: #000; }
.exp figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.exp-body { padding: 22px; }
.exp .side { font: 600 14px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--side); margin: 0 0 8px; }
.exp h3 { font-size: 32px; margin-bottom: 4px; }
.exp .role { color: var(--muted); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 16px 0 0; }
.stats div { background: var(--panel-2); padding: 10px 12px; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.stats dd { margin: 2px 0 0; font: 700 22px/1.1 var(--head); }
.exp-note { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.gallery figure { margin: 0; }
.gallery a { display: block; position: relative; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery a:hover { border-color: var(--accent); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 8px 2px 0; line-height: 1.4; }
.shots-note { margin-top: 18px; font-size: 14px; color: var(--faint); }

/* viewer (lightbox) */
.viewer { padding: 0; border: 0; background: rgba(4, 5, 5, .9); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: var(--text); }
.viewer::backdrop { background: rgba(0, 0, 0, .6); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer figure { margin: 0; padding: 56px 12px 16px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.viewer img { max-width: min(100%, 1600px); max-height: calc(100vh - 130px); width: auto; height: auto; border: 1px solid var(--line-2); }
.viewer figcaption { margin-top: 10px; font-size: 15px; color: #c8cdc5; text-align: center; max-width: 80ch; }
.viewer .vb { position: absolute; background: rgba(21,26,23,.9); border: 1px solid var(--line-2); color: var(--text); width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer; font: 700 22px/1 var(--body); display: flex; align-items: center; justify-content: center; }
.viewer .vb:hover { border-color: var(--accent); color: var(--accent); }
.viewer .v-close { top: 10px; right: 12px; }
.viewer .v-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.viewer .v-next { right: 12px; top: 50%; transform: translateY(-50%); }
.viewer .v-count { position: absolute; top: 22px; left: 16px; font: 600 14px/1 var(--head); letter-spacing: .12em; color: var(--muted); }
@media (max-width: 640px) { .viewer .v-prev, .viewer .v-next { top: auto; bottom: 14px; transform: none; } .viewer figure { padding-bottom: 72px; } }

/* download */
.download { display: grid; gap: 22px; }
@media (min-width: 960px) { .download { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 26px 24px; }
.dl-card h3 { font-size: 28px; margin-bottom: 6px; }
.dl-card .btn-lg { width: 100%; margin: 14px 0 16px; }
.dl-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 15px; }
.dl-facts dt { color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; padding-top: 2px; }
.dl-facts dd { margin: 0; color: var(--text); }
.dl-facts .hash { font-family: var(--mono); font-size: 13px; word-break: break-all; color: #c8cdc5; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; margin-bottom: 18px; }
.box:last-child { margin-bottom: 0; }
.box h3 { font-size: 20px; margin-bottom: 10px; }
.box ul, .box ol { color: #c8cdc5; font-size: 16px; }
.box li { margin-bottom: 6px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border: 1px solid var(--accent); color: var(--accent); font: 700 16px/26px var(--head); text-align: center; border-radius: 2px; }
.note { border-left: 3px solid var(--accent); background: rgba(201,164,92,.06); padding: 12px 14px; font-size: 15px; color: #d2d6cf; margin: 4px 0 16px; }
kbd { font-family: var(--mono); font-size: .85em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; padding: 1px 5px; background: var(--panel-2); }

/* status / roadmap */
.roadmap { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
@media (min-width: 800px) { .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.phase { background: var(--panel); padding: 22px; }
.phase .state { font: 700 14px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.phase .state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.phase.done .state { color: var(--ok); }
.phase.now .state { color: var(--accent); }
.phase.next .state { color: var(--muted); }
.phase ul { margin: 0; padding-left: 1.1em; color: #c8cdc5; font-size: 16px; }
.phase li { margin-bottom: 6px; }

/* credits */
.credits-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .credits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.credit { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.credit h3 { font-size: 19px; margin-bottom: 8px; }
.credit p { color: #c3c8c0; font-size: 16px; margin-bottom: .6em; }

/* footer */
.site-foot { padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 10px; }
.site-foot p { margin: 0; }
.site-foot .brand { font-size: 16px; color: var(--text); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot nav a { color: var(--muted); }

/* credits page */
.page-head { padding: 52px 0 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(38px, 6vw, 60px); text-transform: uppercase; }
.credit-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 28px; }
.credit-table th { text-align: left; font: 700 14px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line-2); }
.credit-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.credit-table td:first-child { color: var(--text); }
.credit-table tr:hover td { background: rgba(255,255,255,.02); }
@media (max-width: 760px) {
  .credit-table thead { display: none; }
  .credit-table, .credit-table tbody, .credit-table tr, .credit-table td { display: block; width: 100%; }
  .credit-table tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; padding: 6px 0; }
  .credit-table td { border: 0; padding: 4px 14px; }
  .credit-table td::before { content: attr(data-label); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
}
.prose { max-width: 820px; }
.prose h2 { font-size: 28px; margin-top: 36px; }

/* What's new (rendered from changelog.json by tools/make_changelog.py) */
.changelog { margin-top: 28px; }
.changelog h3 { font: 700 20px/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.cl-entry { background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; margin-bottom: 12px; }
.cl-entry h4 { font: 600 17px/1.3 var(--head); margin: 4px 0 8px; }
.cl-entry ul { margin: 0; padding-left: 20px; }
.cl-entry li { margin: 4px 0; }
.cl-meta { margin: 0; font-size: 14px; opacity: .75; }
