:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --bg-alt: #ece5da;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --text: #1f2530;
  --muted: #5d6672;
  --border: rgba(31, 37, 48, 0.1);
  --accent: #526b9f;
  --accent-soft: rgba(82, 107, 159, 0.14);
  --shadow: 0 18px 40px rgba(31, 37, 48, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1117;
    --bg-alt: #121720;
    --panel: rgba(20, 26, 34, 0.74);
    --panel-strong: rgba(20, 26, 34, 0.88);
    --text: #e7ebf2;
    --muted: #a0a8b6;
    --border: rgba(255, 255, 255, 0.09);
    --accent: #8ea7da;
    --accent-soft: rgba(142, 167, 218, 0.16);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
}

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

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(82, 107, 159, 0.16), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(118, 149, 114, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.45;
  pointer-events: none;
}

body::before {
  top: -10rem;
  left: -8rem;
  background: rgba(126, 147, 198, 0.25);
}

body::after {
  right: -10rem;
  bottom: -12rem;
  background: rgba(140, 173, 139, 0.18);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2rem) 0 2.5rem;
}

.hero {
  padding: clamp(3.25rem, 7vw, 6rem) 0 2.5rem;
  display: grid;
  gap: 1.15rem;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--accent);
}

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

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

.intro {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(1.02rem, 1.9vw, 1.14rem);
  line-height: 1.7;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.tags span,
.card-foot {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
}

.tags span {
  padding: 0.65rem 0.9rem;
}

.overview {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  padding: 1.45rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.15;
}

.overview-copy {
  margin: 0;
  align-self: end;
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  min-height: 15rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  display: grid;
  align-content: start;
  gap: 0.8rem;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.card:nth-child(1) {
  --accent-soft: rgba(82, 107, 159, 0.14);
}

.card:nth-child(2) {
  --accent-soft: rgba(113, 144, 125, 0.14);
}

.card:nth-child(3) {
  --accent-soft: rgba(151, 112, 137, 0.14);
}

.card:nth-child(4) {
  --accent-soft: rgba(132, 124, 98, 0.14);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 107, 159, 0.2);
}

.card h3 {
  font-size: 1.6rem;
  line-height: 1.1;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.card-foot {
  margin-top: auto;
  width: fit-content;
  padding: 0.52rem 0.78rem;
}

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: auto auto 0;
  padding: 0 0 1.5rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .overview {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    padding-top: 2.2rem;
  }

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

  .card {
    min-height: 0;
  }
}
