:root {
  --bg: #f5f1e8;
  --bg-accent: #e9f1e2;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffdf8;
  --border: rgba(23, 49, 33, 0.12);
  --text: #173121;
  --muted: #516558;
  --accent: #1f6a43;
  --accent-strong: #15482e;
  --shadow: 0 22px 60px rgba(23, 49, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(177, 212, 162, 0.38), transparent 34%),
    radial-gradient(circle at top right, rgba(225, 200, 142, 0.32), transparent 28%),
    linear-gradient(180deg, var(--bg-accent), var(--bg));
  line-height: 1.65;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  line-height: 1.1;
}

p,
li {
  font-size: 1rem;
}

.container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(245, 241, 232, 0.72);
  border-bottom: 1px solid rgba(23, 49, 33, 0.08);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover,
.legal-content a:hover {
  color: var(--accent);
}

.hero,
.section {
  padding: 56px 0;
}

.hero {
  padding-top: 88px;
}

.eyebrow,
.meta {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.hero-copy,
.page-copy {
  max-width: 700px;
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: var(--shadow);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
}

.section-muted {
  background: rgba(255, 255, 255, 0.32);
  border-top: 1px solid rgba(23, 49, 33, 0.08);
  border-bottom: 1px solid rgba(23, 49, 33, 0.08);
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
}

.card h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}

.stack > * + * {
  margin-top: 12px;
}

.page-hero {
  padding: 72px 0 26px;
}

.legal-wrap {
  padding-bottom: 64px;
}

.legal-content {
  padding: 34px;
  background: var(--surface-strong);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.8rem;
}

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

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--accent-strong);
}

.note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: rgba(31, 106, 67, 0.08);
  color: var(--muted);
}

.site-footer {
  padding-bottom: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .header-row,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section,
  .page-hero {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .legal-content,
  .card {
    padding: 22px;
  }
}
