/* ftsoft.dev — visual language v1, translated from /mokup/FTSoft Site.dc.html
   Tokens below match the mockup's "00 — DESIGN TOKENS" artboard 1:1. */

:root {
  --canvas: #060a07;
  --surface: #0a0f0b;
  --panel: #101711;
  --rule: #1b261c;
  --rule-strong: #2a362a;
  --text: #c7d6c7;
  --text-strong: #e1ede1;
  --text-secondary: #a5b6a5;
  --text-muted: #889a88;
  --text-faint: #6b7b6b;
  --text-faintest: #4e5c4e;
  --sig: #4ce07d;

  --font-sans: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-10: 80px;

  --content-width: 1120px;
  --page-padding: clamp(20px, 5vw, 160px);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  position: relative;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Digital rain from the mockup, drawn by a small script in base.njk.
   Sits behind everything and scrolls with the page. */
.rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.13;
}

a {
  color: var(--text);
  text-decoration: none;
}

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

.mono {
  font-family: var(--font-mono);
}

/* Blueprint grid background, matches the mockup's .grid utility. */
.grid-bg {
  background-image: linear-gradient(to right, rgba(110, 200, 140, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 200, 140, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Placeholder-content guard rail — visible until site.placeholderContent is false. */
.placeholder-banner {
  background: var(--sig);
  color: #06210f;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 16px;
}

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

.site-header {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 var(--page-padding);
  border-bottom: 1px solid var(--rule);
  gap: var(--space-4);
}

.site-header .logo {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-strong);
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--sig);
  border-bottom-color: var(--sig);
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--page-padding) var(--space-4);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faintest);
}

.site-footer .links {
  margin-left: auto;
  display: flex;
  gap: var(--space-3);
}

.site-footer a {
  color: inherit;
}

/* ---------- generic page section ---------- */

main {
  display: block;
}

.section {
  padding: var(--space-10) var(--page-padding);
}

.section--tight {
  padding-bottom: var(--space-3);
}

.eyebrow {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--sig);
  flex: none;
}

h1,
h2 {
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

h2 {
  font-size: 30px;
  line-height: 1.15;
}

.lede {
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--text-strong);
  max-width: 46ch;
}

p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ---------- home ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-6);
  padding: var(--space-10) var(--page-padding);
  border-bottom: 1px solid var(--rule);
}

/* Home hero: the two rules, set large in the signal green. */
.principles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
  font-family: var(--font-mono);
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.principle .acr {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--sig);
  text-shadow: 0 0 28px rgba(76, 224, 125, 0.35);
}

.principle .exp {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.principles .plus {
  font-size: 28px;
  line-height: 1;
  color: var(--text-faintest);
}

.figure {
  font-family: var(--font-mono);
  font-size: 12px;
}

.figure-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-faintest);
  margin-bottom: 14px;
}

.figure-node {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 10px 12px;
  color: var(--text);
  display: inline-block;
  white-space: nowrap;
}

.figure-node--sig {
  border-color: var(--sig);
  color: var(--sig);
}

.figure-arrow-v {
  width: 1px;
  height: 22px;
  background: var(--rule-strong);
  margin-left: 24px;
}

.figure-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
}

.figure-flow .figure-arrow-h {
  width: 36px;
  height: 1px;
  background: var(--rule-strong);
}

.figure-flow .figure-arrow-h--sig {
  background: var(--sig);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card:hover {
  background: var(--panel);
}

.card-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.card-meta .tag {
  color: var(--sig);
}

.card-title {
  font-size: 21px;
  line-height: 1.3;
  color: var(--text-strong);
}

.card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: var(--space-3);
}

.section-heading .rule {
  flex: 1;
}

/* ---------- about ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 384px;
  gap: var(--space-10);
  padding: var(--space-10) var(--page-padding);
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.panel-box {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 28px;
}

.decision-filter .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.decision-filter .stack {
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.5;
  color: var(--text-strong);
  margin-top: 18px;
}

.decision-filter .stack .sig {
  color: var(--sig);
}

.decision-filter .worth {
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--text-strong);
  margin-top: 14px;
}

.fact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}

/* Stacked label/value instead of a single space-between line — a long value
   (e.g. a 6-item stack list) wraps cleanly under its own label this way,
   instead of fighting the label for space on one line. */
.fact-list .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}

.fact-list .row span:first-child {
  color: var(--text-faintest);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
}

.fact-list .row span:last-child {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- what's interesting ---------- */

/* One row per article: date on the left, title / summary / link on the right.
   The whole row is the link. */
.feed-head p {
  margin: 0;
  max-width: 42ch;
}

.feed-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.feed-row .date {
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.feed-row .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-row .title {
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-strong);
  text-wrap: balance;
}

.feed-row .excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
}

.feed-row .cta {
  font-size: 11px;
  color: var(--sig);
  margin-top: 4px;
}

.feed-row:hover .title,
.feed-row:focus-visible .title {
  color: var(--sig);
}

.feed-row:focus-visible {
  outline: 1px solid var(--sig);
  outline-offset: 4px;
}

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

.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
}

.contact-row .k {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-faintest);
  width: 80px;
  flex: none;
}

.contact-row .v {
  font-size: 19px;
  color: var(--text-strong);
}

.contact-row .v--sig {
  color: var(--sig);
}

.fit-box {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fit-box .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

/* Small mono footnotes under the contact figure. */
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.fit-box p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: none;
}

/* ---------- shared bits used by several pages ---------- */

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

/* Header block of the feed page: title, intro, filters. */
.feed-head {
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}

/* Figure nodes that sit in a narrow grid cell may wrap instead of overflowing. */
.figure-node--wrap {
  white-space: normal;
}

/* ---------- phone (≤ 640px) ---------- */

@media (max-width: 640px) {
  /* Desktop rhythm is 80px; on a phone that's most of a screen of nothing. */
  .section,
  .hero,
  .two-col {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .section--tight {
    padding-bottom: var(--space-3);
  }

  .hero,
  .two-col {
    gap: var(--space-6);
  }

  /* Header: logo on its own line, nav below it with real tap targets. */
  .site-header {
    height: auto;
    flex-wrap: wrap;
    gap: 4px var(--space-3);
    padding-top: 14px;
    padding-bottom: 6px;
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
    gap: 0 20px;
  }

  .site-nav a {
    padding: 10px 0;
    border-bottom-width: 2px;
  }

  .card,
  .panel-box,
  .fit-box {
    padding: 20px;
  }

  /* Feed: date above the title instead of in its own column. */
  .feed-head {
    gap: 16px;
  }

  .feed-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }

  .feed-row .title {
    font-size: 18px;
  }

  /* Contact: label above value, long handles wrap instead of overflowing. */
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 0;
  }

  .contact-row .v {
    font-size: 17px;
    overflow-wrap: anywhere;
  }
}
