:root {
  --bg: #f4efe7;
  --bg-accent: #e4d5bd;
  --surface: rgba(255, 251, 245, 0.72);
  --surface-strong: #fffaf1;
  --text: #1f241f;
  --muted: #5d645b;
  --line: rgba(31, 36, 31, 0.12);
  --primary: #19493c;
  --primary-strong: #103329;
  --highlight: #b85c38;
  --shadow: 0 24px 70px rgba(37, 28, 18, 0.12);
  --radius: 24px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 92, 56, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(25, 73, 60, 0.16), transparent 26%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 48%, #efe6da 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(25, 73, 60, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--primary);
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.5rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--primary);
}

.hero,
.section,
.page-hero,
.footer,
.not-found {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 2rem 0 1rem;
}

.hero-copy,
.hero-card,
.panel,
.contact-strip,
.legal,
.page-hero,
.not-found {
  backdrop-filter: blur(10px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3rem;
}

.hero-card {
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(16, 51, 41, 0.96), rgba(16, 51, 41, 0.88)),
    linear-gradient(180deg, rgba(184, 92, 56, 0.12), transparent);
  color: #f9f0df;
}

.card-label {
  margin: 0 0 1rem;
  color: rgba(249, 240, 223, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
}

.feature-list li + li {
  margin-top: 0.8rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--highlight);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.narrow {
  max-width: 38rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: #fff7ec;
}

.button-primary:hover {
  background: var(--primary-strong);
}

.button-secondary {
  border-color: rgba(25, 73, 60, 0.24);
  background: rgba(255, 250, 241, 0.72);
}

.section,
.page-hero {
  margin-top: 1.5rem;
  padding: 2rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 1.5rem;
  background: rgba(255, 250, 241, 0.82);
}

.panel p:last-child,
.legal p:last-child {
  margin-bottom: 0;
}

.soft {
  background: rgba(255, 251, 245, 0.6);
}

.accent-section {
  background:
    linear-gradient(180deg, rgba(16, 51, 41, 0.04), rgba(184, 92, 56, 0.08)),
    var(--surface);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 2rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem 0 0.5rem;
  color: var(--muted);
}

.footer p {
  margin: 0.35rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal h2 {
  margin-top: 1.5rem;
  font-size: 1.35rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.contact-link {
  font-size: 1.3rem;
  font-weight: 700;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 2rem);
  padding: 2rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .three-up,
  .two-up,
  .contact-strip,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-card,
  .section,
  .page-hero,
  .contact-strip,
  .not-found {
    padding: 1.5rem;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 0.75rem;
  }

  .lead {
    font-size: 1rem;
  }
}
