:root {
  --space: #0b1626;
  --panel: #13243b;
  --panel-2: #1a3150;
  --frame: #dfe8f0;
  --teal: #0f9ea8;
  --teal-bright: #5ae4f0;
  --text: #e9f0f6;
  --text-soft: #a9bccd;
  --rule: #2a4566;
  --head: "Quantico", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Exo 2", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--teal-bright); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }

.wrap { max-width: 68rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.prose { max-width: 44rem; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--space); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { font-family: var(--head); font-size: 1rem; color: var(--text-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

/* the game's framed panel, with its title tab */
.frame { position: relative; border: 1.5px solid var(--frame); background: var(--panel); padding: 2.75rem 1.5rem 1.75rem; margin-top: 1.25rem; }
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--teal-bright); }
.frame::before { top: -2px; left: -2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.frame::after { bottom: -2px; right: -2px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.tab {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--panel-2); border: 1.5px solid var(--frame);
  padding: 0.35rem 1.5rem; white-space: nowrap; font-family: var(--head); font-size: 1.05rem; color: #fff;
}

/* section heading: triangle + rule, like the game's rows */
.row-head { display: flex; align-items: center; gap: 0.75rem; margin: 3rem 0 1rem; }
.row-head::before { content: ""; width: 0; height: 0; flex: none; border-left: 14px solid var(--teal-bright); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.row-head h2 { margin: 0; flex: none; }
.row-head::after { content: ""; height: 3px; background: var(--teal); flex: 1; }

h1, h2, h3 { font-family: var(--head); color: #fff; line-height: 1.15; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

/* buttons, like the game's */
.btn { display: inline-block; font-family: var(--head); font-size: 1.05rem; padding: 0.75rem 1.4rem; min-height: 48px; text-decoration: none; color: #fff; border: 1.5px solid var(--frame); background: var(--panel-2); }
.btn.primary { background: var(--teal); }
.btn:hover { color: #fff; filter: brightness(1.15); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* home: hero */
.hero { padding: 2.5rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); margin: 0; letter-spacing: 0.01em; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--head); font-size: 0.95rem; color: var(--teal-bright); margin-bottom: 0.75rem; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--teal-bright); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.lede { font-size: 1.2rem; color: var(--text-soft); max-width: 32rem; margin: 0.75rem 0 0; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }

/* picture slots: fill automatically when images are added */
.shot { margin: 0; border: 1.5px solid var(--frame); background: var(--space); aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.missing img { display: none; }
.shot.missing::after {
  content: attr(data-slot); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: var(--text-soft); font-family: var(--head); font-size: 0.95rem;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(90, 228, 240, 0.06) 14px 28px);
}
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.feature { border: 1px solid var(--rule); background: var(--panel); padding: 1.1rem 1.25rem; }
.feature h3 { margin: 0 0 0.35rem; color: var(--teal-bright); }
.feature p { margin: 0; color: var(--text-soft); }

/* policy pages */
main { padding: 2.5rem 0 4rem; }
.page-title { font-size: clamp(2.1rem, 6vw, 3rem); margin: 0 0 0.25rem; }
.updated { color: var(--text-soft); margin: 0 0 2rem; }
.prose h2 { margin: 2.5rem 0 0.75rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--teal); }
.note { border-left: 4px solid var(--teal-bright); background: var(--panel); padding: 0.9rem 1.1rem; margin: 1.5rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
th { font-family: var(--head); color: #fff; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--text-soft); font-size: 0.95rem; padding: 1.75rem 0 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: #fff; }
