:root {
  color-scheme: light;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --primary-text: #1b1b1f;
  --secondary-text: #4a4f5a;
  --accent: #c97f4f;
  --background: #f6f2ea;
  --card-background: #ffffff;
  --border-color: #dfd5c5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--primary-text);
  line-height: 1.6;
}

.hero-typewriter {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.75);
}

.typewriter {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  animation: typing 6s steps(40, end) infinite, blink-caret 0.75s step-end infinite;
  padding-right: 0.35rem;
}

@keyframes typing {
  0%,
  100% {
    width: 0;
  }
  40%,
  60% {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: rgba(255, 255, 255, 0.75);
  }
}

main {
  padding: 0 1.5rem 3rem;
}

.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 0;
}

.content-section + .content-section {
  border-top: 3px solid #d97b20;
  padding-top: calc(3rem + 1.5rem);
}

.content-section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content-section p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--secondary-text);
  max-width: 720px;
}

.legacy-overview {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.legacy-overview p {
  margin: 0 auto;
}

.image-card {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 28px rgba(27, 27, 31, 0.08);
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.legacy-overview__image {
  max-width: min(620px, 100%);
  justify-self: center;
}

.stewardship-section {
  display: grid;
  gap: 2rem;
}

.insight-grid {
  display: grid;
  gap: 1.5rem;
}

.insight-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.75rem;
  border-radius: 1rem;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 28px rgba(27, 27, 31, 0.08);
}

.insight-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--primary-text);
}

.insight-detail {
  font-size: 0.97rem;
  color: var(--primary-text);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.highlights-section {
  display: grid;
  gap: 1.5rem;
}

.accordion {
  display: grid;
  gap: 1rem;
}

.accordion details {
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--card-background);
  box-shadow: 0 10px 22px rgba(27, 27, 31, 0.08);
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-text);
}

.accordion p {
  margin-top: 1rem;
}

.accordion ul {
  margin: 0;
  margin-top: 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.engagement-section {
  display: grid;
  gap: 2rem;
}

.engagement-steps {
  display: grid;
  gap: 1.25rem;
}

.engagement-step {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(201, 127, 79, 0.12);
  border: 1px solid rgba(201, 127, 79, 0.28);
  box-shadow: 0 12px 24px rgba(27, 27, 31, 0.05);
  position: relative;
}

.step-label {
  position: absolute;
  top: -0.85rem;
  left: 1.25rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(201, 127, 79, 0.3);
}

.engagement-step h3 {
  margin: 0;
  margin-top: 0.25rem;
  font-size: 1.2rem;
  color: var(--primary-text);
}

.engagement-note {
  font-size: 0.98rem;
  color: var(--secondary-text);
  border-left: 3px solid rgba(201, 127, 79, 0.65);
  padding-left: 0.85rem;
}

.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  background-color: #121317;
  color: #f0ede6;
  font-size: 0.95rem;
}

@media (max-width: 500px) {
  .page-family .hero__title {
    font-size: 2rem;
  }

  .hero-typewriter {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }

  .typewriter {
    white-space: normal;
    display: block;
    animation: none;
    border-right: none;
    padding-right: 0;
  }
}

@media (min-width: 640px) {
  .content-section p {
    font-size: 1.1rem;
  }

  .insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .engagement-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

