:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --paper-deep: #efe3d2;
  --ink: #2d2924;
  --muted: #71685f;
  --line: #d8c8b4;
  --green: #285a4d;
  --green-bright: #4b8f79;
  --rose: #b85d63;
  --blue: #6d8fb2;
  --shadow: 0 24px 70px rgba(45, 41, 36, 0.16);
  font-family:
    ui-serif, "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", Georgia,
    serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(75, 143, 121, 0.12), transparent 38%),
    linear-gradient(180deg, #fffaf1 0%, var(--paper) 56%, #f3eadc 100%);
}

a {
  color: inherit;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 88vh;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0 clamp(28px, 5vw, 64px);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font: 700 0.78rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-cta,
.secondary-link {
  min-height: 48px;
  border-radius: 999px;
  font: 700 1rem/1 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: var(--green);
  color: #fffaf1;
  box-shadow: 0 14px 36px rgba(40, 90, 77, 0.26);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  background: #1f493e;
  box-shadow: 0 18px 44px rgba(40, 90, 77, 0.3);
  transform: translateY(-2px);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--green);
}

.secondary-link::after {
  content: "";
  width: 32px;
  height: 1px;
  margin-left: 10px;
  background: currentColor;
}

.letter-scene {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(113, 104, 95, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.letter-card {
  position: absolute;
  width: min(340px, 76vw);
  min-height: 430px;
  border: 1px solid rgba(113, 104, 95, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 28%),
    repeating-linear-gradient(
      0deg,
      transparent 0 35px,
      rgba(109, 143, 178, 0.14) 36px 37px
    ),
    #fffaf1;
  box-shadow: var(--shadow);
}

.card-front {
  right: 28px;
  bottom: 28px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 34%),
    repeating-linear-gradient(
      0deg,
      transparent 0 35px,
      rgba(109, 143, 178, 0.14) 36px 37px
    ),
    rgba(255, 250, 241, 0.94);
  transform: rotate(4deg);
}

.stamp {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 0 76px auto;
  border: 2px solid var(--rose);
  border-radius: 50%;
  color: var(--rose);
  font: 800 1rem/1 ui-sans-serif, system-ui, sans-serif;
}

.card-front strong {
  display: block;
  margin-bottom: 18px;
  font-size: 2rem;
}

.card-front p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.story-band,
.closing {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(113, 104, 95, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
}

.feature-index {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font: 800 0.86rem/1 ui-sans-serif, system-ui, sans-serif;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.feature-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.closing {
  min-height: 42vh;
  text-align: center;
}

.closing h2 {
  max-width: 780px;
  margin: 0 auto 28px;
}

.closing-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid currentColor;
  color: var(--green);
  font: 700 1rem/1 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    max-width: 9ch;
  }

  .letter-scene {
    min-height: 460px;
  }

  .card-front {
    right: 18px;
    bottom: 18px;
  }

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

@media (max-width: 520px) {
  .hero,
  .story-band,
  .closing {
    width: min(100% - 28px, 1120px);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-cta {
    width: 100%;
  }

  .secondary-link {
    justify-content: center;
  }

  .letter-card {
    min-height: 350px;
  }

  .card-front {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
