/* ==========================================================================
   Academia Canină — Canonical Typography & Design Tokens
   Shared across Homepage, Subpages & Dog Life Simulator
   ========================================================================== */

/* 1. Self-Hosted Brand Fonts (Properly split by unicode-range) */
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/alegreya-sans-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/alegreya-sans-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Perceptual Surfaces (Warm Paper & Clean Card) */
  --ac-surface-canvas: #FAF8F5;
  --ac-surface-card: #FFFFFF;
  --ac-surface-subtle: #F3EDE3;
  --ac-surface-tint-warm: #FBF4E6;
  --ac-surface-tint-peach: #F7E8D8;
  --ac-surface-tint-olive: #EEF3E3;
  --ac-surface-tint-coral: #F9EAE3;

  /* Typography Ink (Warm Espresso, never harsh black or cold navy) */
  --ac-ink-primary: #3A332C;
  --ac-ink-secondary: #5C5248;
  --ac-ink-muted: #6B625A;
  --ac-ink-inverse: #FFFFFF;

  /* Brand Accents (Surface decorative vs. WCAG 2.2 AA >=4.5:1 accessible ink/CTA) */
  --ac-accent-terracotta: #CE7E40;
  --ac-accent-terracotta-strong: #AC5D24;
  --ac-accent-terracotta-hover: #964E1B;
  --ac-accent-terracotta-on-dark: #E08B49;
  --ac-accent-amber: #E5A93C;
  --ac-accent-amber-strong: #D4962A;
  --ac-accent-olive: #6E8427;
  --ac-accent-olive-dark: #4E5E10;
  --ac-accent-olive-bright: #B6C733;

  /* Crisp Architectural Borders & Tactile Elevation */
  --ac-border-subtle: #D8CFC3;
  --ac-border-soft: rgba(58, 51, 44, 0.16);
  --ac-border-strong: rgba(58, 51, 44, 0.30);

  /* Crisp Editorial Radii (Anti-AI Bubble) */
  --ac-radius-xs: 2px;
  --ac-radius-sm: 3px;
  --ac-radius-md: 4px;
  --ac-radius-circle: 50%;

  /* Self-Hosted Typography */
  --ac-font-heading: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ac-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shared Site Aliases (consumed by styles.css & inline critical CSS) */
  --color-bg: var(--ac-surface-canvas);
  --color-surface: var(--ac-surface-card);
  --color-surface-hover: #F2EFE9;
  --color-white: var(--ac-ink-inverse);
  --color-primary: var(--ac-accent-terracotta-strong);
  --color-primary-decorative: var(--ac-accent-terracotta);
  --color-primary-hover: var(--ac-accent-terracotta-hover);
  --color-primary-on-dark: var(--ac-accent-terracotta-on-dark);
  --color-primary-dark: var(--ac-ink-primary);
  --color-secondary: var(--ac-accent-olive-bright);
  --color-accent: var(--ac-accent-olive-bright);
  --color-text-main: var(--ac-ink-primary);
  --color-text-muted: var(--ac-ink-muted);
  --color-border: var(--ac-border-subtle);
  --radius-xs: var(--ac-radius-xs);
  --radius-sm: var(--ac-radius-sm);
  --radius-md: var(--ac-radius-md);
  --font-heading: var(--ac-font-heading);
  --font-body: var(--ac-font-body);
}
