/* =========================================================
   Our Story — public site
   A warm, editorial scrapbook for two.
   ========================================================= */

:root {
  --paper: #f5efe5;
  --paper-soft: #fbf8f2;
  --paper-deep: #e9dece;
  --ink: #2d2a25;
  --ink-soft: #4e4941;
  --muted: #81796d;
  --terracotta: #b7614a;
  --terracotta-deep: #934b38;
  --terracotta-soft: #d9a08e;
  --sage: #6e7d63;
  --sage-deep: #4e5a48;
  --gold: #c8a363;
  --line: rgba(45, 42, 37, 0.14);
  --line-strong: rgba(45, 42, 37, 0.24);
  --white: #fffdf9;
  --shadow-soft: 0 22px 60px rgba(69, 51, 36, 0.13);
  --shadow-photo: 0 18px 44px rgba(55, 39, 27, 0.22);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --script: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  --page-pad: clamp(22px, 5vw, 78px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 252, 245, 0.9), transparent 27%),
    radial-gradient(circle at 92% 42%, rgba(231, 209, 185, 0.4), transparent 28%),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  color: var(--white);
  background: var(--terracotta);
}

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
.gallery-open,
.gallery-item,
.album-card,
.timeline-media {
  touch-action: manipulation;
}

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

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

/* ---------- demo banner ---------- */

.demo-banner {
  position: relative;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 7px 48px;
  color: #f8eee0;
  background: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.demo-banner[hidden] {
  display: none;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 163, 99, 0.17);
}

.demo-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(248, 238, 224, 0.5);
  color: #fff8ed;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.demo-link:hover {
  border-color: #fff8ed;
}

.demo-close {
  position: absolute;
  right: 15px;
  padding: 0 5px;
  border: 0;
  color: rgba(248, 238, 224, 0.65);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid transparent;
  transition:
    height 0.35s var(--ease),
    background 0.35s,
    border-color 0.35s;
}

.site-header.scrolled {
  height: 72px;
  border-color: var(--line);
  background: rgba(245, 239, 229, 0.9);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-rings {
  position: relative;
  display: inline-block;
  width: 43px;
  height: 28px;
}

.brand-rings span {
  position: absolute;
  top: 0;
  width: 27px;
  height: 27px;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
}

.brand-rings span:first-child {
  left: 0;
}

.brand-rings span:last-child {
  right: 0;
  border-color: var(--sage);
}

.brand-rings.light span:first-child {
  border-color: #f4d4c7;
}

.brand-rings.light span:last-child {
  border-color: #dfe6d6;
}

.brand-rings.small {
  width: 35px;
  height: 23px;
  transform: scale(0.82);
  transform-origin: left center;
}

.brand-word {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-word strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.brand-word small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.1vw, 46px);
}

.site-nav > a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.site-nav > a:not(.nav-admin)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav > a:hover::after,
.site-nav > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
}

.nav-admin svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.nav-admin:hover {
  border-color: var(--ink);
  color: var(--paper-soft);
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 12px 10px;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s;
}

