/* Hallmark · shape: Counter · genre: modern-minimal · theme: brand · redesign: full
 * paper: oklch(94.5% 0.015 150) · accent: oklch(48.5% 0.125 153) · display: Erode · body: Satoshi · hero: Counter · nav: floating-pill · footer: mast · signature: live academic abstract matcher workbench beside serif monograph typography
 * axes: light/high-contrast-serif/chromatic-green · posture: Restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 · weakest: E, dense SPA tokens scattered outside :root; centralized OKLCH tokens and editorial hairlines across views */
/* Hallmark · dropped hero-rotator-track · replaced cycling adjective rotator in h1 with static editorial headline per Gates 18 and 58 */
/* Hallmark · reworded "Simple, transparent pricing for academic researchers" to keep page taxonomy accurate per Gate 54 */
/* Hallmark · answered F4 · primary CTA appears once per visible SPA view/dialog */
/* Hallmark · dismissed 69 · Pricing tiers, Terms section 3, and Refunds Policy legibly disclose the $12 monthly price across views */
/* Hallmark · dropped onclick="document.getElementById('nav-home').click()" · migrated inline onclick to external addEventListener for strict script-src CSP */
/* Hallmark · dropped sample_results.js · lazy-fetched sample_results.json on Try Sample click to eliminate 74 KB eager boot script */


