:root {
  --ink: #10100e;
  --paper: #f6f1e8;
  --muted: #756f64;
  --line: rgba(16, 16, 14, 0.16);
  --charcoal: #171715;
  --copper: #b56a38;
  --red: #8c2f28;
  --green: #4f6f5b;
  --gold: #d8b46a;
  --white: #fffaf0;
  --shadow: 0 18px 50px rgba(16, 16, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(246, 241, 232, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

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

.nav-cta {
  padding: 9px 14px;
  color: var(--white) !important;
  background: var(--ink);
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: min(690px, calc(100svh - 72px));
  display: flex;
  align-items: center;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 64px);
  background:
    linear-gradient(110deg, rgba(16, 16, 14, 0.9), rgba(16, 16, 14, 0.72)),
    url("assets/ghost-fleet-logo.png") right 8vw center / min(48vw, 560px) no-repeat,
    var(--charcoal);
  color: var(--white);
}

.hero-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow,
.panel-kicker,
.tag {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.3rem, 8.6vw, 8.4rem);
}

h2 {
  font-size: clamp(2.15rem, 4vw, 4.6rem);
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: var(--copper);
  color: var(--white);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 250, 240, 0.34);
}

.signal-panel {
  padding: 24px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 250, 240, 0.16);
}

.signal-list span {
  color: var(--gold);
  font-weight: 800;
}

.signal-list strong {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.94rem;
}

.brief-band,
.content-section,
.watch-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 64px);
}

.section-heading {
  width: min(1160px, 100%);
  margin: 0 auto 30px;
}

.section-heading.split,
.about-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.text-link {
  color: var(--muted);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-note {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.brief-grid,
.article-grid,
.watch-inner,
.about-section,
.site-footer {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.brief-grid article {
  min-height: 210px;
  padding: 28px;
  background: var(--paper);
}

.brief-grid p,
.article-card p,
.about-copy p,
.subscribe-block p {
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 16, 14, 0.08);
}

.article-card.featured {
  grid-column: span 2;
  background: var(--ink);
  color: var(--white);
}

.article-card.featured p {
  color: rgba(255, 250, 240, 0.72);
}

.article-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--red);
  font-weight: 850;
}

.article-card.featured a {
  color: var(--gold);
}

.id-page {
  background: var(--paper);
}

.id-hero {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 4vw, 64px);
  background:
    linear-gradient(110deg, rgba(16, 16, 14, 0.92), rgba(16, 16, 14, 0.7)),
    url("assets/ghost-fleet-logo.png") right 8vw center / min(36vw, 420px) no-repeat,
    var(--charcoal);
  color: var(--white);
}

.id-hero-inner,
.id-library {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.id-hero h1 {
  max-width: 940px;
  font-size: clamp(3rem, 7vw, 7.2rem);
}

.id-hero.compact h1 {
  max-width: 880px;
  font-size: clamp(3rem, 6vw, 6.3rem);
}

.id-hero p:last-child {
  max-width: 720px;
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.id-library {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 64px);
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

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

.filter-wrap {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.asset-search {
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
}

.asset-search span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.asset-search input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.database-note,
.asset-count {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.asset-count {
  margin: 0;
  font-size: 0.94rem;
}

.filter-button {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--ink);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.system-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 16, 14, 0.08);
}

.system-card[hidden] {
  display: none;
}

.system-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--charcoal);
}

.system-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
}

.domain-label {
  margin: 0;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.system-card p:not(.domain-label),
.system-card li {
  color: var(--muted);
}

.system-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.system-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--red);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.asset-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 16, 14, 0.08);
}

.asset-card[hidden] {
  display: none;
}

.asset-image {
  position: relative;
  height: 280px;
  background: #111719;
}

.asset-image img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  object-position: center;
}

.asset-image-missing {
  position: absolute;
  inset: 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  color: rgba(255, 250, 240, 0.84);
  text-align: center;
  border: 1px solid rgba(255, 250, 240, 0.18);
  background: linear-gradient(145deg, rgba(255, 250, 240, 0.06), rgba(181, 106, 56, 0.12));
}

.asset-image-missing span,
.asset-image-missing em {
  color: var(--copper);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.asset-image-missing strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.asset-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.asset-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.asset-summary,
.asset-notes {
  margin: 0;
  color: var(--muted);
}

.asset-notes {
  padding-left: 12px;
  border-left: 3px solid rgba(181, 106, 56, 0.34);
  font-weight: 650;
}

.asset-specs {
  display: grid;
  gap: 1px;
  margin: 4px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.asset-specs div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 11px;
  background: var(--white);
}

.asset-specs dt {
  color: var(--copper);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-specs dd {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.catalog-heading {
  margin: clamp(56px, 8vw, 92px) 0 24px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.catalog-heading h2 {
  max-width: 760px;
}

.catalog-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.catalog-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.catalog-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.catalog-card dl div {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 12px;
  background: var(--white);
}

.catalog-card dt {
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-card dd {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.source-row a,
.source-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--red);
  background: rgba(140, 47, 40, 0.08);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 850;
}

.source-row span {
  color: var(--muted);
  background: rgba(16, 16, 14, 0.06);
}

.watch-section {
  background: var(--green);
  color: var(--white);
}

.watch-section .eyebrow {
  color: var(--gold);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: stretch;
}

.watch-visual {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(16, 16, 14, 0.05), rgba(16, 16, 14, 0.86)),
    radial-gradient(circle at 72% 24%, rgba(216, 180, 106, 0.16), transparent 34%),
    #20211d;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.watch-visual img {
  position: absolute;
  inset: 8% auto auto 50%;
  width: min(72%, 360px);
  max-height: 58%;
  transform: translateX(-50%);
  opacity: 0.46;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.watch-visual img.is-live-image {
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  transform: none;
  opacity: 0.5;
}

.watch-visual span,
.watch-visual strong {
  position: relative;
  z-index: 1;
}

.watch-visual span {
  color: var(--gold);
  font-weight: 850;
}

.watch-visual strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1;
}

.watch-lede {
  margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
}

.watch-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.watch-points {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watch-points li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 250, 240, 0.22);
  font-weight: 750;
}

.about-section {
  align-items: center;
}

.about-copy {
  max-width: 690px;
}

.subscribe-block {
  width: min(100%, 360px);
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subscribe-block .button {
  width: 100%;
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 64px) 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 71px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(110deg, rgba(16, 16, 14, 0.94), rgba(16, 16, 14, 0.76)),
      url("assets/ghost-fleet-logo.png") center 32px / 280px no-repeat,
      var(--charcoal);
    padding-top: 210px;
  }

  .hero-grid,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .brief-grid,
  .article-grid,
  .system-grid,
  .catalog-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .asset-image {
    height: 240px;
  }

  .article-card.featured {
    grid-column: auto;
  }

  .section-heading.split,
  .about-section,
  .library-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-wrap {
    justify-items: start;
  }
}

@media (min-width: 861px) and (max-width: 1060px) {
  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .asset-specs div,
  .catalog-card dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 520px) {
  .brand span {
    max-width: 190px;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
