/* Hallmark · theme: Console (dual-surface) · genre: modern-minimal · axes: dark+light/grotesk-sans/cobalt-amber · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S4 R5 V4 · weakest: S, anchored Console graphite and cobalt-amber tokens to Korean B2B GEO portal typography and tabular numerals */

:root {
  color-scheme: light;

  /* Typography */
  --font-display: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tracking-display: -0.025em;
  --display-weight: 700;

  /* App 1.2 Fixed Type Scale (default for portal/auth/error) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.44rem;
  --text-2xl: 1.728rem;
  --text-3xl: 2.074rem;
  --text-display-s: 1.44rem;
  --text-display: 1.728rem;
  --text-section: 1.2rem;
  --text-title: 1rem;
  --text-lead: 1rem;

  /* Spacing & Layout Scale */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;
  --container: 1440px;
  --container-narrow: 960px;
  --container-portal: 1320px;
  --gutter: 64px;
  --gap-columns: 32px;
  --section-gap-s: 120px;
  --section-gap: 144px;
  --section-gap-l: 176px;
  --sidebar-width: 264px;
  --auth-card-max: 440px;
  --error-card-max: 520px;
  --control-height-sm: 32px;
  --control-height: 38px;
  --control-height-lg: 46px;
  --touch-target: 44px;

  /* Shape & Hairlines */
  --radius-sm: 6px;
  --radius-pill: 8px;
  --radius-card: 12px;
  --radius-round: 999px;
  --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(20% 0.014 250 / 0.05);
  --shadow-drawer: 0 12px 32px oklch(17% 0.015 250 / 0.28);
  --shadow-toast: 0 10px 28px oklch(17% 0.015 250 / 0.22);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  /* Z-index Scale */
  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sticky-nav: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* Light Portal Palette (OKLCH 4-layer, tinted to hue 250) */
  --color-paper: oklch(97.5% 0.006 250);
  --color-paper-2: oklch(99.2% 0.005 250);
  --color-paper-3: oklch(94.5% 0.009 250);
  --color-ink: oklch(19% 0.018 255);
  --color-ink-2: oklch(34% 0.016 255);
  --color-muted: oklch(47% 0.014 252);
  --color-rule: oklch(88% 0.011 250);
  --color-rule-2: oklch(76% 0.015 252);
  --color-field-rule: oklch(57% 0.016 252);

  --color-accent: oklch(48% 0.17 252);
  --color-accent-hover: oklch(42% 0.18 252);
  --color-accent-ink: oklch(98.5% 0.005 250);
  --color-accent-soft: oklch(94% 0.032 252);
  --color-accent-soft-ink: oklch(34% 0.13 252);
  --color-accent-soft-rule: oklch(82% 0.065 252);
  --color-focus: oklch(50% 0.19 252);

  --color-signal: oklch(78% 0.14 78);
  --color-signal-ink: oklch(22% 0.04 75);

  /* Semantic Status Tokens */
  --color-success: oklch(44% 0.13 150);
  --color-success-bg: oklch(94% 0.035 150);
  --color-success-ink: oklch(32% 0.10 150);
  --color-success-rule: oklch(82% 0.07 150);

  --color-warn: oklch(50% 0.14 72);
  --color-warn-bg: oklch(94% 0.045 85);
  --color-warn-ink: oklch(35% 0.10 68);
  --color-warn-rule: oklch(84% 0.08 82);

  --color-error: oklch(48% 0.18 25);
  --color-error-bg: oklch(94% 0.032 24);
  --color-error-ink: oklch(36% 0.15 25);
  --color-error-rule: oklch(82% 0.075 24);

  --color-hold-bg: oklch(94% 0.03 295);
  --color-hold-ink: oklch(36% 0.13 295);

  --color-info-bg: oklch(94% 0.035 252);
  --color-info-ink: oklch(35% 0.13 252);
  --color-info-rule: oklch(83% 0.065 252);

  /* Portal Sidebar & Code Surfaces (Console Graphite) */
  --color-sidebar-bg: oklch(17% 0.011 250);
  --color-sidebar-hover: oklch(23% 0.013 250);
  --color-sidebar-ink: oklch(94% 0.006 250);
  --color-sidebar-muted: oklch(72% 0.010 250);
  --color-sidebar-rule: oklch(28% 0.012 250);
  --color-sidebar-btn-rule: oklch(58% 0.015 250);

  --color-code-bg: oklch(16% 0.010 250);
  --color-code-ink: oklch(91% 0.008 250);

  /* Toast Surfaces */
  --color-toast-bg: oklch(18% 0.012 250);
  --color-toast-ink: oklch(96% 0.005 250);
  --color-toast-success-bg: oklch(34% 0.10 150);
  --color-toast-error-bg: oklch(38% 0.14 25);
}

