/* Direct Order 27. The approved "DO27 Website v1" design (Claude design canvas, 2026-10-05) on the house brand's
   §8 Games rules: Ink ground, white opacity ramp, Signal white for active and primary things, mono type throughout.
   Steve blue is Steve's alone. No cross shapes anywhere, icons included. */

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/spacemono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/spacemono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrainsmono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrainsmono-italic.woff2") format("woff2");
  font-weight: 100 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #000000;
  --ink-raised: #09090b;
  --graphite: #131316;
  --line: rgba(255, 255, 255, 0.1);
  --shade: rgba(255, 255, 255, 0.25);
  --muted: rgba(255, 255, 255, 0.55);
  --strong: rgba(255, 255, 255, 0.8);
  --text: rgba(255, 255, 255, 0.9);
  --signal: #ffffff;
  --steve: #82e2ff;
  --display: "Space Mono", ui-monospace, monospace;
  --body: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--signal);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Shared type */

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-sm {
  font-size: 12px;
}

.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  color: var(--signal);
}

.h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  color: var(--signal);
}

.page-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  color: var(--signal);
}

.lede {
  font-size: 18px;
  color: var(--strong);
}

.note {
  font-size: 14px;
  color: var(--muted);
}

.text-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-primary {
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

.btn-primary:hover {
  color: var(--ink);
  background: var(--strong);
}

.btn-outline {
  padding: 0 20px;
  border: 1px solid var(--shade);
  color: var(--strong);
}

.btn-muted {
  color: var(--muted);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--signal);
}

.mark {
  flex: none;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links .nav-alpha {
  border: 1px solid var(--shade);
}

.nav-links a[aria-current="page"] {
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  border-color: var(--signal);
}

/* Home: hero */

.hero {
  padding-top: 96px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--signal);
}

