/* ==========================================================================
   AT LEAST I'M MAKING MONEY — one-pager
   Colours taken from the Figma SVG exports (#D11C1A / #0009FF / #333333);
   the rest follow the Tailwind zinc/neutral ramp used in the Figma file.
   ========================================================================== */

:root {
  --bg:      #0a0a0a; /* neutral-950 */
  --black:   #000000;
  --red:     #d11c1a;
  --blue:    #0009ff;
  --teal:    #14b8a6;
  --fg:      #f4f4f5; /* zinc-100  */
  --muted:   #71717a; /* zinc-500  */
  --line:    #27272a; /* zinc-800  */
  --rule:    #333333;

  --mono:    'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --term:    'VT323', ui-monospace, 'Courier New', monospace;
  --sans:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter:  clamp(1.25rem, 5vw, 5rem);
  --stack:   clamp(3rem, 7vw, 6rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Every band is full-bleed; the inner .wrap holds the 1440px measure. */
.band { padding: var(--stack) 0; }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.band--black  { background: var(--black); }
.band--rule-red  { border-top: 2px solid var(--red);  border-bottom: 2px solid var(--red); }
.band--rule-blue { border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }

/* --- typography ---------------------------------------------------------- */

.eyebrow      { font-family: var(--term); font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--red); margin: 0; }
.eyebrow--blue{ color: var(--blue); }

h1, h2, h3 { font-family: var(--term); font-weight: 400; margin: 0; }

h2 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.05; }

.prose { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.75; margin: 0; }
.prose--lg { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.8; }

.note { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: 0; }

/* --- nav ----------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 2px solid var(--red);
}
.nav__inner {
  max-width: 1440px; margin-inline: auto;
  min-height: 4rem;
  padding: .5rem clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.nav__brand { display: flex; align-items: center; gap: .75rem; }
.nav__mark  { width: 1rem; height: 1rem; background: var(--red); flex: none; }
.nav__title { font-family: var(--term); font-size: clamp(1.125rem, 2vw, 1.5rem); }
.nav__links { display: flex; gap: clamp(.75rem, 2vw, 1.5rem); flex-wrap: wrap; }
.nav__links a {
  font-family: var(--term); font-size: 1.125rem; color: var(--muted);
  text-decoration: none; transition: color .15s;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--fg); }
.nav__links a.is-live { color: var(--red); }
.nav__links a.is-live:hover { color: #ff5b59; }

/* --- hero ---------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__bg {
  position: absolute; inset: 0 0 auto 0; height: 600px;
  pointer-events: none;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
/* Keeps the CRT texture readable behind the headline and softens the hard
   bottom edge where the 600px image stops. */
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, .35) 0%,
    rgba(10, 10, 10, .25) 45%,
    rgba(10, 10, 10, .70) 85%,
    var(--bg) 100%
  );
}
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3rem; }

/* On phones the banner is cropped to the monitor, which lands straight behind
   the lede. Push the artwork further back so both stay readable. */
@media (max-width: 700px) {
  .hero__bg img { opacity: .1; }
  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, .6) 0%,
      rgba(10, 10, 10, .55) 45%,
      rgba(10, 10, 10, .8) 85%,
      var(--bg) 100%
    );
  }
}

.hero__head { display: flex; flex-direction: column; gap: 1rem; }
.hero__kicker { font-family: var(--term); font-size: clamp(1.25rem, 2.4vw, 1.875rem); color: var(--red); }
.hero__title  { font-family: var(--term); font-size: clamp(2.75rem, 8vw, 6rem); line-height: .95; margin: 0; }
.hero__lede   { font-family: var(--term); font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--blue); }

.tags { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-family: var(--mono); font-size: .875rem;
  padding: .375rem .75rem;
  background: var(--black);
  outline: 1px solid var(--red); outline-offset: -1px;
}

.meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between;
  padding: 1.5rem; background: var(--black);
  outline: 1px solid var(--line); outline-offset: -1px;
  margin: 0;
}
.meta > div { display: flex; flex-direction: column; gap: .25rem; }
.meta dt { font-family: var(--term); font-size: 1rem; color: var(--muted); }
.meta dd { margin: 0; font-size: 1.125rem; font-weight: 700; }
.meta a { text-decoration: none; border-bottom: 1px solid var(--line); }
.meta a:hover { border-color: var(--red); }

/* --- two-column split ---------------------------------------------------- */

.split { display: flex; flex-wrap: wrap; gap: clamp(2rem, 4vw, 4rem); align-items: flex-start; }
.split__main { flex: 1 1 26rem; display: flex; flex-direction: column; gap: 1.5rem; }
.split__side { flex: 0 1 480px; min-width: min(100%, 20rem); display: flex; flex-direction: column; gap: 1.25rem; }

/* --- terminal card ------------------------------------------------------- */

.card {
  background: var(--black);
  padding: .75rem 1rem 1.25rem;
  border: 2px solid var(--muted);
  border-top-width: 16px;
  border-bottom-width: 4px;
  display: flex; flex-direction: column; gap: .75rem;
  min-width: 0;
}
.card--red  { border-color: var(--red); }
.card--blue { border-color: var(--blue); }

.card__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card__id  { font-family: var(--term); font-size: 1.125rem; }
.card__dot { flex: none; width: 20px; height: 8px; }
.card__rule { height: 1px; background: var(--rule); border: 0; margin: 0; width: 100%; }

