/* ============================================================
   VivekAI — Design tokens
   Government / enterprise formal. Restrained navy + warm paper.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Serif+Devanagari:wght@400;500&display=swap');

:root {
  /* Colors */
  --ink:      #0B1E3F;
  --ink-2:    #14284F;
  --ink-3:    #1F345F;
  --paper:    #F7F4EC;
  --paper-2:  #EFEAD9;
  --paper-3:  #E7E0C8;
  --rule:     #C8BFA6;
  --rule-soft:#DED6BE;
  --text:     #1A2238;
  --text-2:   #3A4358;
  --muted:    #6B7288;
  --muted-2:  #8A8FA3;
  --accent:      oklch(0.66 0.11 78);   /* muted gold */
  --accent-ink:  oklch(0.50 0.11 78);
  --accent-soft: oklch(0.92 0.05 82);
  --danger:      oklch(0.55 0.14 30);
  --success:     oklch(0.55 0.10 155);

  /* Type */
  --font-serif: 'Source Serif 4', 'Times New Roman', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-devanagari: 'Noto Serif Devanagari', 'Source Serif 4', serif;

  /* Sizing */
  --page-max: 1280px;
  --gutter: 32px;
  --gutter-lg: 56px;

  /* Radii — very restrained */
  --r-none: 0;
  --r-xs: 2px;
  --r-sm: 4px;

  /* Rules */
  --rule-w: 1px;
  --rule-heavy: 2px;
}

/* ------------------------------------------------------------ base */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { display: block; max-width: 100%; }

/* ------------------------------------------------------------ typography */

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.display-xl {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.display-lg {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display-md {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.display-sm {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--ink);
}

.lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.body-sm {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Eyebrows / labels / mono meta */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-ink {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
}

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.devanagari {
  font-family: var(--font-devanagari);
  font-weight: 400;
}

/* ------------------------------------------------------------ layout primitives */

.page {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}

.section-tight { padding: 56px 0; }
.section-loose { padding: 128px 0; }

.section-ink {
  background: var(--ink);
  color: #E9E4D2;
  border-top: 1px solid var(--ink-2);
}
.section-ink h1, .section-ink h2, .section-ink h3,
.section-ink .display-xl, .section-ink .display-lg,
.section-ink .display-md, .section-ink .display-sm {
  color: #F3EEDC;
}
.section-ink .lede { color: #C6C1B0; }
.section-ink .body { color: #B7B2A2; }
.section-ink .label { color: #948E7B; }
.section-ink .eyebrow { color: oklch(0.78 0.10 82); }
.section-ink .meta { color: #948E7B; }

.section-band {
  background: var(--paper-2);
}

/* Section header — hairline + mono label + heavy rule accent */
.sec-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
  align-items: start;
}

.sec-head .sec-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 8px;
  border-top: 2px solid var(--accent);
  display: inline-block;
}

.sec-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.sec-head .lede { max-width: 62ch; }

/* ------------------------------------------------------------ grid utilities */

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
}

/* ------------------------------------------------------------ components */

/* Chip / tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-xs);
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.chip.ghost { background: transparent; }
.chip.ink { background: var(--ink); color: #E9E4D2; border-color: var(--ink-3); }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }

/* Card */
.card {
  background: #FBF9F1;
  border: 1px solid var(--rule);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-flat {
  border: 1px solid var(--rule);
  padding: 24px;
  background: transparent;
}

/* Numbered module card */
.mod {
  border: 1px solid var(--rule);
  background: #FBF9F1;
  padding: 28px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  transition: background .15s ease;
}
.mod:hover { background: #FDFBF3; border-color: var(--accent); }
.mod .num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: var(--accent-ink);
  padding-top: 2px;
  letter-spacing: -0.02em;
}
.mod h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mod .mod-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 12px; text-wrap: pretty; }
.mod .mod-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #F3EEDC;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  border-radius: var(--r-xs);
}
.btn:hover { background: var(--ink-2); color: #FFF; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #F3EEDC; }
.btn-accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-ink); color: #FFF; border-color: var(--accent-ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Rule row — hairline w/ mono labels flanking */
.rule-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}
.rule-row .line { flex: 1; height: 1px; background: var(--rule); }

/* KPI-style metric block */
.metric {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.metric .num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.metric .lbl {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two-column term list (spec-sheet style) */
.speclist {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid var(--rule);
}
.speclist > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.speclist > .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 16px;
}
.speclist > .v {
  color: var(--text);
  font-size: 14.5px;
}

/* Compact horizontal divider with mono label */
.section-marker {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0 24px;
}
.section-marker::before,
.section-marker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-marker .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* Utilities */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.center { text-align: center; }
.right  { text-align: right; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
