/* FlossyPurse Studios — "Terminal" theme.
   JetBrains Mono for display and body, weights 400/500/600.
   All display sizing lives in these tokens; nothing below overrides them. */

:root {
  /* type */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.04em;

  --h1: 2.3rem;      /* 390px */
  --h2: 1.55rem;
  --h3: 1.35rem;
  --lead: 1.05rem;
  --body: 1rem;
  --small: 0.875rem;
  --micro: 0.78rem;

  /* colour */
  --bg: #0a0c0d;
  --bg-panel: #101314;
  --bg-panel-2: #0d1011;
  --line: #232829;
  --line-soft: #1a1e1f;
  --fg: #e8e9e5;
  --fg-dim: #a7aeb1;
  --fg-mute: #7d858a;
  --accent: #63c98a;
  --accent-dim: #2f5f44;
  --warn: #d9a341;

  /* space */
  --gap: 1rem;
  --section-y: 4.5rem;
  --measure: 34rem;
  --wide: 68rem;
}

@media (min-width: 44em) {
  :root {
    --h1: 2.9rem;
    --h2: 1.9rem;
    --lead: 1.12rem;
    --section-y: 6rem;
  }
}

@media (min-width: 64em) {
  :root {
    --h1: 3.5rem;
    --h2: 2.15rem;
    --lead: 1.15rem;
    --section-y: 7rem;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); line-height: 1.14; }
h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: -0.03em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

code, .mono-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 44em) { .wrap { padding: 0 2rem; } }

.measure { max-width: var(--measure); }

.eyebrow {
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 1.25rem;
}

.eyebrow::before { content: "// "; color: var(--accent-dim); }

section { padding: var(--section-y) 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }

.section-head { margin-bottom: 2.25rem; }
.section-head p { color: var(--fg-dim); margin-top: 0.9rem; max-width: var(--measure); }

/* ---------- header ---------- */

.site-head {
  padding: 1.5rem 0 0;
  font-size: var(--small);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand { font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.brand .dim { color: var(--fg-mute); font-weight: 400; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--fg-dim); }
.site-head nav a { color: var(--fg-dim); text-decoration: none; }
.site-head nav a:hover { color: var(--fg); }

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

.hero { padding-top: 3.25rem; }
.hero h1 span { color: var(--accent); }
.hero .lead {
  font-size: var(--lead);
  color: var(--fg-dim);
  margin-top: 1.5rem;
  max-width: var(--measure);
}
.hero .lead strong { color: var(--fg); font-weight: 500; }

.hero-facts {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: var(--small);
  color: var(--fg-dim);
}
.hero-facts li::before { content: "→ "; color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--accent-dim);
  background: transparent;
  color: var(--fg);
  font-size: var(--small);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.btn:hover { border-color: var(--accent); background: #0e1512; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #06120b; }
.btn-primary:hover { background: #7ad79c; border-color: #7ad79c; color: #06120b; }

/* ---------- receipts ---------- */

.receipts {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}
@media (min-width: 44em) { .receipts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .receipts { grid-template-columns: repeat(4, 1fr); } }

.receipt { background: var(--bg-panel); padding: 1.4rem 1.25rem; }
.receipt .n {
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.receipt .k { display: block; margin-top: 0.6rem; font-size: var(--small); color: var(--fg-dim); }
.receipt .asof { display: block; margin-top: 0.75rem; font-size: var(--micro); color: var(--fg-mute); }
.receipt .asof::before { content: "as of "; }

.verify { margin-top: 1.5rem; font-size: var(--small); color: var(--fg-mute); max-width: var(--measure); }

/* ---------- timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { padding: 0 0 1.1rem 1.1rem; position: relative; font-size: var(--small); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 0.55rem;
  width: 6px; height: 6px;
  background: var(--accent-dim);
}
.timeline li.hit::before { background: var(--accent); }
.timeline .t { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 0.6rem; }
.timeline .d { color: var(--fg-dim); }

/* ---------- steps (numbered spec list) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); }
.steps li { background: var(--bg-panel); padding: 1.5rem 1.35rem; display: grid; gap: 0.35rem 1.1rem; }
@media (min-width: 44em) { .steps li { grid-template-columns: 3.25rem 1fr; } }
.steps .s {
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.3rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: var(--small); color: var(--fg-dim); margin-top: 0.7rem; max-width: var(--measure); }

/* ---------- command blocks ---------- */

.cmds { display: grid; gap: 0.4rem; }
.cmd-label {
  margin: 1.5rem 0 0;
  font-size: var(--micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.cmd-label:first-child { margin-top: 0; }
.cmds pre {
  margin: 0;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-dim);
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: var(--small);
  line-height: 1.55;
}
.cmds code { color: var(--fg); white-space: pre; }
.cmds .p::before { content: "$ "; color: var(--fg-mute); }
.cmds .out { color: var(--accent); }

/* ---------- cards ---------- */

.cards { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); }
@media (min-width: 44em) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--bg-panel); padding: 1.6rem 1.35rem; }
.card p { color: var(--fg-dim); font-size: var(--small); margin-top: 0.7rem; }
.card .links { margin-top: 1rem; display: flex; gap: 1rem; font-size: var(--micro); }

/* ---------- failures ---------- */

.failures { display: grid; gap: 1.5rem; }
@media (min-width: 64em) { .failures { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); } }

.failure { background: var(--bg-panel-2); border: 1px solid var(--line); padding: 1.5rem 1.35rem; }
@media (min-width: 64em) { .failure { border: 0; } }

.failure h3 { font-size: 1.1rem; }
.failure .tag {
  display: inline-block;
  font-size: var(--micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 0.9rem;
}
.failure p { font-size: var(--small); color: var(--fg-dim); }
.failure .fix { color: var(--fg); }
.failure .fix::before { content: "Fix: "; color: var(--accent); }

/* ---------- cost ---------- */

.cost-table { width: 100%; border-collapse: collapse; font-size: var(--small); }
.cost-table th, .cost-table td { text-align: left; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line-soft); }
.cost-table th { color: var(--fg-mute); font-weight: 500; font-size: var(--micro); letter-spacing: 0.1em; text-transform: uppercase; }
.cost-table td:first-child { color: var(--fg); }
.cost-table td.num { font-variant-numeric: tabular-nums; }
.cost-table td.asof { color: var(--fg-mute); font-size: var(--micro); white-space: nowrap; }

.table-scroll { overflow-x: auto; }
.cost-table td.stamp span { display: block; white-space: nowrap; }
.cost-table td.stamp span + span { color: var(--fg-dim); }
@media (min-width: 44em) {
  .cost-table td.stamp span { display: inline; }
  .cost-table td.stamp span + span::before { content: "T"; color: var(--fg-mute); }
}

/* ---------- contact ---------- */

.contact { border-top: 1px solid var(--line); }
.contact h2 span { color: var(--accent); }
.contact .addr { font-size: var(--lead); font-weight: 500; margin-top: 1.5rem; }
.contact .secondary { margin-top: 1.75rem; font-size: var(--small); color: var(--fg-dim); }

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

footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem 0 3rem;
  font-size: var(--micro);
  color: var(--fg-mute);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

::selection { background: var(--accent-dim); color: #fff; }
