/*
 * Design tokens for mertseven.com.
 * Paper, ink and one hairline. Every page reads its colour, type and spacing from here.
 */

:root {
  /* Surfaces: the paper matches the ocean's light theme so the canvas and the page are one sheet. */
  --paper: #f4f3ef;
  --paper-raised: #fbfaf7;
  --glass: rgba(251, 250, 247, 0.55);
  --glass-strong: rgba(251, 250, 247, 0.82);

  /* Ink */
  --ink: #16171b;
  --ink-2: #4a4c53;
  --ink-3: #8a8c93;
  --ink-4: #b9bac0;

  /* Lines */
  --line: rgba(22, 23, 27, 0.12);
  --line-strong: rgba(22, 23, 27, 0.28);
  --focus: rgba(22, 23, 27, 0.55);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; /* accent only: one italic word at a time */
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --text-display: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;

  --tracking-display: -0.035em;
  --tracking-tight: -0.01em;
  --tracking-label: 0.06em;

  /* Space: 4px steps */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 1200px;

  /* Shape and depth */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-glass: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 50px -24px rgba(22, 23, 27, 0.28);
  --blur-glass: 18px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 220ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000;
    --paper-raised: #0c0d10;
    --glass: rgba(12, 13, 16, 0.5);
    --glass-strong: rgba(12, 13, 16, 0.82);
    --ink: #eceef3;
    --ink-2: #b4b7c0;
    --ink-3: #7c7f88;
    --ink-4: #4b4e56;
    --line: rgba(236, 238, 243, 0.12);
    --line-strong: rgba(236, 238, 243, 0.3);
    --focus: rgba(236, 238, 243, 0.6);
    --shadow-glass: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 50px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #000;
  --paper-raised: #0c0d10;
  --glass: rgba(12, 13, 16, 0.5);
  --glass-strong: rgba(12, 13, 16, 0.82);
  --ink: #eceef3;
  --ink-2: #b4b7c0;
  --ink-3: #7c7f88;
  --ink-4: #4b4e56;
  --line: rgba(236, 238, 243, 0.12);
  --line-strong: rgba(236, 238, 243, 0.3);
  --focus: rgba(236, 238, 243, 0.6);
  --shadow-glass: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
