/* ==========================================================================
   Starship console theme, shared by artemisspaceshipbridge.com and
   incandescentworkshop.com. The two sites differ only in the accent colours
   chosen by <html data-site="...">. Keep this file identical in both sites.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #04060c;
  --bg-2: #0a1020;
  --panel: rgba(12, 20, 38, 0.74);
  --panel-solid: #0d1628;
  --line: rgba(140, 180, 230, 0.18);
  --text: #dbe6f5;
  --muted: #9aabc4;
  --heading: #f4f8ff;
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-body: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --max: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
}

html[data-site="artemis"] {
  --accent: #3cc8ff;
  --accent-rgb: 60, 200, 255;
  --accent-2: #ff9a4d;
  --accent-2-rgb: 255, 154, 77;
  --nebula-a: rgba(30, 110, 220, 0.20);
  --nebula-b: rgba(255, 130, 60, 0.10);
}

html[data-site="incandescent"] {
  --accent: #ffb547;
  --accent-rgb: 255, 181, 71;
  --accent-2: #ff6a3d;
  --accent-2-rgb: 255, 106, 61;
  --nebula-a: rgba(255, 120, 40, 0.16);
  --nebula-b: rgba(120, 60, 200, 0.12);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 60% at 85% -10%, var(--nebula-a), transparent 70%),
    radial-gradient(ellipse 70% 50% at -10% 30%, var(--nebula-b), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { color: var(--heading); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #000; padding: 8px 14px; z-index: 100;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 8px; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

main { flex: 1; padding: clamp(28px, 5vw, 56px) 0 64px; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent);
  opacity: 0.55;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--heading);
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.08em; font-size: 0.95rem; text-transform: uppercase;
  margin-right: auto;
  min-width: 0;
}
.brand img { width: 38px; height: auto; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand small { display: block; font-size: 0.58rem; color: var(--accent); letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-toggle {
  display: none;
  background: transparent; color: var(--heading);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 600 0.75rem var(--font-display); letter-spacing: 0.15em;
  padding: 10px 12px; cursor: pointer;
}
.menu-toggle .bars { display: inline-block; width: 18px; vertical-align: middle; margin-right: 8px; }
.menu-toggle .bars i { display: block; height: 2px; background: var(--accent); margin: 3px 0; }

.site-nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 2px;
}
.site-nav li { margin: 0; position: relative; }
.site-nav a,
.site-nav summary {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 2px;
  border: 4px solid transparent; border-top-color: var(--accent); border-bottom: 0;
}
.site-nav a:hover, .site-nav summary:hover,
.site-nav details[open] > summary { color: #fff; background: rgba(var(--accent-rgb), 0.12); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .nav-cta > a {
  color: #001018; background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45);
}
.site-nav .nav-cta > a:hover { background: #fff; color: #001018; }

.site-nav details ul {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--panel-solid);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 22px rgba(var(--accent-rgb), 0.12);
}
.site-nav details ul a { font-size: 0.7rem; padding: 9px 12px; }

@media (max-width: 940px) {
  .js .menu-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-header.nav-open .site-nav { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(5, 9, 18, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 0; }
  .site-nav a, .site-nav summary { padding: 13px 8px; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .site-nav details ul {
    position: static; box-shadow: none; border: 0; background: transparent;
    padding: 0 0 6px 16px; border-left: 2px solid rgba(var(--accent-rgb), 0.4); margin-left: 8px;
  }
  .site-nav .nav-cta > a { margin-top: 10px; text-align: center; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav { position: static; background: none; border: 0; }
  html:not(.js) .site-nav > ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
}

/* ---------- Panels (the "console" look) ---------- */
.panel {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 36px);
  margin-bottom: 28px;
  backdrop-filter: blur(3px);
}
/* HUD corner brackets */
.panel::before {
  content: "";
  position: absolute; inset: -1px;
  pointer-events: none;
  --c: var(--accent); --l: 16px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  opacity: 0.85;
}
.panel > :last-child { margin-bottom: 0; }
.panel.alert { border-color: rgba(var(--accent-2-rgb), 0.45); }
.panel.alert::before { --c: var(--accent-2); }

.label {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.68rem var(--font-display);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.alert .label { color: var(--accent-2); }
.alert .label::before { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }

.lead { font-size: 1.2rem; color: var(--heading); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid > .panel { margin-bottom: 0; }
.stack-gap { margin-bottom: 28px; }

/* ---------- Page title band ---------- */
.page-head { margin-bottom: 32px; }
.page-head h1 { margin-bottom: 0.3em; }
.page-head p { color: var(--muted); max-width: 70ch; margin: 0; }
.page-head .label { margin-bottom: 14px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: 48px;
}
.hero-art img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), 0.25)); }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
.hero .lead { margin-bottom: 1.4em; }
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .hero-art img { max-width: 420px; }
}

