/* Shared styles for every page: colours, type, header, footer, buttons, panels. */

:root {
  --bg: #03060c;
  --panel: rgba(10, 18, 32, 0.72);
  --panel-solid: #0a1220;
  --text: #eef3fb;
  --muted: #b4c0d2;
  --accent: #4cc9f0;
  --accent-2: #9b5cff;
  --line: rgba(140, 200, 255, 0.16);
  --line-strong: rgba(76, 201, 240, 0.45);
  --placeholder: #ffd166;
  --display: "Orbitron", "Eurostile", "Avenir Next", Arial, sans-serif;
  --body: "Exo 2", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Starfield: CSS dots on two fixed layers, plus a faint nebula. No image files. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #ddd, transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent),
    radial-gradient(1px 1px at 60px 180px, #bbb, transparent),
    radial-gradient(1px 1px at 260px 220px, #fff, transparent),
    radial-gradient(1px 1px at 90px 300px, #eee, transparent);
  background-size: 360px 340px;
  opacity: 0.8;
}

body::after {
  background-image:
    radial-gradient(2px 2px at 300px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 110px 210px, #ccc, transparent),
    radial-gradient(1.5px 1.5px at 420px 300px, #fff, transparent),
    radial-gradient(2px 2px at 40px 420px, #fff, transparent),
    radial-gradient(60vw 40vh at 85% 0%, rgba(155, 92, 255, 0.12), transparent 70%),
    radial-gradient(50vw 40vh at 0% 100%, rgba(76, 201, 240, 0.08), transparent 70%);
  background-size: 530px 470px, 530px 470px, 530px 470px, 530px 470px, 100% 100%, 100% 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 8.4vw, 4.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.375rem, 3.6vw, 2rem);
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .wrap {
    padding: 0 28px;
  }
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: #02121a;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 6, 12, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  min-height: var(--header-h);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0 4px;
  border-bottom: 2px solid transparent;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Phones: keep the four links on one row so the sticky header stays short. */
@media (max-width: 599px) {
  .site-header .wrap {
    gap: 2px 16px;
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }
}

/* Page hero (inner pages) */
.hero {
  padding: 56px 0 36px;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 88px;
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.tagline {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--muted);
  text-wrap: balance;
}

.accent-rule {
  width: 96px;
  height: 3px;
  margin-top: 24px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.lead {
  margin-top: 20px;
  max-width: 64ch;
  color: var(--muted);
  text-wrap: pretty;
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-lead {
  max-width: 64ch;
  margin-bottom: 32px;
  color: var(--muted);
  text-wrap: pretty;
}

.note {
  margin-top: 20px;
  color: var(--muted);
}

.note + .note {
  margin-top: 8px;
}

.note strong {
  color: var(--text);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(76, 201, 240, 0.28), rgba(76, 201, 240, 0.1));
  color: var(--text);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: rgba(76, 201, 240, 0.34);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(76, 201, 240, 0.12);
}

/* HUD panel: thin border with bright corner brackets */
.hud {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hud::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 16px no-repeat;
}

/* Amber marks text still to be confirmed. Remove this class once a value is filled in. */
.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 209, 102, 0.12);
  color: var(--placeholder);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text);
}

.site-footer .small {
  color: var(--muted);
  font-size: 0.875rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
