/* =============================================================================
   LitPath Coaching — base.css
   Reset + Design Tokens
   ============================================================================= */

/* ----------------------------------------------------------------------------
   Google Fonts Import
   ---------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ----------------------------------------------------------------------------
   Design Tokens
   ---------------------------------------------------------------------------- */
:root {
  /* ------------------------------------------------------------------
     Typography
     ------------------------------------------------------------------ */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Fonts — bold, direct, confident */
  --font-display: 'Barlow Condensed', 'Barlow', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* ------------------------------------------------------------------
     Spacing (0.25rem increments, --space-1 through --space-32)
     ------------------------------------------------------------------ */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-9:  2.25rem;
  --space-10: 2.5rem;
  --space-11: 2.75rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-18: 4.5rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;

  /* ------------------------------------------------------------------
     Light Palette — warm parchment + deep forest green + gold
     ------------------------------------------------------------------ */
  --color-bg:                #f5f2ec;
  --color-surface:           #faf8f4;
  --color-surface-alt:       #fdf9f3;
  --color-border:            #ddd8ce;
  --color-border-strong:     #c4bfb5;

  /* Text */
  --color-text:              #1e2b22;
  --color-text-secondary:    #6b6558;
  --color-text-muted:        #6b6558;
  --color-text-faint:        #b0aa9e;

  /* Primary — deep forest green */
  --color-primary:           #2d5a3d;
  --color-primary-hover:     #1f3f2b;
  --color-primary-light:     #3d7a53;
  --color-primary-highlight: #e8f2ec;

  /* Accent — antique gold */
  --color-accent:            #b8860b;
  --color-accent-hover:      #9a6f09;
  --color-accent-light:      #d4a017;
  --color-accent-highlight:  #fdf4dc;

  /* Semantic */
  --color-error:             #a12c2c;
  --color-warning:           #964219;
  --color-success:           #2d5a3d;

  /* ------------------------------------------------------------------
     Content widths
     ------------------------------------------------------------------ */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* ------------------------------------------------------------------
     Border radius
     ------------------------------------------------------------------ */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-3xl:  2rem;
  --radius-full: 9999px;

  /* ------------------------------------------------------------------
     Shadows
     ------------------------------------------------------------------ */
  --shadow-sm:  0 1px 3px 0 rgba(30, 43, 34, 0.08), 0 1px 2px -1px rgba(30, 43, 34, 0.06);
  --shadow-md:  0 4px 6px -1px rgba(30, 43, 34, 0.10), 0 2px 4px -2px rgba(30, 43, 34, 0.07);
  --shadow-lg:  0 10px 25px -3px rgba(30, 43, 34, 0.12), 0 4px 10px -4px rgba(30, 43, 34, 0.08);

  /* ------------------------------------------------------------------
     Transitions
     ------------------------------------------------------------------ */
  --transition-interactive: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------------------
   Dark Mode Palette
   ---------------------------------------------------------------------------- */
[data-theme="dark"],
.dark {
  --color-bg:                #141a16;
  --color-surface:           #1a231d;
  --color-surface-alt:       #1e2922;
  --color-border:            #2e3d35;
  --color-border-strong:     #3d5045;

  --color-text:              #e8e4dc;
  --color-text-secondary:    #a09890;
  --color-text-muted:        #a09890;
  --color-text-faint:        #5e6a62;

  --color-primary:           #5a9e72;
  --color-primary-hover:     #72b889;
  --color-primary-light:     #3d7a53;
  --color-primary-highlight: #1e3028;

  --color-accent:            #d4a017;
  --color-accent-hover:      #e8b520;
  --color-accent-light:      #f0c840;
  --color-accent-highlight:  #2a2208;

  --color-error:             #d16363;
  --color-warning:           #bb653b;
  --color-success:           #5a9e72;

  --shadow-sm:  0 1px 3px 0 rgba(0, 0, 0, 0.25), 0 1px 2px -1px rgba(0, 0, 0, 0.18);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.30), 0 2px 4px -2px rgba(0, 0, 0, 0.22);
  --shadow-lg:  0 10px 25px -3px rgba(0, 0, 0, 0.35), 0 4px 10px -4px rgba(0, 0, 0, 0.25);
}

/* ----------------------------------------------------------------------------
   CSS Reset
   ---------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

/* Reduce motion for accessibility */
@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;
  }
}

/* Images & media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements inherit typography */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Hidden utility */
[hidden] {
  display: none !important;
}

/* ----------------------------------------------------------------------------
   Heading Styles — Barlow Condensed
   ---------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-3xl); font-weight: 800; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-xl);  font-weight: 700; }
h4 { font-size: var(--text-lg);  font-weight: 600; }
h5 { font-size: var(--text-base); font-weight: 600; }
h6 { font-size: var(--text-sm);   font-weight: 600; }

/* ----------------------------------------------------------------------------
   Paragraph
   ---------------------------------------------------------------------------- */
p {
  max-width: 72ch;
  line-height: 1.7;
}

/* Strong & emphasis */
strong, b { font-weight: 700; }
em, i     { font-style: italic; }

/* Small */
small { font-size: var(--text-xs); }

/* Code */
code,
kbd,
samp,
pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
}

pre {
  overflow-x: auto;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-6);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-block: var(--space-6);
}
