/*
  Noradz landing page — "Signal" direction (red/black, techy).
  Built from noradz-site-spec.md. Desktop layout (1440px canvas) is the
  spec'd source of truth; breakpoints below are a build decision, not
  part of the mockup.
*/

:root {
  /* Colour tokens — red (--accent) is the sole accent colour. Don't add a second. */
  --bg: #0b0b0d;
  --surface: #131315;
  --border: #212124;
  --border-soft: #2c2c30;
  --text: #ededed;
  --text-muted: #9a9aa0;
  --text-dim: #8a8a90;
  --text-faint: #6a6a70;
  --text-faintest: #4a4a50;
  --accent: #d1293d;
  --accent-hover: #ee5a6b;

  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 72px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent-hover);
}

/* Live/status mark — a 3x3 dot grid (swapped in for the single dot per
   the design canvas's alternate logo option). */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 2px;
}

.status-grid span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  padding: 140px 72px 120px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 24px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  max-width: 780px;
  margin: 0 0 24px;
}

.subhead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 40px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  border-radius: 3px;
  padding: 12px 22px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

/* ---------- Projects ---------- */

.projects {
  padding: 100px 72px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-header .eyebrow {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faintest);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin: 0 0 16px;
}

/* Row pairing the kicker with an optional status badge (e.g. unspilled). */
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-meta .kicker {
  margin: 0;
}

/* Marks a project whose repo is still private. Class name is decoupled from
   the label text (currently "classified") since the wording's been revised
   more than once — rename the text without renaming the class. */
.badge-private {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  border: 1px dashed var(--border-soft);
  border-radius: 20px;
  padding: 4px 10px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}

.card .desc {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 20px;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--text-muted);
}

/* ---------- About ---------- */

.about {
  padding: 100px 72px;
  border-top: 1px solid var(--border);
}

.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin: 0 0 32px;
}

.about-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 16px;
}

.about-byline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 72px;
  border-top: 1px solid var(--border);
}

.lore {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faintest);
  margin: 0;
}

/* ---------- Responsive ----------
   Not covered by the spec (1440px desktop only) — breakpoints below
   are a build-time decision, chosen to keep the same visual rhythm
   at smaller widths. */

@media (max-width: 900px) {
  .nav,
  .hero,
  .projects,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 44px;
  }

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

@media (max-width: 560px) {
  .nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .cta-row {
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
