/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
/* Hallmark · genre: modern-minimal · theme: Training Floor · design-system: design.md · designed-as-app */
:root {
  --color-paper: oklch(0.985 0.008 82);
  --color-paper-2: oklch(0.955 0.016 82);
  --color-surface: oklch(1 0 0);
  --color-ink: oklch(0.22 0.026 255);
  --color-ink-2: oklch(0.46 0.028 255);
  --color-ink-3: oklch(0.52 0.022 255);
  --color-rule: oklch(0.875 0.018 82);
  --color-rule-soft: oklch(0.93 0.012 82);
  --color-accent: oklch(0.66 0.185 48);
  --color-accent-strong: oklch(0.53 0.16 43);
  --color-accent-soft: oklch(0.96 0.04 67);
  --color-accent-ink: oklch(0.99 0.004 82);
  --color-teal: oklch(0.42 0.068 194);
  --color-teal-soft: oklch(0.95 0.025 194);
  --color-success: oklch(0.49 0.13 151);
  --color-success-soft: oklch(0.96 0.035 151);
  --color-warning: oklch(0.58 0.13 77);
  --color-warning-soft: oklch(0.97 0.04 89);
  --color-danger: oklch(0.55 0.2 27);
  --color-danger-soft: oklch(0.96 0.035 27);
  --color-focus: oklch(0.62 0.18 48);
  --color-scrim: oklch(0.16 0.02 255 / 0.68);

  /* Semantic extras: text on tinted surfaces, form fields, text on filled buttons. */
  --c-field-bg: #fafafa;
  --c-danger-ink: #7f1d1d;
  --c-success-ink: #166534;
  --c-warning-ink: #854d0e;
  --c-on-danger: #fff;
  color-scheme: light dark;

  --font-display: "Paperlogy", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --font-body: "Paperlogy", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --font-outlier: "Paperlogy", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-display: clamp(2.25rem, 10vw, 4.75rem);

  --radius-control: 0.625rem;
  --radius-card: 0.875rem;
  --radius-panel: 1.25rem;
  --radius-pill: 999px;

  --shadow-lift: 0 1rem 2.5rem oklch(0.18 0.02 255 / 0.1);
  --shadow-control: 0 0.25rem 0.75rem oklch(0.18 0.02 255 / 0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;
}

/* Dark mode: follows the OS unless <html data-theme="light|dark"> forces a side (set from the MY page). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-paper: oklch(0.17 0.012 255);
    --color-paper-2: oklch(0.21 0.014 255);
    --color-surface: oklch(0.22 0.014 255);
    --color-ink: oklch(0.94 0.008 255);
    --color-ink-2: oklch(0.8 0.014 255);
    --color-ink-3: oklch(0.7 0.016 255);
    --color-rule: oklch(0.36 0.016 255);
    --color-rule-soft: oklch(0.29 0.014 255);
    --color-accent: oklch(0.72 0.17 55);
    --color-accent-strong: oklch(0.76 0.15 55);
    --color-accent-soft: oklch(0.31 0.06 55);
    --color-accent-ink: oklch(0.18 0.02 255);
    --color-teal: oklch(0.78 0.09 194);
    --color-teal-soft: oklch(0.29 0.045 194);
    --color-success: oklch(0.76 0.14 151);
    --color-success-soft: oklch(0.28 0.055 151);
    --color-warning: oklch(0.8 0.13 80);
    --color-warning-soft: oklch(0.31 0.055 85);
    --color-danger: oklch(0.74 0.15 27);
    --color-danger-soft: oklch(0.29 0.075 27);
    --color-focus: oklch(0.78 0.16 55);
    --color-scrim: oklch(0.08 0.02 255 / 0.75);
    --c-field-bg: oklch(0.26 0.014 255);
    --c-danger-ink: oklch(0.88 0.07 27);
    --c-success-ink: oklch(0.88 0.09 151);
    --c-warning-ink: oklch(0.9 0.1 85);
    --c-on-danger: oklch(0.18 0.02 255);
  }
}
:root[data-theme="dark"] {
  --color-paper: oklch(0.17 0.012 255);
  --color-paper-2: oklch(0.21 0.014 255);
  --color-surface: oklch(0.22 0.014 255);
  --color-ink: oklch(0.94 0.008 255);
  --color-ink-2: oklch(0.8 0.014 255);
  --color-ink-3: oklch(0.7 0.016 255);
  --color-rule: oklch(0.36 0.016 255);
  --color-rule-soft: oklch(0.29 0.014 255);
  --color-accent: oklch(0.72 0.17 55);
  --color-accent-strong: oklch(0.76 0.15 55);
  --color-accent-soft: oklch(0.31 0.06 55);
  --color-accent-ink: oklch(0.18 0.02 255);
  --color-teal: oklch(0.78 0.09 194);
  --color-teal-soft: oklch(0.29 0.045 194);
  --color-success: oklch(0.76 0.14 151);
  --color-success-soft: oklch(0.28 0.055 151);
  --color-warning: oklch(0.8 0.13 80);
  --color-warning-soft: oklch(0.31 0.055 85);
  --color-danger: oklch(0.74 0.15 27);
  --color-danger-soft: oklch(0.29 0.075 27);
  --color-focus: oklch(0.78 0.16 55);
  --color-scrim: oklch(0.08 0.02 255 / 0.75);
  --c-field-bg: oklch(0.26 0.014 255);
  --c-danger-ink: oklch(0.88 0.07 27);
  --c-success-ink: oklch(0.88 0.09 151);
  --c-warning-ink: oklch(0.9 0.1 85);
  --c-on-danger: oklch(0.18 0.02 255);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