/* Dark High-Contrast Landing Surface (Console Graphite Derivation) */
.landing-surface {
  color-scheme: dark;

  --color-paper: oklch(14.5% 0.010 250);
  --color-paper-2: oklch(18% 0.012 250);
  --color-paper-3: oklch(21.5% 0.013 250);
  --color-ink: oklch(95% 0.006 250);
  --color-ink-2: oklch(83% 0.009 250);
  --color-muted: oklch(70% 0.012 250);
  --color-rule: oklch(29% 0.012 250);
  --color-rule-2: oklch(39% 0.014 250);
  --color-field-rule: oklch(58% 0.015 250);

  --color-accent: oklch(74% 0.145 252);
  --color-accent-hover: oklch(79% 0.14 252);
  --color-accent-ink: oklch(16% 0.025 252);
  --color-accent-soft: oklch(26% 0.045 252);
  --color-accent-soft-ink: oklch(88% 0.045 252);
  --color-accent-soft-rule: oklch(40% 0.075 252);
  --color-focus: oklch(76% 0.15 252);

  --color-signal: oklch(82% 0.14 80);
  --color-signal-ink: oklch(18% 0.04 75);

  --color-error: oklch(72% 0.15 27);
  --color-success: oklch(76% 0.13 150);
  --color-warn: oklch(80% 0.14 80);

  --shadow-card: 0 0 0 1px var(--color-rule);

  /* Marketing Fluid Type Scale (1.25 ratio) */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-display-s: clamp(2.125rem, 3.6vw + 0.5rem, 3.5rem);
  --text-display: clamp(2.5rem, 4.8vw + 0.75rem, 4.75rem);
  --text-section: clamp(1.875rem, 2.4vw + 0.875rem, 3.25rem);
  --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem);
  --text-lead: clamp(1.0625rem, 0.35vw + 0.95rem, 1.3125rem);
}

/* Explicit High-Legibility Portal / Auth Light Surface */
.portal-surface,
.portal-auth-surface {
  color-scheme: light;

  --color-paper: oklch(97.5% 0.006 250);
  --color-paper-2: oklch(99.2% 0.005 250);
  --color-paper-3: oklch(94.5% 0.009 250);
  --color-ink: oklch(19% 0.018 255);
  --color-ink-2: oklch(34% 0.016 255);
  --color-muted: oklch(47% 0.014 252);
  --color-rule: oklch(88% 0.011 250);
  --color-rule-2: oklch(76% 0.015 252);
  --color-field-rule: oklch(57% 0.016 252);

  --color-accent: oklch(48% 0.17 252);
  --color-accent-hover: oklch(42% 0.18 252);
  --color-accent-ink: oklch(98.5% 0.005 250);
  --color-accent-soft: oklch(94% 0.032 252);
  --color-accent-soft-ink: oklch(34% 0.13 252);
  --color-accent-soft-rule: oklch(82% 0.065 252);
  --color-focus: oklch(50% 0.19 252);

  --color-error: oklch(48% 0.18 25);
  --color-success: oklch(44% 0.13 150);
  --color-warn: oklch(50% 0.14 72);

  --shadow-card: 0 1px 2px oklch(20% 0.014 250 / 0.05);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.44rem;
  --text-2xl: 1.728rem;
  --text-3xl: 2.074rem;
  --text-display-s: 1.44rem;
  --text-display: 1.728rem;
  --text-section: 1.2rem;
  --text-title: 1rem;
  --text-lead: 1rem;
}
