/* Tenexio — Design Tokens
   Bauhaus / blueprint. Warm paper, ink, electric blue.
   Intentionally distinct from Opervium's editorial forest/teal.
*/

:root {
  /* === Color === */
  --paper: #EDE7D6;         /* buttery poster cream — base canvas */
  --paper-2: #E2DBC4;       /* deeper paper, cards/insets */
  --paper-3: #D5CCAF;       /* edge */
  --ink: #0A0A0A;           /* near-black */
  --ink-2: #1A1A1A;
  --ink-muted: #4A4A47;
  --ink-subtle: #807C72;

  /* Bauhaus primaries — blue is the lead, red/yellow sparing */
  --blue: #1D4ED8;          /* blue-700, lead accent */
  --blue-deep: #1538A8;
  --blue-tint: #DBE3F4;
  --red: #C1272D;
  --yellow: #F7C618;

  --line: #CFC6AB;          /* hairline on paper */
  --line-strong: #B0A687;
  --grid: rgba(10, 10, 10, 0.07);  /* blueprint dots */
  --grid-strong: rgba(10, 10, 10, 0.14);

  /* === Type === */
  --font-display: "Space Grotesk", "Archivo", "Inter", -apple-system, sans-serif;
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* === Scale === */
  --step--2: 0.6875rem;   /* 11px — micro mono */
  --step--1: 0.8125rem;   /* 13px — small */
  --step-0:  0.9375rem;   /* 15px — body */
  --step-1:  1.0625rem;   /* 17px — body-lg */
  --step-2:  1.375rem;    /* 22px */
  --step-3:  1.875rem;    /* 30px */
  --step-4:  2.75rem;     /* 44px */
  --step-5:  4rem;        /* 64px */
  --step-6:  5.75rem;     /* 92px */
  --step-7:  8rem;        /* 128px — hero */

  /* === Layout === */
  --container: 1320px;
  --container-sm: 960px;
  --gutter: 32px;
  --gutter-lg: 64px;

  /* === Radii (Bauhaus = mostly sharp) === */
  --r-0: 0;
  --r-sm: 2px;
  --r-md: 3px;

  /* === Motion === */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* density */
  --section-pad: 120px;
}

[data-density="compact"] {
  --section-pad: 80px;
  --step-7: 6rem;
  --step-6: 4.5rem;
}
[data-density="roomy"] {
  --section-pad: 160px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* === Utilities === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.red::before { background: var(--red); }
.eyebrow.yellow::before { background: var(--yellow); border-radius: 50%; }
.eyebrow.tri::before { background: transparent; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--ink); }

/* Section padding */
section { padding: var(--section-pad) 0; position: relative; }

/* Blueprint dotted grid background */
.grid-bg {
  background-image: radial-gradient(circle at 1px 1px, var(--grid) 1px, transparent 0);
  background-size: 24px 24px;
}
.grid-bg-strong {
  background-image: radial-gradient(circle at 1px 1px, var(--grid-strong) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Hairline */
.rule { border-top: 1px solid var(--line); }
.rule-strong { border-top: 1px solid var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 200ms var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--blue); }
.btn-accent {
  background: var(--blue);
  color: #fff;
}
.btn-accent:hover { background: var(--blue-deep); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr {
  display: inline-block;
  transition: transform 220ms var(--ease);
}
.btn:hover .arr { transform: translateX(4px); }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Tabular numbers */
.tnum { font-variant-numeric: tabular-nums; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-track { background: var(--paper-2); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}
@keyframes blink { 50% { opacity: 0.25; } }

.fade-up { animation: fadeUp 700ms var(--ease-out) both; }
.blink { animation: blink 1.4s ease-in-out infinite; }

@media (max-width: 800px) {
  :root { --section-pad: 80px; --gutter: 20px; }
}
