﻿:root {
  --bg: #fff4eb;
  --bg-deep: #f5dfd2;
  --bg-soft: #fffdf8;
  --paper: rgba(255, 255, 255, 0.72);
  --panel: rgba(255, 255, 255, 0.82);
  --ink: #18263d;
  --ink-soft: #536178;
  --rose: #ff9a88;
  --rose-deep: #e85f5b;
  --rose-soft: #ffe1d7;
  --peach: #f4c36e;
  --sage: #d6ebe1;
  --sage-deep: #6c9c89;
  --olive: #263f52;
  --line: rgba(24, 38, 61, 0.12);
  --shadow: 0 18px 55px rgba(22, 29, 27, 0.1);
  --shadow-strong: 0 28px 72px rgba(18, 22, 20, 0.17);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

::selection {
  background: var(--rose-deep);
  color: #fffaf5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 126, 105, 0.24), transparent 16%),
    radial-gradient(circle at 88% 18%, rgba(153, 210, 187, 0.32), transparent 18%),
    radial-gradient(circle at 72% 92%, rgba(244, 195, 110, 0.2), transparent 16%),
    linear-gradient(180deg, var(--bg) 0%, #fff9f1 30%, #f8e8df 100%);
  color: var(--ink);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-shell::after {
  content: "";
  position: absolute;
  top: 7%;
  right: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(217, 121, 114, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(217, 121, 114, 0.035), 0 0 0 56px rgba(217, 121, 114, 0.025);
  pointer-events: none;
  transform: rotate(-18deg);
}

.section-pad {
  padding-left: clamp(20px, 5vw, 92px);
  padding-right: clamp(20px, 5vw, 92px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 92px);
  background: rgba(255, 253, 248, 0.78);
  border-bottom: 1px solid rgba(29, 44, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.brand-mark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 31px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.brand-mark span {
  color: var(--rose-deep);
  font-size: 18px;
  margin: 0 2px;
}

.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(217, 121, 114, 0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 15px 30px rgba(25, 37, 33, 0.06);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-avatar,
.form-avatar,
.preview-avatar,
.welcome-avatar,
.comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: white;
  font-weight: 800;
  font-size: 11px;
  box-shadow: 0 10px 20px rgba(217, 121, 114, 0.25);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 540px);
  align-items: center;
  gap: clamp(28px, 5vw, 110px);
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 72px;
  padding-bottom: 110px;
  min-height: calc(100vh - 94px);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  right: -55px;
  top: 60px;
  width: 320px;
  height: 260px;
  background: radial-gradient(circle, rgba(217, 121, 114, 0.16) 0 1px, transparent 1.8px);
  background-size: 18px 18px;
  transform: rotate(18deg);
  opacity: 0.85;
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.reveal,
.motion-section,
.timeline-item,
.section-heading {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible,
.motion-section.is-visible,
.timeline-item.is-visible,
.section-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.14s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--rose-deep);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 0 0 5px rgba(217,121,114,0.08);
}

.hero h1,
.section-heading h2,
.comment-preview h2,
.welcome-card h2,
.modal-card h2 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero h1 {
  font-size: clamp(4.2rem, 8.8vw, 9.7rem);
}

.hero h1 em,
.section-heading h2 em,
.comment-preview h2 em {
  color: var(--rose-deep);
  font-style: italic;
}

.hero-lede {
  margin: 30px 0 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-note {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

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

.button,
.button-dark,
.button-light,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button {
  padding: 15px 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.button:hover,
.text-link:hover,
.social-stat:hover,
.love-button:hover,
.load-comments-button:hover,
.preview-reply-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.button-dark {
  background: linear-gradient(135deg, #18263d 0%, #294967 100%);
  color: white;
  box-shadow: 8px 8px 0 rgba(242, 179, 168, 0.9);
}

.button-dark:hover {
  box-shadow: 4px 4px 0 rgba(242, 179, 168, 0.9), 0 14px 30px rgba(29, 44, 42, 0.18);
}

.button-light {
  background: linear-gradient(135deg, #fffdf8 0%, #fff7f2 100%);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(217, 121, 114, 0.26);
}

.text-link {
  border: 1px solid rgba(217,121,114,0.28);
  padding: 12px 16px;
  background: rgba(255,255,255,0.32);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-visual {
  max-width: 530px;
  margin-left: auto;
  position: relative;
  animation: floatCard 7s ease-in-out infinite;
}

.photo-frame {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,239,225,0.76));
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 32px 70px rgba(31, 40, 37, 0.12), 14px 14px 0 rgba(242,179,168,0.22);
  transform: rotate(1.1deg);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.photo-frame:hover {
  transform: rotate(0) translateY(-5px);
  box-shadow: 0 38px 82px rgba(31, 40, 37, 0.16), 14px 14px 0 rgba(242,179,168,0.28);
}

.photo-frame img {
  width: 100%;
  height: min(68vw, 610px);
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(0.92) contrast(1.04);
}

.photo-stamp {
  position: absolute;
  right: -18px;
  bottom: 24px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #243c58, #142238);
  color: white;
  border-radius: 14px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  line-height: 1.12;
  box-shadow: 0 20px 35px rgba(17, 24, 22, 0.15);
  transform: rotate(-5deg);
}

.floating-note {
  position: absolute;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(49, 56, 52, 0.08);
}

.note-top {
  left: -32px;
  top: 16%;
  background: rgba(248, 205, 119, 0.94);
  border: 1px solid rgba(164, 119, 71, 0.12);
}

.note-bottom {
  right: -30px;
  bottom: 8%;
  background: rgba(208, 235, 222, 0.96);
  border: 1px solid rgba(120, 145, 131, 0.12);
}

.social-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 24px;
  background: linear-gradient(135deg, rgba(30, 54, 79, 0.99), rgba(16, 29, 48, 0.99));
  color: #edf5f2;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.social-stat,
.love-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 80px;
  text-align: center;
  transition: transform 0.25s ease;
}

.social-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-stat strong,
.love-button strong {
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
}

.social-stat span,
.love-button span:last-child {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.social-divider {
  width: 1px;
  height: 48px;
  justify-self: center;
  background: rgba(255,255,255,0.16);
}

.love-button {
  position: relative;
  border: 0;
  background: transparent;
  color: #edf5f2;
  flex-direction: column;
  gap: 6px;
}

.love-button .heart-icon {
  font-size: 28px;
  color: #f7a7a0;
}

.love-button.liked {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 131, 0.28);
}

.love-button.liked .heart-icon {
  color: #ff7a87;
  text-shadow: 0 0 22px rgba(255, 122, 135, 0.75);
}

.comment-preview,
.story,
.people,
.timeline,
.gallery,
.guestbook {
  position: relative;
  padding-top: 112px;
  padding-bottom: 112px;
}

.comment-preview {
  background: linear-gradient(135deg, #edf8f1 0%, #fff4eb 46%, #ffe0d7 100%);
}

.comment-preview::before {
  content: "";
  position: absolute;
  right: 5%;
  top: 28px;
  width: 180px;
  height: 160px;
  background: radial-gradient(circle, rgba(217,121,114,0.18) 0 1px, transparent 1.8px);
  background-size: 16px 16px;
  pointer-events: none;
}

.comment-preview-head,
.top-comment-form,
.comment-preview-list,
.load-comments-button {
  position: relative;
  z-index: 1;
}

.comment-preview-head,
.section-heading,
.guestbook-head,
.story-layout,
.people-grid,
.gallery-grid,
.timeline-list,
.comments-list {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.comment-preview h2 {
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  letter-spacing: -0.04em;
}

.top-comment-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 10px 12px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(71, 92, 86, 0.08);
}

.top-comment-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  padding: 10px 6px;
}

.top-comment-form .button {
  min-height: 42px;
  padding-inline: 16px;
}

.comment-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
  max-height: 430px;
  overflow-y: auto;
  margin: 20px auto 0;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,253,248,0.56);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 20px 42px rgba(92, 101, 93, 0.08);
}

.comment-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 122px;
  padding: 16px;
  margin: 0;
  border: 1px solid rgba(204, 180, 168, 0.8);
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 12px 24px rgba(80, 93, 88, 0.06);
}

.preview-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.preview-name {
  font-size: 12px;
  font-weight: 800;
}

.preview-date {
  margin-left: auto;
  color: rgba(29, 44, 42, 0.6);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.preview-text {
  margin: 10px 0 0 38px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.preview-reply-button {
  margin: 8px 0 0 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rose-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-replies {
  margin: 9px 0 0 38px;
  padding-left: 12px;
  border-left: 2px solid rgba(217,121,114,0.32);
}

.preview-reply {
  margin: 6px 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.preview-reply strong {
  color: var(--ink);
}

.preview-reply-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-left: 38px;
}

.preview-reply-form[hidden] { display: none; }

.preview-reply-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(29,44,42,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  padding: 9px 12px;
  outline: 0;
}

.preview-reply-form button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.load-comments-button {
  display: block;
  margin: 20px auto 0;
  padding: 11px 18px;
  border: 1px solid rgba(29,44,42,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.load-comments-button[hidden] { display: none; }

.story {
  background: rgba(255, 253, 248, 0.78);
}

.section-heading {
  position: relative;
}

.section-heading h2 {
  font-size: clamp(3.1rem, 6vw, 6.9rem);
  letter-spacing: -0.05em;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.7fr);
  gap: clamp(38px, 7vw, 120px);
  align-items: center;
  margin-top: 54px;
}

.story-text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.story-text p { margin: 0 0 18px; }
.story-text strong { color: var(--ink); }

.story-text blockquote {
  margin: 26px 0 0;
  padding: 22px 22px 22px 24px;
  border-left: 4px solid var(--rose-deep);
  border-radius: 0 18px 18px 0;
  background: rgba(242, 179, 168, 0.1);
  color: var(--ink);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.35;
}

.story-card {
  position: relative;
  min-height: 330px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: linear-gradient(135deg, #294967, #18283f 50%, #111c30 100%);
  color: white;
  box-shadow: 18px 18px 0 rgba(242, 179, 168, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  background: radial-gradient(circle at center, rgba(242,179,168,0.18), transparent 62%);
  z-index: -1;
}

.card-kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.card-date {
  display: block;
  margin-top: 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  color: #fbe0d2;
}

.story-card p {
  margin: 12px 0 0;
  font-size: 17px;
  color: rgba(255,255,255,0.9);
}

.card-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 22px 0 18px;
}

.card-signature {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: #f5cbbb;
}

.people { background: linear-gradient(135deg, rgba(218, 239, 229, 0.86), rgba(255, 245, 225, 0.76)); }

.section-heading.centered { text-align: center; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 54px;
}

.person-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 20px 36px rgba(66, 82, 76, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.person-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 48px rgba(66, 82, 76, 0.14);
}

.person-card-dark {
  background: linear-gradient(180deg, #294967, #15253b);
  color: white;
}

.person-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.person-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px 24px;
}

.person-role {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.person-info h3 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  font-weight: 400;
}

.person-info p {
  margin: 12px 0 0;
  color: inherit;
  opacity: 0.84;
  line-height: 1.7;
}

.person-tag {
  align-self: flex-start;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(242, 179, 168, 0.14);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.timeline { background: linear-gradient(180deg, #fff7ed, #f8e8df); }

.timeline-list {
  position: relative;
  margin-top: 56px;
  padding-left: 18px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(217,121,114,0.7), rgba(125,162,138,0.8));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0 22px 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rose-deep);
  box-shadow: 0 0 0 6px rgba(217,121,114,0.12);
}

.timeline-date {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.timeline-date span {
  display: block;
  margin-top: 8px;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.1;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.timeline-heart {
  font-size: 24px;
  color: var(--rose-deep);
}

.timeline-highlight {
  padding: 26px 0 26px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.38);
}

.gallery { background: rgba(255, 253, 248, 0.8); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-top: 54px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 18px 35px rgba(35, 47, 43, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px rgba(35, 47, 43, 0.14);
}

.gallery-grid .gallery-main {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.gallery-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 25, 23, 0.66);
  color: white;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.guestbook {
  background: linear-gradient(180deg, rgba(34, 65, 83, 0.99), rgba(17, 29, 48, 0.99));
  color: white;
}

.guestbook-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.guestbook .eyebrow { color: #f5d7cf; }

.guestbook-intro {
  max-width: 540px;
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.8;
}

.comment-form {
  max-width: 1120px;
  margin: 38px auto 0;
  padding: 16px 16px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(10, 15, 14, 0.12);
}

.comment-input-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.comment-form textarea {
  flex: 1;
  min-height: 110px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  color: white;
  outline: 0;
  padding: 16px;
}

.comment-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-left: 42px;
}

#characterCount {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.comments-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.comment {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.comment-name {
  font-weight: 800;
}

.comment-date {
  margin-left: auto;
  color: rgba(255,255,255,0.64);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comment-text {
  margin: 12px 0 0 44px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px 0 0 44px;
}

.comment-actions button {
  border: 0;
  background: transparent;
  color: #f5d7d0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.comment-actions button.delete {
  color: #f7b0a9;
}

.comment-replies {
  margin: 12px 0 0 44px;
  padding-left: 12px;
  border-left: 2px solid rgba(242,179,168,0.44);
}

.comment-reply {
  margin: 7px 0;
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.comment-reply strong { color: white; }

.empty-comments,
.preview-empty {
  padding: 18px 12px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.35);
  color: rgba(29,44,42,0.7);
  font-size: 14px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 42px;
  padding-bottom: 54px;
  text-align: center;
  background: rgba(255, 253, 249, 0.82);
  color: var(--ink-soft);
}

.footer-mark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.footer-mark span { color: var(--rose-deep); }
.footer p, .footer small { margin: 0; }
.footer small { opacity: 0.8; }

.name-modal,
.welcome-modal,
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}

.name-modal,
.welcome-modal {
  background: rgba(14, 22, 20, 0.56);
}

.name-modal {
  display: none;
}

.name-modal.open { display: flex; }

.modal-card,
.welcome-card {
  position: relative;
  width: min(100%, 460px);
  border-radius: 28px;
  background: rgba(255,253,248,0.96);
  box-shadow: 0 26px 80px rgba(16, 23, 21, 0.18);
  animation: modalIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-card { padding: 36px 28px 28px; }

.modal-close,
.welcome-close,
#lightboxClose {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 28px;
  line-height: 1;
}

.modal-flower,
.welcome-sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: rgba(242,179,168,0.12);
  color: var(--rose-deep);
  font-size: 21px;
}

.modal-card h2,
.welcome-card h2 {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  letter-spacing: -0.05em;
}

#nameForm {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

#nameForm label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

#nameForm input {
  width: 100%;
  border: 1px solid rgba(29,44,42,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  padding: 13px 14px;
  outline: 0;
}

.private-hint {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

#nameForm .button { margin-top: 10px; }

.welcome-modal { display: none; }
.welcome-modal.open { display: flex; }

.welcome-card {
  padding: 34px 28px 26px;
  text-align: center;
  border-top: 5px solid var(--rose-deep);
}

.welcome-avatar {
  width: 68px;
  height: 68px;
  margin: 10px auto 18px;
  font-size: 24px;
  box-shadow: 0 0 0 7px rgba(242,179,168,0.18);
}

.welcome-card .eyebrow {
  justify-content: center;
  margin-bottom: 8px;
}

.welcome-card > p:not(.eyebrow) {
  margin: 14px auto 0;
  max-width: 280px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.welcome-signature {
  display: inline-block;
  margin-top: 20px;
  color: var(--rose-deep);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(20, 32, 52, 0.96);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lightbox {
  background: rgba(17, 25, 23, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
}

#lightboxClose { color: white; }

.button-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.6s ease-out;
}

.love-spark {
  position: absolute;
  top: 50%;
  left: var(--spark-left);
  transform: translate(-50%, 0);
  font-size: 18px;
  color: #f26d77;
  animation: floatSpark 0.9s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-deep), var(--rose), var(--peach));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 35;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes floatSpark {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), var(--spark-y)) rotate(var(--spark-rotate)) scale(1.15); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
    padding-bottom: 84px;
  }

  .hero-visual { margin: 0 auto; }
  .people-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-main { grid-column: auto; grid-row: auto; }
  .story-layout { grid-template-columns: 1fr; }
  .guestbook-head { display: block; }
  .guestbook-intro { margin-top: 22px; }
}

@media (max-width: 720px) {
  .topbar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand { gap: 8px; }
  .brand-mark { font-size: 23px; }

  .hero {
    gap: 24px;
    min-height: auto;
  }

  .hero h1 { font-size: clamp(3.7rem, 17vw, 6.4rem); }

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

  .button, .text-link { width: 100%; }

  .social-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .social-divider { display: none; }

  .comment-preview,
  .story,
  .people,
  .timeline,
  .gallery,
  .guestbook {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .top-comment-form {
    gap: 8px;
    padding: 8px 10px;
  }

  .comment-preview-list {
    grid-template-columns: 1fr;
    max-height: 420px;
  }

  .people-grid { margin-top: 40px; }
  .person-card { grid-template-columns: 1fr; }
  .person-photo img { min-height: 220px; }

  .timeline-item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 14px;
    padding-left: 18px;
  }

  .timeline-date { font-size: 28px; }
  .gallery-grid { gap: 12px; }

  .form-footer {
    padding-left: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-card,
  .welcome-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lightbox img { max-width: 94vw; }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
    overflow-x: hidden;
  }

  .section-pad {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    padding: 13px 18px;
  }

  .brand {
    letter-spacing: 1.8px;
  }

  .brand-mark {
    font-size: 25px;
  }

  .brand > span:last-child {
    font-size: 8px;
  }

  .identity-chip {
    max-width: 118px;
    padding-right: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
    line-height: 0.86;
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.5;
  }

  .hero-note {
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 13px;
    margin-top: 26px;
  }

  .button,
  .text-link {
    min-height: 50px;
  }

  .hero-visual {
    width: calc(100% - 16px);
    margin-right: 8px;
  }

  .photo-frame {
    padding: 9px;
    border-radius: 24px;
    box-shadow: 8px 8px 0 rgba(242,179,168,0.3);
  }

  .photo-frame img {
    height: auto;
    aspect-ratio: 0.82;
    border-radius: 18px;
  }

  .photo-stamp {
    right: -8px;
    bottom: 18px;
    padding: 10px 12px;
    font-size: 15px;
  }

  .floating-note {
    padding: 9px 11px;
    font-size: 10px;
  }

  .note-top {
    left: -9px;
    top: 8%;
  }

  .note-bottom {
    right: -9px;
    bottom: 5%;
  }

  .social-strip {
    padding: 15px 18px;
  }

  .social-stat,
  .love-button {
    min-height: 66px;
  }

  .social-stat strong,
  .love-button strong {
    font-size: 27px;
  }

  .comment-preview,
  .story,
  .people,
  .timeline,
  .gallery,
  .guestbook {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .section-heading h2,
  .comment-preview h2 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
    line-height: 0.9;
  }

  .top-comment-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 24px;
    padding: 10px;
  }

  .top-comment-form input {
    min-width: 0;
  }

  .top-comment-form .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .comment-preview-list {
    margin-top: 16px;
    padding: 8px;
    border-radius: 18px;
  }

  .comment-preview-card {
    min-height: 112px;
    padding: 14px;
  }

  .preview-date {
    font-size: 8px;
  }

  .story-layout {
    gap: 34px;
    margin-top: 34px;
  }

  .story-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .story-text blockquote {
    padding: 17px 16px 17px 18px;
    font-size: 1.35rem;
  }

  .story-card {
    min-height: 270px;
    padding: 27px;
    box-shadow: 10px 10px 0 rgba(242,179,168,0.72);
  }

  .card-date {
    font-size: 4rem;
  }

  .people-grid,
  .gallery-grid {
    margin-top: 34px;
  }

  .person-card {
    border-radius: 22px;
  }

  .person-photo img {
    min-height: 250px;
    max-height: 330px;
  }

  .person-info {
    padding: 23px 19px 22px;
  }

  .person-info h3 {
    font-size: 2.35rem;
  }

  .timeline-list {
    margin-top: 35px;
    padding-left: 12px;
  }

  .timeline-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0 18px 18px;
  }

  .timeline-item > .timeline-heart {
    display: none;
  }

  .timeline-date {
    font-size: 25px;
  }

  .timeline-date span {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .timeline-item h3 {
    font-size: 19px;
  }

  .timeline-item p {
    font-size: 12px;
    line-height: 1.55;
  }

  .gallery-grid figure,
  .gallery-grid img {
    border-radius: 20px;
  }

  .gallery-grid img {
    min-height: 235px;
  }

  .gallery-grid figcaption {
    left: 11px;
    bottom: 11px;
    max-width: calc(100% - 22px);
    font-size: 8px;
    line-height: 1.35;
  }

  .guestbook-head {
    display: block;
  }

  .guestbook-intro {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.7;
  }

  .comment-form {
    margin-top: 27px;
    padding: 12px;
    border-radius: 18px;
  }

  .comment-input-wrap {
    gap: 9px;
  }

  .comment-form textarea {
    min-height: 125px;
    padding: 13px;
  }

  .form-footer .button {
    width: 100%;
  }

  .comment-text,
  .comment-actions,
  .comment-replies {
    margin-left: 0;
  }

  .comment-text {
    margin-top: 13px;
  }

  .comment-date {
    font-size: 8px;
  }

  .footer {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .footer p {
    max-width: 300px;
    font-size: 12px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
