:root {
  --page-bg: #f5f0e7;
  --page-bg-accent: #dce6de;
  --panel: rgba(255, 252, 247, 0.9);
  --panel-strong: #fffaf2;
  --text: #17312b;
  --muted: #4f675f;
  --line: rgba(23, 49, 43, 0.12);
  --shadow: 0 28px 80px rgba(23, 49, 43, 0.12);
  --primary: #0f6c5b;
  --primary-strong: #0d584b;
  --primary-soft: #d7efe8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(15, 108, 91, 0.18), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(167, 123, 64, 0.16), transparent 26%),
    linear-gradient(180deg, var(--page-bg) 0%, #f9f7f2 100%);
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 251, 243, 0.96), rgba(236, 245, 239, 0.9));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -64px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 108, 91, 0.18), rgba(15, 108, 91, 0));
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 42rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 48px rgba(23, 49, 43, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(15, 108, 91, 0.24);
  box-shadow: 0 22px 56px rgba(23, 49, 43, 0.14);
  outline: none;
}

.service-card-primary {
  background:
    linear-gradient(155deg, rgba(15, 108, 91, 0.08), rgba(255, 250, 242, 0.94)),
    var(--panel-strong);
}

.service-kicker {
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.service-card h2 {
  font-size: 2rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
}

.footer {
  margin-top: 20px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding: 20px 0 36px;
  }

  .hero {
    padding: 28px 22px;
    border-radius: 24px;
  }

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

  .service-card {
    min-height: 0;
    padding: 24px 22px;
    border-radius: 24px;
  }
}