/* ---------- shared buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  transition:
    transform 0.3s var(--ease),
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.3s;
}

.btn svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  color: #fff9ef;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(45, 42, 37, 0.18);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(147, 75, 56, 0.24);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 253, 249, 0.5);
}

.btn-light {
  color: var(--ink);
  background: var(--paper-soft);
}

.btn-light:hover {
  color: var(--white);
  background: var(--terracotta);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition:
    color 0.25s,
    border-color 0.25s,
    gap 0.25s;
}

.text-link span {
  transition: transform 0.25s;
}

.text-link:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}

.text-link:hover span {
  transform: translateX(4px);
}

.mobile-only {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  min-height: calc(100vh - 124px);
  max-width: 1540px;
  margin: 0 auto;
  padding: 56px var(--page-pad) 96px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 6%;
  right: -12%;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(45, 42, 37, 0.065);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 18%;
  right: -4%;
  width: 38vw;
  height: 38vw;
  border: 1px dashed rgba(45, 42, 37, 0.07);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: hero-in 0.9s 0.08s both var(--ease);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.eyebrow-sep {
  opacity: 0.5;
}

.hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.08em;
  margin-left: -0.05em;
  font-size: clamp(70px, 8.8vw, 138px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-title.names-long {
  font-size: clamp(62px, 6.9vw, 108px);
}

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

.name-line-right {
  position: relative;
}

.name-line-right::after {
  position: absolute;
  right: 0.06em;
  bottom: -0.1em;
  left: 0.04em;
  height: 0.07em;
  border-radius: 50%;
  background: var(--terracotta);
  content: "";
  opacity: 0.55;
  transform: rotate(-2deg);
}

.amp-line {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-direction: column;
  margin: 0 0.02em;
  transform: translateY(-0.06em);
}

.amp-mark {
  color: var(--terracotta);
  font-family: var(--script);
  font-size: 0.52em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.title-flourish {
  display: block;
  width: 0.8em;
  height: 0.1em;
  margin-top: 0.08em;
  border-top: 1px solid var(--terracotta);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-tagline {
  max-width: 520px;
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 25px);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.hero-note {
  max-width: 440px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-meta {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 38px;
}

.days-card {
  position: relative;
  min-width: 204px;
  padding: 20px 25px 18px;
  overflow: hidden;
  border-radius: 3px;
  color: #f9eee0;
  background: var(--ink);
  box-shadow: 0 18px 38px rgba(45, 42, 37, 0.16);
}

.days-card::after {
  position: absolute;
  top: -28px;
  right: -24px;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.days-label,
.tiny-label {
  display: block;
  color: rgba(249, 238, 224, 0.62);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.days-number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 2px;
}

.days-number strong {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.days-number span {
  font-family: var(--serif);
  font-size: 14px;
}

.days-since {
  color: rgba(249, 238, 224, 0.45);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.next-anniversary {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 164px;
  padding: 8px 0 8px 20px;
  border-left: 1px solid var(--line-strong);
}

.next-anniversary .tiny-label {
  color: var(--muted);
}

.next-anniversary div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 3px 0;
}

.next-anniversary strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.next-anniversary div span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
}

.tiny-note {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
}

.hero-collage {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: clamp(480px, 51vw, 680px);
  margin-left: auto;
  animation: collage-in 1.1s 0.2s both var(--ease);
}

@keyframes collage-in {
  from {
    opacity: 0;
    transform: translate3d(16px, 24px, 0) rotate(1deg);
  }
}

.polaroid {
  position: absolute;
  padding: 12px 12px 46px;
  background: var(--white);
  box-shadow: var(--shadow-photo);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid figcaption {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  color: var(--ink-soft);
  font-family: var(--script);
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
}

.polaroid-a {
  top: 5%;
  right: 2%;
  width: 64%;
  height: 54%;
  transform: rotate(4.2deg);
  z-index: 1;
}

.polaroid-b {
  bottom: 3%;
  left: 0;
  width: 50%;
  height: 55%;
  transform: rotate(-5.2deg);
  z-index: 2;
}

.polaroid-c {
  right: 1%;
  bottom: 5%;
  width: 39%;
  height: 35%;
  padding-bottom: 36px;
  transform: rotate(2.6deg);
  z-index: 3;
}

.polaroid-c figcaption {
  font-size: 14px;
}

.polaroid:hover {
  z-index: 5;
  box-shadow: 0 28px 60px rgba(55, 39, 27, 0.28);
}

.polaroid-a:hover {
  transform: rotate(2deg) scale(1.025);
}

.polaroid-b:hover {
  transform: rotate(-3deg) scale(1.025);
}

.polaroid-c:hover {
  transform: rotate(1deg) scale(1.025);
}

.tape {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 50%;
  width: 88px;
  height: 28px;
  background: rgba(227, 203, 159, 0.73);
  box-shadow: 0 2px 4px rgba(69, 52, 37, 0.06);
  transform: translateX(-50%) rotate(-2deg);
  backdrop-filter: blur(1px);
}

.tape::before,
.tape::after {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  content: "";
}

.tape::before {
  left: 8px;
}

.tape::after {
  right: 8px;
}

.tape-small {
  width: 64px;
  height: 22px;
}

.round-stamp {
  position: absolute;
  z-index: 4;
  right: 49%;
  bottom: 38%;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: 50%;
  color: var(--terracotta);
  background: rgba(245, 239, 229, 0.93);
  box-shadow: 0 8px 24px rgba(69, 51, 36, 0.1);
  transform: rotate(-12deg);
}

.stamp-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 24s linear infinite;
}

.stamp-ring text {
  fill: var(--terracotta-deep);
  font-family: var(--sans);
  font-size: 9.2px;
  letter-spacing: 1.5px;
}

.stamp-heart {
  font-size: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.handwritten {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: -2%;
  color: var(--terracotta-deep);
  font-family: var(--script);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 0.92;
  text-align: right;
  transform: rotate(-7deg);
}

.hero-ornament {
  position: absolute;
  z-index: 0;
  color: var(--gold);
  pointer-events: none;
}

.ornament-star {
  top: 7%;
  left: 42%;
  width: 30px;
  opacity: 0.72;
  animation: twinkle 5s ease-in-out infinite;
}

.ornament-star svg {
  fill: currentColor;
}

.ornament-loop {
  top: 24%;
  left: 39%;
  width: 92px;
  color: var(--terracotta);
  opacity: 0.22;
}

.ornament-loop svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

@keyframes twinkle {
  50% {
    opacity: 0.28;
    transform: rotate(10deg) scale(0.9);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: var(--page-pad);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

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

.scroll-cue i::after {
  display: block;
  width: 1px;
  height: 20px;
  background: var(--terracotta);
  content: "";
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateY(-22px);
  }
  100% {
    transform: translateY(48px);
  }
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  z-index: 3;
  width: calc(100% + 40px);
  margin: 10px -20px 0;
  padding: 13px 0;
  overflow: hidden;
  color: #f5ead9;
  background: var(--ink);
  transform: rotate(-0.7deg);
}

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

.marquee-track span {
  padding: 0 27px;
  font-size: 9px;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
}

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

/* ---------- section shared ---------- */

.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(100px, 12vw, 170px) var(--page-pad);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(54px, 6vw, 88px);
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.23em;
}

.section-kicker span {
  padding: 0 5px;
  opacity: 0.4;
}

.section-head h2,
.about-copy h2 {
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-lead {
  padding-bottom: 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.07em;
  line-height: 2;
  text-align: right;
}

/* ---------- timeline ---------- */

.story-section {
  padding-bottom: clamp(80px, 9vw, 120px);
}

.timeline-shell {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 8px;
  bottom: 10px;
  left: 123px;
  width: 1px;
  background:
    linear-gradient(to bottom, transparent, var(--line-strong) 6%, var(--line-strong) 94%, transparent);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(52px, 7vw, 92px);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 46px;
}

.timeline-date {
  padding-top: 22px;
  text-align: right;
}

.timeline-date span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.timeline-date strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.timeline-date small {
  display: block;
  margin-top: 8px;
  color: var(--terracotta);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.timeline-dot {
  position: absolute;
  top: 32px;
  left: 118px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 1px var(--terracotta);
}

.timeline-card {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(45, 42, 37, 0.09);
  border-radius: 2px;
  background: rgba(255, 253, 249, 0.64);
  box-shadow: 0 10px 40px rgba(69, 51, 36, 0.055);
  transition:
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease),
    border-color 0.35s;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.76fr);
}

