/* Design tokens — light (:root) / dark (.dark on html) */
:root {
  --container-max: 1320px;
  --bg: #ffffff;
  --bg-alt: #f3faf6;
  --text: #121816;
  --text-muted: #4a5e55;
  --border: #d1eae0;
  --primary: #155740;
  --accent: #228b5e;
  --sage: #c8e6d7;
  --font-display-face: "Playfair Display", Georgia, serif;
  --font-body-face: "DM Sans", system-ui, sans-serif;
  /* Tailwind-style fixed palette (hero SVG) */
  --forest: #155740;
  --green: #228b5e;
  --sage-fixed: #c8e6d7;
  --carbon: #121816;
  --white: #ffffff;
}

html.dark {
  --bg: #0d1612;
  --bg-alt: #121f1a;
  --text: #f0faf5;
  --text-muted: #8abda4;
  --border: #1e3529;
  --primary: #228b5e;
  --accent: #3db87a;
  --sage: #1a3028;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body-face), sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: #228b5e;
  color: var(--white);
}

html.dark ::selection {
  background-color: var(--accent);
  color: var(--white);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
}

.display-title {
  font-family: var(--font-display-face), serif;
  font-weight: 700;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container--narrow {
  max-width: 640px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.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;
}
