:root {
  --paper: #F4EEE5;
  --paper-deep: #EBE0D3;
  --white: #FFFCF7;
  --ink: #332D2B;
  --ink-soft: #6F625A;
  --wine: #763F4C;
  --wine-dark: #5B303B;
  --rose: #BB8E8F;
  --rose-soft: #F0E1DE;
  --gold: #A8845F;
  --line: rgba(91, 69, 57, .18);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #E8D5CC; color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 50; left: 12px; top: -100px; background: white; padding: 14px 20px; }
.skip-link:focus { top: 12px; }
.progress-track { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--wine); transition: width .1s linear; }
.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 100px; padding: 0 clamp(24px, 6vw, 94px); display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 7px; color: var(--wine); text-decoration: none; font: 600 28px var(--serif); }
.brand-heart { font: 18px var(--sans); transform: rotate(-12deg); }
.header-caption { font-size: 10px; letter-spacing: .28em; font-weight: 700; color: var(--ink-soft); }
.header-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); }
.eyebrow { color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: .23em; line-height: 1.6; }
.hero { min-height: min(920px, 100svh); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(circle at 80% 42%, #E5D7C7 0%, transparent 34%), var(--paper); }
.hero::after { content: ''; position: absolute; top: 14%; right: -150px; height: 620px; width: 620px; border: 1px solid rgba(118, 63, 76, .12); border-radius: 50%; z-index: -1; }
.hero-inner { width: min(1250px, calc(100% - 128px)); margin: 96px auto 66px; display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: center; }
.hero-text { position: relative; z-index: 3; }
.mini-line { display: inline-block; width: 21px; height: 1px; vertical-align: middle; background: var(--wine); margin-right: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 em, h2 em { font-weight: 400; color: var(--wine); }
h1 { font-size: clamp(48px, 5.2vw, 84px); line-height: 1.15; letter-spacing: -.045em; max-width: 740px; margin: 22px 0 22px; }
.period { color: var(--wine); }
.hero-intro { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.8; color: var(--ink-soft); max-width: 460px; margin-bottom: 28px; }
.primary-button { display: inline-flex; gap: 29px; align-items: center; justify-content: center; border: 1px solid var(--wine); border-radius: 2px; background: var(--wine); color: white; text-decoration: none; padding: 17px 23px; font: 600 13px var(--sans); transition: transform .25s, background .25s, box-shadow .25s; min-height: 56px; }
.primary-button:hover { transform: translateY(-2px); background: var(--wine-dark); box-shadow: 0 10px 24px #49352F22; }
.primary-button span { font-size: 22px; font-weight: 400; line-height: 1; }
.hero-helper { font-size: 11px; color: #85756B; margin-top: 17px; letter-spacing: .02em; }
.hero-art { position: relative; height: 530px; max-width: 520px; width: 100%; justify-self: center; }
.hero-polaroid { background: white; padding: 13px 13px 17px; position: absolute; box-shadow: 0 22px 52px #49352F25; border: 1px solid #EAE0D3; }
.hero-polaroid img { width: 100%; height: 100%; object-fit: cover; }
.back-photo span { visibility: hidden; }
.hero-polaroid span { display: block; text-align: center; font-family: var(--serif); font-style: italic; color: #79635B; font-size: 14px; padding-top: 14px; }
.front-photo { width: 73%; height: 78%; left: 7%; top: 9%; transform: rotate(-8deg); z-index: 2; }
.back-photo { width: 64%; height: 75%; right: 1%; top: 13%; transform: rotate(10deg); }
.hero-seal { position: absolute; z-index: 4; width: 116px; height: 116px; right: -7%; bottom: 6%; border-radius: 50%; background: var(--wine); color: #fff; display: flex; justify-content: center; align-items: center; gap: 3px; font: italic 24px var(--serif); transform: rotate(15deg); box-shadow: 0 8px 30px #763F4C40; }
.seal-heart { font: 17px var(--sans); }
.hero-scribble { position: absolute; width: 130px; color: var(--wine); left: -30px; bottom: 0px; }
.hero-ornament { position: absolute; color: #C5AD99; font-size: 40px; }
.ornament-1 { left: 46%; top: 20%; }
.ornament-2 { right: 10%; bottom: 10%; font-size: 23px; }
.hero-bottom { position: absolute; bottom: 27px; left: clamp(24px, 6vw, 94px); right: clamp(24px, 6vw, 94px); border-top: 1px solid var(--line); padding-top: 15px; display: flex; align-items: center; justify-content: space-between; color: #83736A; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.hero-bottom span:last-child { font-size: 19px; }
.memories-section { padding: 120px 0 130px; background: var(--white); }
.section-intro { text-align: center; max-width: 760px; margin: 0 auto 104px; padding: 0 22px; }
.section-intro h2, .letter-intro h2, .final-inner h2 { font-size: clamp(39px, 4.5vw, 64px); line-height: 1.22; letter-spacing: -.035em; margin: 14px 0 20px; }
.section-intro > p:last-child, .final-inner > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.8; font-size: 15px; }
.memories-list { display: flex; flex-direction: column; gap: 155px; max-width: 1140px; margin: auto; padding: 0 40px; }
.memory-card { display: grid; grid-template-columns: 1.05fr .85fr; gap: clamp(45px, 9vw, 130px); align-items: center; }
.memory-reverse { grid-template-columns: .85fr 1.05fr; }
.memory-reverse .memory-visual { order: 2; }
.memory-reverse .memory-copy { order: 1; }
.memory-visual { max-width: 520px; width: 100%; justify-self: center; }
.memory-image-frame { width: 100%; aspect-ratio: 1 / 1.08; position: relative; background: #E4D8C9; overflow: hidden; padding: 0; }
.memory-image { height: 100%; width: 100%; object-fit: cover; transition: transform .8s ease; }
.memory-card:hover .memory-image { transform: scale(1.025); }
.memory-index { position: absolute; right: 16px; bottom: 15px; color: #fff; font-size: 11px; letter-spacing: .2em; background: #332D2Ba6; padding: 9px 12px; backdrop-filter: blur(4px); }
.memory-photo-note { text-align: center; font: italic 17px var(--serif); color: var(--wine); padding-top: 19px; }
.memory-copy { max-width: 380px; }
.memory-copy h3 { font-size: clamp(36px, 4vw, 60px); line-height: 1.18; letter-spacing: -.035em; margin: 18px 0 20px; }
.memory-description { color: var(--ink-soft); line-height: 1.95; font-size: 15px; }
.view-photo { border: 0; border-bottom: 1px solid var(--wine); border-radius: 0; padding: 8px 0 7px; color: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .04em; background: transparent; margin-top: 18px; }
.view-photo:hover { color: var(--wine-dark); }
.quote-section { padding: 135px 24px 125px; text-align: center; background: var(--rose-soft); position: relative; }
.quote-mark { font: 90px var(--serif); line-height: .7; color: #b47785; }
.quote-section p { font: italic clamp(27px, 3.5vw, 44px)/1.5 var(--serif); max-width: 840px; margin: 20px auto 10px; color: #6f4251; }
.quote-flourish { font-size: 30px; color: #b47785; }
.letter-section { padding: 130px 22px 145px; background: radial-gradient(circle at 9% 19%, #f3e6d9, transparent 32%), var(--paper); }
.letter-intro { text-align: center; margin-bottom: 57px; }
.letter-paper { position: relative; width: min(680px, 100%); background: var(--white); box-shadow: 0 21px 64px #6e484b13; border: 1px solid #e9ded2; margin: auto; padding: clamp(38px, 7vw, 88px); transform: rotate(-1deg); }
.letter-decoration { position: absolute; right: 34px; top: 28px; font-size: 27px; color: var(--rose); }
.letter-overline { font-size: 10px; letter-spacing: .22em; font-weight: 700; color: var(--wine); }
.letter-greeting { font: italic 35px var(--serif); color: var(--wine); margin: 33px 0 22px; }
#letter-body p { font-size: 15px; line-height: 2.05; color: #5d5356; margin: 0 0 22px; }
.letter-signoff { color: #5d5356; font-size: 14px; margin: 36px 0 8px; }
.letter-signature { font: italic 32px var(--serif); color: var(--wine); margin: 0; }
.final-section { min-height: 700px; padding: 145px 22px; background: #f2e4e1; text-align: center; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.final-section::before, .final-section::after { content: ''; position: absolute; width: 480px; height: 480px; border: 1px solid #d8b7b4; border-radius: 50%; opacity: .5; }
.final-section::before { left: -330px; bottom: -260px; }
.final-section::after { right: -300px; top: -300px; }
.final-stars { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); color: var(--wine); letter-spacing: 45px; font-size: 16px; white-space: nowrap; }
.final-stars span { font-size: 26px; }
.final-inner { max-width: 760px; z-index: 1; }
.final-inner h2 { max-width: 730px; margin: 24px 0; }
.final-inner > p:not(.eyebrow) { margin: 0 auto 34px; max-width: 450px; }
.final-button { border-radius: 2px; }
.question-panel { position: relative; z-index: 1; width: min(840px, 100%); outline: none; animation: revealQuestion .7s ease both; }
.big-heart { color: var(--wine); font-size: 70px; margin-bottom: 22px; animation: heartbeat 2.8s infinite; }
.question-panel h2 { font-size: clamp(48px, 7.5vw, 95px); line-height: 1.18; letter-spacing: -.05em; margin: 18px auto 28px; color: #713145; }
.question-subtitle { font: italic clamp(19px, 2.5vw, 26px)/1.5 var(--serif); color: var(--ink-soft); }
.question-ornament { color: var(--wine); margin-top: 30px; font-size: 22px; letter-spacing: .2em; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 28px clamp(22px, 6vw, 94px); color: var(--ink-soft); background: var(--paper); font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.site-footer span:last-child { color: var(--wine); font-size: 22px; letter-spacing: normal; }
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; } .reveal.is-visible { opacity: 1; transform: translateY(0); } }
.photo-dialog { border: 0; padding: 0; width: min(680px, calc(100vw - 30px)); max-height: min(94dvh, 960px); overflow: auto; background: var(--white); box-shadow: 0 28px 80px #0005; }
.photo-dialog::backdrop { background: #271920c9; backdrop-filter: blur(6px); }
.photo-dialog > img { width: 100%; max-height: 65dvh; object-fit: contain; background: #efe1db; }
.dialog-close { position: absolute; top: 12px; right: 12px; background: var(--white); border: 0; border-radius: 50%; color: var(--ink); font-size: 30px; line-height: 1; width: 44px; height: 44px; }
.dialog-details { padding: 24px 30px 30px; }
.dialog-details h2 { font-size: 32px; margin: 0 0 8px; }
.dialog-details p:last-child { line-height: 1.7; color: var(--ink-soft); margin: 0; font-size: 14px; }
@keyframes revealQuestion { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.11); } 25% { transform: scale(1.02); } 38% { transform: scale(1.1); } 52% { transform: scale(1); } }
@media (max-width: 960px) {
  .hero { min-height: 830px; }
  .hero-inner { width: min(100% - 64px, 850px); gap: 2vw; }
  .hero-art { height: 420px; }
  .hero-seal { width: 95px; height: 95px; font-size: 20px; right: -2%; }
  .memories-list { gap: 100px; }
  .memory-card, .memory-reverse { gap: 42px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-header { height: 78px; padding: 0 23px; }
  .brand { font-size: 23px; }
  .brand-heart { font-size: 15px; }
  .header-caption { font-size: 8px; letter-spacing: .19em; }
  .header-dot { display: none; }
  .hero { min-height: auto; }
  .hero::after { width: 420px; height: 420px; top: 35%; right: -260px; }
  .hero-inner { width: calc(100% - 46px); display: flex; flex-direction: column; margin: 126px auto 85px; gap: 10px; align-items: stretch; }
  .hero-text { width: 100%; }
  h1 { font-size: clamp(43px, 11vw, 61px); margin: 15px 0 15px; line-height: 1.17; }
  .hero-intro { font-size: 14px; max-width: 420px; margin-bottom: 22px; }
  .eyebrow { font-size: 9.5px; }
  .hero-art { height: 325px; width: min(360px, 100%); margin: 16px auto 0; }
  .hero-polaroid { padding: 9px 9px 12px; }
  .hero-polaroid span { font-size: 11px; padding-top: 9px; }
  .front-photo { width: 67%; height: 76%; left: 6%; }
  .back-photo { width: 60%; height: 71%; right: 5%; }
  .hero-seal { width: 75px; height: 75px; bottom: 5%; right: 2%; font-size: 16px; }
  .seal-heart { font-size: 12px; }
  .hero-scribble { width: 80px; left: 0; bottom: 0; }
  .hero-bottom { bottom: 17px; left: 23px; right: 23px; font-size: 8px; }
  .ornament-1 { left: 85%; top: 12%; }
  .ornament-2 { display: none; }
  .memories-section { padding: 89px 0 100px; }
  .section-intro { margin-bottom: 65px; }
  .section-intro h2, .letter-intro h2, .final-inner h2 { font-size: clamp(35px, 9vw, 47px); }
  .section-intro > p:last-child { font-size: 14px; }
  .memories-list { gap: 78px; padding: 0 23px; }
  .memory-card, .memory-reverse { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
  .memory-reverse .memory-visual, .memory-reverse .memory-copy { order: initial; }
  .memory-visual { max-width: 470px; }
  .memory-image-frame { aspect-ratio: 1.07; }
  .memory-photo-note { font-size: 15px; padding-top: 12px; }
  .memory-copy { max-width: 100%; }
  .memory-copy h3 { font-size: 39px; margin: 8px 0 10px; }
  .memory-description { font-size: 14px; line-height: 1.8; }
  .view-photo { margin-top: 5px; }
  .quote-section { padding: 90px 27px 75px; }
  .quote-section p { font-size: 29px; }
  .letter-section { padding: 95px 20px 105px; }
  .letter-paper { transform: rotate(-.5deg); padding: 43px 28px; }
  .letter-greeting { margin-top: 26px; }
  #letter-body p { font-size: 14px; line-height: 1.95; }
  .final-section { min-height: 590px; padding: 115px 25px; }
  .final-stars { top: 68px; }
  .question-panel h2 { font-size: clamp(47px, 11vw, 67px); }
  .question-subtitle { font-size: 20px; }
  .site-footer { padding: 25px 23px; font-size: 8px; }
}
@media (max-width: 350px) { .hero-inner { width: calc(100% - 34px); } .hero-art { height: 275px; } h1 { font-size: 40px; } .primary-button { font-size: 12px; gap: 15px; padding: 15px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
