@import url("https://fonts.googleapis.com/css2?family=Antonio:wght@500;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  color-scheme: dark;
  --black: #000000;
  --panel: #101112;
  --panel-soft: #151617;
  --blue: #1a8cff;
  --blue-dim: #1263ad;
  --text: #b3d9ff;
  --muted: #7099c2;
  --red: #d7424e;
  --red-dim: #912630;
  --violet: #8f82e6;
  --green: #75d6c6;
  --warning: #ffb266;
  --line: rgba(26, 140, 255, 0.58);
  --hairline: rgba(179, 217, 255, 0.18);
  --condensed: "Antonio", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --mono: "Space Mono", Consolas, "Roboto Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "06\A 03\A 26";
  white-space: pre;
  position: fixed;
  top: 128px;
  left: calc(50% - 488px);
  z-index: -1;
  color: var(--red);
  font: 400 1.35rem / 1.9 var(--mono);
  text-align: right;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(50% - 408px);
  z-index: -1;
  width: 4px;
  background:
    linear-gradient(
      var(--red) 0 18%,
      transparent 18% 22%,
      var(--blue) 22% 56%,
      transparent 56% 60%,
      var(--violet) 60% 100%
    );
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

.site-header {
  position: relative;
  z-index: 5;
  padding: 8px 0 0;
  background: var(--black);
}

.site-header::before {
  content: "LCARS 45-2026";
  position: absolute;
  top: 64px;
  right: calc(50% - 608px);
  color: var(--muted);
  font: 400 1.28rem / 1 var(--mono);
  letter-spacing: 0.12em;
}

.site-header::after {
  content: "";
  display: block;
  width: min(1032px, calc(100% - 42px));
  height: 1px;
  margin: 0 auto;
  background: var(--hairline);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1032px, calc(100% - 42px));
  margin: 0 auto;
}

.header-inner {
  min-height: 126px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 30px;
}

.brand {
  width: fit-content;
  min-width: 380px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: calc((100vw - min(1032px, calc(100vw - 42px))) / -2);
  padding: 7px 18px 8px 16px;
  border-radius: 0 22px 0 0;
  background: var(--blue);
  color: var(--black);
  font: 700 clamp(1.42rem, 2.8vw, 1.95rem) / 1 var(--condensed);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.4);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 124px;
  font-family: var(--condensed);
  text-transform: uppercase;
}

.nav a {
  min-width: 76px;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 14px 2px;
  border-radius: 18px 18px 0 0;
  background: var(--muted);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: var(--red);
  color: var(--black);
}

.hero {
  position: relative;
  width: min(1032px, calc(100% - 42px));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 394px);
  align-items: center;
  gap: 44px;
  margin: 0 auto 24px;
  background: var(--black);
}

.hero::before {
  content: "01\A\A 06\A\A 26";
  white-space: pre;
  position: absolute;
  top: 38px;
  left: -68px;
  color: var(--red);
  font: 400 1.4rem / 1.25 var(--mono);
  text-align: right;
}

.hero::after {
  content:
    "21 RESULT: NEGATIVE. PROCEEDING.\A"
    "22 CACHE INVALIDATED. REBUILDING INDEX...\A"
    "23 INDEX REBUILT IN 0.04ms\A"
    "24 USER SESSION AUTHENTICATED\A"
    "25 LOADING READER PREFERENCES...\A"
    "26 THEME: LCARS-DARK-MODE\A"
    "27 READY FOR INPUT\A"
    "28 INITIALIZING PUBLISHING INTERFACE...\A"
    "29 LOADING SERIES CATALOG [OK]\A"
    "30 ESTABLISHING SECURE CONNECTION...\A"
    "31 MANUSCRIPT CHANNEL: VERIFIED\A"
    "32 SYNC: 99.98% COMPLETE\A"
    "33 OPTIMIZING DISTRIBUTION STREAMS...\A"
    "34 > run editorial_diagnostic --full\A"
    "35 CHECKING INTEGRITY...\A"
    "36 RIGHTS RETENTION: AUTHOR OWNED\A"
    "37 STATUS: ONLINE";
  white-space: pre;
  align-self: center;
  min-height: 492px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px 32px 0 32px;
  background:
    linear-gradient(rgba(26, 140, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 217, 255, 0.08) 1px, transparent 1px),
    var(--black);
  background-size: 100% 28px, 56px 100%;
  color: rgba(179, 217, 255, 0.48);
  font: 400 0.75rem / 1.72 var(--mono);
  box-shadow: inset 0 -24px 34px rgba(26, 140, 255, 0.18);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: 42px 0 44px;
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 4px 18px 5px;
  border-radius: 16px;
  background: var(--red);
  color: var(--black);
  font-family: var(--condensed);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 18px;
  font-family: var(--condensed);
  font-weight: 700;
  line-height: 0.93;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  color: var(--blue);
  font-size: clamp(4.5rem, 8.2vw, 6.25rem);
  letter-spacing: 0.02em;
}

h2 {
  color: var(--blue);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

h3 {
  color: var(--blue);
  font-size: 1.42rem;
  line-height: 1.06;
}

h4 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.1;
}

