:root {
  --cream: #f6eee5;
  --cream-light: #fbf8f3;
  --paper: #fffaf4;
  --ink: #2e2824;
  --muted: #786d66;
  --wine: #963e48;
  --wine-dark: #652a32;
  --rose: #d9a2a1;
  --olive: #68705b;
  --line: rgba(46, 40, 36, 0.16);
  --serif: "Bodoni 72", Didot, "Iowan Old Style", Georgia, "Songti SC", "STSong", "SimSun", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --script: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

::selection {
  color: var(--paper);
  background: var(--wine);
}

.grain {
  position: fixed;
  z-index: 1000;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 24px clamp(24px, 4vw, 72px);
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
  background: rgba(246, 238, 229, 0.88);
  box-shadow: 0 1px 0 rgba(46, 40, 36, 0.1);
  backdrop-filter: blur(16px);
}

.monogram {
  justify-self: start;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--wine);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.icon-button:hover,
.menu-button:hover {
  color: var(--cream-light);
  background: var(--ink);
}

.icon-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.menu-button {
  display: none;
}

.menu-button span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.88fr);
  align-items: center;
  min-height: 100vh;
  padding: 145px clamp(32px, 7vw, 120px) 90px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 33%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent 8%, rgba(46, 40, 36, 0.08) 32%, rgba(46, 40, 36, 0.08) 80%, transparent);
  content: "";
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-one {
  top: -18vw;
  right: -9vw;
  width: 42vw;
  height: 42vw;
  background: rgba(217, 162, 161, 0.2);
}

.hero-orb-two {
  bottom: -12vw;
  left: 23%;
  width: 25vw;
  height: 25vw;
  background: rgba(104, 112, 91, 0.11);
}

.floating-word {
  position: absolute;
  color: rgba(46, 40, 36, 0.08);
  font-family: var(--script);
  font-size: clamp(60px, 8vw, 130px);
  pointer-events: none;
}

.floating-word-left {
  top: 16%;
  left: -50px;
  transform: rotate(-9deg);
}

.floating-word-right {
  right: -20px;
  bottom: 8%;
  transform: rotate(7deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding-right: 30px;
}

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

.eyebrow > span {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: #e6c8c1;
}

.hero h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.12em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(75px, 9.5vw, 154px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.hero h1 em {
  margin: 0 0.05em;
  color: var(--wine);
  font-family: var(--script);
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-name {
  display: inline-block;
}

.hero-intro {
  max-width: 480px;
  margin: 34px 0 22px;
  color: #625851;
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
  line-height: 2;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta b {
  color: var(--ink);
  font-weight: 500;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.3s ease, background 0.3s ease;
}

.primary-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 0.3s ease;
}

.primary-button:hover {
  color: var(--cream);
  background: var(--ink);
}

.primary-button:hover svg {
  transform: translateX(4px);
}

.primary-button.dark {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.primary-button.dark:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  height: min(69vw, 720px);
  max-height: calc(100vh - 200px);
  margin-left: auto;
}

.arch-photo {
  position: absolute;
  top: 0;
  right: 5%;
  width: 76%;
  height: 88%;
  overflow: hidden;
  border-radius: 240px 240px 8px 8px;
  background: #d9c7b8;
}

.arch-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 26, 24, 0.16), transparent 35%);
  content: "";
}

.arch-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0, 1);
}

.hero-visual:hover .arch-photo img {
  transform: scale(1.025);
}

