/* Base: theme tokens, reset, typography, global utilities */

:root {
  --clr-bg: #F8F7F5;
  --clr-bg-white: #FFFFFF;
  --clr-bg-tinted: #F3F3F0;
  --clr-text: #18181B;
  --clr-text-secondary: #71717A;
  --clr-text-muted: #A1A1AA;
  --clr-accent: #E8662B;
  --clr-accent-hover: #D4521A;
  --clr-accent-light: #FEF0E7;
  --clr-accent-text: #B84416;
  --clr-border: #E4E4E7;
  --clr-border-light: #F1F1EE;
  --clr-dark: #130E09;
  --clr-dark-2: #1E160E;
  --clr-dark-3: #2C2018;
  --clr-dark-text: #D4C4B0;
  --clr-dark-muted: #9A8878;
  --clr-green: #16A34A;
  --clr-green-light: #DCFCE7;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-py: 100px;
  --container-max: 1200px;
  --container-px: 48px;
  --gap: 32px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.09), 0 4px 16px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 250ms;
  --t-slow: 400ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}

img, svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
h4 { font-size: 0.875rem; letter-spacing: 0; font-weight: 600; }

p {
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section-white { background: var(--clr-bg-white); }
.section-tinted { background: var(--clr-bg-tinted); }

section {
  padding-block: var(--section-py);
}

:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
    --container-px: 32px;
  }
}

@media (max-width: 680px) {
  :root {
    --section-py: 64px;
    --container-px: 20px;
    --gap: 20px;
  }
}