.status-line {
  font: 600 0.72rem var(--font-display);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.status-line b { color: #5dff9b; font-weight: 600; }
.status-line .blink { animation: blink 1.4s steps(2, start) infinite; color: #5dff9b; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .status-line .blink { animation: none; } }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 4px; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 2px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font: 700 0.8rem var(--font-display);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  color: var(--heading);
  background: rgba(var(--accent-rgb), 0.08);
  transition: background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;
  cursor: pointer;
  text-align: left;
}
.btn small {
  font: 500 0.78rem var(--font-body); letter-spacing: 0.02em; text-transform: none;
  color: var(--muted);
}
.btn:hover { background: rgba(var(--accent-rgb), 0.2); box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.35); color: #fff; transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #00121c; border-color: var(--accent); box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.45); }
.btn.primary small { color: rgba(0, 18, 28, 0.75); }
.btn.primary:hover { background: #fff; border-color: #fff; color: #00121c; }
.btn.warm { border-color: rgba(var(--accent-2-rgb), 0.7); background: rgba(var(--accent-2-rgb), 0.1); }
.btn.warm:hover { background: rgba(var(--accent-2-rgb), 0.25); box-shadow: 0 0 22px rgba(var(--accent-2-rgb), 0.4); }
.btn.big { padding: 18px 28px; font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Station cards (Artemis) ---------- */
.stations { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.station {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.station img { aspect-ratio: 1024 / 552; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.station .body { padding: 18px 20px 20px; }
.station h3 { display: flex; align-items: baseline; gap: 10px; }
.station h3 .code { font-size: 0.65rem; color: var(--accent); letter-spacing: 0.2em; }
.station p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.station:hover { border-color: rgba(var(--accent-rgb), 0.5); box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.15); }

.crew-roles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.crew-roles li {
  margin: 0; padding: 5px 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.4); border-radius: 999px;
  font: 600 0.66rem var(--font-display); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.06);
}

/* ---------- Purchase options ---------- */
.offer { display: flex; flex-direction: column; }
.offer .price {
  font: 800 2.4rem var(--font-display); color: var(--heading); line-height: 1; margin: 4px 0 6px;
}
.offer .price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }
.offer ul { margin-bottom: 1.4em; }
.offer .btn-row { margin-top: auto; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 9px; height: 9px; border: 2px solid var(--accent); transform: rotate(45deg);
}

/* ---------- FAQ accordions ---------- */
.faq-group { margin-bottom: 36px; }
.faq-group > h2 { display: flex; align-items: center; gap: 14px; }
.faq-group > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.5), transparent); }
.faq {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 52px 16px 20px; position: relative;
  font-weight: 600; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 700 1.2rem var(--font-display); color: var(--accent);
}
.faq[open] summary::after { content: "\2212"; }
.faq[open] { border-color: rgba(var(--accent-rgb), 0.45); }
.faq .answer { padding: 0 20px 18px; }
.faq .answer > :last-child { margin-bottom: 0; }
.faq h3 { font-size: 0.85rem; color: var(--accent); letter-spacing: 0.14em; margin-top: 1em; }

/* ---------- Downloads ---------- */
.dl-list { display: grid; gap: 16px; }
.dl {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center;
}
.dl h3 { margin-bottom: 0.4em; }
.dl p { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .dl { grid-template-columns: 1fr; } }

/* ---------- Posters ---------- */
.posters { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.poster { text-decoration: none; color: var(--text); text-align: center; font-size: 0.9rem; }
.poster img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.poster:hover img { border-color: var(--accent); box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.35); }
.poster span { display: block; color: var(--muted); font-size: 0.8rem; }

/* ---------- Timeline (Incandescent) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.6;
}
.timeline li { position: relative; padding: 0 0 18px 34px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
}
.timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 20px; }
.post-meta { font: 600 0.7rem var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-list h2 a { color: var(--heading); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.prose { max-width: 72ch; }
.prose li { margin-bottom: 0.5em; }
.comment { border-left: 2px solid rgba(var(--accent-rgb), 0.5); padding: 4px 0 4px 18px; margin: 16px 0; }
.comment .who { font-weight: 700; color: var(--heading); }
.comment .when { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form .row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form label { display: block; font: 600 0.7rem var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form label .req { color: var(--accent-2); }
.form input, .form textarea {
  width: 100%;
  background: rgba(2, 6, 14, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--heading);
  font: inherit;
  padding: 12px 14px;
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); }
.form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status.ok { color: #5dff9b; }
.form-status.err { color: #ff8a7a; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Misc ---------- */
.figure { margin: 0; }
.figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.figure figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.divider { height: 1px; border: 0; margin: 40px 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.tag { display: inline-block; font: 600 0.62rem var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: rgba(var(--accent-2-rgb), 0.15); color: var(--accent-2); vertical-align: middle; }
code { background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 3px; font-size: 0.92em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 10, 0.85);
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
