:root {
  color-scheme: light;
  --ink: #17342c;
  --muted: #5d716b;
  --paper: #fffdf7;
  --panel: #ffffff;
  --green: #087f5b;
  --green-dark: #056548;
  --line: #dbe8e2;
  --wash: #edf7f2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 28px 100px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, #dff4e9 0, transparent 28rem),
    linear-gradient(180deg, #f9fcfa 0, var(--paper) 28rem);
  font: 17px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

section.level1 > h1,
section.level1 > p:first-of-type {
  max-width: 780px;
  grid-column: 1 / -1;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h1 {
  margin: 0;
  color: #0b4d3a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

section.level1 > p:first-of-type {
  max-width: 680px;
  margin-top: -30px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

section.level1 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

section.level2 {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 18px 50px rgba(28, 71, 57, 0.08);
}

section.level2 h2 {
  order: 2;
  margin: 28px 30px 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

section.level2 p { order: 3; margin: 0 30px 22px; }

section.level2 p:first-of-type {
  order: 1;
  height: 285px;
  margin: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

section.level2 p:first-of-type a {
  display: contents;
}

section.level2 img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

section.level2:hover img { transform: scale(1.018); }

section.level2 p:last-child {
  margin-top: auto;
  padding-top: 2px;
  font-size: 0.94rem;
  font-weight: 700;
}

a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

section.level2 p:last-child a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid #acd1c2;
  border-radius: 999px;
  text-decoration: none;
}

@media (max-width: 760px) {
  body { padding: 46px 18px 70px; }
  section.level1 { grid-template-columns: 1fr; }
  section.level2 p:first-of-type { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section.level2 img { transition: none; }
}