.timeline-item:nth-child(even) .timeline-media {
  order: 2;
}

.timeline-item:hover .timeline-card {
  border-color: rgba(45, 42, 37, 0.16);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.timeline-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper-deep);
}

.timeline-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.timeline-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.9s var(--ease),
    transform 1s var(--ease);
}

.timeline-slide.active {
  opacity: 1;
}

.timeline-slide-ui {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.timeline-slide-count {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff8ed;
  background: rgba(28, 23, 18, 0.54);
  font-size: 8px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.timeline-slide-auto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(255, 248, 237, 0.72);
  background: rgba(28, 23, 18, 0.36);
  font-size: 6px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(5px);
}

.timeline-slide-auto::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f0c58f;
  content: "";
  animation: slide-auto-pulse 2s ease-in-out infinite;
}

@keyframes slide-auto-pulse {
  50% {
    opacity: 0.28;
    transform: scale(0.7);
  }
}

.timeline-slide-hint {
  margin-left: auto;
  color: rgba(255, 248, 237, 0.72);
  font-size: 8px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.25s;
}

.timeline-media:hover .timeline-slide-hint,
.timeline-media:focus-within .timeline-slide-hint {
  opacity: 1;
}

.timeline-expand {
  display: grid;
  width: 32px;
  height: 32px;
  margin-left: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff8ed;
  background: rgba(28, 23, 18, 0.42);
  pointer-events: auto;
  backdrop-filter: blur(6px);
  transition:
    background 0.25s,
    transform 0.25s var(--ease);
}

.timeline-expand:hover {
  background: rgba(28, 23, 18, 0.7);
  transform: scale(1.05);
}

.timeline-expand svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.timeline-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.timeline-item:hover .timeline-media img {
  transform: scale(1.035);
}

.timeline-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50, 38, 26, 0.04), transparent 50%);
  content: "";
}

.timeline-media.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 320px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 45%),
    var(--paper-deep);
}

.timeline-media.empty::before {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 54px;
  content: "♡";
  opacity: 0.5;
}

.timeline-media.empty::after {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  content: "第一张照片的位置";
  opacity: 0.72;
}

.timeline-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.2vw, 48px);
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(183, 97, 74, 0.27);
  border-radius: 999px;
  color: var(--terracotta-deep);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.category-chip::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.timeline-content h3 {
  margin-top: 18px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.timeline-text {
  display: -webkit-box;
  margin-top: 14px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.95;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.timeline-text.expanded {
  display: block;
  overflow: visible;
}

.timeline-more {
  margin-top: 10px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--terracotta-deep);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.timeline-more:hover {
  border-color: var(--terracotta);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.timeline-meta svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.timeline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 13px;
  margin-top: 18px;
}

.timeline-album {
  padding: 5px 10px;
  border: 1px dashed rgba(183, 97, 74, 0.3);
  border-radius: 999px;
  color: var(--terracotta-deep);
  background: rgba(183, 97, 74, 0.045);
  font-size: 9px;
  letter-spacing: 0.04em;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.25s var(--ease);
}

.timeline-album:hover {
  border-color: var(--terracotta);
  background: rgba(183, 97, 74, 0.09);
  transform: translateY(-1px);
}

.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.5);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1;
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s,
    transform 0.25s var(--ease);
}

.like-button:hover {
  border-color: rgba(183, 97, 74, 0.45);
  color: var(--terracotta-deep);
  transform: translateY(-1px);
}

.like-button .like-heart {
  color: var(--terracotta);
  font-size: 12px;
  transition: transform 0.3s var(--ease);
}

.like-button.liked {
  border-color: rgba(183, 97, 74, 0.38);
  color: var(--terracotta-deep);
  background: rgba(183, 97, 74, 0.08);
}

.like-button.liked .like-heart {
  color: var(--terracotta);
  transform: scale(1.15);
}

.like-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.timeline-like {
  min-height: 29px;
  padding: 0 11px;
}

.story-empty,
.album-empty {
  padding: 70px 30px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.story-empty[hidden],
.album-empty[hidden] {
  display: none;
}

.empty-mark {
  display: block;
  margin-bottom: 15px;
  color: var(--terracotta);
  font-size: 26px;
}

.story-empty h3,
.album-empty h3 {
  font-size: 27px;
  font-weight: 500;
}

.story-empty p,
.album-empty p {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- gallery ---------- */

.gallery-section {
  position: relative;
  max-width: none;
  padding-right: max(var(--page-pad), calc((100vw - 1400px) / 2 + var(--page-pad)));
  padding-left: max(var(--page-pad), calc((100vw - 1400px) / 2 + var(--page-pad)));
  background:
    linear-gradient(rgba(45, 42, 37, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 42, 37, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(233, 222, 206, 0.36), rgba(245, 239, 229, 0));
  background-size: 80px 80px, 80px 80px, 100% 100%;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.album-shelf {
  display: grid;
  gap: 13px;
  margin-bottom: 35px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.album-shelf[hidden] {
  display: none;
}

.album-card {
  display: grid;
  align-items: center;
  gap: 13px;
  min-height: 105px;
  padding: 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.52);
  grid-template-columns: 84px minmax(0, 1fr);
  text-align: left;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s,
    transform 0.25s var(--ease);
}

.album-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 253, 249, 0.84);
  box-shadow: 0 12px 30px rgba(69, 51, 36, 0.07);
  transform: translateY(-2px);
}

.album-card.active {
  border-color: var(--ink);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 12px 30px rgba(69, 51, 36, 0.09);
}

.album-card-cover {
  display: grid;
  width: 84px;
  height: 84px;
  overflow: hidden;
  place-items: center;
  color: var(--terracotta);
  background: var(--paper-deep);
}

.album-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.album-card:hover .album-card-cover img {
  transform: scale(1.04);
}

.album-card-cover.empty {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.6), transparent 45%),
    var(--paper-deep);
  font-family: var(--serif);
  font-size: 25px;
}

