/* ============================================================
   MCP WIKI  ·  Design tokens & base styles
   Warm editorial direction: cream ground, terracotta accent,
   serif display + grotesk body + mono labels.
   ============================================================ */

:root {
  /* --- Ground & ink (warm noir) --- */
  --bg:        #131009;   /* warm near-black page ground */
  --bg-2:      #1A1610;   /* slightly raised band */
  --surface:   #1C1712;   /* card / panel */
  --surface-2: #252017;   /* raised card */
  --ink:       #F0E7D6;   /* warm cream text */
  --ink-soft:  #C9BDA8;   /* secondary text */
  --muted:     #948872;   /* tertiary / captions */
  --line:      #342C20;   /* hairline borders */
  --line-soft: #2A2318;

  /* --- Accents (lifted for dark ground) --- */
  --terra:     #E0764E;   /* brand */
  --terra-deep:#C45F3C;   /* deep shade for light surfaces */
  --olive:     #A8B468;
  --indigo:    #87A5DB;
  --accent:    var(--terra);

  /* product accent (overridden per scope) */
  --pa:        var(--terra);

  /* --- Type --- */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  /* --- Spacing rhythm --- */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --maxw: 1200px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.2);
  --shadow:    0 2px 4px rgba(0,0,0,.3), 0 14px 34px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 70px -28px rgba(0,0,0,.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* paper grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

/* eyebrow / kicker */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pa);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
}

/* ---------- Type scale ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-size: clamp(40px, 5.4vw, 76px);
}
.display em { font-style: italic; color: var(--terra); }

h2.title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.012em;
  font-size: clamp(36px, 5vw, 64px);
}
h2.title em { font-style: italic; color: var(--pa); }

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 58ch;
  text-wrap: pretty;
}

.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 600;
  padding: 13px 22px;
  border-radius: 12px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-accent { background: var(--pa); color: #fff; box-shadow: 0 8px 22px -10px var(--pa); }
.btn-accent:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards generic ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* ---------- Mono chip ---------- */
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 7px;
  display: inline-flex; align-items: center; gap: 7px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pa); display: inline-block; }

/* divider hairline */
.hr { height: 1px; background: var(--line); border: 0; }
