body.home {
  --bg: #1b1712;
  --card: #262019;
  --accent: #c98a4b;
  --accent-dim: rgba(201, 138, 75, 0.28);
  --text: #f4ede1;
  --text-dim: #a89686;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 10vh 32px 8vh;
  background: var(--bg);
  color: var(--text);
}

.home-layout {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  align-items: center;
  gap: 64px;
}

/* Polaroid-style family photo */

.family-photo {
  margin: 0;
  background: #fbf4e6;
  padding: 18px 18px 54px;
  border-radius: 3px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
  justify-self: center;
}

.family-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.family-photo figcaption {
  margin-top: 18px;
  text-align: center;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-style: italic;
  font-size: 17px;
  color: #4a3a28;
}

/* Text column */

.home-text {
  text-align: left;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.eyebrow .heart {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.wordmark {
  margin: 14px 0 0;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(48px, 7vw, 76px);
  color: var(--text);
  letter-spacing: 0.01em;
}

.divider {
  width: 64px;
  height: 2px;
  margin: 28px 0 36px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  opacity: 0.7;
}

.home-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.memory-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.memory-link-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.memory-link-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.memory-link-name {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.25s ease;
  padding-bottom: 2px;
}

.memory-link:hover .memory-link-name {
  background-size: 100% 1px;
}

.memory-link-arrow {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.memory-link:hover .memory-link-arrow {
  transform: translateX(5px);
}

@media (max-width: 760px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
    text-align: center;
  }

  .family-photo {
    max-width: 320px;
    width: 100%;
  }

  .home-text {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .divider {
    margin-left: auto;
    margin-right: auto;
  }

  .home-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  body.home {
    padding-top: 8vh;
  }
}
