/* Drone War pages on www.xn3tech.com: the product page and the player's manual.
   A sober operations room: night blue, Republic blue and Empire red, after the game itself. Light and dark follow the system. */
:root{
  --bg:#eef1f4;--bg2:#e2e7ec;--surface:#ffffff;--ink:#141b22;--muted:#4a5866;--line:#cdd5dd;
  --blue:#1f62b3;--blueSoft:#dbe8f6;--red:#b23a35;--redSoft:#f5dedc;--on:#ffffff;
  --band:#0e1317;--bandText:#e3e9ef;--bandMuted:#9fb0c0;--bandLine:#26313b;--code:#e4e9ee;
  --shadow:0 12px 32px rgba(10,20,30,0.16);
  --display:'IBM Plex Serif',Georgia,'Times New Roman',serif;
  --mono:'IBM Plex Mono',Consolas,monospace;
  --text:'IBM Plex Sans','Segoe UI',system-ui,-apple-system,sans-serif;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0b1014;--bg2:#10171d;--surface:#141c23;--ink:#e3e9ef;--muted:#9fb0c0;--line:#26313b;
  --blue:#6fb6ff;--blueSoft:#132a40;--red:#f08a80;--redSoft:#3a1816;--on:#0b1014;
  --band:#070a0d;--bandText:#e3e9ef;--bandMuted:#8fa0b0;--bandLine:#1e2730;--code:#1b252e;
  --shadow:0 12px 32px rgba(0,0,0,0.5);
}}
:root[data-theme="dark"]{
  --bg:#0b1014;--bg2:#10171d;--surface:#141c23;--ink:#e3e9ef;--muted:#9fb0c0;--line:#26313b;
  --blue:#6fb6ff;--blueSoft:#132a40;--red:#f08a80;--redSoft:#3a1816;--on:#0b1014;
  --band:#070a0d;--bandText:#e3e9ef;--bandMuted:#8fa0b0;--bandLine:#1e2730;--code:#1b252e;
  --shadow:0 12px 32px rgba(0,0,0,0.5);
}
@media (prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--text);font-size:18px;line-height:1.6}
[id]{scroll-margin-top:84px}
a{color:var(--blue);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}
img{max-width:100%;height:auto}
h1,h2,h3{font-family:var(--display);font-weight:600;line-height:1.15}
.wrap{max-width:1180px;margin:0 auto;padding:0 clamp(16px,4vw,40px)}
.muted{color:var(--muted)}
.skip{position:absolute;left:-9999px;top:8px;z-index:20;background:var(--surface);color:var(--ink);padding:8px 14px;border:2px solid var(--blue);border-radius:6px}
.skip:focus{left:12px}

/* Site header and footer (the XN3 Technologies brand, as on every page of the site) */
header.site{position:sticky;top:0;z-index:10;background:var(--bg);border-bottom:1px solid var(--line)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:700;font-size:19px}
nav.top{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:16px}
nav.top a{color:var(--ink);text-decoration:none;padding:6px 0}
nav.top a:hover{color:var(--blue)}
footer.site{background:var(--band);color:var(--bandText);padding:36px 0 28px;margin-top:0}
footer.site .row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center}
footer.site .brand{color:var(--bandText)}
footer.site nav{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:16px}
footer.site nav a{color:var(--bandText)}
footer.site .fine{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;border-top:1px solid var(--bandLine);margin-top:22px;padding-top:16px;font-size:14px;color:var(--bandMuted)}