.card__body { font-family: var(--mono); font-size: 1rem; line-height: 1.5; margin: 0; }
.card__body--red { color: var(--red); }

.trace { display: flex; align-items: center; gap: .75rem; font-family: var(--term); font-size: 1rem; color: var(--muted); }
.trace__dot { width: .75rem; height: .75rem; background: var(--blue); flex: none; }

/* JSON readout inside a record card */
.json { font-family: var(--mono); font-size: .75rem; line-height: 1.55; margin: 0; white-space: pre-wrap; word-break: break-word; }
.json .k { color: var(--teal); }

/* --- section heads ------------------------------------------------------- */

.head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 3rem; }
.head--split {
  flex-direction: row; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem 2rem;
}
.head__text { flex: 1 1 32rem; display: flex; flex-direction: column; gap: .75rem; max-width: 640px; }
.head__text .prose { color: var(--muted); }

.badge {
  font-family: var(--mono); font-size: 1rem; color: var(--blue);
  padding: .5rem 1rem; background: var(--black);
  outline: 1px solid var(--blue); outline-offset: -1px;
}

/* --- card grids ---------------------------------------------------------- */

.grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--tight { gap: 1.5rem; }

.stat {
  padding: 2rem; background: var(--black);
  outline: 2px solid var(--muted); outline-offset: -2px;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.stat--blue { outline-color: var(--blue); }
.stat--red  { outline-color: var(--red); }
.stat__label { font-family: var(--term); font-size: 1.25rem; color: var(--muted); }
.stat__value { font-family: var(--term); font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1; }
.stat__note  { font-size: .875rem; color: var(--muted); margin: 0; }

.source {
  padding: 1.5rem; background: var(--black);
  outline: 1px solid var(--line); outline-offset: -1px;
  display: flex; flex-direction: column; gap: 1rem;
}
.source__name { font-family: var(--term); font-size: clamp(1.5rem, 2.4vw, 1.875rem); color: var(--red); }
.source__org  { font-family: var(--term); font-size: 1rem; color: var(--blue); }
.source__body { font-size: .875rem; line-height: 1.45; margin: 0; }

/* --- installation -------------------------------------------------------- */

.install { display: flex; flex-wrap: wrap; background: var(--black); min-height: 680px; }
.install__panel {
  flex: 0 1 560px; min-width: min(100%, 22rem);
  background: var(--bg);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
}
.install__title { font-family: var(--term); font-size: clamp(1.75rem, 3.5vw, 2.25rem); color: var(--red); }
.install__body { font-size: 1rem; line-height: 1.5; margin: 0; }
.install__tag { display: flex; align-items: center; gap: .75rem; font-family: var(--term); font-size: 1.25rem; }
.install__dash { width: 2rem; height: 2px; background: var(--red); flex: none; }
.install__view { flex: 1 1 20rem; min-height: 20rem; position: relative; overflow: hidden; }
.install__view img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }

/* --- bio ----------------------------------------------------------------- */

.bio__name { font-family: var(--term); font-size: clamp(2rem, 4.5vw, 3rem); color: var(--red); }
.bio__link { font-family: var(--term); font-size: 1.5rem; color: var(--teal); text-decoration: none; padding-top: .5rem; display: inline-block; }
.bio__link:hover { text-decoration: underline; }
.bio__side { flex: 0 1 384px; min-width: min(100%, 18rem); display: flex; flex-direction: column; gap: 1rem; }
.bio__side-label { font-family: var(--term); font-size: 1.25rem; color: var(--muted); }
.bio__list { font-family: var(--mono); font-size: .875rem; line-height: 1.9; list-style: none; margin: 0; padding: 0; }
.bio__list li::before { content: '- '; }

/* --- credits ------------------------------------------------------------- */

.credits__title { font-family: var(--term); font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 0 0 2.5rem; }
.credits__cols { display: flex; flex-wrap: wrap; gap: 2rem 3rem; }
.credits__col { flex: 1 1 20rem; display: flex; flex-direction: column; gap: 1rem; }
.credits__col h3 { font-size: 1.25rem; color: var(--red); }
.credits__col--blue h3 { color: var(--blue); }
.credits__list { list-style: none; margin: 0; padding: 0; font-size: .875rem; line-height: 1.6; }
.credits__list li { margin-bottom: .5rem; }
.credits__list strong { font-weight: 700; }

/* --- footer -------------------------------------------------------------- */

.footer { background: var(--black); border-top: 1px solid var(--line); padding: 4rem 0 6rem; }
.footer__top {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-family: var(--term); font-size: 1.125rem; margin-bottom: 2rem;
}
.footer__top span:first-child { color: var(--muted); }
.footer__top span:last-child  { color: var(--red); }
.footer__label { font-family: var(--term); font-size: 1rem; color: var(--muted); margin-bottom: .75rem; }
.footer__sources { display: flex; flex-wrap: wrap; gap: .75rem 3rem; list-style: none; margin: 0 0 2rem; padding: 0; font-family: var(--mono); font-size: .875rem; }
.footer__sources a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__sources a:hover { border-color: var(--red); }
/* --line is a border colour; at 1.4:1 on black the credit line was invisible. */
.footer__legal { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: 0; }

/* --- a11y ---------------------------------------------------------------- */

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

.skip {
  position: absolute; left: -9999px;
  background: var(--red); color: var(--fg); padding: .75rem 1rem;
  font-family: var(--term); z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
