/* Workloft Ships — shipping logbook chrome.
   "Ship" double-reads as both "what we ship" and "starship". The index
   page is the bridge; articles are decoded transmissions. LCARS-inspired
   chrome, starfield, stardate header. Anchored on Workloft orange
   (#FA3E33) over near-black (#0a0a0a). */

:root {
  --orange: #FA3E33;
  --orange-soft: #ff6b62;
  --orange-glow: rgba(250, 62, 51, 0.45);
  --bg: #0a0a0a;
  --bg-card: #131313;
  --ink: #f5f5f4;
  --muted: #9ca3af;
  --quiet: #6b7280;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7;
  font-size: 17px; min-height: 100vh; overflow-x: hidden;
}

.ships-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(250,62,51,0.06) 0%, transparent 35%),
    radial-gradient(circle at 82% 78%, rgba(250,62,51,0.04) 0%, transparent 40%);
}

/* === Bridge mode (index page) ============================================
   The "ships-bridge" body class swaps the ambient backdrop for a starfield
   with three parallax layers. Used on /ships/ only — articles keep the
   simpler ships-bg gradient. */

body.ships-bridge {
  background: radial-gradient(ellipse at top, #11141c 0%, #060709 55%, #030305 100%);
  min-height: 100vh;
}
.starfield {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.stars {
  position: absolute; inset: -50% -50% -50% -50%;
  background-repeat: repeat;
  background-color: transparent;
  will-change: transform;
}
/* Three layers of stars created via radial-gradient noise tiles.
   Different sizes, opacities, and drift speeds for parallax. */
.stars--far {
  background-image:
    radial-gradient(1px 1px at 20px 30px,  rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,0.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 60px, rgba(255,255,255,0.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 200px 200px,rgba(255,255,255,0.30) 50%, transparent 51%),
    radial-gradient(1px 1px at 260px 100px,rgba(255,255,255,0.20) 50%, transparent 51%);
  background-size: 320px 240px;
  animation: drift-far 240s linear infinite;
  opacity: 0.7;
}
.stars--mid {
  background-image:
    radial-gradient(1.5px 1.5px at 40px 80px, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 160px 30px, rgba(250,62,51,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 250px 170px, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90px 220px, rgba(255,255,255,0.35) 50%, transparent 51%);
  background-size: 380px 260px;
  animation: drift-mid 160s linear infinite;
  opacity: 0.85;
}
.stars--near {
  background-image:
    radial-gradient(2.5px 2.5px at 60px 100px, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(2px 2px at 220px 60px, rgba(250,62,51,0.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 300px 240px, rgba(255,255,255,0.7) 50%, transparent 51%);
  background-size: 460px 320px;
  animation: drift-near 100s linear infinite;
  opacity: 0.95;
}
@keyframes drift-far  { from { transform: translate(0, 0); }    to { transform: translate(-160px, 80px); } }
@keyframes drift-mid  { from { transform: translate(0, 0); }    to { transform: translate(-190px, 110px); } }
@keyframes drift-near { from { transform: translate(0, 0); }    to { transform: translate(-230px, 140px); } }
@media (prefers-reduced-motion: reduce) {
  .stars { animation: none; }
  .comet { display: none; }
}

/* Comet — rare orange streak across the sky every ~25 seconds */
.comet {
  position: absolute;
  top: 18%; left: -10%;
  width: 220px; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(250,62,51,0) 5%, rgba(250,62,51,0.85) 75%, #fff 100%);
  filter: blur(0.5px);
  box-shadow: 0 0 8px rgba(250,62,51,0.7);
  border-radius: 999px;
  opacity: 0;
  animation: comet-streak 22s ease-in infinite;
}
@keyframes comet-streak {
  0%, 80%, 100% { opacity: 0; transform: translate(0, 0); }
  85%           { opacity: 0.9; }
  100%          { transform: translate(140vw, 40vh); opacity: 0; }
}

/* === Bridge hero ========================================================= */
.bridge-hero {
  position: relative; z-index: 5;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.bridge-hero__bg {
  position: absolute; inset: 0;
  background-image: url('/ships/assets/bridge-hero.png');
  background-size: cover; background-position: center 35%;
  z-index: 0;
  opacity: 0.88;
}
.bridge-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,9,0.05) 0%, rgba(6,7,9,0.25) 45%, rgba(6,7,9,0.92) 92%, #060709 100%),
    radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(6,7,9,0.6) 80%);
  z-index: 1;
}
.bridge-hero__inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  padding: 64px clamp(16px, 5vw, 56px) 36px;
}

/* HUD strip of chips at the top of the hero */
.hud-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hud-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.10em;
  color: rgba(255,255,255,0.78);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  background: rgba(6,7,9,0.5);
  backdrop-filter: blur(6px);
  text-transform: uppercase;
}
.hud-chip strong { color: var(--orange); font-weight: 700; }
.hud-chip--solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 0 12px rgba(250,62,51,0.45);
}
.hud-divider {
  width: 14px; height: 1px;
  background: rgba(255,255,255,0.18);
}
.hud-pulse {
  margin-left: auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(250,62,51,0.85);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.75); }
}

