:root {
  --void: #0a0a0c;
  --panel: #121215;
  --border: #2a2a30;
  --muted: #8e8e98;
  --text: #f4f4f5;
  --signal: #ff0028;
  --signal-hover: #cc0020;
  --link-hover: #ff3355;
  --success: #00e676;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

/* prevent any horizontal overflow on mobile */
html, body { overflow-x: clip; max-width: 100%; }
*, *::before, *::after { min-width: 0; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { overflow-wrap: break-word; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--void);
  background-size: 100% 56px;
  color: var(--text);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: url("ghost-mark.webp") center 43% / min(76vw, 860px) no-repeat;
  opacity: 0.03;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

p {
  margin: 0;
  color: var(--muted);
}

.site-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
}

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

.hero {
  display: grid;
  place-items: center;
  min-height: 650px;
  padding: 72px 0 86px;
}

.hero-column {
  width: min(100%, 720px);
  text-align: center;
}

.micro-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  max-width: 720px;
  margin: 24px auto 18px;
  font-size: 56px;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

.signup-panel {
  width: min(100%, 570px);
  margin: 38px auto 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-top-color: var(--signal);
  background: rgba(18, 18, 21, 0.94);
}

.signup-form {
  display: flex;
  gap: 10px;
}

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

input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #121215;
  color: var(--text);
  padding: 0 14px;
  font: 500 15px/1 Inter, system-ui, sans-serif;
  outline: none;
}

input[type="email"]:focus {
  border-color: #595963;
  box-shadow: 0 0 0 1px rgba(255, 0, 40, 0.24);
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--signal);
  border-radius: 0;
  background: var(--signal);
  color: #ffffff;
  padding: 0 18px;
  font: 700 13px/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  border-color: var(--signal-hover);
  background: var(--signal-hover);
  color: #ffffff;
}

.form-note {
  min-height: 22px;
  margin-top: 12px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: left;
}

.form-note.success {
  color: var(--success);
}

.section {
  padding: 74px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title {
  max-width: 560px;
}

.section-title .micro-label {
  margin-bottom: 14px;
}

h2 {
  font-size: 34px;
  font-weight: 760;
}

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

.intel-point {
  min-height: 210px;
  padding: 24px;
  background: rgba(18, 18, 21, 0.86);
}

.intel-point .index {
  display: block;
  margin-bottom: 28px;
  color: var(--signal);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 740;
  line-height: 1.12;
}

.dispatch-list {
  display: grid;
  gap: 12px;
}

.dispatch {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  padding: 24px;
  border: 1px solid var(--border);
  background: rgba(18, 18, 21, 0.76);
}

.dispatch.featured {
  padding: 30px 28px;
  border-top-color: var(--signal);
}

.dispatch-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.tag {
  width: fit-content;
  border: 1px solid var(--border);
  padding: 5px 7px;
  color: var(--muted);
}

.dispatch h3 {
  font-size: 26px;
}

.dispatch p + p {
  margin-top: 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 38px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.doc-main {
  padding: 76px 0 96px;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px);
  justify-content: center;
}

.doc-card {
  border: 1px solid var(--border);
  border-top-color: var(--signal);
  background: rgba(18, 18, 21, 0.88);
  padding: 34px;
}

.doc-card h1 {
  margin: 16px 0 18px;
  font-size: 44px;
  text-align: left;
}

.doc-card h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 22px;
}

.doc-card p,
.doc-card li {
  color: var(--muted);
  font-size: 15px;
}

.doc-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.doc-card a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.doc-card a:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 62px 0 70px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 56px);
  }

  .signup-panel {
    padding: 16px;
  }

  .signup-form {
    flex-direction: column;
  }

  button,
  .button-link {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }

  .section-header {
    display: block;
  }

  h2 {
    font-size: 29px;
  }

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

  .intel-point {
    min-height: auto;
  }

  .dispatch,
  .dispatch.featured {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .dispatch-meta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dispatch h3 {
    font-size: 23px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .doc-main {
    padding: 42px 0 70px;
  }

  .doc-card {
    padding: 22px;
  }

  .doc-card h1 {
    font-size: 38px;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
