/* Hallmark | custom theme "Pole" | genre: atmospheric-light | tone: confident, precise, quiet
 * paper oklch(98.6% 0.002 260) / oklch(15% 0.012 265) | accent oklch(62% 0.19 255) blue
 * display + body: Inter (self-hosted, variable) | mark: gradient squircle from the PlanPole logo
 * axes: paper-band light+dark / grotesk-sans / cool
 *
 * Source of the palette: the PlanPole mark (accent #0a84ff to #5e5ce6) and the app's own
 * design tokens (src/styles/tokens.css: bg #fafafa / #0b0d12, muted #6e6e73). Text-safe accent
 * variants are separate tokens because the pure brand blue is under 4.5:1 as small text on paper.
 */

:root {
  color-scheme: light dark;

  /* Surface and ink: light */
  --paper: oklch(98.6% 0.002 260);
  --paper-raised: oklch(100% 0 0);
  --paper-sunk: oklch(95.6% 0.006 260);
  --ink: oklch(21% 0.012 265);
  --ink-muted: oklch(44% 0.016 265);
  --rule: oklch(87% 0.008 265);
  --rule-strong: oklch(72% 0.012 265);

  /* Accent */
  --accent: oklch(62% 0.19 255);
  --accent-ink: oklch(48% 0.19 258);
  --accent-wash: oklch(94% 0.04 255);
  --accent-on: oklch(100% 0 0);

  /* Mark gradient, taken from the logo */
  --mark-a: oklch(64% 0.2 255);
  --mark-b: oklch(55% 0.21 277);

  --shadow-sheet:
    0 1px 0 oklch(100% 0 0 / 0.9) inset, 0 24px 48px -24px oklch(30% 0.05 260 / 0.28),
    0 2px 6px oklch(30% 0.03 260 / 0.08);

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --text-display: clamp(2.5rem, 1.4rem + 5.2vw, 5.25rem);

  /* Space: 4pt scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 7.5rem;

  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --measure: 62ch;
  --page-max: 72rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-enter: 560ms;
  --dur-wave: 1800ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(15% 0.012 265);
    --paper-raised: oklch(20% 0.014 265);
    --paper-sunk: oklch(18% 0.013 265);
    --ink: oklch(96% 0.004 265);
    --ink-muted: oklch(77% 0.014 265);
    --rule: oklch(30% 0.014 265);
    --rule-strong: oklch(46% 0.02 265);

    --accent: oklch(70% 0.17 255);
    --accent-ink: oklch(79% 0.13 255);
    --accent-wash: oklch(26% 0.06 258);
    --accent-on: oklch(100% 0 0);

    --shadow-sheet:
      0 1px 0 oklch(100% 0 0 / 0.06) inset, 0 28px 56px -28px oklch(0% 0 0 / 0.7), 0 2px 6px oklch(0% 0 0 / 0.3);
  }
}
