/* ═══════════════════════════════════════════════════════════════════
   GOONLYFE COLLECTIVE — the design system. Shared by all five pages.

   Pitch black, bone white, monospace. The kawaii pills and the blush
   accent are the only saturated colour anywhere; that restraint is the
   whole design. Everything else is hairlines and negative space.

   Layout is a hairline grid: `.grid` sets a 1px gap over a rule-coloured
   background, so the separators between cells ARE the gap. That is what
   makes the pages dense and terminal rather than a stack of cards.

   No build step, no preprocessor. Edit this file directly.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   TOKENS
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #000000;
  --panel: #0a0b0d;
  --panel-2: #0e1013;
  --rule: #1a1a1c;
  --rule-2: #2a2a2e;
  --ink: #e8e8e8;
  --ink-2: #8a8a8a;
  --ink-3: #4e4e4e;

  /* sampled from the pill photo — nothing else on the site is saturated */
  --pill-blue: #3aa0e0;
  --pill-cream: #f2e6c8;
  --blush: #ffb6c1;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --wrap: 70rem;
  --gap: 2.75rem;
}

/* Dark only, always. A cult site with a light mode is incoherent. */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 13.5px/1.62 var(--mono);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

/* ── CRT texture: scanlines, plus fractal grain on its own layer.
     Split so each carries its own opacity — one `opacity` cannot serve
     both, and a `screen` blend here lifts the page off black, which is
     the one thing this design cannot afford. ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(232, 232, 232, 0.028) 0 1px,
    transparent 1px 3px
  );
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.sweep {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .sweep {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 4;
    pointer-events: none;
    opacity: 0.05;
    background: linear-gradient(to bottom, transparent, var(--ink), transparent);
    animation: sweep 13s linear infinite;
  }

  @keyframes sweep {
    from {
      transform: translateY(-10vh);
    }
    to {
      transform: translateY(105vh);
    }
  }

  .cursor {
    animation: blink 1.1s steps(1) infinite;
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

section {
  margin-top: var(--gap);
}

/* Section labels: // UPPERCASE, hairline running to the right edge */
.label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── The hairline grid. Cells sit on a rule-coloured sheet with a 1px
     gap, so the gap draws the separators. ── */
.grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.grid > * {
  background: var(--panel);
  min-width: 0;
}

.g2 {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.g3 {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.g4 {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

/* Explicit column counts, for grids whose cell count only divides evenly at
   a known number of columns. `auto-fit` picks its own count and leaves holes
   in the sheet when the maths does not work out. */
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 62rem) {
  .cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 40rem) {
  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr;
  }
}

.wide {
  grid-column: 1 / -1;
}

/* ── Panel: a cell with a TUI header bar. ── */
.ph {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ph::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--rule-2);
}

.ph .r {
  margin-left: auto;
  letter-spacing: 0.14em;
  font-weight: 400;
}

.pb {
  padding: 1.15rem 1.2rem;
}

.pb > :first-child {
  margin-top: 0;
}

.pb > :last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────
   CHROME — nav and status bar, identical on every page
   ───────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 1.2rem 0 0.75rem;
  font-size: 0.76rem;
}

.nav .brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  margin-right: 0.4rem;
}

.nav .brand:hover,
.nav .brand:focus-visible {
  color: var(--blush);
  outline: none;
}

.nav a:not(.brand) {
  color: var(--ink-3);
  text-decoration: none;
}

.nav a:not(.brand)::before {
  content: "// ";
  color: var(--rule-2);
}

.nav a:not(.brand):hover,
.nav a:not(.brand):focus-visible {
  color: var(--ink-2);
  outline: none;
}

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

.nav .out {
  margin-left: auto;
}

/* the system line — the one piece of copy that is on every single page */
.statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  padding: 0.5rem 0 0.6rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.statusbar .state {
  margin-left: auto;
  color: var(--ink-2);
}

.statusbar .dot {
  color: var(--blush);
}

/* ─────────────────────────────────────────────────────────────
   MASTHEAD
   ───────────────────────────────────────────────────────────── */
.masthead {
  position: relative;
  padding: 4.5rem 0 2.5rem;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: -1rem -25vw 0;
  z-index: -1;
  background: url("assets/hero.png") center 22% / cover no-repeat;
  filter: grayscale(1) contrast(1.35) brightness(0.72);
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(
    ellipse 65% 78% at 50% 38%,
    #000 0%,
    transparent 76%
  );
  mask-image: radial-gradient(
    ellipse 65% 78% at 50% 38%,
    #000 0%,
    transparent 76%
  );
}

/* inner pages: compact, no artwork — the hero is the home page's moment */
.masthead.slim {
  padding: 2.5rem 0 1.5rem;
}

.masthead.slim::before {
  display: none;
}

