/* ==========================================================================
   SyncaDoc Unified Design System v3.0
   Single source of truth for all design tokens
   Aligned with Partner Hub reference design
   See docs/design/design-tokens.json
   ========================================================================== */

:root {
  /* ==========================================================================
     Brand Colors - Core Identity
     ========================================================================== */
  --accent: #5C5CD9;        /* Primary purple - WCAG AA contrast */
  --accent-hover: #4A4AC7;  /* Purple hover state */
  --accent-light: #a0a0ff;  /* Lighter purple for accents */
  --accent-2: #0d6e78;      /* Secondary teal */
  --accent-2-light: #22d3ee; /* Lighter teal */

  /* Gold Highlight - For featured elements, form attention states */
  --highlight: #D4A03A;         /* Primary gold */
  --highlight-hover: #B8892F;   /* Gold hover/active */
  --highlight-light: #F5E6C8;   /* Light gold for backgrounds */
  --highlight-glow: rgba(212, 160, 58, 0.25); /* Gold glow/ring */

  /* ==========================================================================
     Light Mode Colors (Default)
     ========================================================================== */
  --bg: #fdf8f1;            /* Page background - warm cream */
  --ink: #0b0f1f;           /* Primary text - near black */
  --muted: #4b5563;         /* Secondary text - gray 600 */
  --surface: #ffffff;       /* Cards, panels - pure white */
  --surface-soft: #efe5d8;  /* Subtle backgrounds - warm gray */
  --stroke: rgba(12, 15, 25, 0.12); /* Borders */

  /* Shadows - Light Mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow: 0 24px 60px rgba(13, 27, 55, 0.12);

  /* Focus States */
  --focus-ring: 0 0 0 3px rgba(128, 128, 255, 0.4);

  /* Semantic Colors - Desaturated for readability */
  --success: #4a9b6b;
  --success-dark: #3a8a58;
  --error: #c75858;
  --error-dark: #b34848;
  --warning: #fbbf24;
  --warning-dark: #f59e0b;
  --info: #3b82f6;
  --info-dark: #2563eb;

  /* ==========================================================================
     Spacing Scale
     ========================================================================== */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* ==========================================================================
     Border Radius
     ========================================================================== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ==========================================================================
     Touch Targets (WCAG 2.1 AAA)
     ========================================================================== */
  --touch-minimum: 44px;
  --touch-comfortable: 48px;
  --touch-large: 56px;

  /* ==========================================================================
     Animation
     ========================================================================== */
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --easing-default: ease;
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ==========================================================================
     Typography
     ========================================================================== */
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "SF Mono", "Fira Code", monospace;
}

/* ==========================================================================
   Dark Mode - Explicit Selection [data-theme="dark"]
   Matches Partner Hub design exactly
   ========================================================================== */
html[data-theme="dark"] {
  --bg: #020617;            /* Near-black background (slate-950) */
  --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  --ink: #f1f5f9;           /* Light text - slate 100 */
  --muted: #b0bac7;         /* WCAG AA contrast (4.6:1 on #1e293b) */
  --surface: #1e293b;       /* Cards - slate 800 */
  --surface-soft: #334155;  /* Subtle backgrounds - slate 700 */
  --stroke: rgba(241, 245, 249, 0.12); /* Light borders */

  /* Shadows - Dark Mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);

  /* Focus States - Brighter for dark backgrounds */
  --focus-ring: 0 0 0 3px rgba(160, 160, 255, 0.4);

  /* Semantic Colors - Desaturated for readability */
  --success: #6bbc8f;
  --success-dark: #4a9b6b;
  --error: #e08888;
  --error-dark: #c75858;
  --warning: #fbbf24;
  --warning-dark: #f59e0b;
  --info: #60a5fa;
  --info-dark: #3b82f6;

  /* Accent adjustments for dark mode */
  --accent: #8080ff;          /* Brighter purple for dark mode text */
  --accent-hover: #6b6bef;    /* Slightly darker for hover */
  --accent-light: #a0a0ff;    /* Lighter purple for dark backgrounds */
  --accent-2: #2dd4bf;        /* Brighter teal for dark bg (teal-400) */
  --accent-2-light: #22d3ee;

  /* Gold Highlight - Brighter for dark backgrounds */
  --highlight: #E5B34A;           /* Brighter gold */
  --highlight-hover: #D4A03A;     /* Gold hover */
  --highlight-light: rgba(229, 179, 74, 0.15); /* Subtle gold bg */
  --highlight-glow: rgba(229, 179, 74, 0.3);   /* Gold glow/ring */
}

