/* Revenu — design tokens */
:root {
  /* Type */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Colors — near-white canvas, charcoal ink, single emerald accent matching the logo (#00A868) */
  --ink: #0E0F0E;
  --ink-soft: #2A2B2A;
  --ink-muted: #6B6C6B;
  --ink-faint: #A8A9A8;
  --rule: #E6E7E6;
  --rule-soft: #EFF0EF;
  --bg: #FBFBFA;
  --bg-raised: #FFFFFF;
  --bg-sunken: #F4F4F2;
  --bg-contrast: #0E0F0E;

  /* Single accent — logo green, used sparingly */
  --accent: #00A868;
  --accent-hover: #008F58;
  --accent-ink: #006B42;
  --accent-wash: #EAF7F0;     /* very soft green background tint */
  --accent-wash-2: #F3FAF6;   /* even softer */
  --accent-line: #CFEADB;     /* subtle green divider */
  --accent-soft: #EAF7F0;
  --terra: #6B6C6B;
  --terra-soft: #F4F4F2;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadows (subtle) */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.04), 0 1px 1px oklch(0 0 0 / 0.03);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.04);
  --shadow-lg: 0 20px 40px oklch(0 0 0 / 0.08), 0 4px 12px oklch(0 0 0 / 0.04);

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Layout */
  --max-w: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* Display type */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tabular { font-variant-numeric: tabular-nums; }

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 160ms ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: oklch(0.28 0.01 80); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--bg-raised); }
.btn-ghost {
  padding: 8px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-hover); }

/* Primary CTA uses ink by default; accent variant for strong calls */
.btn-primary.is-accent { background: var(--accent); }
.btn-primary.is-accent:hover { background: var(--accent-hover); }

/* Rules */
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Striped placeholder */
.placeholder {
  background-image: repeating-linear-gradient(
    135deg,
    #E6E7E6 0 8px,
    #EFF0EF 8px 16px
  );
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--rule-soft);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  font-size: 12px;
  color: var(--ink-soft);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
