:root {
  color-scheme: light;
  --bg: #f3f1eb;
  --bg-accent: rgba(82, 109, 104, 0.12);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(31, 49, 44, 0.12);
  --text: #17201d;
  --muted: #566761;
  --accent: #1f5a4d;
  --accent-soft: rgba(31, 90, 77, 0.08);
  --shadow: 0 24px 70px rgba(19, 27, 25, 0.08);
  --content-width: min(72rem, calc(100vw - 2rem));
  --narrow-width: min(46rem, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at top center, var(--bg-accent), transparent 32%),
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Avenir Next",
    "Segoe UI",
    "Helvetica Neue",
    sans-serif;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 24%);
  opacity: 0.7;
}

.page {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1.5rem 0 5rem;
}

.site-header,
.card,
.step,
.contact-panel,
.button {
  animation: rise 700ms ease-out both;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(44rem, 100%);
  margin: 0 auto 5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand,
.site-nav a,
.button,
.inline-link {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.brand {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.site-nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

main {
  display: grid;
  gap: 7rem;
}

.section {
  width: min(100%, 60rem);
  margin: 0 auto;
  text-align: center;
}

.section--narrow {
  width: min(100%, var(--narrow-width));
}

.section-heading {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.hero {
  max-width: 45rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    "Georgia",
    serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.lede,
h2,
h3,
.intro p,
.card p,
.contact-panel p,
.button,
.site-nav a {
  font-size: 1.05rem;
  line-height: 1.7;
}

.lede {
  margin: 1.5rem auto 0;
  max-width: 38rem;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--text);
  color: #f8f5ef;
  box-shadow: 0 16px 34px rgba(23, 32, 29, 0.14);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent);
}

.button--secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: rgba(31, 90, 77, 0.24);
  background: var(--accent-soft);
}

.intro {
  padding: 2rem 2rem 0;
}

.intro p,
.card p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.intro p {
  font-size: 1.18rem;
}

h2,
h3 {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    "Georgia",
    serif;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.08;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card,
.contact-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.6rem;
  border-radius: 1.4rem;
  text-align: left;
}

.card:hover,
.card:focus-within {
  border-color: rgba(31, 90, 77, 0.2);
  transform: translateY(-2px);
}

.card p {
  margin-top: 0.85rem;
}

.section--contact {
  padding-top: 1rem;
}

.contact-panel {
  width: min(100%, var(--narrow-width));
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-radius: 1.8rem;
  background: var(--surface-strong);
}

.contact-panel h2 {
  margin-bottom: 1rem;
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 90, 77, 0.2);
}

.inline-link:hover,
.inline-link:focus-visible {
  border-bottom-color: currentColor;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .page {
    width: min(100vw - 1rem, 100%);
    padding-bottom: 3rem;
  }

  .site-header {
    width: calc(100% - 1rem);
    margin-bottom: 3.5rem;
    padding: 0.9rem;
    border-radius: 1.3rem;
    flex-direction: column;
  }

  main {
    gap: 5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .contact-panel,
  .intro {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
