:root {
  --bg: #f3efe6;
  --bg-accent: #e4ddd0;
  --panel: rgba(255, 252, 247, 0.86);
  --line: rgba(42, 36, 27, 0.14);
  --text: #1f1a14;
  --muted: #5f564a;
  --brand: #8c3d22;
  --brand-deep: #5f2412;
  --shadow: 0 24px 60px rgba(58, 42, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(170, 91, 49, 0.14), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(66, 103, 92, 0.16), transparent 26%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

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

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

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

.hero,
.panel,
.subpage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  padding: 4.5rem clamp(1.4rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 61, 34, 0.18), transparent 70%);
}

.eyebrow,
.kicker,
.card-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--brand);
  margin: 0 0 0.85rem;
}

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

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

h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

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

.hero-copy {
  margin: 1.4rem 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.nav a:hover,
.footer-links a:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand-deep);
  color: #fff8f2;
  border-color: transparent;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.45);
}

.feature-grid,
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.4rem;
}

.feature-grid article,
.card {
  padding: 1rem;
}

.section-heading {
  margin: 3rem 0 1.1rem;
}

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

.card {
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.4rem;
  padding: 1.6rem;
  margin-top: 2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.footer-copy,
.subpage p,
.card p,
.feature-grid p,
.split p {
  color: var(--muted);
}

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

.subpage-shell {
  max-width: 860px;
}

.subpage {
  padding: clamp(1.4rem, 4vw, 3rem);
}

.contact-panel {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 0 18px 18px 0;
}

@media (max-width: 860px) {
  .feature-grid,
  .card-grid,
  .split,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

  .hero {
    padding: 2rem 1.2rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }
}