.bridge-hero__title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(32px, 7vw, 84px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--orange);
  margin: 0 0 28px;
  text-transform: uppercase;
  text-shadow:
    0 0 18px var(--orange-glow),
    0 0 60px rgba(250,62,51,0.30),
    4px 4px 0 #2a0808;
}
.bridge-hero__title .amber { color: var(--orange); }
@media (max-width: 600px) {
  .bridge-hero__title { font-size: 26px; letter-spacing: 0; }
}

.bridge-hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  line-height: 1.55;
  margin: 0 0 48px;
}

/* Mission counters */
.bridge-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 720px;
}
.bridge-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: rgba(6,7,9,0.6);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid var(--orange);
  border-radius: 2px 8px 8px 2px;
  backdrop-filter: blur(6px);
}
.bridge-stat__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.bridge-stat__value {
  font-family: 'Antonio', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.bridge-stat__value--ok { color: var(--orange); }
.diode {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(250,62,51,0.85);
  animation: pulse 2.4s ease-in-out infinite;
}

@media (max-width: 900px) {
  .bridge-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bridge-hero__inner { padding: 48px 18px 40px; }
  .hud-row { margin-bottom: 24px; }
  .hud-divider { display: none; }
  .bridge-hero__title { margin-bottom: 16px; }
  .bridge-hero__sub { margin-bottom: 32px; }
}

/* === LCARS console wrapping the entries =================================== */
.bridge-console {
  position: relative; z-index: 5;
  max-width: 1100px; margin: 0 auto;
  padding: 24px clamp(16px, 5vw, 56px) 80px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
}

.lcars-rail {
  display: flex; flex-direction: column;
  gap: 6px;
  padding-top: 0;
}
.lcars-block {
  background: var(--orange);
  color: #060709;
  font-family: 'Antonio', 'Inter', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em;
  text-align: right;
  padding: 14px 14px 14px 0;
  position: relative;
}
.lcars-block--cap {
  border-radius: 32px 0 0 0;
  background: var(--orange);
  font-size: 15px;
  padding-top: 28px;
}
.lcars-block--alt {
  background: rgba(250,62,51,0.5);
  color: rgba(6,7,9,0.85);
}
.lcars-block--thin {
  padding: 6px 14px 6px 0;
  background: rgba(250,62,51,0.25);
}
.lcars-block--tail {
  border-radius: 0 0 0 32px;
  background: var(--orange);
  flex: 1;
  padding-top: 28px;
  min-height: 60px;
}

@media (max-width: 800px) {
  .bridge-console {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }
  .lcars-rail {
    flex-direction: row;
    gap: 4px;
    padding-top: 0;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
  }
  .lcars-block {
    padding: 10px 12px;
    text-align: center;
    flex: 1;
    font-size: 11px;
  }
  .lcars-block--cap { border-radius: 4px 0 0 0; padding-top: 10px; flex: 1.5; }
  .lcars-block--tail { border-radius: 0 4px 0 0; padding-top: 10px; flex: 1.5; }
  .lcars-block--thin { display: none; }
}

/* === Entries column ======================================================= */
.entries {
  display: flex; flex-direction: column;
  gap: 20px;
  padding-top: 0;
}
.entries__header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 8px;
  position: relative;
}
.entries__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}
.entries__scanline {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(250,62,51,0.6) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.entries__scanline::after {
  content: ""; position: absolute;
  top: -1px; left: -100px;
  width: 100px; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 100%);
  filter: blur(2px);
  animation: scan-sweep 6s ease-in-out infinite;
}
@keyframes scan-sweep {
  0%, 20%   { left: -100px; opacity: 0; }
  30%       { opacity: 1; }
  90%       { opacity: 1; }
  100%      { left: 110%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .entries__scanline::after { animation: none; opacity: 0; }
}

/* Log entry — LCARS card with chunky orange rail on the left */
.log-entry {
  display: grid;
  grid-template-columns: 96px 220px 1fr;
  gap: 0;
  background: linear-gradient(180deg, rgba(20,22,28,0.85) 0%, rgba(12,14,18,0.85) 100%);
  border: 1px solid rgba(250,62,51,0.18);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.log-entry:hover {
  border-color: rgba(250,62,51,0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(250,62,51,0.15);
}
.log-entry__rail {
  background: var(--orange);
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 14px;
  color: #060709;
  gap: 8px;
}
.log-entry__num {
  font-family: 'Antonio', 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.log-entry__class {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
  background: #060709;
  color: var(--orange);
  padding: 4px 8px;
  border-radius: 2px;
}

.log-entry__thumb {
  background-size: cover;
  background-position: center center;
  background-color: #0d1014;
  position: relative;
  min-height: 200px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.log-entry__thumb-frame {
  position: absolute; inset: 8px;
  border: 1px solid rgba(250,62,51,0.35);
  pointer-events: none;
  border-radius: 2px;
}
.log-entry__thumb-frame::before,
.log-entry__thumb-frame::after {
  content: ""; position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--orange);
}
.log-entry__thumb-frame::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.log-entry__thumb-frame::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.log-entry__body {
  padding: 22px 24px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.log-entry__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.log-entry__meta .dot { color: rgba(255,255,255,0.25); }
.log-entry__title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}
.log-entry__lede {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.log-entry__cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
}
.log-entry:hover .log-entry__cta .arrow { transform: translateX(4px); }
.log-entry__cta .arrow { transition: transform 160ms ease; display: inline-block; }

@media (max-width: 800px) {
  .log-entry { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
  .log-entry__thumb { grid-column: 1 / -1; grid-row: 1; min-height: 180px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .log-entry__rail { grid-row: 2; padding: 14px 10px; flex-direction: column; }
  .log-entry__num { font-size: 32px; }
  .log-entry__body { grid-row: 2; padding: 18px 20px; }
}

/* End-of-log placeholder */
.log-empty {
  display: flex; align-items: center; gap: 16px;
  margin-top: 12px;
  padding: 0 8px;
}
.log-empty__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(250,62,51,0.35) 50%, transparent 100%);
}
.log-empty__text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .log-empty__text { font-size: 9px; letter-spacing: 0.14em; white-space: normal; text-align: center; }
}

/* === Bridge footer ======================================================== */
.bridge-footer {
  position: relative; z-index: 5;
  border-top: 1px solid rgba(250,62,51,0.18);
  background: rgba(6,7,9,0.7);
}
.bridge-footer__inner {
  max-width: 1100px; margin: 0 auto;
  padding: 20px clamp(16px, 5vw, 56px);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.bridge-footer__seal {
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
}
.bridge-footer__line {
  flex: 1;
  color: rgba(255,255,255,0.4);
}
.bridge-footer__hash {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
}


.ships-header {
  position: relative; z-index: 10;
  background: #181818;
  padding: 18px clamp(14px, 4vw, 48px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.ships-brand img { height: 60px; max-height: 60px; display: block; }
.ships-header nav { display: flex; gap: 22px; align-items: center; flex-wrap: nowrap; }
.ships-header nav a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.ships-header nav a:hover { color: var(--ink); }
.ships-header nav a.active { color: var(--orange); }

@media (max-width: 700px) {
  .ships-header { padding: 14px; }
  .ships-brand img { height: 44px; }
  .ships-header nav { gap: 12px; }
}

/* === Index page === */
.ships-index {
  position: relative; z-index: 5;
  max-width: 880px; margin: 0 auto;
  padding: 64px clamp(16px, 5vw, 48px) 96px;
}
.ships-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--orange); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.ships-title {
  font-size: clamp(40px, 6vw, 64px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 18px;
}
.ships-tagline {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--muted);
  max-width: 620px; margin-bottom: 56px;
}

.ship-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 16px;
  text-decoration: none; color: inherit;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  overflow: hidden;
}
.ship-card--with-thumb {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 0;
  align-items: stretch;
}
.ship-card__thumb {
  background-size: cover;
  background-position: center center;
  background-color: #181818;
  min-height: 180px;
  border-right: 1px solid var(--glass-border);
}
.ship-card__body {
  padding: 24px 26px;
}
@media (max-width: 640px) {
  .ship-card--with-thumb {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ship-card__thumb {
    min-height: 160px;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .ship-card__body { padding: 20px 22px; }
}
.ship-card:hover {
  border-color: rgba(250,62,51,0.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(250,62,51,0.08);
}
.ship-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--quiet); letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.ship-card__cat {
  text-transform: lowercase;
  color: var(--orange);
  padding: 2px 8px;
  border: 1px solid rgba(250,62,51,0.3);
  border-radius: 999px;
  font-size: 11px;
}
.ship-card__title {
  font-size: 22px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px;
}
.ship-card__summary {
  color: var(--muted); font-size: 15.5px; line-height: 1.55;
}
.ship-card__arrow {
  display: inline-block; margin-top: 12px;
  color: var(--orange); font-weight: 600; font-size: 14px;
}

.ships-empty {
  color: var(--quiet);
  font-style: italic;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--glass-border);
  border-radius: 14px;
}

/* === Article hero — full-bleed image + dark fade. Every Ships article
       must have one. Image lives at /ships/assets/<slug>-hero.png and is
       declared inline via style="--ship-hero: url(...)" on .ship-hero. */
.ship-hero {
  position: relative; z-index: 5;
  width: 100%; min-height: 360px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.ship-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--ship-hero);
  background-size: cover; background-position: center center;
  opacity: 0.92; z-index: 0;
}
.ship-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.18) 0%,
    rgba(10,10,10,0.42) 55%,
    rgba(10,10,10,0.92) 90%,
    var(--bg) 100%);
  z-index: 1;
}
.ship-hero__inner {
  position: relative; z-index: 2;
  max-width: 740px; margin: 0 auto;
  padding: 64px clamp(16px, 5vw, 48px) 32px;
  width: 100%;
}
.ship-hero__back {
  display: inline-block;
  color: rgba(255,255,255,0.78); text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  margin-bottom: 24px;
  transition: color 120ms ease;
}
.ship-hero__back:hover { color: var(--orange); }
.ship-hero .meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: rgba(255,255,255,0.78); letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.ship-hero .meta .dot { color: rgba(255,255,255,0.4); }
.ship-hero .meta .cat { color: var(--orange); text-transform: lowercase; }
.ship-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  margin: 0;
}