p {
  margin: 0 0 18px;
}

.lead {
  position: relative;
  max-width: 58ch;
  margin-top: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--violet);
  color: #d9eaff;
  font-size: 1rem;
  line-height: 1.8;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 2px solid var(--red);
  border-radius: 24px;
  background: var(--red);
  color: var(--black);
  font-family: var(--condensed);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.secondary {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue);
}

.button:hover {
  filter: brightness(1.12);
}

.section {
  position: relative;
  width: min(1032px, calc(100% - 42px));
  margin: 0 auto;
  padding: 54px 0 20px;
  background: var(--black);
}

.section::before {
  content: "";
  position: absolute;
  top: 66px;
  left: 8px;
  bottom: 20px;
  width: 4px;
  background: var(--blue);
}

.section::after {
  content: "";
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  height: 32px;
  border-radius: 20px 20px 20px 0;
  background:
    linear-gradient(90deg, var(--blue) 0 27%, transparent 27% 28%, var(--blue-dim) 28% 100%);
  z-index: 0;
}

.section.alt::before,
.section.alt::after {
  background:
    linear-gradient(90deg, var(--red) 0 27%, transparent 27% 28%, var(--red-dim) 28% 100%);
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-inner > .eyebrow {
  margin-top: 0;
  background: var(--blue);
}

.content {
  position: relative;
  max-width: none;
  padding: 86px 28px 30px 28px;
  background: transparent;
}

.content::before {
  content: "DATABASE";
  position: absolute;
  top: 58px;
  left: 28px;
  color: var(--black);
  font: 700 1rem / 1 var(--condensed);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content > div,
.content > p,
.content > ul,
.content > ol,
.content blockquote {
  max-width: 74ch;
}

.content h1 {
  max-width: 18ch;
  font-size: clamp(2.7rem, 5.5vw, 4.6rem);
}

.content h2 {
  margin-top: 28px;
}

.content h2:first-child,
.content .eyebrow + h1 + div h2:first-child {
  margin-top: 0;
}

.content a:not(.button) {
  color: var(--red);
  font-weight: 700;
}

.content ul,
.content ol {
  padding-left: 1.4rem;
}

.content li {
  margin-bottom: 8px;
}

.content article {
  position: relative;
  margin: 14px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.content article h3 {
  margin: 0;
  padding-right: 32px;
}

.content article a,
.content div > a:not(.brand) {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin: 8px 8px 8px 0;
  padding: 5px 18px;
  border: 2px solid var(--blue);
  border-radius: 18px;
  background: transparent;
  color: var(--blue);
  font-family: var(--condensed);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.content div > a:not(.brand):hover,
.content article a:hover {
  background: var(--blue);
  color: var(--black);
}

.content a:empty {
  display: none !important;
}

.content a[href^="https://www.amazon.com/dp/"]:empty,
.content a[href^="https://play.google.com/store"]:empty {
  display: none !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  min-height: 184px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.tile h3 {
  margin-bottom: 10px;
}

.section-inner > .covers,
.section-inner > h2,
.section-inner > .eyebrow {
  position: relative;
  z-index: 1;
}

.section-inner > h2 {
  padding: 70px 0 8px 28px;
}

.covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 18px;
  padding: 0 0 40px 28px;
  margin-top: 24px;
}

.cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(26, 140, 255, 0.14);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  width: min(1032px, calc(100% - 42px));
  margin: 34px auto 0;
  padding: 26px 0 36px;
  border-top: 1px solid var(--hairline);
  background: var(--black);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--blue);
}

@media (max-width: 1180px) {
  body::before,
  body::after,
  .hero::before {
    display: none;
  }

  .brand {
    margin-left: 0;
  }

  .site-header::before {
    right: 21px;
  }
}

@media (max-width: 900px) {
  .site-header::before {
    position: static;
    display: block;
    width: min(1032px, calc(100% - 42px));
    margin: 0 auto 14px;
    text-align: right;
  }

  .header-inner {
    min-height: 0;
    gap: 18px;
    padding-bottom: 18px;
  }

  .brand {
    min-width: 0;
    width: 100%;
  }

  .nav {
    justify-content: flex-start;
    padding-left: 0;
  }

  .nav a {
    min-height: 28px;
    border-radius: 16px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 54px 0 32px;
  }

  .hero::after {
    min-height: 260px;
  }

  .content {
    padding-right: 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, 1032px);
  }

  .brand {
    font-size: 1.08rem;
    letter-spacing: 0.08em;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav {
    gap: 7px;
  }

  .nav a {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
    padding-inline: 10px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 12.5vw, 3.65rem);
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 0.92rem;
  }

  .actions {
    flex-direction: column;
  }

  .button,
  .content div > a:not(.brand) {
    width: 100%;
  }

  .section::before {
    left: 0;
  }

  .section::after {
    height: 28px;
  }

  .content {
    padding: 76px 0 24px 18px;
  }

  .content::before {
    left: 18px;
  }

  .section-inner > h2 {
    padding-left: 18px;
  }

  .covers {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    padding-left: 18px;
  }
}
