@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --ink: #2b171b;
  --wine: #51262e;
  --wine-dark: #251418;
  --cream: #f4eee5;
  --paper: #faf6ef;
  --muted: #9c807b;
  --gold: #c7a66c;
  --line: rgba(81, 38, 46, .17);
  --sans: "DM Sans", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.page-grain { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .07; 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E"); }
.site-header { height: 70px; padding: 0 5.5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); position: absolute; top: 0; left: 0; width: 100%; z-index: 5; color: #f8eee1; }
.wordmark { font-family: var(--serif); font-size: 17px; text-decoration: none; letter-spacing: .01em; }
.wordmark span { color: var(--gold); padding-left: 5px; }
.header-note { font-size: 9px; letter-spacing: .17em; text-transform: uppercase; opacity: .7; }
.hero { min-height: 690px; height: min(850px, 100svh); max-height: 980px; background: radial-gradient(ellipse at 69% 48%, #6b3c34 0%, #3b2025 40%, #241418 77%); color: #fbf3e9; position: relative; display: grid; grid-template-columns: 1fr .9fr; align-items: center; padding: 100px 9vw 82px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 850px; max-height: 850px; border-radius: 50%; border: 1px solid rgba(199,166,108,.12); right: -12vw; top: 5%; box-shadow: 0 0 0 50px rgba(199,166,108,.025), 0 0 0 100px rgba(199,166,108,.02); }
.hero-glow { position: absolute; width: 380px; height: 380px; right: 15%; top: 18%; background: #c78c59; opacity: .12; filter: blur(100px); border-radius: 50%; }
.hero-copy { position: relative; z-index: 2; max-width: 670px; padding-top: 10px; animation: enter .9s ease both; }
.eyebrow { text-transform: uppercase; letter-spacing: .19em; font-size: 9px; font-weight: 600; line-height: 1.7; color: var(--gold); margin: 0 0 20px; }
.eyebrow-line { display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.hero h1 { font: 400 clamp(40px, 5vw, 70px)/1.14 var(--serif); letter-spacing: -.04em; max-width: 720px; margin: 0; }
h1 em, h2 em { font-weight: 400; color: var(--gold); }
.hero-intro { font-size: 13px; line-height: 1.9; max-width: 370px; color: rgba(251,243,233,.72); margin: 25px 0 30px; }
.start-button { border: 1px solid rgba(199,166,108,.7); background: var(--gold); color: #2b171b; min-height: 51px; padding: 0 20px 0 23px; display: inline-flex; gap: 32px; align-items: center; justify-content: space-between; cursor: pointer; transition: background .25s, transform .25s; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.start-button:hover { background: #ddc18b; transform: translateY(-2px); }
.button-arrow { font-size: 17px; }
.hero-footnote { font-size: 9px; letter-spacing: .08em; color: rgba(251,243,233,.48); margin-top: 17px; }
.hero-photo-wrap { position: relative; z-index: 1; justify-self: end; width: min(100%, 390px); margin-right: 3%; transform: rotate(2deg); animation: photoEnter 1.1s .15s ease both; }
.photo-frame { position: relative; border: 1px solid rgba(199,166,108,.55); padding: 10px; background: rgba(248,238,225,.06); }
.hero-frame { aspect-ratio: 4 / 5; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.photo-fill, .memory-image img, .final-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.photo-fill, [data-photo] { opacity: 0; transition: opacity .5s ease; }
[data-photo].loaded { opacity: 1; }
.photo-placeholder { position: absolute; inset: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; padding: 20px; background: linear-gradient(145deg, rgba(199,166,108,.16), rgba(81,38,46,.08)), repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(81,38,46,.025) 12px, rgba(81,38,46,.025) 13px); color: inherit; }
.photo-placeholder strong { font: 500 20px var(--serif); }
.photo-placeholder span:not(.placeholder-mark) { font-size: 10px; opacity: .7; }
.photo-placeholder small { font-size: 8px; opacity: .5; overflow-wrap: anywhere; }
.placeholder-mark { color: var(--gold); font-size: 23px; margin-bottom: 4px; }
.hero-caption { display: flex; justify-content: space-between; color: rgba(251,243,233,.72); text-transform: uppercase; letter-spacing: .16em; font-size: 8px; padding: 15px 3px; }
.caption-star { color: var(--gold); font-size: 14px; }
.vertical-note { position: absolute; right: -36px; top: 40%; writing-mode: vertical-rl; font-size: 8px; letter-spacing: .23em; color: rgba(251,243,233,.5); }
.hero-bottom { position: absolute; bottom: 28px; left: 9vw; right: 9vw; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .15em; font-size: 8px; color: rgba(251,243,233,.45); }
.scroll-cue span { font-size: 15px; margin-left: 8px; color: var(--gold); }
.music-strip { padding: 30px 9vw 28px; background: #e8ded0; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 20px 7%; border-bottom: 1px solid rgba(81,38,46,.1); }
.music-heading { display: flex; align-items: center; gap: 16px; }
.music-icon { width: 42px; height: 42px; border: 1px solid rgba(81,38,46,.25); border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--wine); flex-shrink: 0; }
.music-heading .eyebrow { color: #89634d; margin-bottom: 5px; }
.music-heading h2 { font: 500 18px/1.35 var(--serif); margin: 0; }
.music-player { display: flex; align-items: center; gap: 14px; min-width: 0; }
.play-toggle { width: 38px; height: 38px; border: 0; background: var(--wine); color: var(--cream); border-radius: 50%; cursor: pointer; flex-shrink: 0; font-size: 11px; }
.wave-area { min-width: 0; flex: 1; }
.waveform { height: 33px; display: flex; align-items: center; justify-content: space-between; gap: 3px; opacity: .45; }
.waveform span { height: var(--h); min-height: 3px; flex: 1; border-radius: 4px; background: var(--wine); transform-origin: center; }
.waveform.playing span { animation: wave .8s ease-in-out infinite alternate; animation-delay: var(--delay); }
.track-status { font-size: 9px; color: #775e57; line-height: 1.5; }
.volume-control { display: flex; align-items: center; gap: 8px; color: var(--wine); font-size: 15px; }
.volume-control input { width: 75px; accent-color: var(--wine); cursor: pointer; }
.music-note { grid-column: 2; margin: -10px 0 0 52px; font-size: 9px; line-height: 1.7; color: #896f66; }
.section-pad { padding: 105px 11vw; }
.gratitude { background: var(--paper); }
.section-index { text-transform: uppercase; letter-spacing: .16em; font-size: 9px; color: #94766d; margin-bottom: 55px; }
.section-index span { color: var(--gold); padding: 0 8px; }
.gratitude-layout { display: grid; grid-template-columns: .9fr 1fr; gap: 12%; }
.section-heading { position: sticky; top: 90px; align-self: start; }
.section-heading .eyebrow, .album-heading .eyebrow { color: #9b705c; }
.section-heading h2, .album-heading h2 { font: 400 clamp(38px, 4.2vw, 60px)/1.14 var(--serif); letter-spacing: -.04em; margin: 0; }
.section-heading h2 em, .album-heading h2 em { color: #9c6d58; }
.ornament { color: var(--gold); display: flex; align-items: center; gap: 12px; font-size: 12px; margin-top: 30px; }
.ornament span { display: block; height: 1px; width: 48px; background: var(--gold); opacity: .6; }
.letter { font: 400 14px/2 var(--serif); color: #5c4543; }
.letter p { margin: 0 0 20px; }
.letter-salutation { color: var(--wine); font-size: 20px; }
.letter-signoff { padding-top: 15px; color: var(--wine); }
.letter-signoff span { display: block; font-style: italic; color: #a37b65; }
.gratitude-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 75px; padding-top: 20px; text-transform: uppercase; letter-spacing: .13em; font-size: 8px; color: #a18b81; }
.little-heart { font-size: 19px; color: #a16d65; }
.album { background: #e9dfd2; }
.album-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 55px; }
.album-heading .section-index { margin-bottom: 30px; }
.album-heading .eyebrow { margin-bottom: 12px; }
.album-intro { max-width: 300px; font: 400 13px/1.9 var(--serif); color: #7d655c; margin: 0 0 7px; }
.photo-grid { display: grid; grid-template-columns: 1.08fr .82fr 1fr; gap: 48px 28px; align-items: start; }
.memory-card { margin: 0; min-width: 0; }
.memory-card:nth-child(2) { margin-top: 65px; }
.memory-card:nth-child(3) { margin-top: 10px; }
.memory-card:nth-child(4) { grid-column: 1 / span 2; width: 87%; margin-left: 5%; margin-top: 5px; }
.memory-card:nth-child(5) { margin-top: 55px; }
.memory-card:nth-child(6) { margin-top: -15px; }
.memory-image { position: relative; overflow: hidden; border: 1px solid rgba(81,38,46,.15); padding: 8px; background: rgba(255,255,255,.28); }
.memory-large .memory-image { aspect-ratio: 4/4.5; }
.memory-tall .memory-image { aspect-ratio: 3/4.4; }
.memory-small .memory-image { aspect-ratio: 4/4.2; }
.memory-wide .memory-image { aspect-ratio: 16/9; }
.memory-image img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.memory-image .photo-placeholder { inset: 8px; background-color: #e1d3c2; }
.memory-image .photo-placeholder strong { font-size: 17px; }
.memory-image .photo-placeholder span:not(.placeholder-mark) { font-size: 9px; }
.memory-card figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #91766b; }
.memory-card figcaption span:first-child { color: #b08a65; }
.album-footnote { display: flex; justify-content: center; gap: 10px; margin: 65px 0 0; font: italic 13px var(--serif); color: #886f65; text-align: center; }
.album-footnote span { color: #ad895f; font-style: normal; }
.final-note { padding: 110px 20px 70px; background: var(--wine-dark); color: var(--cream); text-align: center; position: relative; overflow: hidden; }
.final-note::before, .final-note::after { content: ""; position: absolute; border: 1px solid rgba(199,166,108,.12); border-radius: 50%; width: 480px; height: 480px; top: 0; left: 50%; transform: translate(-50%, -48%); }
.final-note::after { width: 620px; height: 620px; }
.final-decoration { position: relative; color: var(--gold); font-size: 24px; margin-bottom: 22px; z-index: 1; }
.final-note .eyebrow, .final-note h2, .final-message, .final-signature, .final-photo, .back-top { position: relative; z-index: 1; }
.final-note h2 { font: 400 clamp(37px, 5vw, 64px)/1.17 var(--serif); letter-spacing: -.04em; margin: 0 auto; }
.final-note h2 em { color: var(--gold); }
.final-message { max-width: 440px; margin: 25px auto 0; color: rgba(244,238,229,.7); font: 400 13px/1.9 var(--serif); }
.final-signature { margin: 27px 0 38px; font: italic 16px var(--serif); color: #d8b981; }
.final-signature span { padding-left: 8px; }
.final-photo { width: min(280px, 72vw); aspect-ratio: 4/3; margin: 0 auto 34px; }
.final-photo .photo-placeholder { inset: 10px; }
.final-photo .photo-placeholder strong { font-size: 17px; }
.back-top { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: 8px; text-decoration: none; color: rgba(244,238,229,.6); border-bottom: 1px solid rgba(199,166,108,.5); padding-bottom: 7px; }
.site-footer { display: flex; justify-content: space-between; padding: 20px 6vw; background: #1c1013; color: rgba(244,238,229,.45); text-transform: uppercase; letter-spacing: .13em; font-size: 8px; }
.site-footer span:last-child { color: #c7a66c; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photoEnter { from { opacity: 0; transform: translate(10px, 15px) rotate(0); } to { opacity: 1; transform: translate(0,0) rotate(2deg); } }
@keyframes wave { from { transform: scaleY(.35); opacity: .6; } to { transform: scaleY(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr .72fr; padding-left: 6vw; padding-right: 6vw; }
  .hero h1 { font-size: clamp(38px, 5.4vw, 56px); }
  .hero-photo-wrap { width: min(100%, 300px); margin-right: 2%; }
  .vertical-note { right: -23px; }
  .music-strip { padding-left: 6vw; padding-right: 6vw; }
  .section-pad { padding: 85px 8vw; }
  .gratitude-layout { gap: 7%; }
  .photo-grid { gap: 32px 18px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 20px; }
  .site-header { height: 60px; padding: 0 6vw; }
  .wordmark { font-size: 15px; }
  .header-note { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: auto; height: auto; max-height: none; padding: 112px 7vw 74px; gap: 35px; }
  .hero::before { width: 100vw; height: 100vw; top: 37%; right: -50vw; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { font-size: 8px; margin-bottom: 16px; letter-spacing: .15em; }
  .hero h1 { font-size: clamp(39px, 11vw, 52px); line-height: 1.12; }
  .hero-intro { font-size: 12px; margin: 19px 0 23px; max-width: 300px; }
  .start-button { min-height: 49px; }
  .hero-photo-wrap { align-self: center; justify-self: auto; width: min(78%, 290px); margin: 0 0 0 0; }
  .hero-frame { aspect-ratio: 4/4.5; }
  .hero-caption { padding-top: 12px; }
  .vertical-note { right: -24px; }
  .hero-bottom { left: 7vw; right: 7vw; bottom: 20px; font-size: 7px; }
  .scroll-cue { display: none; }
  .music-strip { display: block; padding: 25px 7vw 24px; }
  .music-heading { margin-bottom: 20px; }
  .music-heading h2 { font-size: 17px; }
  .music-player { gap: 10px; }
  .volume-control { gap: 5px; }
  .volume-control input { width: 58px; }
  .waveform { gap: 2px; }
  .track-status { font-size: 8px; }
  .music-note { margin: 12px 0 0 48px; }
  .section-pad { padding: 68px 7vw; }
  .section-index { margin-bottom: 38px; font-size: 8px; }
  .gratitude-layout { display: block; }
  .section-heading { position: static; margin-bottom: 37px; }
  .section-heading h2, .album-heading h2 { font-size: 44px; }
  .ornament { margin-top: 20px; }
  .letter { font-size: 13.5px; line-height: 1.9; }
  .letter p { margin-bottom: 18px; }
  .gratitude-bottom { margin-top: 45px; font-size: 7px; letter-spacing: .08em; }
  .album-heading { display: block; margin-bottom: 35px; }
  .album-heading .section-index { margin-bottom: 27px; }
  .album-intro { margin-top: 20px; font-size: 13px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 25px 13px; }
  .memory-card:nth-child(n) { margin: 0; width: auto; grid-column: auto; }
  .memory-card:nth-child(2), .memory-card:nth-child(4), .memory-card:nth-child(6) { margin-top: 35px; }
  .memory-card:nth-child(4) { grid-column: 1 / span 2; width: 92%; }
  .memory-card:nth-child(5) { margin-top: -8px; }
  .memory-image { padding: 5px; }
  .memory-image img { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
  .memory-image .photo-placeholder { inset: 5px; padding: 8px; }
  .memory-image .photo-placeholder strong { font-size: 14px; }
  .memory-image .photo-placeholder span:not(.placeholder-mark) { font-size: 8px; }
  .memory-card figcaption { font-size: 7px; letter-spacing: .06em; padding-top: 9px; }
  .album-footnote { margin-top: 42px; font-size: 12px; line-height: 1.8; }
  .final-note { padding: 78px 7vw 55px; }
  .final-note h2 { font-size: 43px; }
  .final-message { font-size: 12.5px; }
  .site-footer { padding: 18px 6vw; font-size: 7px; letter-spacing: .07em; gap: 10px; }
}
