/**
 * ABHIJEET CHAKRABORTY — HOROLOGICAL MONOGRAPH (ARCHIVE // 2010 — ∞)
 * Design System Tokens & Self-Hosted Typography
 * Palette: Dark Antique (Deep Umber, Natural Gold, Warm Parchment, Archival Sepia)
 * Contrast: Verified WCAG 2.2 AA / AAA compliant across all text tiers
 */

/* ==========================================================================
   1. Self-Hosted Fonts (@fontsource WOFF2 in /assets/fonts/)
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600i.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* ==========================================================================
   2. Root Design Tokens
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surface & Umber Grounds */
  --ink-0: #0E0A06;           /* Primary obsidian-umber canvas */
  --ink-1: #16100A;           /* Secondary horological casing surface */
  --ink-2: #1F170E;           /* Elevated sepia-umber card background */
  --ink-3: #2B2014;           /* Interactive hover / well surface */
  --umber: #2A1E12;           /* Deep structural shadow & bevel line */
  --sepia: #704214;           /* Archival sepia border & tint accent */
  --sepia-glow: rgba(112, 66, 20, 0.34);

  /* Natural Gold & Horological Brass Spectrum */
  --gold-deep: #8A6420;       /* Aged shadow brass */
  --gold: #B8862B;            /* Primary natural gold metal */
  --gold-mid: #D4A84B;        /* Burnished UI gold (7.8:1 on --ink-0) */
  --gold-lite: #E6C068;       /* Specular highlight & focus gold (11.1:1 on --ink-0) */
  --gold-pale: #F3DC9B;       /* High-luminance dial engraving highlight */
  --gold-hairline: rgba(230, 192, 104, 0.22);
  --gold-border: rgba(184, 134, 43, 0.42);
  --gold-border-strong: rgba(230, 192, 104, 0.72);
  --gold-glow: rgba(230, 192, 104, 0.18);

  /* Archival Parchment Text Tiers (WCAG AA / AAA Verified on --ink-0 & --ink-2) */
  --parchment: #EADBC0;       /* Primary body text — 14.2:1 contrast on #0E0A06 */
  --parchment-bright: #F7EFE0;/* Display & headline focal text — 16.8:1 contrast */
  --parchment-dim: #C9B799;   /* Secondary body copy — 9.8:1 contrast (AAA) */
  --parchment-muted: #A69374; /* Captions & technical labels — 6.4:1 contrast (AA+) */

  /* Semantic Status Accents (Gold/Sepia Harmonized) */
  --status-active: #D9B45B;
  --status-legacy: #C49A6C;
  --status-progress: #E6C068;
  --status-exploring: #D49B54;
  --status-vision: #BFA57A;
  --status-success: #88C070;

  /* Metallic Gradients */
  --gradient-gold-metal: linear-gradient(135deg, #8A6420 0%, #E6C068 42%, #B8862B 58%, #6E4E16 100%);
  --gradient-gold-text: linear-gradient(180deg, #F7EFE0 0%, #E6C068 55%, #B8862B 100%);
  --gradient-sepia-card: linear-gradient(160deg, rgba(38, 27, 16, 0.95) 0%, rgba(20, 14, 8, 0.98) 100%);
  --gradient-vignette: radial-gradient(ellipse at center, transparent 48%, rgba(8, 5, 2, 0.85) 100%);

  /* Typography Families */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Fluid Type Scale (Minimum 17px / 1.0625rem for body readability) */
  --text-xs: 0.8125rem;       /* 13px — mono tags / badges */
  --text-sm: 0.9375rem;       /* 15px — secondary metadata */
  --text-base: 1.0625rem;     /* 17px — canonical readable body */
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.35rem, 1.2rem + 0.65vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.45rem + 1.2vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2vw, 3.6rem);
  --text-display: clamp(2.6rem, 2rem + 3.2vw, 5.25rem);

  /* Layout & Spacing */
  --container-max: 1380px;
  --container-narrow: 920px;
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Shadows & Horological Depth */
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 0 1px var(--gold-border), inset 0 1px 0 rgba(230, 192, 104, 0.16);
  --shadow-plaque: 0 14px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(230, 192, 104, 0.22), inset 0 -1px 0 rgba(112, 66, 20, 0.5);
  --shadow-gold-bloom: 0 0 28px rgba(230, 192, 104, 0.24);

  /* Motion & Easing */
  --ease-horology: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-escapement: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-med: 380ms;
  --duration-slow: 750ms;

  /* Z-Index Registry */
  --z-canvas: 1;
  --z-scene-content: 10;
  --z-rail: 30;
  --z-grain: 40;
  --z-header: 100;
  --z-preloader: 500;
  --z-dialog: 1000;
}
