/* base.css — design tokens, reset, typography, utilities */

:root {
  --bg: #faf9f7;
  --bg-soft: #f5f1eb;
  --card: #ffffff;
  --border: #f0ece7;
  --border-strong: #e0d8cc;
  --text: #1a1410;
  --text-muted: #6b5d4f;
  --text-soft: #9b8a78;
  --primary: #ea580c;
  --primary-light: #f97316;
  --primary-dark: #c2410c;
  --gradient: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  --hero-bg: radial-gradient(ellipse at 30% 30%, #2a1810 0%, #1f1108 40%, #0d0b08 70%, #060504 100%);
  --shadow-sm: 0 1px 3px rgba(26, 20, 16, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 20, 16, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 20, 16, 0.12);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --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;
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --nav-height: 64px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--space-4); color: var(--text-muted); }

ul, ol { margin: 0; padding-left: var(--space-5); color: var(--text-muted); }
li { margin-bottom: var(--space-2); }

strong { color: var(--text); font-weight: 600; }

/* Utilities */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-7) 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-primary { color: var(--primary); }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
}

.section-head { text-align: center; margin-bottom: var(--space-7); }
.section-head .lead { margin: var(--space-4) auto 0; }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.divider { height: 1px; background: var(--border); border: 0; margin: var(--space-6) 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--space-7) 0; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--space-4); }
}
