:root {
  --bg: #f8f3ee;
  --surface: rgba(255, 252, 248, 0.82);
  --surface-strong: #fffdfa;
  --ink: #171412;
  --muted: #6f665f;
  --line: rgba(23, 20, 18, 0.1);
  --blue: #dce7f2;
  --pink: #f2dde7;
  --purple: #e8e2f3;
  --red: #f1dcde;
  --shadow: 0 18px 40px rgba(30, 22, 17, 0.06);
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #faf7f3 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1380px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1rem 0 2.8rem;
}

.panel,
.site-header {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.brand {
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding-bottom: 0.18rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--ink);
}

.hero-grid,
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(460px, 0.8fr);
  gap: 2.8rem;
  margin-top: 2rem;
  align-items: start;
}

.intro-panel,
.page-hero,
.quiet-note {
  padding: 1.8rem;
}

.home-copy {
  padding: 2rem 0 0.4rem;
  max-width: 52rem;
}

.eyebrow,
.link-kicker,
.reason-number,
.tile-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.link-kicker,
.reason-number {
  color: var(--muted);
}

h1,
h2,
h3,
.quote-tile p,
.note-card p,
.plan-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
}

h1 {
  font-size: clamp(4.5rem, 9vw, 8rem);
  max-width: 9.25ch;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h3 {
  font-size: 1.7rem;
}

.lead,
.page-link-card p,
.reason-row p,
.site-footer p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.lead {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
}

.lead-secondary {
  margin-top: 0.7rem;
  max-width: 38rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-dark {
  background: var(--ink);
  color: #fffdfa;
}

.button-light {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border-color: var(--line);
}

.memory-grid,
.home-media,
.page-link-grid,
.snapshot-grid,
.notes-grid,
.plans-grid {
  display: grid;
  gap: 1rem;
}

.memory-grid,
.home-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 215px;
}

.home-media {
  align-self: start;
}

.memory-tile,
.page-link-card,
.snapshot-card,
.note-card,
.plan-card {
  overflow: hidden;
}

.memory-tile,
.page-link-card,
.snapshot-card,
.note-card,
.plan-card,
.reason-row {
  padding: 1.4rem;
}

.large-photo {
  grid-row: span 2;
}

.tall-photo {
  grid-row: span 2;
}

.quote-tile {
  display: flex;
  align-items: flex-end;
}

.quote-tile p {
  font-size: 2.5rem;
  max-width: 9ch;
}

.photo-tile {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.25);
}

.photo-filled {
  display: block;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
}

.photo-tile::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 6px;
  border: 1px dashed rgba(23, 20, 18, 0.15);
}

.photo-filled::before {
  display: none;
}

.tile-label {
  position: absolute;
  left: 1.4rem;
  bottom: 1.35rem;
  color: rgba(23, 20, 18, 0.52);
}

.animal-tile {
  position: relative;
  padding: 0;
  background: #e7d3bf;
}

.media-fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corner-note {
  position: relative;
  z-index: 2;
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: inline-block;
  margin: 0;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 250, 244, 0.84);
  border: 1px solid rgba(23, 20, 18, 0.06);
  color: rgba(23, 20, 18, 0.86);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.tone-blue {
  background-color: rgba(220, 231, 242, 0.95);
}

.tone-pink {
  background-color: rgba(242, 221, 231, 0.95);
}

.tone-purple {
  background-color: rgba(232, 226, 243, 0.95);
}

.tone-red {
  background-color: rgba(241, 220, 222, 0.95);
}

.text-fragment {
  border-radius: 6px;
}

.section {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 0.9rem;
}

.section-heading-tight {
  margin-bottom: 0.8rem;
}

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

.page-link-card {
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.page-link-card:hover,
.page-link-card:focus-visible {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.page-link-card h3 {
  margin: 0.55rem 0 0.7rem;
}

.quiet-note {
  text-align: center;
}

.quiet-note h2 {
  max-width: 15ch;
  margin: 0.2rem auto 1.2rem;
}

.home-note {
  padding: 0.6rem 0 0;
}

.home-note .button {
  min-width: 12rem;
}

.page-hero {
  margin-top: 1rem;
}

.snapshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 215px;
}

.snapshot-card,
.note-card,
.plan-card {
  display: flex;
  align-items: flex-end;
}

.snapshot-card {
  min-height: 215px;
}

.snapshot-card.photo-filled {
  min-height: 215px;
}

.snapshot-card h3 {
  max-width: 10ch;
}

.reasons-list {
  display: grid;
  gap: 0.8rem;
}

.reason-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.reason-number {
  min-width: 2.5rem;
}

.reason-row h3 {
  margin-bottom: 0.45rem;
}

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

.note-card p {
  font-size: 1.8rem;
  max-width: 11ch;
}

.note-card {
  align-items: center;
}

.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.plan-card h3 {
  font-size: 2rem;
  max-width: 11ch;
}

.plan-card {
  align-items: flex-start;
}

.home-links {
  margin-top: 3rem;
}

.page-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 3rem;
  margin-top: 1rem;
}

.directory-link {
  display: block;
  padding: 0.15rem 0 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 20, 18, 0.1);
  transition: opacity 160ms ease, transform 160ms ease;
}

.directory-link:hover,
.directory-link:focus-visible {
  opacity: 0.72;
  transform: translateY(-1px);
}

.directory-link h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 2rem;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0 0.2rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero-grid,
  .home-hero,
  .page-link-grid,
  .snapshot-grid,
  .notes-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .memory-grid,
  .home-media {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .large-photo,
  .tall-photo {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1380px);
    padding-top: 0.7rem;
  }

  .site-header,
  .intro-panel,
  .page-hero,
  .quiet-note,
  .memory-tile,
  .page-link-card,
  .snapshot-card,
  .note-card,
  .plan-card,
  .reason-row {
    padding: 1rem;
  }

  .site-nav,
  .button-row,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .snapshot-grid,
  .notes-grid,
  .plans-grid,
  .page-link-grid,
  .memory-grid,
  .home-media {
    grid-template-columns: 1fr;
  }

  .page-directory {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-copy {
    padding-top: 0.2rem;
  }

  .quote-tile p,
  .note-card p,
  .plan-card h3 {
    max-width: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
