/* Iterated Computing — brand system
   Manrope + JetBrains Mono · near-black ink on warm-grey paper · two bold accents */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── colors ─────────────────────────────────────────── */
  --paper: #eef0ec;
  --paper-2: #e6e9e3;
  --ink: #16191b;
  --ink-2: #3a4045;
  --mute: rgba(22, 25, 27, 0.50);
  --line: rgba(22, 25, 27, 0.14);
  --line-2: rgba(22, 25, 27, 0.08);
  --volt: oklch(0.55 0.17 256);
  --signal: oklch(0.60 0.19 30);

  /* ── typography ─────────────────────────────────────── */
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* ── type scale ─────────────────────────────────────── */
  --size-h1: clamp(44px, 7vw, 86px);
  --size-h2: clamp(30px, 4vw, 46px);
  --size-h3: clamp(20px, 2.4vw, 26px);
  --size-lead: clamp(18px, 2vw, 22px);
  --size-eyebrow: 12px;
  --size-nav: 12.5px;
  --size-btn: 12.5px;
  --size-tag: 11px;
  --size-mono: 13px;

  /* ── spacing ────────────────────────────────────────── */
  --wrap: 1180px;
  --head-h: 72px;
  --section-pad: clamp(64px, 9vw, 120px);
  --gap-grid: 28px;

  /* ── brand mark ─────────────────────────────────────── */
  --mark-size: 34px;
  --mark-size-sm: 28px;

  /* ── radius / borders ───────────────────────────────── */
  --btn-radius: 2px;
  --input-radius: 2px;
  --card-radius: 0px;
}

/* ── reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
main > section { padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ── typography ───────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--size-h3); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }

.lead {
  font-size: var(--size-lead);
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.5;
}
.eyebrow {
  font-family: var(--mono);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.mono {
  font-family: var(--mono);
  font-size: var(--size-mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.accent-v { color: var(--volt); }
.accent-s { color: var(--signal); }

/* ── layout ───────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
section { padding: var(--section-pad) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid { display: grid; gap: var(--gap-grid); }

/* ── header ───────────────────────────────────────────── */
.site-head {
  flex: 0 0 auto;
  background: var(--ink);
  border-bottom: 1px solid rgba(238, 240, 236, 0.08);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--head-h);
}

/* ── brand mark ───────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark { width: var(--mark-size); height: auto; display: block; color: var(--paper); flex-shrink: 0; }
.brand .word { font-weight: 800; letter-spacing: -0.03em; font-size: 18px; line-height: 1; color: var(--paper); }
.brand .word span { color: rgba(238, 240, 236, 0.50); font-weight: 600; }

/* ── nav ──────────────────────────────────────────────── */
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a {
  font-family: var(--mono);
  font-size: var(--size-nav);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 240, 236, 0.50);
  padding: 6px 0;
  position: relative;
  transition: color 0.15s;
}
nav.main a:hover { color: var(--paper); }
nav.main a.active { color: var(--paper); }
nav.main a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--signal);
}

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: var(--size-btn);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--btn-radius);
  transition: all 0.16s;
  cursor: pointer;
  background: none;
  color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform 0.16s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── chips / tags ─────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: var(--size-tag);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--volt);
}
.tag.s::before { background: var(--signal); }

/* ── motif containers ─────────────────────────────────── */
.motif { color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 680px) {
  nav.main { gap: 18px; }
  .wrap { padding: 0 20px; }
}
