:root {
  --text: #1d1d1b;
  --muted: #5c5c58;
  --bg: #ffffff;
  --surface: #f5f3ee;
  --accent: #1f6b52;
  --accent-text: #ffffff;
  --rule: #dcd8cf;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --width: 44rem;
  --wide: 62rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  font: 1.0625rem/1.7 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }

p { margin: 0 0 1.1rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-text); padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; z-index: 10; }

/* Header */
.site-header { text-align: center; padding: 3.5rem 1rem 1.5rem; }
.site-title { font-family: var(--serif); font-size: clamp(2.25rem, 7vw, 3.25rem); margin: 0; }
.site-title a { color: inherit; text-decoration: none; border-bottom: 3px solid var(--accent); }
.site-tagline { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9375rem; letter-spacing: 0.02em; }

.site-nav ul {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.75rem;
}
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; padding: 0.25rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px var(--accent); }

/* Layout */
main { padding: 0 1rem 3rem; }
.section { max-width: var(--width); margin: 0 auto; padding: 3rem 0; border-top: 1px solid var(--rule); }
.section:first-child { border-top: 0; }
.section--wide { max-width: var(--wide); }

.intro { text-align: center; padding-top: 2rem; }
.intro p { font-size: 1.1875rem; font-style: italic; }
.intro .lead { font-weight: 600; font-size: 1.375rem; }

.split {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}
.split--small { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 680px) {
  .split, .split--small { grid-template-columns: 1fr; gap: 1.5rem; }
}

figure { margin: 0 0 1.5rem; }
figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); text-align: center; }
.split figure { margin: 0; }
.figure--center img { margin: 0 auto; }

.portrait img { border-radius: 4px; }

/* Buttons */
.button, button {
  display: inline-block; font: 600 1rem/1 var(--sans);
  color: var(--accent-text); background: var(--accent);
  border: 2px solid var(--accent); border-radius: 4px;
  padding: 0.9rem 1.6rem; text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { background: #17543f; border-color: #17543f; }
.button--outline { background: transparent; color: var(--accent); }
.button--outline:hover { color: var(--accent-text); }
button[disabled] { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* Form */
.contact-form { margin-top: 2rem; display: grid; gap: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.4rem; }
.field .optional { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid #b9b4a8; border-radius: 4px; padding: 0.7rem 0.85rem;
}
input:focus, textarea:focus, .button:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px;
}
textarea { min-height: 10rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.7em; font-weight: 600; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #a4302a; }

/* Long-form pages */
.prose { max-width: var(--width); margin: 0 auto; padding: 1rem 0 2rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }

/* Footer */
.site-footer {
  background: var(--surface); color: var(--muted);
  padding: 2rem 1rem; text-align: center; font-size: 0.875rem;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.prose--center { text-align: center; }
