/* Digital Architect — Line Narrative Theme
   Aesthetic: simple on the surface, technical behind it.
   Blueprint precision, no gradients, no glows.
*/

:root {
  /* Palette */
  --color-dark: #08080C;
  --color-ink: #14141C;
  --color-ink-70: rgba(20, 20, 28, 0.7);
  --color-ink-40: rgba(20, 20, 28, 0.4);
  --color-ink-20: rgba(20, 20, 28, 0.18);
  --color-ink-08: rgba(20, 20, 28, 0.08);
  --color-ink-04: rgba(20, 20, 28, 0.04);
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-light: #A8ADB8;
  --color-gold: #C9A84C;
  --color-gold-muted: rgba(201, 168, 76, 0.14);

  /* Typography */
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Scale */
  --text-xxs: 0.625rem;    /* 10px — marginalia */
  --text-xs: 0.75rem;      /* 12px — meta */
  --text-sm: 0.875rem;     /* 14px — body small */
  --text-base: 1rem;       /* 16px — body */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.5rem;       /* 24px */
  --text-2xl: 2rem;        /* 32px */
  --text-display: clamp(4rem, 11vw, 10rem);
  --text-anchor-num: clamp(2rem, 4vw, 3.5rem);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Strokes */
  --stroke-hair: 0.5px;
  --stroke-fine: 1px;
  --stroke-bold: 1.5px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: var(--text-base);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Blueprint grid — dezent, technisch */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--color-ink-04) var(--stroke-hair), transparent var(--stroke-hair)),
    linear-gradient(to bottom, var(--color-ink-04) var(--stroke-hair), transparent var(--stroke-hair));
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 50%, black 50%, transparent 100%);
}

/* Shared monospace marginalia */
.meta {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-40);
}

/* Theme variant hooks — for later */
[data-theme="ink"] {
  --color-bg: #08080C;
  --color-ink: #EAEAE5;
  --color-ink-70: rgba(234, 234, 229, 0.7);
  --color-ink-40: rgba(234, 234, 229, 0.4);
  --color-ink-20: rgba(234, 234, 229, 0.2);
  --color-ink-08: rgba(234, 234, 229, 0.08);
  --color-ink-04: rgba(234, 234, 229, 0.04);
  --color-surface: #14141C;
}