/* ==========================================================================
   System Preference - Dark Mode
   Applies when no explicit theme is set
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #020617;
    --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --ink: #f1f5f9;
    --muted: #b0bac7;
    --surface: #1e293b;
    --surface-soft: #334155;
    --stroke: rgba(241, 245, 249, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);

    --focus-ring: 0 0 0 3px rgba(160, 160, 255, 0.4);

    /* Semantic Colors - Desaturated for readability */
    --success: #6bbc8f;
    --success-dark: #4a9b6b;
    --error: #e08888;
    --error-dark: #c75858;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    --info: #60a5fa;
    --info-dark: #3b82f6;

    --accent: #8080ff;          /* Brighter purple for dark mode text */
    --accent-hover: #6b6bef;    /* Slightly darker for hover */
    --accent-light: #a0a0ff;    /* Lighter purple for dark backgrounds */
    --accent-2: #2dd4bf;        /* Brighter teal for dark bg (teal-400) */
    --accent-2-light: #22d3ee;

    /* Gold Highlight - Brighter for dark backgrounds */
    --highlight: #E5B34A;
    --highlight-hover: #D4A03A;
    --highlight-light: rgba(229, 179, 74, 0.15);
    --highlight-glow: rgba(229, 179, 74, 0.3);
  }
}

/* ==========================================================================
   Reduced Motion Support (WCAG 2.1 AAA)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Base Reset & Defaults
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark mode gradient background */
html[data-theme="dark"] body {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  background-attachment: fixed;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) body {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    background-attachment: fixed;
  }
}

/* ==========================================================================
   Focus States - Accessibility
   ========================================================================== */
a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Form Validation States - Gold Highlight for Attention
   ========================================================================== */

/* Field needing attention (incomplete, not error) */
.field-attention,
input.attention,
select.attention,
textarea.attention {
  border-color: var(--highlight) !important;
  box-shadow: 0 0 0 3px var(--highlight-glow) !important;
}

.field-attention:focus,
input.attention:focus,
select.attention:focus,
textarea.attention:focus {
  border-color: var(--highlight) !important;
  box-shadow: 0 0 0 3px var(--highlight-glow), 0 0 0 1px var(--highlight) !important;
}

/* Attention message text */
.attention-message {
  color: var(--highlight);
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.attention-message::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--highlight);
  color: #1a1a1a;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

/* Featured/Recommended badge utility */
.badge-featured {
  display: inline-block;
  background: var(--highlight);
  color: #1a1a1a;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gold border highlight for cards */
.card-featured {
  border-color: var(--highlight) !important;
  box-shadow: 0 0 0 1px var(--highlight), 0 8px 24px var(--highlight-glow) !important;
}

/* ==========================================================================
   Skip Link - Keyboard Navigation
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top var(--duration-fast) var(--easing-default);
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Theme Selector Component
   Three-way toggle: Light / System / Dark
   ========================================================================== */
.theme-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--stroke);
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--muted);
  transition: all var(--duration-fast) var(--easing-default);
}

.theme-btn:hover {
  color: var(--ink);
  background: rgba(128, 128, 255, 0.1);
}

.theme-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.theme-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Button Component
   Variants: primary, secondary, ghost, text
   ========================================================================== */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  min-height: var(--touch-minimum);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--duration-normal) var(--easing-default),
              box-shadow var(--duration-normal) var(--easing-default),
              background var(--duration-normal) var(--easing-default),
              border-color var(--duration-normal) var(--easing-default);
}

.btn-primary,
.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(92, 92, 217, 0.2);
}

.btn-primary:active,
.button.primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary:focus-visible,
.button.primary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-md), var(--focus-ring);
}

.btn-secondary,
.button.secondary {
  background: rgba(128, 128, 255, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover,
.button.secondary:hover {
  background: rgba(128, 128, 255, 0.2);
}

.btn-ghost,
.button.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--stroke);
}

.btn-ghost:hover,
.button.ghost:hover {
  border-color: var(--accent);
  background: rgba(128, 128, 255, 0.08);
}

.btn-text,
.button.text {
  background: none;
  color: var(--accent);
  padding: 12px 8px;
}

.btn-text:hover,
.button.text:hover {
  color: var(--accent-hover);
}

