:root {
  color-scheme: light;
  --page: #fff8eb;
  --paper: #fffdf7;
  --apricot: #ffe4b5;
  --apricot-border: #e8ad68;
  --ink: #30261e;
  --muted: #6d6259;
  --green: #337156;
  --green-soft: #e4f3e9;
  --blue-soft: #e3f1f4;
  --rose-soft: #f7e6e5;
  --line: rgba(80, 61, 46, 0.15);
  --shadow: 0 18px 50px rgba(81, 60, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.header-link,
.text-link {
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: 54px 0 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 80px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 19px;
}

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

.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 12px 18px;
  background: var(--green);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.keepsake-stack {
  min-height: 570px;
  position: relative;
}

.keepsake {
  position: absolute;
  width: min(390px, 88%);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.keepsake p {
  margin: 24px 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.55;
}

.keepsake-label,
.signature {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.note {
  z-index: 3;
  top: 84px;
  left: 0;
  background: var(--paper);
  transform: rotate(-3deg);
}

.note p,
.signature {
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-weight: 700;
}

.message {
  z-index: 2;
  top: 240px;
  right: 0;
  background: var(--green-soft);
  transform: rotate(3deg);
}

.photo {
  z-index: 1;
  bottom: 20px;
  left: 48px;
  min-height: 205px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: var(--blue-soft);
  color: var(--ink);
  font-weight: 750;
  transform: rotate(-1deg);
}

.photo-mark,
.privacy-mark {
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  border: 8px solid var(--ink);
  border-radius: 16px;
  background: #ff9f2e;
  color: var(--ink);
  font-size: 48px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.purpose-band {
  width: 100%;
  padding: 72px max(24px, calc((100vw - 1160px) / 2));
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.purpose-grid article {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.purpose-grid article:nth-child(1) {
  background: var(--green-soft);
}

.purpose-grid article:nth-child(2) {
  background: var(--rose-soft);
}

.purpose-grid article:nth-child(3) {
  background: var(--blue-soft);
}

.step-number {
  display: block;
  margin-bottom: 32px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.privacy-section,
.closing {
  display: grid;
  grid-template-columns: auto minmax(0, 680px);
  gap: 30px;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}

.closing {
  grid-template-columns: 82px minmax(0, 680px);
  margin-bottom: 30px;
  padding: 42px;
  background: var(--apricot);
  border: 1px solid var(--apricot-border);
  border-radius: 7px;
}

.closing img {
  width: 82px;
  border-radius: 17px;
}

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.shared-memory-main {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: 50px 0;
}

.shared-memory-card {
  width: min(620px, 100%);
  padding: clamp(26px, 6vw, 54px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.shared-memory-card img {
  width: 74px;
  margin-bottom: 28px;
  border-radius: 15px;
}

.shared-memory-card h1,
.legal-page h1 {
  font-size: clamp(38px, 7vw, 58px);
}

.small-copy {
  margin-top: 22px;
  font-size: 13px;
}

.legal-page {
  max-width: 760px;
  min-height: calc(100vh - 172px);
  padding: 80px 0;
}

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

  .keepsake-stack {
    min-height: 510px;
  }

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

  .privacy-section,
  .closing {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .header-link {
    display: none;
  }

  h1 {
    font-size: 44px;
  }

  .hero {
    gap: 18px;
    padding-bottom: 48px;
  }

  .hero-intro {
    font-size: 17px;
  }

  .keepsake-stack {
    min-height: 470px;
  }

  .keepsake {
    padding: 20px;
  }

  .keepsake p {
    font-size: 18px;
  }

  .note {
    top: 45px;
  }

  .message {
    top: 205px;
  }

  .photo {
    left: 14px;
    bottom: 10px;
  }

  .purpose-band {
    padding-block: 52px;
  }

  .privacy-section {
    padding: 68px 0;
  }

  .closing {
    padding: 26px;
  }
}