.hero-pitch {
  max-width: 34em;
  font-size: 18px;
  color: var(--strong);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.order-panel {
  flex: 1 1 440px;
  min-width: 0;
  margin: 0;
  padding: 32px;
  background: var(--graphite);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

.order-panel figcaption {
  font-size: 14px;
  color: var(--muted);
}

/* Pending in-game captures (the design's dashed slots) */

.capture {
  border: 1px dashed var(--shade);
  background: var(--ink-raised);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}

.capture-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.capture-label {
  font-size: 14px;
  color: var(--strong);
}

.capture-wide {
  aspect-ratio: 21 / 9;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.capture-wide .capture-label {
  font-size: 16px;
}

.capture-media,
.capture-ship {
  aspect-ratio: 16 / 9;
  justify-content: flex-end;
}

.hero-capture-wrap {
  padding-bottom: 96px;
}

/* Owner-approved in-game captures. */

.capture-shot {
  margin: 0;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  overflow: hidden;
}

.capture-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.capture-shot-wide img {
  aspect-ratio: 21 / 9;
  object-position: center top;
}

.ship .capture-shot {
  border-width: 0 0 1px;
}

/* Sample media: placeholder stills and loops, tagged so nobody mistakes them for final captures. */

.sample {
  position: relative;
  margin: 0;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  overflow: hidden;
}

.sample img,
.sample video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sample-wide img,
.sample-wide video {
  aspect-ratio: 21 / 9;
}

.sample-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--shade);
  color: var(--strong);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-caption {
  margin-top: 12px;
}

.hero-genre {
  max-width: 34em;
  font-size: 16px;
  color: var(--muted);
}

/* Home: bands */

.band {
  border-top: 1px solid var(--line);
  padding-top: 96px;
  padding-bottom: 96px;
}

.band-raised {
  background: var(--ink-raised);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.split-head {
  flex: 1 1 260px;
}

.prose-lg {
  flex: 3 1 560px;
  min-width: 0;
  max-width: 46em;
  font-size: 18px;
}

.prose-lg p + p {
  margin-top: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--graphite);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faction {
  min-height: 260px;
}

.faction-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.chip {
  flex: none;
  padding: 4px 8px;
  background: var(--signal);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline {
  font-style: italic;
  color: var(--strong);
}

.steve {
  max-width: 900px;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steve-tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steve);
}

.steve-line {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  color: var(--text);
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.faction-ship {
  margin-top: auto;
}

.chip-dim {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--shade);
  font-weight: 400;
}

.field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 2fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.field-name {
  font-family: var(--display);
  font-size: 18px;
  color: var(--signal);
}

.field-world {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--strong);
}

.field-about {
  color: var(--muted);
}

.field .chip {
  justify-self: end;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.stage-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.stage {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--graphite);
  color: var(--strong);
  border: 1px solid var(--line);
}

.stage.is-now {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}

.stage-when {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.stage-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

/* Story: the chapter reader */

.reader {
  padding-top: 64px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.chapters {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chapters .eyebrow {
  margin-bottom: 12px;
}

.chapters .note {
  margin-top: 20px;
}

.chapter-link {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  min-height: 44px;
  text-decoration: none;
  color: var(--strong);
}

.chapter-link[aria-current="page"] {
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

.chapter-num {
  min-width: 2.5em;
  opacity: 0.6;
}

.reader-main {
  flex: 3 1 620px;
  min-width: 0;
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.reader-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reader-meta {
  font-size: 14px;
  color: var(--muted);
}

.story {
  font-size: 18px;
  line-height: 1.75;
}

.story p {
  margin: 0 0 28px;
}

/* A paragraph that is only a bold line is a scene heading: place and date. */
.story p > strong:only-child {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--signal);
}

.story hr {
  margin: 12px 0 40px;
  border: 0;
  border-top: 1px solid var(--line);
}

.story blockquote {
  margin: 0 0 28px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--shade);
  color: var(--signal);
}

.story blockquote p:last-child {
  margin-bottom: 0;
}

.shot {
  margin: 12px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shot .capture {
  align-items: center;
  justify-content: center;
}

.shot figcaption {
  font-size: 14px;
  color: var(--muted);
}

.reader-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Ships and Alpha pages */

.page-main {
  padding-top: 64px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-main-roomy {
  gap: 64px;
}

.page-intro {
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters[hidden] {
  display: none;
}

.filter {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--strong);
  border: 1px solid var(--shade);
}

.filter[aria-pressed="true"] {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
  font-weight: 700;
}

.ship-class {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.ship-class[hidden] {
  display: none;
}

.ship-class-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
}

.ship-class-line {
  flex: 1 1 420px;
  max-width: 52em;
  color: var(--strong);
}

.ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.ship {
  background: var(--graphite);
  min-width: 0;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.ship[hidden] {
  display: none;
}

.capture-ship {
  border-width: 0 0 1px;
  padding: 16px;
}

.ship .sample {
  border-width: 0 0 1px;
}

.ship-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ship-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ship-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  color: var(--signal);
}

.ship-role {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--strong);
}

.stage-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.badge {
  flex: 0 0 96px;
  padding: 4px 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--shade);
  color: var(--muted);
}

.badge.is-now {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

.stage-row-name {
  flex: 1 1 220px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--signal);
}

.stage-row-detail {
  flex: 2 1 360px;
  color: var(--strong);
}

.steam-box {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 40px;
  background: var(--graphite);
  border: 1px solid var(--line);
}

.steam-copy {
  flex: 2 1 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steam-copy p {
  color: var(--strong);
}

.steam-action {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
}

.faq {
  max-width: 52em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq .h2 {
  margin-bottom: 16px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

/* The padding sits on the summary so the whole row is a 44 px target; the item looks the same as before. */
.faq-item summary {
  min-height: 44px;
  padding: 8px 0;
  font-size: 18px;
  color: var(--signal);
  cursor: pointer;
}

.faq-item p {
  margin-top: 4px;
  color: var(--strong);
}

.faq-contact {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

/* The engine credit and the contact address: quiet, but still 44 px targets. */
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.footer-link:hover {
  color: var(--signal);
}

/* Phones */

@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 56px;
    gap: 40px;
  }

  .hero-copy,
  .order-panel,
  .prose-lg,
  .split-head,
  .chapters,
  .reader-main,
  .steam-copy,
  .steam-action {
    flex-basis: 100%;
  }

  .order-panel,
  .steam-box {
    padding: 24px;
  }

  .band {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .split,
  .reader {
    gap: 40px;
  }

  .media-grid,
  .card-grid,
  .stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .field-world,
  .field-about {
    grid-column: 1;
  }

  .field .chip {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 0 7px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  /* Phones read the chapter first; the chapter list follows it. */
  .chapters {
    order: 2;
  }

  .story {
    font-size: 16px;
  }
}