@media (max-width: 640px) {
  .ship-hero { min-height: 280px; }
  .ship-hero__inner { padding: 40px 18px 24px; }
}

/* === Article page === */
.ship-article {
  position: relative; z-index: 5;
  max-width: 740px; margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 48px) 96px;
}
.back-link {
  display: inline-block;
  color: var(--muted); text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  margin-bottom: 32px;
  transition: color 120ms ease;
}
.back-link:hover { color: var(--orange); }

.ship-article .meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--muted); letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.ship-article .meta .dot { color: var(--quiet); }
.ship-article .meta .cat {
  text-transform: lowercase;
  color: var(--orange);
}

.ship-article h1 {
  font-size: clamp(30px, 4.5vw, 44px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 28px;
}
.ship-article .lede {
  font-size: 19px; line-height: 1.6; color: var(--ink);
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  margin-bottom: 40px;
}
.ship-article h2 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 44px; margin-bottom: 16px;
  color: var(--ink);
}
.ship-article p { margin-bottom: 18px; color: rgba(245,245,244,0.92); }
.ship-article ul { margin-bottom: 22px; padding-left: 22px; }
.ship-article li { margin-bottom: 10px; color: rgba(245,245,244,0.92); }
.ship-article a {
  color: var(--orange); text-decoration: none;
  border-bottom: 1px solid rgba(250,62,51,0.4);
  transition: border-color 120ms ease;
}
.ship-article a:hover { border-bottom-color: var(--orange); }
.ship-article code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--orange-soft);
}
.ship-article strong { color: var(--ink); font-weight: 600; }
.ship-article em { color: var(--ink); font-style: italic; }

.ship-footer {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 640px) {
  .ships-index { padding: 48px 18px 72px; }
  .ship-article { padding: 40px 18px 72px; }
  .ship-card { padding: 22px; }
  .ship-card__title { font-size: 19px; }
}