.album-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 78px;
}

.album-card-name {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-desc {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.album-card-meta {
  margin-top: auto;
  padding-top: 6px;
  color: var(--terracotta);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.filter-chip {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.35);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition:
    color 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.filter-chip span {
  margin-left: 4px;
  opacity: 0.55;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-chip.active {
  border-color: var(--ink);
  color: var(--paper-soft);
  background: var(--ink);
}

.gallery-grid {
  column-count: 3;
  column-gap: clamp(14px, 1.8vw, 26px);
  transition: opacity 0.28s ease;
}

.gallery-grid.is-rotating {
  opacity: 0.3;
}

.gallery-grid.count-1 {
  max-width: 440px;
  margin-right: auto;
  margin-left: auto;
  column-count: 1;
}

.gallery-grid.count-2 {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  column-count: 2;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(14px, 1.8vw, 26px);
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 2px;
  background: var(--paper-deep);
  box-shadow: 0 4px 18px rgba(69, 51, 36, 0.06);
  cursor: zoom-in;
  text-align: left;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.gallery-open:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition:
    transform 0.9s var(--ease),
    filter 0.5s;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 20, 16, 0.65), transparent 42%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s;
}

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

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

.gallery-caption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: #fffaf2;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s var(--ease);
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: none;
}

.gallery-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.gallery-caption span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 250, 242, 0.7);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.favorite-mark {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--terracotta-deep);
  background: rgba(255, 253, 249, 0.87);
  font-size: 12px;
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.gallery-like {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  min-height: 27px;
  padding: 0 9px;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fffaf2;
  background: rgba(31, 26, 21, 0.26);
  font-size: 9px;
  backdrop-filter: blur(6px);
  opacity: 0.82;
}

.gallery-item:hover .gallery-like,
.gallery-item:focus-within .gallery-like,
.gallery-like.liked {
  opacity: 1;
}

.gallery-like:hover {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(31, 26, 21, 0.44);
  transform: none;
}

.gallery-like .like-heart {
  color: #ffd7c8;
}

.gallery-like.liked {
  color: #fff8ed;
  background: rgba(183, 97, 74, 0.8);
}

.gallery-like.liked .like-heart {
  color: #fff;
}

.gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.gallery-count {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.gallery-preview-hint {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.album-empty {
  margin-top: 30px;
  padding: 60px 30px 70px;
  background: rgba(255, 253, 249, 0.34);
}

.empty-polaroids {
  position: relative;
  width: 140px;
  height: 82px;
  margin: 0 auto 20px;
}

.empty-polaroids span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 58px;
  height: 76px;
  border: 6px solid var(--white);
  border-bottom-width: 17px;
  background: var(--paper-deep);
  box-shadow: 0 6px 15px rgba(69, 51, 36, 0.08);
}

.empty-polaroids span:nth-child(1) {
  transform: translateX(-72%) rotate(-10deg);
}

.empty-polaroids span:nth-child(2) {
  z-index: 2;
  transform: translateX(-50%) rotate(1deg);
}

.empty-polaroids span:nth-child(3) {
  transform: translateX(-25%) rotate(11deg);
}

/* ---------- about ---------- */

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(100px, 12vw, 170px) var(--page-pad);
}

.about-visual {
  position: relative;
  min-height: 600px;
}

.about-photo {
  position: absolute;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow-photo);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-one {
  top: 2%;
  left: 3%;
  width: 55%;
  height: 58%;
  transform: rotate(-4deg);
}

.about-photo-two {
  right: 4%;
  bottom: 5%;
  width: 52%;
  height: 48%;
  transform: rotate(3.4deg);
}

.about-visual::before {
  position: absolute;
  top: 43%;
  left: 49%;
  width: 54%;
  height: 1px;
  background: var(--line-strong);
  content: "";
  transform: rotate(22deg);
}

.about-ticket {
  position: absolute;
  z-index: 3;
  top: 10%;
  right: 2%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 150px;
  height: 196px;
  border: 1px solid rgba(45, 42, 37, 0.2);
  color: var(--terracotta-deep);
  background: var(--paper-soft);
  box-shadow: 0 12px 30px rgba(69, 51, 36, 0.12);
  text-align: center;
  transform: rotate(8deg);
}

.about-ticket::before {
  position: absolute;
  top: 9px;
  right: 9px;
  bottom: 9px;
  left: 9px;
  border: 1px dashed rgba(183, 97, 74, 0.35);
  content: "";
}

.about-ticket span,
.about-ticket small {
  font-size: 7px;
  letter-spacing: 0.19em;
}

.about-ticket strong {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.about-flower {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 2%;
  width: 72px;
  color: var(--sage);
  transform: rotate(-7deg);
}

.about-flower svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.about-flower circle {
  fill: rgba(245, 239, 229, 0.7);
}

.about-copy h2 {
  margin-bottom: 32px;
}

.about-copy h2 em {
  color: var(--terracotta);
  font-style: normal;
}

.about-text {
  max-width: 590px;
  color: var(--ink-soft);
  font-size: 13.5px;
  letter-spacing: 0.035em;
  line-height: 2.1;
  white-space: pre-line;
}

.about-copy blockquote {
  position: relative;
  max-width: 540px;
  margin: 33px 0 39px;
  padding: 20px 0 20px 25px;
  border-left: 1px solid var(--terracotta);
  color: var(--terracotta-deep);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  max-width: 590px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* ---------- closing ---------- */

.guestbook-section {
  position: relative;
  padding: clamp(100px, 12vw, 170px) 0;
  background:
    radial-gradient(circle at 6% 8%, rgba(255, 252, 245, 0.72), transparent 26%),
    linear-gradient(180deg, rgba(233, 222, 206, 0.35), rgba(245, 239, 229, 0.8));
  border-top: 1px solid var(--line);
}

.guestbook-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.guestbook-grid {
  display: grid;
  align-items: start;
  gap: clamp(36px, 5vw, 76px);
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.guestbook-aside {
  position: sticky;
  top: 105px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-like-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
  color: #fff6e8;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 215, 173, 0.22), transparent 27%),
    linear-gradient(155deg, #b7614a, #8f4637 80%);
  box-shadow: 0 20px 48px rgba(115, 57, 43, 0.19);
}

.site-like-card::before {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.site-like-kicker {
  color: rgba(255, 246, 232, 0.46);
  font-size: 7px;
  letter-spacing: 0.25em;
}

.site-like-heart {
  display: block;
  margin: 27px 0 13px;
  color: #f4c8ae;
  font-size: 47px;
  line-height: 0.8;
  text-shadow: 0 8px 22px rgba(90, 34, 22, 0.24);
}

.site-like-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 39px);
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.site-like-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  margin-top: 27px;
  padding: 0 17px;
  border: 1px solid rgba(255, 246, 232, 0.27);
  border-radius: 999px;
  color: #fff6e8;
  background: rgba(255, 246, 232, 0.1);
  font-size: 11px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  transition:
    color 0.25s,
    background 0.25s,
    border-color 0.25s,
    transform 0.25s var(--ease);
}

.site-like-button strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.site-like-button .like-heart {
  color: #ffd6c1;
  font-size: 15px;
}

.site-like-button:hover {
  border-color: rgba(255, 246, 232, 0.55);
  background: rgba(255, 246, 232, 0.17);
  transform: translateY(-1px);
}

.site-like-button.liked {
  border-color: #fff6e8;
  color: var(--terracotta-deep);
  background: #fff6e8;
}

.site-like-button.liked .like-heart {
  color: var(--terracotta);
}

.site-like-note {
  position: relative;
  z-index: 2;
  margin-top: 17px;
  color: rgba(255, 246, 232, 0.55);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.guestbook-note {
  padding: 23px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.45);
}

.guestbook-note > span {
  display: block;
  margin-bottom: 8px;
  color: var(--terracotta);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.guestbook-note p {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.8;
}

.guestbook-small {
  margin-top: 8px;
  opacity: 0.72;
}

.guestbook-board {
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.6);
  box-shadow: 0 18px 50px rgba(69, 51, 36, 0.055);
}

.comment-form {
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.comment-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.comment-form-head p {
  margin-bottom: 4px;
  color: var(--terracotta);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.comment-form-head h3 {
  font-size: 23px;
  font-weight: 500;
}

.comment-form-head > span {
  padding-top: 5px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.comment-form-row {
  display: grid;
  align-items: end;
  gap: 17px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.comment-form-row .field {
  margin-bottom: 14px;
}

.comment-form-hint {
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.comment-form .field {
  margin-bottom: 14px;
}

.comment-form textarea {
  min-height: 102px;
  resize: vertical;
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.comment-form-foot > span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.comment-form-foot .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 10px;
}

.comment-alert {
  margin-top: 14px;
  padding: 9px 12px;
  border-left: 2px solid var(--terracotta);
  color: var(--terracotta-deep);
  background: rgba(183, 97, 74, 0.07);
  font-size: 9.5px;
  line-height: 1.6;
}

.comment-list {
  max-height: 590px;
  margin-top: 4px;
  padding-right: 7px;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.comment-card {
  display: grid;
  gap: 12px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 38px minmax(0, 1fr);
}

.comment-card:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.comment-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff8ed;
  background: var(--sage);
  font-family: var(--serif);
  font-size: 14px;
}

.comment-card:nth-child(3n + 2) .comment-avatar {
  background: var(--terracotta);
}

.comment-card:nth-child(3n) .comment-avatar {
  color: var(--ink);
  background: var(--gold);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 13px;
}

.comment-meta strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.comment-meta time {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.comment-text {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.85;
  white-space: pre-line;
  word-break: break-word;
}

.comment-empty {
  padding: 42px 15px 28px;
  text-align: center;
}

.comment-empty > span {
  color: var(--gold);
  font-size: 18px;
}

.comment-empty h3 {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 500;
}

.comment-empty p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.closing {
  position: relative;
  overflow: hidden;
  color: #f6ecdc;
  background:
    radial-gradient(circle at 14% 56%, rgba(200, 163, 99, 0.15), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(183, 97, 74, 0.22), transparent 30%),
    var(--ink);
}

.closing::before {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.closing::after {
  position: absolute;
  top: -170px;
  left: 50%;
  width: 460px;
  height: 460px;
  border: 1px dashed rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.closing-inner {
  position: relative;
  z-index: 2;
  padding: clamp(100px, 12vw, 160px) var(--page-pad);
  text-align: center;
}

.closing-star {
  color: var(--gold);
  font-size: 21px;
}

.closing-inner > p {
  margin: 16px 0 23px;
  color: rgba(246, 236, 220, 0.45);
  font-size: 9px;
  letter-spacing: 0.35em;
}

.closing h2 {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.closing-doodle {
  position: absolute;
  right: 5%;
  bottom: 14%;
  width: 220px;
  color: var(--gold);
  opacity: 0.18;
}

.closing-doodle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--page-pad);
  color: var(--muted);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f3e8d7;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-since {
  color: rgba(246, 236, 220, 0.4);
}

/* ---------- lightbox ---------- */

.lightbox {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(24, 20, 16, 0.9);
  backdrop-filter: blur(12px);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 44px 100px;
  color: #f8efe1;
}

.lightbox figure {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(1080px, 86vw);
  max-width: min(1080px, 86vw);
}

.lightbox-image-wrap {
  display: grid;
  width: 100%;
  max-height: 72vh;
  place-items: center;
}

.lightbox-image-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: 860px;
  margin-top: 22px;
}

.lightbox h3 {
  font-size: 23px;
  font-weight: 500;
}

.lightbox figcaption p {
  max-width: 600px;
  margin-top: 5px;
  color: rgba(248, 239, 225, 0.62);
  font-size: 12px;
  line-height: 1.7;
}

.lightbox-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  color: rgba(248, 239, 225, 0.48);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.lightbox-meta span:last-child,
#lightboxCounter {
  color: var(--gold);
}

.lightbox-original {
  color: rgba(248, 239, 225, 0.55);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-color: rgba(248, 239, 225, 0.24);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.lightbox-original:hover {
  color: #fff8ed;
}

.lightbox-like {
  min-height: 31px;
  margin-top: 8px;
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(248, 239, 225, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.lightbox-like:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff8ed;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-like.liked {
  border-color: rgba(255, 211, 194, 0.4);
  color: #ffe4d5;
  background: rgba(183, 97, 74, 0.28);
}

.lightbox-like .like-heart {
  color: #f1b09b;
}

.lightbox-close {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 31px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  color: #f8efe1;
  background: rgba(255, 255, 255, 0.03);
  font-size: 25px;
  font-weight: 200;
  line-height: 1;
  transition:
    background 0.25s,
    transform 0.25s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #f8efe1;
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-50%);
  transition:
    background 0.25s,
    border-color 0.25s;
}

.lightbox-nav:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.lightbox-nav svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.lightbox-nav.prev {
  left: 28px;
}

.lightbox-nav.next {
  right: 28px;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

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

/* ---------- setup ---------- */

.setup-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 24px;
  overflow: auto;
  place-items: center;
  background: rgba(35, 30, 25, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.setup-overlay[hidden] {
  display: none;
}

.setup-shell {
  position: relative;
  display: grid;
  width: min(1080px, 100%);
  min-height: 700px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-soft);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.36);
  grid-template-columns: 40% 60%;
  animation: setup-in 0.55s var(--ease);
}

@keyframes setup-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
}

.setup-close {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.7);
  font-size: 23px;
  line-height: 1;
}

.setup-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  overflow: hidden;
  color: #f7e9d8;
  background:
    radial-gradient(circle at 80% 4%, rgba(255, 226, 183, 0.21), transparent 32%),
    linear-gradient(160deg, #a95540, #7d3c31 80%);
}

.setup-aside::after {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.setup-aside-top {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 8px;
  letter-spacing: 0.23em;
}

.setup-aside-copy {
  position: relative;
  z-index: 2;
  margin-top: 62px;
}

.script-line {
  margin-bottom: 12px;
  color: #f2c9b6;
  font-family: var(--script);
  font-size: 31px;
  line-height: 1;
  transform: rotate(-3deg);
}

.setup-aside h2 {
  font-size: clamp(38px, 4vw, 53px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.setup-aside h2 em {
  color: #f4d4a8;
  font-style: normal;
}

.setup-aside-copy > p:last-child {
  margin-top: 22px;
  color: rgba(247, 233, 216, 0.65);
  font-size: 11px;
  line-height: 2;
}

.setup-polaroid {
  position: relative;
  z-index: 2;
  width: 63%;
  margin-top: auto;
  padding: 8px 8px 36px;
  background: #fffaf1;
  box-shadow: 0 20px 45px rgba(50, 20, 13, 0.35);
  transform: rotate(-5deg);
}

.setup-polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.setup-polaroid span {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  color: var(--terracotta-deep);
  font-family: var(--script);
  font-size: 17px;
  text-align: center;
}

.setup-number {
  position: absolute;
  right: 30px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.07);
  font-family: var(--serif);
  font-size: 150px;
  line-height: 1;
}

.setup-form {
  display: flex;
  flex-direction: column;
  min-height: 700px;
  padding: 48px clamp(42px, 5vw, 74px) 36px;
}

.setup-progress {
  display: flex;
  gap: 0;
  margin-bottom: 46px;
}

.setup-progress span {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 7px;
  color: var(--muted);
}

.setup-progress span:not(:last-child)::after {
  height: 1px;
  margin-left: auto;
  background: var(--line);
  content: "";
  flex: 1;
}

.setup-progress span:not(:last-child) {
  flex: 1.2;
}

.setup-progress i {
  display: grid;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

.setup-progress b {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.setup-progress .active {
  color: var(--ink);
}

.setup-progress .active i {
  border-color: var(--terracotta);
  color: var(--paper-soft);
  background: var(--terracotta);
}

.setup-progress .done i {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.setup-step {
  display: none;
  animation: step-in 0.4s var(--ease);
}

.setup-step.active {
  display: block;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
}

.step-eyebrow {
  margin-bottom: 12px;
  color: var(--terracotta);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.setup-step h2 {
  font-size: clamp(29px, 3.1vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.step-intro {
  margin: 15px 0 30px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.field-row.two {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 19px;
}

.field > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.field > span em {
  margin-left: 4px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.72);
  font-size: 13px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.8;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(183, 97, 74, 0.09);
}

.field small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.account-setup-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.account-card {
  padding: 18px 18px 4px;
  border: 1px solid var(--line);
  background: rgba(245, 239, 229, 0.5);
}

.account-tag {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--terracotta);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.account-card .field {
  margin-bottom: 14px;
}

.account-card .field input {
  font-size: 12px;
}

.setup-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.setup-hint svg {
  width: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--sage);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.setup-summary {
  display: flex;
  align-items: center;
  gap: 19px;
  margin: 31px 0 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.summary-mark {
  position: relative;
  display: block;
  width: 54px;
  height: 36px;
  flex-shrink: 0;
}

.summary-mark span {
  position: absolute;
  top: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
}

.summary-mark span:first-child {
  left: 0;
}

.summary-mark span:last-child {
  right: 0;
  border-color: var(--sage);
}

.setup-summary strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.setup-summary p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.setup-checklist {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 11px;
}

.setup-checklist li span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: var(--sage-deep);
  background: rgba(110, 125, 99, 0.14);
  font-size: 8px;
}

.setup-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}

.setup-actions .setup-back {
  min-height: 44px;
  padding: 0 20px;
  font-size: 11px;
}

.setup-actions .setup-next {
  min-height: 46px;
  min-width: 132px;
  font-size: 11px;
}

.setup-actions .setup-next[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.setup-error {
  margin: -20px 0 20px;
  padding: 10px 13px;
  border-left: 2px solid var(--terracotta);
  color: var(--terracotta-deep);
  background: rgba(183, 97, 74, 0.07);
  font-size: 10px;
  line-height: 1.7;
}

.setup-error[hidden] {
  display: none;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  z-index: 1100;
  bottom: 28px;
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 11px 20px;
  border-radius: 999px;
  color: #f9efe1;
  background: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  }

  .hero-title {
    font-size: clamp(68px, 9.4vw, 112px);
  }

  .hero-title.names-long {
    font-size: clamp(54px, 6.4vw, 78px);
  }

  .scroll-cue {
    display: none;
  }

  .timeline-line {
    left: 100px;
  }

  .timeline-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 38px;
  }

  .timeline-dot {
    left: 95px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 66px;
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-title {
    font-size: clamp(76px, 14vw, 138px);
  }

  .hero-title.names-long {
    font-size: clamp(72px, 10.5vw, 118px);
  }

  .hero-collage {
    max-width: 660px;
    height: 620px;
    margin: 0 auto;
  }

  .hero::after,
  .hero::before {
    display: none;
  }

  .ornament-star {
    left: auto;
    right: 7%;
  }

  .ornament-loop {
    display: none;
  }

  .about-section {
    gap: 60px;
    grid-template-columns: 1fr;
  }

  .about-visual {
    width: min(100%, 620px);
    min-height: 570px;
    margin: 0 auto;
  }

  .about-copy {
    max-width: 680px;
  }

  .gallery-grid {
    column-count: 2;
  }

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

  .guestbook-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 22px;
  }

  html {
    scroll-padding-top: 78px;
  }

  .demo-banner {
    justify-content: flex-start;
    padding: 8px 42px 8px 18px;
    font-size: 10px;
  }

  .demo-banner > span:nth-child(2) {
    display: none;
  }

  .demo-link {
    font-size: 10px;
  }

  .site-header {
    height: 72px;
  }

  .site-header.scrolled {
    height: 64px;
  }

  .brand-word strong {
    font-size: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 22px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 239, 229, 0.98);
    box-shadow: 0 20px 40px rgba(69, 51, 36, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.25s,
      transform 0.25s;
    backdrop-filter: blur(18px);
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav > a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav > a:not(.nav-admin)::after {
    display: none;
  }

  .nav-admin {
    justify-content: center;
    margin-top: 12px;
    border-bottom: 0 !important;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .eyebrow {
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .hero-title {
    gap: 0.05em;
    font-size: clamp(64px, 20vw, 104px);
  }

  .hero-title.names-long {
    font-size: clamp(42px, 13vw, 82px);
  }

  .amp-mark {
    font-size: 0.44em;
  }

  .hero-tagline {
    margin-top: 28px;
    font-size: 17px;
  }

  .hero-note {
    font-size: 11px;
  }

  .hero-meta {
    gap: 0;
    margin-top: 30px;
  }

  .days-card {
    min-width: 0;
    flex: 1;
    padding: 17px 19px;
  }

  .days-number strong {
    font-size: 32px;
  }

  .next-anniversary {
    min-width: 128px;
    padding-left: 16px;
  }

  .next-anniversary strong {
    font-size: 25px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-actions .btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: 11px;
    flex: 1;
  }

  .hero-collage {
    height: min(112vw, 520px);
  }

  .polaroid figcaption {
    font-size: 14px;
  }

  .polaroid-c figcaption {
    font-size: 11px;
  }

  .round-stamp {
    width: 82px;
    height: 82px;
    right: 48%;
  }

  .handwritten {
    font-size: 26px;
  }

  .marquee {
    margin-top: 0;
  }

  .section {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 21px;
    margin-bottom: 46px;
  }

  .section-head h2,
  .about-copy h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .mobile-only {
    display: inline;
  }

  .section-lead {
    font-size: 12px;
    text-align: left;
  }

  .desktop-only {
    display: none;
  }

  .timeline-line {
    left: 11px;
  }

  .timeline {
    gap: 40px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-left: 35px;
  }

  .timeline-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    text-align: left;
  }

  .timeline-date span {
    order: 2;
    font-size: 8px;
  }

  .timeline-date strong {
    margin: 0;
    font-size: 21px;
  }

  .timeline-date small {
    margin: 0 0 0 4px;
  }

  .timeline-dot {
    top: 6px;
    left: 6px;
    width: 11px;
    height: 11px;
  }

  .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-item:nth-child(even) .timeline-media {
    order: 0;
  }

  .timeline-media img,
  .timeline-media.empty {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .timeline-media.has-slideshow {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .timeline-slide {
    min-height: 0;
  }

  .timeline-expand {
    width: 38px;
    height: 38px;
    margin-left: auto;
  }

  .timeline-slide-hint {
    display: none;
  }

  .timeline-slide-ui {
    right: 11px;
    bottom: 11px;
    left: 11px;
  }

  .timeline-content {
    padding: 25px 23px 28px;
  }

  .timeline-content h3 {
    font-size: 24px;
  }

  .timeline-text {
    font-size: 12px;
    -webkit-line-clamp: 5;
  }

  .gallery-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .gallery-toolbar {
    margin-bottom: 24px;
  }

  .filter-chip {
    padding: 7px 13px;
    font-size: 10px;
  }

  .album-shelf {
    display: flex;
    gap: 10px;
    margin-right: -22px;
    margin-bottom: 27px;
    margin-left: -22px;
    padding: 2px 22px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .album-shelf::-webkit-scrollbar {
    display: none;
  }

  .album-card {
    min-width: 248px;
    scroll-snap-align: start;
  }

  .gallery-caption {
    right: 12px;
    bottom: 11px;
    left: 12px;
    opacity: 1;
    transform: none;
  }

  .gallery-caption strong {
    font-size: 14px;
  }

  .gallery-item::after {
    background: linear-gradient(to top, rgba(25, 20, 16, 0.62), transparent 55%);
    opacity: 0.8;
  }

  .gallery-like {
    min-height: 32px;
    padding: 0 11px;
    opacity: 1;
    transform: none;
  }

  .timeline-like {
    min-height: 34px;
    padding: 0 13px;
  }

  .gallery-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .gallery-preview-hint {
    display: none;
  }

  .about-section {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .about-visual {
    min-height: 430px;
  }

  .about-photo-one {
    width: 58%;
    height: 62%;
  }

  .about-photo-two {
    width: 53%;
    height: 45%;
  }

  .about-ticket {
    width: 112px;
    height: 152px;
    top: 7%;
  }

  .about-ticket strong {
    font-size: 15px;
  }

  .about-flower {
    width: 54px;
  }

  .about-copy h2 {
    margin-bottom: 24px;
  }

  .about-text {
    font-size: 12.5px;
  }

  .about-copy blockquote {
    margin: 25px 0 30px;
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .closing-doodle {
    width: 140px;
    opacity: 0.1;
  }

  .guestbook-section {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .guestbook-aside {
    grid-template-columns: 1fr;
  }

  .site-like-card {
    padding: 27px;
  }

  .site-like-heart {
    margin-top: 22px;
    font-size: 40px;
  }

  .site-like-title {
    font-size: 30px;
  }

  .guestbook-board {
    padding: 21px 18px;
  }

  .comment-form-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .comment-form-head > span {
    padding-top: 0;
  }

  .comment-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .comment-form-hint {
    padding: 0;
    margin: -8px 0 12px;
  }

  .comment-form-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .comment-form-foot .btn {
    width: 100%;
  }

  .comment-list {
    max-height: none;
    padding-right: 0;
  }

  .comment-card {
    gap: 10px;
    grid-template-columns: 33px minmax(0, 1fr);
  }

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

  .field input,
  .field textarea,
  .field select {
    min-height: 48px;
    font-size: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .site-footer > p:nth-child(2) {
    display: none;
  }

  .lightbox-shell {
    padding: 40px 16px 20px;
  }

  .lightbox figure {
    width: 100%;
    max-width: 100%;
  }

  .lightbox-image-wrap img {
    max-height: 66vh;
  }

  .lightbox figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .lightbox-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .lightbox h3 {
    font-size: 19px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .lightbox-nav.prev {
    left: 18px;
  }

  .lightbox-nav.next {
    right: 18px;
  }

  .lightbox-close {
    top: 13px;
    right: 14px;
  }

  .setup-overlay {
    display: block;
    padding: 0;
    background: var(--paper-soft);
  }

  .setup-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .setup-aside {
    min-height: 220px;
    padding: 27px 25px;
  }

  .setup-aside-copy {
    margin-top: 28px;
  }

  .setup-aside h2 {
    font-size: 34px;
  }

  .setup-aside-copy > p:last-child,
  .setup-polaroid {
    display: none;
  }

  .script-line {
    font-size: 24px;
  }

  .setup-number {
    right: 20px;
    bottom: -28px;
    font-size: 120px;
  }

  .setup-close {
    top: 12px;
    right: 12px;
    color: var(--paper-soft);
    background: rgba(255, 255, 255, 0.12);
  }

  .setup-form {
    min-height: calc(100vh - 220px);
    padding: 30px 24px 26px;
  }

  .setup-progress {
    margin-bottom: 32px;
  }

  .setup-progress b {
    display: none;
  }

  .setup-progress span:not(:last-child) {
    flex: 1;
  }

  .setup-progress span:not(:last-child)::after {
    margin: 0 8px;
  }

  .setup-step h2 {
    font-size: 28px;
  }

  .account-setup-grid {
    grid-template-columns: 1fr;
  }

  .setup-summary {
    padding: 17px;
  }

  .setup-actions {
    margin-top: 32px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 62px;
  }

  .hero-title.names-long {
    font-size: 40px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 15px;
  }

  .next-anniversary {
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-collage {
    height: 430px;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 10px;
  }

  .gallery-item {
    margin-bottom: 10px;
  }

  .field-row.two {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

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

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

  .hero-copy,
  .hero-collage {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
