:root {
  --bg: #fff5f7;
  --bg-soft: #ffecef;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #fffdfd;
  --text: #3d2b30;
  --muted: #8f7178;
  --line: rgba(156, 103, 119, 0.16);
  --pink: #f7d6df;
  --rose: #e9b8c6;
  --shadow: 0 18px 45px rgba(179, 125, 143, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 225, 231, 0.95), transparent 28%),
    linear-gradient(180deg, #fff8fa 0%, #fff0f4 100%);
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 182, 199, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 182, 199, 0.18) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at center, black 70%, transparent 100%);
  pointer-events: none;
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 56px;
  position: relative;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.35rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  padding: 8px 0;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.hero-copy,
.memory-card,
.journal-card,
.about-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,245,247,0.92));
}

.eyebrow,
.journal-tag,
.memory-copy span,
.hero-meta span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.eyebrow,
.journal-tag,
.hero-meta,
.memory-copy span {
  color: var(--muted);
}

.hero-copy h1,
.section-head h2,
.memory-copy h3,
.journal-card h3,
.about-copy h2 {
  margin: 0;
}

.hero-copy h1,
.section-head h2,
.about-copy h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1;
}

.hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.intro {
  margin: 20px 0 0;
  max-width: 580px;
  line-height: 1.9;
  font-size: 1.03rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  gap: 18px;
  align-items: start;
}

.polaroid {
  padding: 14px 14px 18px;
  border-radius: 26px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.polaroid img {
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.polaroid p {
  margin: 14px 4px 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.1rem;
  color: #7f5d66;
}

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

.polaroid.tall img {
  aspect-ratio: 0.78 / 1;
}

.polaroid.wide {
  grid-column: 2;
}

.polaroid.wide img {
  aspect-ratio: 1.18 / 1;
}

.rotate-left {
  transform: rotate(-3deg);
}

.rotate-right {
  transform: rotate(4deg);
}

.section-head {
  margin: 56px 0 18px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.memory-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.75fr;
  gap: 20px;
}

.memory-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255,255,255,0.88);
}

.memory-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.memory-card.large img {
  aspect-ratio: 0.95 / 1;
}

.memory-copy {
  padding: 20px 22px 24px;
}

.memory-copy h3 {
  margin-top: 10px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.memory-copy p,
.journal-card p,
.about-copy p {
  line-height: 1.85;
}

.note-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 226, 0.8), transparent 28%),
    linear-gradient(180deg, #fffdfd 0%, #fff3f7 100%);
}

.doodle-card .doodle {
  font-size: 1.4rem;
  color: #d39ab0;
  margin-bottom: 18px;
}

.note-card h3 {
  margin: 12px 0 10px;
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

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

.journal-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 252, 253, 0.9);
}

.journal-card h3 {
  margin-top: 14px;
  font-size: 1.34rem;
}

.about-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 48px;
  padding: 24px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,239,244,0.92));
}

.about-copy h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.about-sticker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticker {
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.75), transparent 30%),
    linear-gradient(180deg, #ffdbe6 0%, #f2bccc 100%);
  box-shadow: inset 0 2px 20px rgba(255,255,255,0.55), 0 18px 38px rgba(214, 142, 167, 0.2);
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  line-height: 1.1;
  text-align: center;
  color: #7a4d5a;
  transform: rotate(-10deg);
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero,
  .about-panel,
  .memory-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 9vw, 4.2rem);
  }

  .memory-grid,
  .journal-grid,
  .about-panel {
    gap: 16px;
  }

  .polaroid.tall,
  .polaroid.wide {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 12px;
    padding-bottom: 40px;
  }

  .topbar {
    top: 10px;
    padding: 12px 14px 14px;
    border-radius: 22px;
    align-items: stretch;
    gap: 10px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 236, 239, 0.9);
  }

  .hero-copy,
  .journal-card,
  .about-panel,
  .note-card {
    padding: 20px;
  }

  .hero {
    gap: 18px;
  }

  .hero-copy {
    border-radius: 24px;
    padding: 24px 20px;
  }

  .hero-copy h1 {
    margin-top: 10px;
    font-size: clamp(2.1rem, 12vw, 3rem);
    line-height: 0.98;
  }

  .intro {
    margin-top: 16px;
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .hero-meta {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-meta span {
    width: 100%;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .hero-collage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .polaroid,
  .memory-card,
  .journal-card,
  .about-panel {
    border-radius: 22px;
  }

  .polaroid {
    padding: 10px 10px 14px;
    transform: none;
  }

  .polaroid img,
  .polaroid.tall img,
  .polaroid.wide img {
    aspect-ratio: 1 / 1;
  }

  .polaroid p {
    margin-top: 10px;
    font-size: 1rem;
  }

  .section-head {
    margin: 38px 2px 16px;
  }

  .section-head h2 {
    margin-top: 8px;
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    line-height: 1.05;
  }

  .memory-grid,
  .journal-grid {
    gap: 14px;
  }

  .memory-card img,
  .memory-card.large img {
    aspect-ratio: 1 / 0.9;
  }

  .memory-copy {
    padding: 18px;
  }

  .memory-copy h3,
  .journal-card h3 {
    font-size: 1.2rem;
  }

  .memory-copy p,
  .journal-card p,
  .about-copy p {
    margin-bottom: 0;
    line-height: 1.72;
    font-size: 0.95rem;
  }

  .note-card h3 {
    font-size: 1.55rem;
  }

  .about-panel {
    margin-top: 36px;
    padding: 18px;
  }

  .about-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
    line-height: 1.04;
  }

  .about-sticker {
    justify-content: flex-start;
  }

  .sticker {
    width: 180px;
    height: 180px;
    font-size: 1.55rem;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 14px, 1180px);
  }

  .hero-copy,
  .journal-card,
  .memory-copy,
  .about-panel,
  .note-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .eyebrow,
  .journal-tag,
  .memory-copy span,
  .hero-meta span {
    letter-spacing: 0.09em;
  }
}