/* Hero */
.hero{background:var(--band);color:var(--bandText);padding:clamp(36px,6vw,72px) 0}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);gap:clamp(24px,4vw,48px);align-items:center}
.eyebrow{font-family:var(--mono);font-size:14px;letter-spacing:0.12em;text-transform:uppercase;color:#6fb6ff;margin:0 0 8px}
.wordmark{font-family:var(--display);font-size:clamp(44px,7vw,72px);font-weight:600;line-height:1;margin:0 0 14px;color:#fff}
.hero h1{font-size:clamp(24px,3vw,32px);margin:0 0 14px;color:var(--bandText)}
.hero .lead{color:var(--bandMuted);margin:0 0 20px;font-size:19px}
.hero figure{margin:0}
.hero figure img{display:block;width:100%;border-radius:8px;box-shadow:0 16px 40px rgba(0,0,0,0.5)}
.hero figcaption{font-size:14px;color:var(--bandMuted);margin-top:8px}
.btns{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:16px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:6px;font-weight:600;text-decoration:none;border:1px solid transparent}
.btn.primary{background:#6fb6ff;color:#0b1014}
.btn.primary:hover{background:#9ccbff}
.soon{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid var(--bandLine);border-radius:6px;color:var(--bandText);font-weight:600}
.soon svg{width:20px;height:20px}
.facts-line{font-family:var(--mono);font-size:14px;color:var(--bandMuted);margin:0}

/* Sections */
.section{padding:clamp(44px,6vw,76px) 0}
.section.alt{background:var(--bg2)}
.section h2{font-size:clamp(28px,3.4vw,38px);margin:0 0 10px}
.section .sub{color:var(--muted);max-width:760px;margin:0 0 28px}
.feature{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);gap:clamp(20px,4vw,44px);align-items:center;margin:0 0 clamp(36px,5vw,56px)}
.feature:last-child{margin-bottom:0}
.feature.flip>figure{order:-1}
.feature h3{font-size:24px;margin:0 0 8px}
.feature p{margin:0 0 10px}
.shot{margin:0}
.shot img{display:block;width:100%;border-radius:6px;border:1px solid var(--line);box-shadow:var(--shadow)}
.shot figcaption{font-size:14px;color:var(--muted);margin-top:6px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:18px 20px}
.card h3{font-size:20px;margin:0 0 6px}
.card p{margin:0;color:var(--muted);font-size:16px}
.tag{font-family:var(--mono);font-size:13px;color:var(--red);letter-spacing:0.06em;text-transform:uppercase}
dl.details{display:grid;grid-template-columns:minmax(140px,220px) 1fr;gap:10px 24px;margin:0}
dl.details dt{font-weight:600}
dl.details dd{margin:0;color:var(--muted)}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 18px;margin:0 0 10px}
.faq summary{cursor:pointer;font-weight:600}
.faq details p{margin:10px 0 2px;color:var(--muted)}

/* The player's manual */
.manual{display:grid;grid-template-columns:240px minmax(0,1fr);gap:clamp(20px,4vw,48px);padding:clamp(28px,4vw,48px) 0 64px}
.manual nav.toc{position:sticky;top:84px;align-self:start;font-size:15px;max-height:calc(100vh - 100px);overflow:auto}
.manual nav.toc ol{list-style:none;margin:0;padding:0}
.manual nav.toc li{margin:0 0 6px}
.manual nav.toc a{color:var(--ink);text-decoration:none}
.manual nav.toc a:hover{color:var(--blue)}
.manual article{max-width:820px}
.manual article h1{font-size:clamp(32px,4vw,44px);margin:0 0 8px}
.manual article h2{font-size:28px;margin:44px 0 10px;padding-top:8px;border-top:1px solid var(--line)}
.manual article h3{font-size:20px;margin:24px 0 6px}
.manual article figure{margin:18px 0 22px}
.manual kbd,.manual .ui{font-family:var(--mono);font-size:0.86em;background:var(--code);border:1px solid var(--line);border-radius:4px;padding:1px 6px;white-space:nowrap}
.manual table{border-collapse:collapse;width:100%;font-size:16px;margin:10px 0 18px}
.manual th,.manual td{text-align:left;border-bottom:1px solid var(--line);padding:6px 10px 6px 0;vertical-align:top}
.note{background:var(--blueSoft);border-left:4px solid var(--blue);padding:10px 14px;border-radius:4px;margin:14px 0}

@media (max-width:860px){
  .hero .wrap,.feature{grid-template-columns:1fr}
  .feature.flip>figure{order:0}
  .manual{grid-template-columns:1fr}
  .manual nav.toc{position:static;max-height:none}
  dl.details{grid-template-columns:1fr}
  dl.details dd{margin-bottom:8px}
}