/* Dark mode button adjustments */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .button.primary:hover {
  background: linear-gradient(135deg, #7070ef 0%, #5858d8 100%);
  box-shadow: 0 0 12px rgba(128, 128, 255, 0.25);
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .button.ghost {
  background: var(--surface-soft);
  border-color: var(--stroke);
}

html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .button.ghost:hover {
  background: #475569;
  border-color: var(--accent);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .button.secondary {
  background: rgba(160, 160, 255, 0.15);
  color: var(--accent-light);
  border-color: rgba(160, 160, 255, 0.5);
}

/* System preference dark mode buttons */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .btn-primary,
  html:not([data-theme="light"]):not([data-theme="dark"]) .button.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  }

  html:not([data-theme="light"]):not([data-theme="dark"]) .btn-primary:hover,
  html:not([data-theme="light"]):not([data-theme="dark"]) .button.primary:hover {
    background: linear-gradient(135deg, #7070ef 0%, #5858d8 100%);
    box-shadow: 0 0 12px rgba(128, 128, 255, 0.25);
  }

  html:not([data-theme="light"]):not([data-theme="dark"]) .btn-ghost,
  html:not([data-theme="light"]):not([data-theme="dark"]) .button.ghost {
    background: var(--surface-soft);
    border-color: var(--stroke);
  }
}

/* ==========================================================================
   Form Inputs
   ========================================================================== */
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  min-height: var(--touch-minimum);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  font-family: var(--font-display);
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--easing-default),
              box-shadow var(--duration-fast) var(--easing-default);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

/* Dark mode form inputs */
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--stroke);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) input[type="email"],
  html:not([data-theme="light"]):not([data-theme="dark"]) input[type="text"],
  html:not([data-theme="light"]):not([data-theme="dark"]) input[type="tel"],
  html:not([data-theme="light"]):not([data-theme="dark"]) input[type="password"],
  html:not([data-theme="light"]):not([data-theme="dark"]) input[type="number"],
  html:not([data-theme="light"]):not([data-theme="dark"]) input[type="date"],
  html:not([data-theme="light"]):not([data-theme="dark"]) input[type="url"],
  html:not([data-theme="light"]):not([data-theme="dark"]) select,
  html:not([data-theme="light"]):not([data-theme="dark"]) textarea {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--stroke);
  }
}

/* ==========================================================================
   Card Component
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--easing-default),
              box-shadow var(--duration-normal) var(--easing-default);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-elevated {
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Status Messages
   Variants: success, error, warning, info
   ========================================================================== */
.status,
.form-status {
  font-family: var(--font-display);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.status.success,
.form-status.success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success-dark);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status.error,
.form-status.error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--error-dark);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status.warning,
.form-status.warning {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning-dark);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status.info,
.form-status.info {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info-dark);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Dark mode status messages */
html[data-theme="dark"] .status.success,
html[data-theme="dark"] .form-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.4);
}

html[data-theme="dark"] .status.error,
html[data-theme="dark"] .form-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.4);
}

html[data-theme="dark"] .status.warning,
html[data-theme="dark"] .form-status.warning {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.4);
}

html[data-theme="dark"] .status.info,
html[data-theme="dark"] .form-status.info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
  border-color: rgba(59, 130, 246, 0.4);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .status.success,
  html:not([data-theme="light"]):not([data-theme="dark"]) .form-status.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.4);
  }

  html:not([data-theme="light"]):not([data-theme="dark"]) .status.error,
  html:not([data-theme="light"]):not([data-theme="dark"]) .form-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.4);
  }

  html:not([data-theme="light"]):not([data-theme="dark"]) .status.warning,
  html:not([data-theme="light"]):not([data-theme="dark"]) .form-status.warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.4);
  }

  html:not([data-theme="light"]):not([data-theme="dark"]) .status.info,
  html:not([data-theme="light"]):not([data-theme="dark"]) .form-status.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.4);
  }
}

/* ==========================================================================
   Badge / Pill Component
   ========================================================================== */
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(128, 128, 255, 0.12);
  color: var(--accent);
}

.badge.success { background: rgba(34, 197, 94, 0.12); color: var(--success-dark); }
.badge.error { background: rgba(239, 68, 68, 0.12); color: var(--error-dark); }
.badge.warning { background: rgba(160, 160, 255, 0.12); color: var(--warning-dark); }
.badge.info { background: rgba(59, 130, 246, 0.12); color: var(--info-dark); }

/* ==========================================================================
   Skeleton Loaders
   Shimmer effect for loading states
   ========================================================================== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-soft) 25%,
    var(--surface) 50%,
    var(--surface-soft) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-title {
  height: 1.5em;
  width: 40%;
  margin-bottom: 1em;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-md);
}

.skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: var(--radius-full);
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

/* ==========================================================================
   Reveal Animation
   Scroll-triggered entrance animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

.text-accent { color: var(--accent); }
.text-accent-2 { color: var(--accent-2); }
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) clamp(20px, 3vw, 40px) var(--space-3xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
