:root {
  --color-bg: #f6f4ef;
  --color-bg-alt: #ece7de;
  --color-surface: #ffffff;
  --color-text: #23221f;
  --color-text-muted: #5c584f;
  --color-border: #dad5c9;
  --color-border-strong: #b9b2a2;
  --color-primary: #1e2a30;
  --color-primary-strong: #141d22;
  --color-primary-contrast: #f6f4ef;
  --color-accent: #3f5d5b;
  --color-accent-strong: #2f4746;
  --color-accent-contrast: #ffffff;

  --font-heading: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --container-max: 1220px;
  --container-narrow: 780px;

  --shadow-sm: 0 1px 2px rgba(30, 42, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 42, 48, 0.08);
  --shadow-lg: 0 20px 48px rgba(30, 42, 48, 0.14);

  --transition-base: 200ms ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

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

p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
  color: var(--color-accent-strong);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

li {
  margin-bottom: var(--space-2);
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

address {
  font-style: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