.masthead.slim h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.prompt {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.prompt b {
  font-weight: 400;
  color: var(--ink-2);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8.5vw, 4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

/* Drawn, not typed — the block-cursor glyph renders at wildly different
   sizes across fonts and blew up to a full-height slab in fallback. */
.cursor {
  display: inline-block;
  width: 0.44em;
  height: 0.7em;
  margin-left: 0.16em;
  background: var(--blush);
  vertical-align: baseline;
}

/* the tagline. Same treatment, same words, every page it appears on. */
.creed {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.creed::before {
  content: "> ";
  color: var(--blush);
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 44rem;
  color: var(--ink-2);
}

/* ─────────────────────────────────────────────────────────────
   PILLS — the mascot, drawn rather than photographed so it sits on
   black instead of dragging a light-grey photo backdrop in.
   ───────────────────────────────────────────────────────────── */
.pills {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.25rem 0 0;
  padding: 0;
}

.pills svg {
  display: block;
  height: 62px;
  width: auto;
  flex: none;
}

.pills .capsule {
  transform: rotate(-18deg);
}

.pills .tablet-sm {
  height: 39px;
}

/* ─────────────────────────────────────────────────────────────
   DOCTRINES + LAWS — the same cell shape, so the manifesto and the
   canon read as siblings. Numeral, title, subtitle, body, points.
   ───────────────────────────────────────────────────────────── */
.tenet {
  padding: 1.35rem 1.4rem;
}

.tenet .n {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--blush);
}

.tenet h3 {
  margin: 0.55rem 0 0;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tenet .sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.tenet .sub::before {
  content: "// ";
}

.tenet p {
  margin: 0.85rem 0 0;
  font-size: 0.845rem;
  color: var(--ink-2);
}

/* the consequence line — every law has exactly one, and a law without
   one is decoration */
.cq {
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink-2);
  text-indent: -1.15rem;
  padding-left: 1.15rem;
}

.cq::before {
  content: "→ ";
  color: var(--blush);
}

/* the coda cell — a law about the laws. Dimmed so it reads as a closing
   note rather than a sixth law. */
.tenet.coda {
  background: var(--bg);
}

.tenet.coda .n,
.tenet.coda h3 {
  color: var(--ink-2);
}

.tenet.coda .cq::before {
  color: var(--ink-3);
}

/* the named sub-terms inside a doctrine */
.points {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 0.4rem 0 0.4rem 0.9rem;
  border-left: 1px solid var(--rule-2);
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.points li:last-child {
  margin-bottom: 0;
}

.points b {
  color: var(--blush);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   FIGURES — the ledger readout. A terminal display, not a stat block.
   ───────────────────────────────────────────────────────────── */
.fig {
  padding: 1.05rem 1.15rem;
}

.fig .k {
  display: block;
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fig .v {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

/* no source yet reads as an em dash, dimmed — never as 0, which would
   claim a measurement that was never taken */
.fig .v.none {
  color: var(--ink-3);
  font-weight: 400;
}

.fig .why {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  color: var(--ink-3);
}

a.grid,
a.fig {
  text-decoration: none;
  color: inherit;
}

a.grid:hover,
a.grid:focus-visible {
  border-color: var(--rule-2);
  outline: none;
}

/* ─────────────────────────────────────────────────────────────
   ROWS — the project pipeline. Dotted leaders, tag group at the end.
   ───────────────────────────────────────────────────────────── */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows > li {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--rule);
}

.rows > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.row-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.row-head .nm {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.row-head .nm::before {
  content: "> ";
  color: var(--ink-3);
  font-weight: 400;
}

.row-head a.nm {
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}

.row-head a.nm:hover,
.row-head a.nm:focus-visible {
  color: var(--blush);
  border-bottom-color: var(--blush);
  outline: none;
}

.row-head .dots {
  flex: 1;
  height: 0;
  border-bottom: 1px dotted var(--rule-2);
}

/* type · venue · status, held together so it wraps as one unit */
.tags {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  flex: none;
}

.meta,
.st {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.meta + .meta::before,
.meta + .st::before {
  content: "· ";
  color: var(--rule-2);
}

/* SHIPPED is the only status that gets colour. Nothing has earned it. */
.st.shipped {
  color: var(--pill-blue);
}

/* ─────────────────────────────────────────────────────────────
   GLOSSARY — compact two-column definition grid
   ───────────────────────────────────────────────────────────── */
.gloss {
  margin: 0;
  padding: 1.15rem 1.2rem;
}

.gloss dt {
  font-weight: 700;
  color: var(--blush);
  font-size: 0.86rem;
}

.gloss dd {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-2);
}

/* the release-name pool: name left, meaning right */
.pool {
  margin: 0;
  padding: 0.35rem 1.2rem;
}

.pool > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.pool > div:last-child {
  border-bottom: 0;
}

.pool dt {
  font-weight: 700;
  color: var(--blush);
  font-size: 0.84rem;
}

.pool dd {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.names {
  margin: 0.6rem 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  word-spacing: 0.15em;
}

/* ─────────────────────────────────────────────────────────────
   EMPTY STATE — the shipped group, until something ships
   ───────────────────────────────────────────────────────────── */
.empty {
  padding: 1.3rem 1.4rem;
}

.empty .cmd {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.empty .cmd b {
  font-weight: 400;
  color: var(--ink-2);
}

.empty .total {
  margin: 0.15rem 0 1rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.empty .say,
.empty .challenge {
  margin: 0 0 0 1.15rem;
  text-indent: -1.15rem;
  font-size: 0.85rem;
  color: var(--ink-2);
  max-width: 42rem;
}

.empty .challenge {
  margin-top: 1rem;
  color: var(--ink);
}

.empty .say::before,
.empty .challenge::before {
  content: "> ";
  color: var(--blush);
}

.empty .cursor {
  height: 0.85em;
  width: 0.48em;
}

/* ─────────────────────────────────────────────────────────────
   CTA — the recruit block. No form: there is no server, and a form
   that posts nowhere is exactly what got cut from the mockup.
   ───────────────────────────────────────────────────────────── */
.cta .challenge {
  margin: 0 0 0.9rem 1.15rem;
  text-indent: -1.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.cta .challenge::before {
  content: "> ";
  color: var(--blush);
}

.cta p {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-2);
  max-width: 42rem;
}

.routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.62rem 1rem;
  border: 1px solid var(--rule-2);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--blush);
  color: var(--blush);
  outline: none;
}

.btn.primary {
  border-color: var(--blush);
  color: var(--ink);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--blush);
  color: #000;
}

/* ─────────────────────────────────────────────────────────────
   PROSE + INLINE LINKS
   ───────────────────────────────────────────────────────────── */
.prose p {
  margin: 0 0 0.9rem;
  max-width: 44rem;
  color: var(--ink-2);
  font-size: 0.86rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose em {
  font-style: normal;
  color: var(--ink);
}

/* Content links only — nav, buttons and the footer set their own, and
   without this these fall back to browser blue, the one unplanned
   colour on the site. */
.prose a,
.pb a,
.sources a,
.rows p a,
.empty a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}

.prose a:hover,
.prose a:focus-visible,
.pb a:hover,
.pb a:focus-visible,
.sources a:hover,
.sources a:focus-visible,
.rows p a:hover,
.rows p a:focus-visible,
.empty a:hover,
.empty a:focus-visible {
  color: var(--blush);
  border-bottom-color: var(--blush);
  outline: none;
}

.more {
  margin: 1rem 0 0;
  font-size: 0.8rem;
}

.more a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}

.more a:hover,
.more a:focus-visible {
  color: var(--blush);
  border-bottom-color: var(--blush);
  outline: none;
}

/* ─────────────────────────────────────────────────────────────
   SOURCE TABLE
   ───────────────────────────────────────────────────────────── */
.sources {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.sources th {
  text-align: left;
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  padding: 0 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.sources td {
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  vertical-align: top;
}

.sources tr:last-child td {
  border-bottom: 0;
}

.sources td:first-child {
  color: var(--ink);
  white-space: nowrap;
}

.sources code {
  color: var(--pill-blue);
  font-size: 0.95em;
}

.updated {
  margin: 1.1rem 0 0;
  font-size: 0.76rem;
  color: var(--ink-3);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
footer {
  margin-top: 3.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 2rem;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.motto {
  margin: 0;
  color: var(--ink-2);
}

.fstatus {
  margin: 0;
}

.fstatus::before {
  content: "> ";
  color: var(--blush);
}

.flinks {
  margin-left: auto;
}

footer a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}

footer a:hover,
footer a:focus-visible {
  color: var(--blush);
  border-bottom-color: var(--blush);
  outline: none;
}

/* ─────────────────────────────────────────────────────────────
   SMALL SCREENS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 40rem) {
  :root {
    --gap: 2.25rem;
  }

  .masthead {
    padding-top: 3rem;
  }

  .pills {
    gap: 1.1rem;
  }

  .pills svg {
    height: 52px;
  }

  .pills .tablet-sm {
    height: 33px;
  }

  .nav .out,
  .statusbar .state,
  .flinks {
    margin-left: 0;
  }

  /* dotted leaders go; the tag group wraps under the name as one unit */
  .row-head {
    flex-wrap: wrap;
  }

  .row-head .dots {
    display: none;
  }

  .tags {
    flex-wrap: wrap;
  }

  .pool > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
