/**
 * Good Dogz KC Typography System v2.0
 * Standardized typography with improved readability and consistent hierarchy
 */

/* Font Face Declarations */
@font-face {
  font-family: 'Cera Round';
  src: url('../../shared-resources/fonts/Cera Round-Regular-Web.woff2') format('woff2'),
       url('../../shared-resources/fonts/Cera Round-Regular-Web.woff') format('woff'),
       url('../../shared-resources/fonts/Cera Round-Regular-Web.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cera Round';
  src: url('../../shared-resources/fonts/Cera Round-Black-Web.woff2') format('woff2'),
       url('../../shared-resources/fonts/Cera Round-Black-Web.woff') format('woff'),
       url('../../shared-resources/fonts/Cera Round-Black-Web.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Typography Scale - Improved for better readability */
:root {
  /* Font Families */
  --font-cera-black: "Cera Round", system-ui, -apple-system, sans-serif;
  --font-cera-regular: "Cera Round", system-ui, -apple-system, sans-serif;
  --font-proxima: "proxima-soft", "Proxima Nova", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Improved Font Size Scale - More readable sizes */
  --text-xs: 0.875rem;    /* 14px - Minimum readable size */
  --text-sm: 1rem;        /* 16px - Small text */
  --text-base: 1.125rem;  /* 18px - Base body text */
  --text-lg: 1.25rem;     /* 20px - Large text */
  --text-xl: 1.375rem;    /* 22px - Subtitle/Large body */
  --text-2xl: 1.5rem;     /* 24px - Small heading */
  --text-3xl: 1.875rem;   /* 30px - Medium heading */
  --text-4xl: 2.25rem;    /* 36px - Large heading */
  --text-5xl: 3rem;       /* 48px - Extra large heading */
  --text-6xl: 3.75rem;    /* 60px - Hero heading */
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
}

/* Base Typography */
html {
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
}

body {
  font-family: var(--font-proxima);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--gdkc-blue);
  font-weight: var(--font-medium);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Heading System */
.gdkc-heading-1, 
h1:not([class]) {
  font-family: var(--font-cera-black);
  font-size: var(--text-6xl);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--gdkc-blue);
  margin-bottom: 1rem;
}

.gdkc-heading-2,
h2:not([class]) {
  font-family: var(--font-cera-black);
  font-size: var(--text-5xl);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--gdkc-blue);
  margin-bottom: 1rem;
}

.gdkc-heading-3,
h3:not([class]) {
  font-family: var(--font-cera-regular);
  font-size: var(--text-3xl);
  font-weight: var(--font-normal);
  line-height: var(--leading-tight);
  color: var(--gdkc-blue);
  margin-bottom: 0.75rem;
}

.gdkc-heading-4,
h4:not([class]) {
  font-family: var(--font-cera-black);
  font-size: var(--text-2xl);
  font-weight: var(--font-black);
  line-height: var(--leading-normal);
  color: var(--gdkc-blue);
  margin-bottom: 0.75rem;
}

.gdkc-heading-5,
h5:not([class]) {
  font-family: var(--font-cera-regular);
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--gdkc-blue);
  margin-bottom: 0.5rem;
}

.gdkc-heading-6,
h6:not([class]) {
  font-family: var(--font-cera-black);
  font-size: var(--text-lg);
  font-weight: var(--font-black);
  line-height: var(--leading-normal);
  color: var(--gdkc-blue);
  margin-bottom: 0.5rem;
}

/* Text System */
.gdkc-text-xs { font-size: var(--text-xs); line-height: var(--leading-normal); }
.gdkc-text-sm { font-size: var(--text-sm); line-height: var(--leading-normal); }
.gdkc-text-base { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.gdkc-text-lg { font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.gdkc-text-xl { font-size: var(--text-xl); line-height: var(--leading-relaxed); }
.gdkc-text-2xl { font-size: var(--text-2xl); line-height: var(--leading-normal); }

/* Body Text */
.gdkc-body,
p:not([class]) {
  font-family: var(--font-proxima);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--gdkc-blue);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
}

.gdkc-body-large {
  font-family: var(--font-proxima);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--gdkc-blue);
  font-weight: var(--font-medium);
}

.gdkc-body-small {
  font-family: var(--font-proxima);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--gdkc-blue);
  font-weight: var(--font-medium);
}

/* Specialized Text Components */
.gdkc-subtitle {
  font-family: var(--font-cera-regular);
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--gdkc-blue);
  opacity: 0.7;
}

.gdkc-subtitle-large {
  font-family: var(--font-cera-regular);
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--gdkc-blue);
  opacity: 0.7;
}

.gdkc-caption {
  font-family: var(--font-cera-regular);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--gdkc-medium-blue);
}

.gdkc-label {
  font-family: var(--font-proxima);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--gdkc-blue);
}

/* Quote System */
.gdkc-quote {
  font-family: var(--font-cera-regular);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: var(--font-medium);
  line-height: var(--leading-relaxed);
  color: var(--gdkc-blue);
}

.gdkc-quote-large {
  font-family: var(--font-cera-regular);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--gdkc-blue);
}

.gdkc-quote-attribution {
  font-family: var(--font-cera-regular);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--gdkc-blue);
  margin-top: 1rem;
}

/* Color Variants */
.gdkc-text-primary { color: var(--gdkc-blue); }
.gdkc-text-secondary { color: var(--gdkc-light-purple); }
.gdkc-text-accent { color: var(--gdkc-teal); }
.gdkc-text-muted { color: var(--gdkc-gray-600); }
.gdkc-text-subtle { color: var(--gdkc-gray-500); }
.gdkc-text-white { color: white; }

/* Typography Utilities */
.gdkc-text-center { text-align: center; }
.gdkc-text-left { text-align: left; }
.gdkc-text-right { text-align: right; }

.gdkc-font-light { font-weight: var(--font-light); }
.gdkc-font-normal { font-weight: var(--font-normal); }
.gdkc-font-medium { font-weight: var(--font-medium); }
.gdkc-font-semibold { font-weight: var(--font-semibold); }
.gdkc-font-bold { font-weight: var(--font-bold); }
.gdkc-font-black { font-weight: var(--font-black); }

.gdkc-leading-tight { line-height: var(--leading-tight); }
.gdkc-leading-normal { line-height: var(--leading-normal); }
.gdkc-leading-relaxed { line-height: var(--leading-relaxed); }

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;    /* 40px */
    --text-4xl: 2rem;      /* 32px */
    --text-3xl: 1.75rem;   /* 28px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-xl: 1.25rem;    /* 20px */
    --text-lg: 1.125rem;   /* 18px */
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2rem;      /* 32px - Smaller to prevent wrapping */
    --text-4xl: 1.875rem;  /* 30px */
    --text-3xl: 1.625rem;  /* 26px */
    --text-2xl: 1.375rem;  /* 22px */
    --text-xl: 1.25rem;    /* 20px */
  }
}