/**
 * PeptideQ Design Tokens — COMPAT ALIAS SHIM
 *
 * This file is no longer a source of truth. It preserves the unprefixed
 * legacy token namespace (consumed by account.css) as a compatibility
 * layer over the Astryx-derived design system:
 *
 *   astryx-foundation.css  ->  theme-peptideq.css  ->  tokens.css (this shim)
 *
 * Every declaration here is either:
 *   - an alias re-pointed to a foundation/theme token (byte-identical
 *     resolved light value), or
 *   - a frozen legacy literal, marked `@deprecated legacy-literal`
 *     (off-grid / off-scale values with no Astryx slot — see D10/D27).
 *
 * Deleted: --duration-slow (531ms) — never consumed; Astryx owns the
 * name at 520ms (decision D22). The only dropped legacy token.
 * The Google Fonts CSS import was removed — fonts load once via the
 * index.html <link> (render-identical, one fewer blocking fetch).
 *
 * Do NOT add new names here. New CSS consumes semantic tokens directly.
 * Authority: styles/DESIGN_SYSTEM.md (see §6, compat aliases & deprecation).
 *
 * @version 2.0.0 (ds-astryx-20260704-001)
 */

:root {
  /* ============================================
     COLOR TOKENS
     ============================================ */

  /* Background Colors */
  --cream-bg: var(--color-background-body);
  --cream-bg-2: var(--color-brand-cream-2);
  --cream-bg-3: var(--color-brand-cream-3);

  /* Text Colors */
  --ink: var(--color-brand-ink-warm);
  --ink-soft: var(--color-text-secondary);
  --ink-faint: var(--color-text-disabled);

  /* Border & Divider */
  --line: var(--color-border-emphasized);

  /* Accent Colors */
  --accent: var(--color-brand-taupe);
  --accent-deep: var(--color-brand-taupe-deep);
  --accent-soft: var(--color-brand-taupe-soft);

  /* Semantic Colors */
  --sage: var(--color-brand-sage);
  --success: var(--color-success);
  --warning: var(--color-warning);
  --error: var(--color-error);
  --info: var(--color-brand-info);

  /* Dark Mode Surface */
  --dark-surface: #1A1714; /* @deprecated legacy-literal — = dark --color-background-body */


  /* ============================================
     TYPOGRAPHY TOKENS
     ============================================ */

  /* Font Families (frozen, D10 — legacy stacks differ from family tokens) */
  --font-main: 'Inter', sans-serif; /* @deprecated legacy-literal */
  --font-display: 'Fraunces', 'Georgia', serif; /* @deprecated legacy-literal */

  /* Type Scale (doc-only, unconsumed) */
  --type-ratio: 1.275; /* @deprecated legacy-literal */
  --type-base: 16.9px; /* @deprecated legacy-literal */

  /* Font Sizes — note the one-t-shirt-step name shift vs the foundation
     scale (--font-md -> --font-size-lg ... --font-3xl -> --font-size-4xl);
     values are exact. Documented in DESIGN_SYSTEM.md §6. */
  --font-xs: var(--font-size-xs);
  --font-sm: var(--font-size-sm);
  --font-base: var(--font-size-base);
  --font-md: var(--font-size-lg);
  --font-lg: var(--font-size-xl);
  --font-xl: var(--font-size-2xl);
  --font-2xl: var(--font-size-3xl);
  --font-3xl: var(--font-size-4xl);

  /* Line Heights */
  --leading-body: var(--text-body-leading);
  --leading-headline: var(--text-heading-1-leading);
  --leading-display: var(--text-display-1-leading);

  /* Text Measure (Reading Width) */
  --measure-min: 60ch; /* @deprecated legacy-literal */
  --measure-max: 72ch; /* @deprecated legacy-literal */

  /* Letter Spacing */
  --tracking-tight: -0.02em; /* @deprecated legacy-literal */
  --tracking-normal: 0; /* @deprecated legacy-literal */


  /* ============================================
     SPACING TOKENS
     ============================================ */

  /* Base Scale (0-10) — 7px-grid steps stay frozen (off the 4px law) */
  --space-0: 0; /* @deprecated legacy-literal (unitless; Astryx --spacing-0 is 0px — D10 freeze precedent) */
  --space-1: var(--spacing-1);
  --space-2: 7px; /* @deprecated legacy-literal */
  --space-3: 14px; /* @deprecated legacy-literal */
  --space-4: 21px; /* @deprecated legacy-literal */
  --space-5: var(--spacing-7);
  --space-6: 42px; /* @deprecated legacy-literal */
  --space-7: var(--spacing-14);
  --space-8: var(--spacing-21);
  --space-9: var(--spacing-28);
  --space-10: var(--spacing-42);

  /* Layout Spacing */
  --section-gap-mobile: var(--spacing-21);
  --section-gap: var(--spacing-28);
  --card-pad: 21px; /* @deprecated legacy-literal */
  --hero-pad: var(--spacing-28);

  /* Container Widths */
  --form-max: 520px; /* @deprecated legacy-literal */
  --content-max: 1120px; /* @deprecated legacy-literal */


  /* ============================================
     RADIUS TOKENS
     ============================================ */

  --radius-sm: var(--radius-inner);
  --radius-md: var(--radius-element);
  --radius-lg: 14px; /* @deprecated legacy-literal */
  --radius-pill: var(--radius-full); /* 999 -> 9999px, rendered-identical (ledger) */


  /* ============================================
     SHADOW TOKENS
     ============================================ */

  --shadow-sm: 0 1px 2px rgba(42,37,32,.04); /* @deprecated legacy-literal */
  --shadow-md: 0 4px 16px rgba(42,37,32,.06), 0 1px 3px rgba(42,37,32,.05); /* @deprecated legacy-literal */
  --shadow-lg: 0 12px 40px rgba(42,37,32,.10); /* @deprecated legacy-literal */


  /* ============================================
     MOTION TOKENS
     ============================================ */

  /* Duration (--duration-slow deleted, D22) */
  --duration-micro: 193ms; /* @deprecated legacy-literal */
  --duration-default: 280ms; /* @deprecated legacy-literal */
  --duration-hero: 460ms; /* @deprecated legacy-literal */

  /* Easing Curves */
  --ease-enter: var(--ease-standard); /* whitespace-only string change (ledger, D23) */
  --ease-exit: cubic-bezier(0.7,0,0.88,0); /* @deprecated legacy-literal */
  --ease-state: cubic-bezier(0.65,0,0.35,1); /* @deprecated legacy-literal */


  /* ============================================
     BREAKPOINT TOKENS
     ============================================ */

  --bp-sm: 640px; /* @deprecated legacy-literal */
  --bp-md: 768px; /* @deprecated legacy-literal */
  --bp-lg: 1024px; /* @deprecated legacy-literal */
  --bp-xl: 1280px; /* @deprecated legacy-literal */
}


/* ============================================
   USAGE EXAMPLES (for reference)
   New code consumes the semantic tokens directly
   (astryx-foundation.css / theme-peptideq.css) —
   the legacy names above exist only for account.css.
   See styles/DESIGN_SYSTEM.md.
   ============================================ */

/* Color usage:
.element {
  background-color: var(--color-background-body);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
*/

/* Typography usage:
.headline {
  font-family: var(--font-family-heading);
  font-size: var(--text-heading-1-size);
  font-weight: var(--text-heading-1-weight);
  line-height: var(--text-heading-1-leading);
}
*/

/* Spacing usage:
.container {
  padding: var(--spacing-5);
  margin-bottom: var(--spacing-28);
}
*/

/* Radius usage:
.card {
  border-radius: var(--radius-container);
}
*/

/* Shadow usage:
.elevated {
  box-shadow: var(--shadow-med);
}
*/

/* Motion usage:
.animated {
  transition: opacity var(--duration-medium) var(--ease-standard);
}
*/

/* Interaction states (overlay law + focus ring — see DESIGN_SYSTEM.md §5):
@media (hover: hover) {
  .interactive:hover {
    background-image: linear-gradient(var(--color-overlay-hover), var(--color-overlay-hover));
  }
}
.interactive:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
*/
