/* Starship Camper — redesign preview, Dec 2026 */
:root {
  --bg: #07080a;
  --bg-elev: #121418;
  --bg-elev-2: #191b20;
  --steel: #e8e9ed;
  --steel-dim: #9aa0a8;
  --text: #f4f4f2;
  --muted: #a7aab2;
  --line: rgba(232, 233, 237, 0.12);
  --accent: #c9864a;
  --accent-soft: rgba(201, 134, 74, 0.16);
  --max: 72rem;
  --gutter: 1.25rem;
  --sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --header-h: 3.4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible, audio:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark img { width: 1.7rem; height: 1.7rem; border-radius: 0.28rem; }
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 0;
  border: 0;
  color: var(--text);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 58%;
  z-index: 0;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.28) 0%, rgba(7, 8, 10, 0.08) 28%, rgba(7, 8, 10, 0.2) 50%, rgba(7, 8, 10, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 8, 10, 0.45) 0%, rgba(7, 8, 10, 0.05) 55%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 5.5rem 0 2.75rem;
}
.kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8.2vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 650;
  max-width: 12ch;
}
.tagline {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 22ch;
  color: var(--text);
}
.hero-sub {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: #d0d2d8;
  font-size: 1.02rem;
}
.hero-intro {
  margin: 1.5rem 0 0;
  max-width: 24rem;
}
.play-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--steel);
}
.hero-intro audio,
.intro-audio {
  display: block;
  width: 100%;
  height: 2.6rem;
  margin: 0;
  filter: saturate(0.85);
}
.transcript {
  margin: 0.7rem 0 0;
  color: #d0d2d8;
  font-size: 0.92rem;
}
.transcript summary {
  cursor: pointer;
  color: var(--steel);
  font-weight: 600;
  list-style: none;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "▸ "; color: var(--accent); }
.transcript[open] summary::before { content: "▾ "; }
.transcript p { margin: 0.65rem 0 0; color: var(--muted); max-width: 42rem; }
.photo-credit {
  margin: 1.35rem 0 0;
  max-width: 40rem;
  color: #b3b6be;
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Sections */
main > section,
.archive-main > section {
  padding: 4.25rem 0;
  border-top: 1px solid var(--line);
}
.section-label {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-weight: 650;
}
.lede {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.06rem;
}

/* Concept stats */
.stats {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
}
.stats li {
  margin: 0;
  padding: 1.25rem 1.1rem 1.2rem;
  background: var(--bg-elev);
}
.stats .num {
  display: block;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 650;
  color: var(--text);
}
.stats .lbl {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.fineprint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 42rem;
}

/* Interior / build figures */
.split {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  grid-template-columns: 1fr;
}
.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: #111;
}
.shot figcaption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.shot figcaption .cap-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Build log cards */
.log {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.log > li { margin: 0; }
.log article {
  height: 100%;
  padding: 1.2rem 1.2rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.log time {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.log h3 {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.log p { margin: 0.5rem 0 0; color: var(--muted); }
.log .card-links {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}
.log .card-links a {
  color: var(--steel);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.log .card-links a:hover { color: #fff; }

/* Watch */
.link-list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.link-list li { margin: 0; padding: 0; border: 0; }
.link-list a {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
}
.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--steel-dim);
  background: var(--bg-elev-2);
}
.link-list .links-featured a {
  border-color: var(--accent);
  font-weight: 600;
  padding: 1rem;
}
.link-list .multi {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--bg-elev);
  color: var(--muted);
}
.link-list .multi a { display: inline; padding: 0; border: 0; background: none; font-weight: 600; }

.episode-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0 0;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: #111;
}
.episode-caption {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Design history stubs */
.history-index {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.history-index li {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--bg-elev);
}
.history-index a { font-weight: 600; text-decoration: none; }
.history-index a:hover { color: #fff; text-decoration: underline; }
.history-index .note {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Follow / contact / footer */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  background: var(--bg-elev);
  min-height: 2.5rem;
  line-height: 1.6;
}
.social a:hover {
  border-color: var(--steel-dim);
  background: var(--bg-elev-2);
}
.placeholder {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 0.7rem;
  color: var(--muted);
}
.placeholder strong { color: var(--steel); }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter) 3rem;
  color: var(--muted);
  font-size: 0.86rem;
}
footer .wrap { display: grid; gap: 0.85rem; }
.social-foot ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
}
.social-foot a:hover {
  border-color: var(--steel-dim);
  background: var(--bg-elev-2);
}
.social-foot .icon { width: 1.05rem; height: 1.05rem; flex: none; }
.disclaimer { max-width: 46rem; margin: 0; }
.legal { margin: 0; }
.legal a { color: var(--muted); }

/* Archive page */
.archive-hero {
  padding: 3.5rem 0 2rem;
}
.archive-hero h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.back-link {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover { color: #fff; }

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 1.15rem 1.2rem 1.2rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.card p, .card ul { margin: 0; color: var(--muted); }
.card ul { padding-left: 1.1rem; }
.card li { margin: 0.25rem 0; }
.card li::marker { color: var(--accent); }

.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.35rem;
  border-left: 1px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.28rem;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
}
.timeline time {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}
.progress-log article p,
.progress-log article ul { margin: 0.3rem 0 0; color: var(--muted); }
.progress-figure {
  margin: 0.85rem 0 0;
  max-width: 46rem;
}
.progress-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: #111;
}
.progress-figure figcaption {
  margin: 0.45rem 0 0;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
}
.progress-figure figcaption .progress-next {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
.progress-log article ul { padding-left: 1.1rem; }
.progress-log article ul li { margin: 0.2rem 0; padding: 0; border: 0; }
.progress-log article ul li::before { content: none; }
.progress-log article ul li::marker { color: var(--accent); }
.progress-watch { margin: 0.85rem 0 0; max-width: 46rem; }
.progress-watch a {
  display: block;
  padding: 0.95rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.55rem;
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.progress-watch a:hover,
.progress-watch a:focus-visible {
  border-color: var(--accent);
  background: var(--bg-elev-2);
}

.gallery {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem 1rem;
  grid-template-columns: 1fr;
}
.gallery li { margin: 0; }
.gallery a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: #111;
}
.gallery a:hover img,
.gallery a:focus-visible img { border-color: var(--steel-dim); }
.gallery-caption {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.blueprint-note { margin: 0 0 1rem; color: #f0b429; }
.blueprint-sheets img { aspect-ratio: 4 / 3; }
.blueprint-download { margin-top: 1.25rem; }
.blueprint-download a { font-weight: 600; }

/* 404 */
.err {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem var(--gutter);
}
.err h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
}
.err p { color: var(--muted); }
.err a {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  background: var(--bg-elev);
}

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .log { grid-template-columns: 1fr 1fr; }
  .log li.span-2 { grid-column: 1 / -1; }
  .grid, .grid.notes { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 6.5rem 0 3.4rem; }
}
@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
  }
  nav { width: 100%; }
  nav ul { gap: 0.25rem 0.65rem; justify-content: flex-start; }
  nav a { font-size: 0.72rem; letter-spacing: 0.03em; }
  .hero { min-height: 100svh; }
  .hero-bg { object-position: 62% 55%; }
  .hero-content { padding: 4.5rem 0 2rem; }
  main > section,
  .archive-main > section { padding: 3rem 0; }
}
@media (max-width: 420px) {
  .social-foot a { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
  .stats li { padding: 1rem 0.85rem 1rem; }
}