:root {
  /* Scale & Rhythm (4px base ladder) */
  --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;

  /* Modular Type Scale (1.25 ratio from 16px body) */
  --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.35rem, 3.6vw + 0.5rem, 3.65rem);
  --text-display: clamp(2.65rem, 4.4vw + 0.75rem, 4.35rem);
  --text-section: clamp(1.95rem, 2.4vw + 0.9rem, 3.1rem);
  --text-title: clamp(1.25rem, 0.7vw + 0.875rem, 1.55rem);
  --text-lead: clamp(1.0625rem, 0.35vw + 0.95rem, 1.25rem);

  /* Motion Curves & Durations */
  --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;

  /* Layout Grid */
  --container: 1440px;
  --gutter: 64px;
  --gap-columns: 32px;
  --section-gap-s: 120px;
  --section-gap: 144px;
  --section-gap-l: 176px;
  --header-h: 72px;

  /* Elevation Layers */
  --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;

  /* Botanical Sage & Pine Palette (OKLCH) */
  --color-paper: oklch(94.5% 0.015 150);
  --color-paper-2: oklch(91.5% 0.019 150);
  --color-paper-3: oklch(88.2% 0.024 150);
  --color-surface: oklch(99.2% 0.005 150);
  --color-surface-tint: oklch(97.2% 0.009 150);
  --color-overlay: oklch(18% 0.03 150 / 0.56);

  --color-ink: oklch(22.5% 0.032 150);
  --color-ink-2: oklch(34% 0.035 150);
  --color-muted: oklch(43% 0.032 150);
  --color-muted-soft: oklch(46% 0.028 150);
  --color-placeholder: oklch(46% 0.026 150);

  --color-rule: oklch(22.5% 0.032 150 / 0.12);
  --color-rule-soft: oklch(22.5% 0.032 150 / 0.07);
  --color-rule-strong: oklch(22.5% 0.032 150 / 0.22);

  /* Accent (Forest Emerald — AAA/AA Contrast Calibrated) */
  --color-accent: oklch(48.5% 0.125 153);
  --color-accent-hover: oklch(41.5% 0.115 153);
  --color-accent-ink: oklch(99.2% 0.005 150);
  --color-accent-text: oklch(40% 0.112 153);
  --color-accent-wash: oklch(48.5% 0.125 153 / 0.08);
  --color-accent-wash-2: oklch(48.5% 0.125 153 / 0.14);
  --color-accent-border: oklch(48.5% 0.125 153 / 0.28);
  --color-focus: oklch(48.5% 0.14 153);

  --color-accent-secondary: oklch(51% 0.105 158);
  --color-accent-secondary-hover: oklch(43% 0.10 158);
  --color-mint: oklch(72% 0.14 162);
  --color-mint-soft: oklch(68% 0.11 155);
  --color-mint-pale: oklch(84% 0.08 155);

  /* Ink & Surface Opacity Steps */
  --color-ink-02: oklch(22.5% 0.032 150 / 0.02);
  --color-ink-04: oklch(22.5% 0.032 150 / 0.04);
  --color-ink-06: oklch(22.5% 0.032 150 / 0.06);
  --color-ink-08: oklch(22.5% 0.032 150 / 0.08);
  --color-ink-12: oklch(22.5% 0.032 150 / 0.12);
  --color-ink-18: oklch(22.5% 0.032 150 / 0.18);
  --color-ink-28: oklch(22.5% 0.032 150 / 0.28);
  --color-surface-85: oklch(99.2% 0.005 150 / 0.85);
  --color-surface-15: oklch(99.2% 0.005 150 / 0.18);

  /* Publisher Wordmark Accents */
  --color-pub-elsevier: oklch(56% 0.19 38);
  --color-pub-elsevier-wash: oklch(97% 0.02 45);
  --color-pub-springer: oklch(51% 0.21 262);
  --color-pub-springer-wash: oklch(96.5% 0.02 260);
  --color-pub-tandf: oklch(53% 0.16 235);
  --color-pub-tandf-wash: oklch(96.5% 0.02 235);
  --color-pub-emerald: oklch(50% 0.13 162);
  --color-pub-emerald-wash: oklch(96.5% 0.025 162);
  --color-pub-sage: oklch(54% 0.15 68);
  --color-pub-sage-wash: oklch(97% 0.025 75);
  --color-pub-wiley: oklch(48% 0.21 275);
  --color-pub-wiley-wash: oklch(96% 0.025 275);
  --color-pub-ieee: oklch(45% 0.14 245);

  /* Status Semantics */
  --color-success: oklch(44% 0.118 150);
  --color-success-wash: oklch(44% 0.118 150 / 0.10);
  --color-success-border: oklch(44% 0.118 150 / 0.28);
  --color-warning: oklch(46% 0.135 65);
  --color-warning-bright: oklch(62% 0.15 70);
  --color-warning-wash: oklch(62% 0.15 70 / 0.12);
  --color-warning-border: oklch(46% 0.135 65 / 0.30);
  --color-danger: oklch(47% 0.185 26);
  --color-danger-fill: oklch(53% 0.20 26);
  --color-danger-wash: oklch(53% 0.20 26 / 0.10);
  --color-danger-border: oklch(47% 0.185 26 / 0.28);

  /* Info / Slate Neutral Badge Tints */
  --color-info-text: oklch(40% 0.095 245);
  --color-info-wash: oklch(55% 0.095 245 / 0.11);
  --color-info-border: oklch(55% 0.095 245 / 0.26);

  /* Architectural Surface Shadows */
  --shadow-xs: 0 1px 2px oklch(22.5% 0.032 150 / 0.05);
  --shadow-sm: 0 2px 6px oklch(22.5% 0.032 150 / 0.06);
  --shadow-md: 0 8px 24px oklch(22.5% 0.032 150 / 0.08);
  --shadow-lg: 0 18px 40px oklch(22.5% 0.032 150 / 0.12);
  --shadow-card: var(--shadow-xs);

  /* Typography — Editorial Luxury Display Serif + Architectural UI Sans */
  --font-display: "Erode", Georgia, "Times New Roman", serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: var(--font-body);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-outlier: var(--font-display);
  --display-weight: 500;
  --tracking-display: -0.025em;

  /* Strict Geometric Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-card: 12px;
  --radius-input: 8px;
  --radius-pill: 999px;
  --rule-hair: 1px;

  /* Compatibility Token Aliases (for legacy selectors & inline references) */
  --bg-page: var(--color-paper);
  --bg-surface: var(--color-surface);
  --bg-card: var(--color-surface);
  --bg-subtle: var(--color-paper-2);
  --bg-hover: var(--color-paper-3);
  --surface-secondary: var(--color-paper-2);
  --text-primary: var(--color-ink);
  --text-secondary: var(--color-ink-2);
  --text-muted: var(--color-muted);
  --text-tertiary: var(--color-muted-soft);
  --text-placeholder: var(--color-placeholder);
  --border: var(--color-rule);
  --border-light: var(--color-rule);
  --border-hover: var(--color-rule-strong);
  --border-focus: var(--color-focus);
  --accent: var(--color-accent);
  --accent-hover: var(--color-accent-hover);
  --accent-light: var(--color-accent-wash);
  --accent-subtle: var(--color-accent-wash-2);
  --accent-secondary: var(--color-accent-secondary);
  --accent-secondary-hover: var(--color-accent-secondary-hover);
  --success: var(--color-success);
  --warning: var(--color-warning);
  --danger: var(--color-danger);
  --container-max: var(--container);
  --container-pad: var(--gutter);
}