.photo-caption {
  position: absolute;
  z-index: 1;
  right: 25px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.polaroid {
  position: absolute;
  bottom: 4%;
  left: -3%;
  width: 38%;
  padding: 11px 11px 16px;
  background: #fffdf8;
  box-shadow: 0 16px 45px rgba(50, 38, 32, 0.18);
  transform: rotate(-7deg);
}

.polaroid img {
  aspect-ratio: 0.85;
  object-fit: cover;
  filter: saturate(0.75) contrast(0.95);
}

.polaroid p {
  margin: 9px 3px 0;
  font-family: var(--script);
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.1;
  text-align: center;
}

.tape {
  position: absolute;
  z-index: 2;
  top: -9px;
  left: 50%;
  width: 65px;
  height: 22px;
  background: rgba(214, 198, 175, 0.55);
  transform: translateX(-50%) rotate(2deg);
}

.hero-stamp {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 3%;
  width: 112px;
  height: 112px;
  color: var(--wine);
  animation: stampFloat 5s ease-in-out infinite;
}

.hero-stamp svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-stamp text {
  fill: currentColor;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 1.9px;
}

.stamp-heart {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.handwritten-note {
  position: absolute;
  right: -6%;
  bottom: 3%;
  color: var(--wine-dark);
  font-family: var(--script);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.25;
  transform: rotate(-6deg);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: clamp(32px, 7vw, 120px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  display: block;
  width: 100%;
  height: 50%;
  background: var(--ink);
  content: "";
  animation: scrollLine 2s ease-in-out infinite;
}

.love-counter {
  position: relative;
  padding: 0;
  color: var(--cream-light);
  background: var(--ink);
}

.counter-inner {
  display: grid;
  grid-template-columns: 0.65fr 1.8fr 0.8fr;
  align-items: center;
  gap: 5vw;
  padding: 75px clamp(32px, 7vw, 120px);
}

.mini-title {
  color: #c7b7ac;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.counter-label p {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 20px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 45px);
}

.time-grid > div {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.time-grid > div:not(:last-child)::after {
  position: absolute;
  top: 4px;
  right: calc(clamp(18px, 3vw, 45px) / -2 - 3px);
  color: rgba(246, 238, 229, 0.25);
  font-family: var(--serif);
  font-size: 34px;
  content: ":";
}

.time-grid strong {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 1;
}

.time-grid span {
  color: #b8aaa0;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.counter-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.counter-note .tiny-heart {
  color: var(--rose);
  font-size: 15px;
}

.counter-note p {
  margin: 0;
  color: #b8aaa0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.9;
}

.marquee {
  padding: 12px 0;
  overflow: hidden;
  color: var(--ink);
  background: #c99a98;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  padding: 0 34px;
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.17em;
}

.marquee i {
  font-style: normal;
  font-size: 9px;
}

.section {
  padding: clamp(90px, 10vw, 160px) clamp(32px, 7vw, 120px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: clamp(55px, 7vw, 90px);
}

.section-heading h2,
.message-intro h2,
.modal-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5.5vw, 82px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.section-heading h2 em,
.message-intro h2 em {
  color: var(--wine);
  font-weight: 400;
}

.section-lead {
  max-width: 345px;
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  line-height: 2;
}

.story {
  background:
    linear-gradient(90deg, transparent 0 66%, rgba(46, 40, 36, 0.045) 66% 66.08%, transparent 66.08%),
    var(--cream-light);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: start;
}

.story-image {
  position: relative;
}

.story-image > img {
  height: min(64vw, 760px);
  object-fit: cover;
  filter: saturate(0.72) sepia(0.08);
}

.image-index {
  position: absolute;
  top: 19px;
  left: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.quote-card {
  position: absolute;
  right: -55px;
  bottom: -36px;
  width: min(290px, 76%);
  padding: 25px 27px;
  color: var(--cream-light);
  background: var(--wine);
  box-shadow: 0 20px 50px rgba(74, 43, 42, 0.22);
}

.quote-card span {
  display: block;
  height: 30px;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 0.8;
  opacity: 0.6;
}

.quote-card p {
  margin: 11px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  line-height: 1.8;
}

.story-timeline {
  padding-top: 25px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 0 0 38px;
}

.timeline-item time {
  position: relative;
  padding-top: 3px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.timeline-item time::after {
  position: absolute;
  top: 12px;
  right: 0;
  width: 5px;
  height: 5px;
  border: 3px solid var(--cream-light);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 1px var(--rose);
  content: "";
}

.timeline-item > div {
  position: relative;
  padding: 0 0 32px 22px;
  border-left: 1px solid var(--line);
}

.timeline-item h3 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.9;
}

.timeline-item:last-child > div {
  border-left-color: transparent;
}

.timeline-item.timeline-now h3 {
  color: var(--wine);
  font-style: italic;
}

.gallery-section {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-auto-rows: 270px;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: 18px;
}

.gallery-item {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #d5c7ba;
  cursor: zoom-in;
  text-align: left;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(0.98);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0, 1), filter 0.5s ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 30, 26, 0.55), transparent 55%);
  content: "";
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.gallery-item:hover img {
  filter: saturate(0.9);
  transform: scale(1.035);
}

.gallery-item:hover::after {
  opacity: 1;
}

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

.gallery-wide {
  grid-column: span 2;
}

.gallery-overlay {
  position: absolute;
  z-index: 1;
  right: 25px;
  bottom: 24px;
  left: 25px;
  color: white;
}

.gallery-overlay small {
  display: block;
  margin-bottom: 8px;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.gallery-overlay strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.28;
}

.gallery-light {
  background: #dec4bb;
  cursor: default;
}

.gallery-light::after {
  display: none;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 20px;
  color: var(--wine-dark);
  text-align: center;
}

.gallery-placeholder i {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 30px;
  font-style: normal;
}

.gallery-placeholder strong {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.gallery-placeholder small {
  margin-top: 15px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 10px;
}

.anniversary {
  position: relative;
  display: grid;
  min-height: 700px;
  overflow: hidden;
  color: var(--cream-light);
  background:
    linear-gradient(rgba(101, 42, 50, 0.93), rgba(101, 42, 50, 0.93)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1800&q=80") center/cover;
  place-items: center;
  text-align: center;
}

.anniversary::after {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(246, 238, 229, 0.16);
  content: "";
  pointer-events: none;
}

.anniversary-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.anniversary-content .eyebrow {
  justify-content: center;
}

.anniversary h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.anniversary h2 em {
  font-weight: 400;
}

.anniversary-date {
  margin: 23px 0 35px;
  color: #e4ccc5;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.24em;
}

.anniversary-clock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 35px);
}

.anniversary-clock > div {
  min-width: 82px;
}

.anniversary-clock strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 74px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 1;
}

.anniversary-clock span {
  display: block;
  margin-top: 10px;
  color: #dbbab5;
  font-size: 7px;
  letter-spacing: 0.2em;
}

.anniversary-clock > i {
  color: rgba(246, 238, 229, 0.35);
  font-family: var(--serif);
  font-size: 34px;
  font-style: normal;
}

.anniversary-note {
  margin: 35px 0 0;
  color: #e0c3bd;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
}

.anniversary-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80vw, 880px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.anniversary-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(246, 238, 229, 0.07);
  border-radius: 50%;
}

.anniversary-rings span:last-child {
  inset: 19%;
  border-color: rgba(246, 238, 229, 0.11);
}

.mini-stats {
  position: absolute;
  z-index: 3;
  bottom: 54px;
  display: flex;
  justify-content: center;
  gap: clamp(35px, 7vw, 100px);
  width: 100%;
}

.mini-stats > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 7px;
  min-width: 100px;
  text-align: left;
}

.mini-stats strong {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
}

.mini-stats span {
  font-size: 9px;
}

.mini-stats small {
  color: #c39d99;
  font-size: 7px;
  letter-spacing: 0.14em;
}

.coupons {
  overflow: hidden;
  background: var(--cream-light);
}

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

.coupon {
  min-height: 390px;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 1200px;
  cursor: pointer;
}

.coupon-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.coupon.is-flipped .coupon-inner {
  transform: rotateY(180deg);
}

.coupon-front,
.coupon-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
  border: 1px solid var(--line);
  background: var(--paper);
  backface-visibility: hidden;
}

