:root {
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --ink: #1b1b1b;
  --muted: #5b5b5b;
  --line: #e6e1da;
  --accent: #2f5f5a;
  --accent-2: #b99b6b;
  --focus: #1e4a8a;
  --max-w: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--accent);
}

p {
  margin: 0 0 var(--space-2) 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-2) 0;
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

small {
  color: var(--muted);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: min(calc(100% - 2 * var(--space-3)), var(--max-w));
  margin: 0 auto;
}

.section {
  padding: var(--space-6) 0;
}

.section--tight {
  padding: var(--space-5) 0;
}

.surface {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.text-muted {
  color: var(--muted);
}

.max-text {
  max-width: 70ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="left"] {
  transform: translateX(-16px);
}

[data-animate="right"] {
  transform: translateX(16px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
