/* =========================================================
   MAIN.CSS — Design-Tokens, Reset, Basis-Styles
   ========================================================= */

:root {
  --color-primary:       #1B4332;
  --color-primary-mid:   #40916C;
  --color-primary-light: #D8F3DC;
  --color-accent:        #D4A843;
  --color-accent-dark:   #B8892E;
  --color-bg:            #FAFAF8;
  --color-surface:       #FFFFFF;
  --color-text:          #1C1C1E;
  --color-text-muted:    #6B7280;
  --color-border:        #E8E8E4;

  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --text-base: clamp(1rem,     2vw,   1.125rem);
  --text-lg:   clamp(1.125rem, 2.2vw, 1.25rem);
  --text-xl:   clamp(1.25rem,  2.5vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   3vw,   2rem);
  --text-3xl:  clamp(2rem,     4vw,   2.75rem);
  --text-4xl:  clamp(2.5rem,   5vw,   3.75rem);
  --text-5xl:  clamp(3rem,     6vw,   5rem);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --space-1:  4px;  --space-2:  8px;  --space-3:  12px;
  --space-4: 16px;  --space-5: 24px;  --space-6:  32px;
  --space-7: 48px;  --space-8: 64px;  --space-9:  96px;
  --space-10: 128px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.09), 0 4px 12px rgba(0,0,0,.05);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 500ms ease;

  --header-height: 72px;
  --container-max: 1200px;
  --reading-width: 68ch;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -.01em;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary-mid); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.text-muted { color: var(--color-text-muted); }