.coupon-front::after,
.coupon-back::after {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(151, 62, 72, 0.13);
  content: "";
  pointer-events: none;
}

.coupon:nth-child(2) .coupon-front,
.coupon:nth-child(2) .coupon-back {
  background: #eee1d4;
}

.coupon:nth-child(3) .coupon-front,
.coupon:nth-child(3) .coupon-back {
  background: #d4c5b9;
}

.coupon-back {
  color: var(--cream-light);
  background: var(--wine-dark) !important;
  transform: rotateY(180deg);
}

.coupon-back::after {
  border-color: rgba(246, 238, 229, 0.15);
}

.coupon-no {
  position: absolute;
  top: 24px;
  left: 25px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.coupon-back .coupon-no {
  color: #d0ada9;
}

.coupon-icon {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 25px;
  border: 1px solid rgba(151, 62, 72, 0.25);
  border-radius: 50%;
  place-items: center;
}

.coupon-icon svg {
  width: 45px;
  fill: none;
  stroke: var(--wine);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.coupon-front > strong {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.coupon-front > small,
.coupon-back > small {
  margin-top: 8px;
  color: var(--muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 10px;
}

.coupon-front > em {
  position: absolute;
  bottom: 24px;
  color: var(--wine);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.coupon-back > strong {
  margin: 17px 0 23px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.5;
}

.coupon-back > small {
  color: #d6b7b2;
  line-height: 1.9;
}

.coupon-back b {
  color: var(--cream-light);
  font-weight: 400;
}

.message-section {
  background: var(--cream);
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(430px, 1.2fr);
  gap: clamp(60px, 9vw, 140px);
}

.message-intro > p:not(.eyebrow) {
  max-width: 390px;
  margin: 25px 0 40px;
  color: var(--muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  line-height: 2;
}

.message-quote {
  position: relative;
  max-width: 370px;
  padding: 28px 0 0 45px;
  border-top: 1px solid var(--line);
}

.message-quote span {
  position: absolute;
  top: 25px;
  left: 0;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
}

.message-quote p {
  margin: 0;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
}

.message-panel {
  padding: clamp(30px, 4vw, 50px);
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(67, 48, 39, 0.07);
}

.message-form {
  display: grid;
  gap: 17px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.message-form label {
  position: relative;
}

.message-form label > span,
.modal-card label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.message-form input,
.message-form textarea,
.modal-card input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  color: var(--ink);
  background: transparent;
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  transition: border-color 0.25s ease;
}

.message-form textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.8;
}

.message-form input:focus,
.message-form textarea:focus,
.modal-card input:focus {
  border-color: var(--wine);
}

.message-form > label > small {
  position: absolute;
  right: 0;
  bottom: 5px;
  color: #a59992;
  font-size: 8px;
}

.message-form > label > small b {
  font-weight: 400;
}

.message-form .primary-button {
  justify-self: start;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 20px;
  font-size: 10px;
}

.message-list {
  display: grid;
  max-height: 380px;
  margin-top: 26px;
  padding-right: 8px;
  overflow-y: auto;
}

.message-list::-webkit-scrollbar {
  width: 4px;
}

.message-list::-webkit-scrollbar-thumb {
  background: #d7c4b7;
}

.message-card {
  position: relative;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}

.message-card:first-child {
  padding-top: 0;
}

.message-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.message-card-head strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}

.message-card-head time {
  color: #a79a92;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.message-card p {
  margin: 0;
  color: #554b45;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.9;
  word-break: break-word;
}

.delete-message {
  margin-left: 8px;
  padding: 0;
  border: 0;
  color: #aa9990;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.empty-messages {
  margin: 20px 0;
  color: var(--muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  text-align: center;
}

.site-footer {
  display: grid;
  justify-items: center;
  padding: 75px 30px 45px;
  color: #d3c4ba;
  background: var(--ink);
  text-align: center;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
}

.footer-mark i {
  color: var(--rose);
  font-size: 13px;
  font-style: normal;
}

.site-footer > p:not(.footer-mark) {
  margin: 15px 0 40px;
  color: #8e837c;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.site-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.site-footer a span {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(246, 238, 229, 0.18);
  border-radius: 50%;
  place-items: center;
  transition: background 0.25s ease;
}

.site-footer a:hover span {
  color: var(--ink);
  background: var(--cream);
}

.lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  padding: 35px;
  background: rgba(37, 29, 26, 0.92);
  visibility: hidden;
  opacity: 0;
  backdrop-filter: blur(12px);
  place-items: center;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  max-width: min(1000px, 85vw);
}

.lightbox-content img {
  max-height: 76vh;
  object-fit: contain;
}

.lightbox-content p {
  margin: 16px 0 0;
  color: #e9dfd7;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  text-align: center;
}

.lightbox-close,
.modal-close {
  position: absolute;
  z-index: 1;
  top: 25px;
  right: 30px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: white;
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.modal {
  position: fixed;
  z-index: 250;
  inset: 0;
  display: grid;
  visibility: hidden;
  opacity: 0;
  place-items: center;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 29, 26, 0.65);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(650px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  padding: clamp(35px, 5vw, 60px);
  overflow-y: auto;
  background: var(--cream-light);
  transform: translateY(15px);
  transition: transform 0.35s ease;
}

.modal.is-open .modal-card {
  transform: translateY(0);
}

.modal-close {
  top: 18px;
  right: 18px;
  border-color: var(--line);
  color: var(--ink);
}

.modal-card h2 {
  font-size: clamp(36px, 5vw, 54px);
}

.modal-intro {
  margin: 12px 0 30px;
  color: var(--muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
}

.modal-actions .primary-button {
  min-height: 46px;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.text-button:hover {
  color: var(--wine);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.gallery-grid .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.gallery-grid .reveal:nth-child(4) {
  transition-delay: 0.2s;
}

.coupon-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.coupon-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@keyframes stampFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes scrollLine {
  0% { transform: translateY(-110%); }
  55%, 100% { transform: translateY(210%); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    padding-right: 55px;
    padding-left: 55px;
  }

  .hero-visual {
    height: 580px;
  }

  .counter-inner {
    grid-template-columns: 0.55fr 1.8fr;
  }

  .counter-note {
    display: none;
  }

  .story-layout {
    gap: 70px;
  }

  .quote-card {
    right: -25px;
  }

  .message-layout {
    gap: 65px;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 18px 24px;
  }

  .nav-links {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    justify-items: end;
    gap: 16px;
    width: 100%;
    padding: 92px 30px 34px;
    background: rgba(246, 238, 229, 0.98);
    box-shadow: 0 10px 30px rgba(55, 40, 34, 0.09);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-family: var(--serif);
    font-size: 23px;
  }

  .menu-button {
    display: grid;
  }

  .menu-button.is-open span:first-child {
    transform: translateY(2.5px) rotate(45deg);
  }

  .menu-button.is-open span:last-child {
    transform: translateY(-2.5px) rotate(-45deg);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 140px 28px 105px;
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    max-width: none;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(70px, 17vw, 110px);
  }

  .hero-visual {
    width: min(100%, 550px);
    height: 650px;
    max-height: none;
    margin: 65px auto 0;
  }

  .arch-photo {
    right: 2%;
    width: 80%;
  }

  .polaroid {
    left: 1%;
    width: 38%;
  }

  .handwritten-note {
    right: 0;
  }

  .scroll-cue {
    display: none;
  }

  .counter-inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 60px 28px;
  }

  .time-grid {
    max-width: 550px;
  }

  .section {
    padding: 100px 28px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }

  .section-lead {
    max-width: 500px;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-image > img {
    height: 620px;
  }

  .quote-card {
    right: 15px;
  }

  .story-timeline {
    max-width: 620px;
    padding-top: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .anniversary {
    min-height: 720px;
    padding-bottom: 120px;
  }

  .mini-stats {
    gap: 24px;
    bottom: 45px;
  }

  .mini-stats > div {
    min-width: 80px;
  }

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

  .coupon,
  .coupon-inner {
    min-height: 360px;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .monogram {
    font-size: 18px;
  }

  .icon-button,
  .menu-button {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 125px 20px 85px;
  }

  .hero h1 {
    font-size: clamp(59px, 19vw, 88px);
    letter-spacing: -0.075em;
  }

  .hero-intro {
    margin-top: 28px;
    font-size: 14px;
  }

  .hero-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
    max-width: 310px;
    margin-bottom: 30px;
    line-height: 1.7;
  }

  .hero-visual {
    height: 490px;
    margin-top: 45px;
  }

  .arch-photo {
    height: 87%;
    border-radius: 170px 170px 5px 5px;
  }

  .polaroid {
    left: -1%;
    width: 43%;
  }

  .hero-stamp {
    top: 8%;
    left: 0;
    width: 80px;
    height: 80px;
  }

  .handwritten-note {
    right: -4px;
    bottom: 4%;
    font-size: 19px;
  }

  .counter-inner {
    padding: 48px 20px;
  }

  .time-grid {
    gap: 14px;
  }

  .time-grid > div {
    display: block;
  }

  .time-grid strong {
    display: block;
    font-size: clamp(30px, 9vw, 40px);
  }

  .time-grid span {
    display: block;
    margin-top: 6px;
  }

  .time-grid > div:not(:last-child)::after {
    top: 2px;
    right: -9px;
    font-size: 21px;
  }

  .section {
    padding: 82px 20px;
  }

  .section-heading {
    margin-bottom: 46px;
  }

  .section-heading h2,
  .message-intro h2 {
    font-size: clamp(41px, 13vw, 58px);
  }

  .story {
    background: var(--cream-light);
  }

  .story-image > img {
    height: 460px;
  }

  .quote-card {
    right: 12px;
    bottom: -27px;
    width: 83%;
  }

  .story-timeline {
    padding-top: 28px;
  }

  .timeline-item {
    grid-template-columns: 82px 1fr;
    gap: 13px;
  }

  .timeline-item > div {
    padding-left: 15px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item {
    min-height: 360px;
  }

  .gallery-tall {
    grid-row: auto;
  }

  .gallery-wide {
    grid-column: auto;
  }

  .gallery-light {
    min-height: 270px;
  }

  .anniversary {
    min-height: 680px;
    padding: 90px 20px 155px;
  }

  .anniversary::after {
    inset: 12px;
  }

  .anniversary h2 {
    font-size: clamp(43px, 13vw, 56px);
  }

  .anniversary-clock {
    gap: 7px;
  }

  .anniversary-clock > div {
    min-width: 58px;
  }

  .anniversary-clock strong {
    font-size: 38px;
  }

  .anniversary-clock > i {
    font-size: 23px;
  }

  .anniversary-clock span {
    font-size: 6px;
    letter-spacing: 0.12em;
  }

  .mini-stats {
    bottom: 38px;
    flex-wrap: wrap;
    gap: 20px;
  }

  .mini-stats > div {
    min-width: 72px;
  }

  .mini-stats strong {
    font-size: 25px;
  }

  .coupon,
  .coupon-inner {
    min-height: 340px;
  }

  .message-panel {
    padding: 30px 21px;
  }

  .message-form .primary-button {
    width: 100%;
    justify-content: space-between;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .modal-card {
    padding: 38px 24px 30px;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 20px;
  }

  .modal-actions .primary-button {
    width: 100%;
  }

  .text-button {
    align-self: flex-start;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
