:root { --cream: #fbf6ed; --ink: #433129; --red: #a63742; --red-dark: #842631; --muted: #7c6a5e; --pink: #f0d6d1; --line: #dfd4c8; --serif: Georgia, 'Times New Roman', serif; --sans: 'Avenir Next', Avenir, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23866c55' filter='url(%23n)' opacity='.25' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #366a69; outline-offset: 6px; }
button:disabled { cursor: default; opacity: .75; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: white; padding: 16px; }
.skip-link:focus { top: 16px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { text-decoration: none; font: italic 22px var(--serif); display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.wordmark span { color: var(--red); font-size: 32px; font-style: normal; }
.header-note { font-size: 9px; letter-spacing: 1.9px; color: var(--muted); }
.sound-button { border: 1px solid var(--line); background: transparent; padding: 10px 15px; border-radius: 30px; font-size: 11px; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.sound-button > span:first-child { font-size: 16px; color: var(--red); }
.sound-button[aria-pressed='true'] { background: #f0ded5; border-color: #d3b9aa; }
.sound-button[hidden] { display: none; }
.music-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.music-tap-hint { max-width: 100px; font-size: 9px; color: var(--muted); line-height: 1.5; text-align: right; }
.music-tap-hint:empty { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 700px; padding-block: 76px 84px; gap: 55px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2.1px; margin: 0 0 22px; }
.hero .eyebrow { display: flex; gap: 9px; align-items: center; color: var(--red); }
.tiny-star { font-size: 17px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { position: relative; letter-spacing: -4px; line-height: 1.02; font-size: clamp(64px, 6.4vw, 88px); margin-bottom: 28px; white-space: nowrap; }
h1 em, h2 em { color: var(--red); font-weight: 400; }
h1 em { font-size: 1.14em; }
.title-heart { display: inline-block; vertical-align: top; margin: 15px 0 0 10px; transform: rotate(13deg); color: var(--red); font-size: 49px; }
.hero-description { font-size: 15px; line-height: 1.9; color: var(--muted); margin-bottom: 29px; }
.hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 20px; padding: 14px 22px; border-radius: 4px; text-decoration: none; border: 1px solid transparent; font-size: 12px; line-height: 1.5; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-red { background: var(--red); color: #fff9f1; }
.button-red:hover { background: var(--red-dark); }
.button-red > span { font-size: 18px; line-height: 1; }
.text-link { text-decoration: none; border-bottom: 1px solid #b9a291; padding-block: 5px; font-size: 11px; }
.text-link span { padding-left: 12px; }
.signature-small { margin: 27px 0 0; font-size: 10px; color: #927b69; letter-spacing: .3px; }
.signature-small span { font-size: 16px; margin-left: 3px; }
.handwritten { font-family: 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive; font-weight: 400; }
.hero-art { position: relative; padding: 31px 16px 0; }
.hero-polaroid { position: relative; background: #fffdf7; padding: 14px 14px 0; transform: rotate(5deg); margin: 0; box-shadow: 0 9px 24px #77554018, 0 1px 2px #77554016; }
.hero-polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1/1.02; object-fit: cover; }
.hero-polaroid figcaption { font-size: 16px; text-align: center; padding: 24px 2px 26px; color: #74584a; }
.tape { position: absolute; width: 116px; height: 34px; background: #d1bca982; z-index: 2; top: -13px; left: calc(50% - 58px); transform: rotate(-7deg); clip-path: polygon(2% 0, 99% 3%, 98% 15%, 100% 30%, 98% 50%, 100% 68%, 98% 85%, 99% 100%, 0 96%, 2% 80%, 0 60%, 2% 30%, 0 12%); }
.birthday-side-note { position: absolute; top: -29px; right: 0; transform: rotate(7deg); font-size: 17px; text-align: center; color: var(--red); line-height: 1.2; z-index: 3; }
.birthday-side-note span { display: inline-block; position: absolute; right: -22px; top: 22px; transform: rotate(10deg); font: 40px var(--serif); }
.round-sticker { position: absolute; bottom: 1px; left: -22px; transform: rotate(-12deg); width: 112px; height: 112px; border-radius: 50%; background: #e9b94d; color: #653d23; border: 5px solid #e9b94d; outline: 1px dashed #875a37; outline-offset: -10px; display: flex; flex-direction: column; justify-content: center; text-align: center; font-size: 8px; line-height: 1.5; letter-spacing: 1px; font-weight: 600; }
.round-sticker span { font: italic 28px var(--serif); margin-bottom: 2px; }
.hero-sparkle { position: absolute; right: -16px; bottom: 63px; font-size: 56px; color: var(--red); }
.birthday-ribbon { overflow: hidden; border-block: 1px solid #d6c4b1; padding: 18px 0; background: #f1e7d8; }
.birthday-ribbon > div { display: flex; justify-content: center; align-items: center; gap: 38px; white-space: nowrap; width: max-content; min-width: 100%; font-size: 10px; letter-spacing: 2.3px; }
.birthday-ribbon span { color: var(--red); font-size: 16px; }
.little-things { padding-block: 92px 94px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 13px; color: var(--muted); }
h2 { font-size: 43px; line-height: 1.14; letter-spacing: -1.5px; margin-bottom: 0; }
.section-heading > p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 2px; }
.picture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 29px; }
.picture-card { margin: 0; }
.picture-image { position: relative; padding: 10px; background: #fffdf7; box-shadow: 0 3px 9px #77554010; transition: transform .3s; }
.picture-card-one .picture-image { transform: rotate(-2deg); }
.picture-card-two .picture-image { transform: rotate(1deg); }
.picture-card-three .picture-image { transform: rotate(-1deg); }
.picture-card:hover .picture-image { transform: rotate(0) translateY(-5px); }
.picture-image img { width: 100%; height: auto; aspect-ratio: 1.25; display: block; object-fit: cover; }
.picture-number { position: absolute; left: 19px; top: 18px; font-size: 10px; color: #79564a; }
.picture-card figcaption { padding: 24px 9px 0; }
h3 { font-size: 25px; letter-spacing: -.6px; margin-bottom: 10px; }
.picture-card p { color: var(--muted); line-height: 1.9; font-size: 12px; margin: 0; }
.picture-card { position: relative; }
.gallery-trigger { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; background: transparent; padding: 0; z-index: 2; }
.gallery-invitation { position: absolute; bottom: 22px; right: 22px; display: inline-flex; align-items: center; gap: 14px; background: #fff8e9; color: #754b3e; padding: 9px 12px; border-radius: 3px; font-size: 10px; box-shadow: 0 2px 8px #43312912; }
.gallery-invitation > span { font-size: 16px; }
.media-dialog { width: min(860px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid #e1ccba; border-radius: 12px; padding: 30px 26px 22px; overflow: auto; color: var(--ink); background: var(--cream); box-shadow: 0 24px 100px #44282540; text-align: center; }
.media-dialog::backdrop { background: #39271eaa; backdrop-filter: blur(5px); }
.media-dialog > .eyebrow { color: var(--red); font-size: 9px; margin-bottom: 10px; padding-inline: 22px; }
.media-dialog h2 { font-size: 36px; }
.gallery-description { margin: 11px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.gallery-frame { display: grid; place-items: center; position: relative; width: 100%; height: min(54dvh, 520px); min-height: 160px; overflow: hidden; border-radius: 5px; background: #352b29; }
.gallery-frame img, .gallery-frame video { display: block; width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; grid-area: 1 / 1; }
.gallery-frame [hidden] { display: none; }
.gallery-error { grid-area: 1 / 1; position: relative; background: #352b29e8; color: #fff4e8; padding: 20px; max-width: 320px; font-size: 13px; line-height: 1.8; }
.gallery-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; }
.gallery-arrow { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--red); font-size: 22px; }
.gallery-arrow:hover { background: #f0ded5; }
.gallery-caption { min-width: 0; }
.gallery-caption .handwritten { font-size: 16px; line-height: 1.5; color: var(--red); margin: 0 0 5px; }
.gallery-count { font-size: 9px; color: var(--muted); letter-spacing: .8px; margin: 0; }
.gallery-dots { display: flex; justify-content: center; gap: 2px; margin-top: 5px; }
.gallery-dots button { border: 0; background: transparent; width: 32px; height: 32px; padding: 11px; }
.gallery-dots button::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: #d6bcb0; }
.gallery-dots button[aria-pressed='true']::before { background: var(--red); }
.picture-card:hover h3 { color: var(--red); }
.picture-card:hover .gallery-invitation { background: var(--red); color: #fff9f1; }
.gift-dialog { width: min(510px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 42px 30px 29px; border: 1px solid #e1ccba; border-radius: 12px; color: var(--ink); background: var(--cream); text-align: center; box-shadow: 0 24px 100px #44282540; }
.gift-dialog::backdrop { background: #39271e7d; backdrop-filter: blur(5px); }
.gift-dialog .eyebrow { font-size: 9px; color: var(--red); padding-inline: 16px; margin-bottom: 14px; }
.gift-dialog h2 { font-size: 35px; margin-bottom: 22px; }
.gift-flowers { display: block; width: min(100%, 320px); height: auto; margin: 0 auto 22px; border: 9px solid #fffdf7; transform: rotate(-2deg); box-shadow: 0 3px 12px #77554018; }
.gift-flowers[hidden] { display: none; }
.gift-message { text-align: left; font-size: 14px; line-height: 1.9; color: var(--muted); }
.gift-message p { margin-bottom: 16px; }
.gift-signature { text-align: left; color: var(--red); margin: 12px 0 24px; font-size: 23px; }
.notes-section { background: #f0ded5; border-block: 1px solid #e5cec1; }
.notes-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-block: 75px; }
.notes-intro .eyebrow { color: #936858; margin-bottom: 17px; }
.notes-intro h2 { font-size: 48px; }
.notes-intro > p:not(.eyebrow) { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 22px 0 24px; }
.note-controls { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
.note-counter { color: #8b6a5b; font-size: 10px; letter-spacing: .2px; }
.note-stage { position: relative; padding: 28px 24px; }
.note-paper { position: relative; min-height: 288px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: #fff9e9; padding: 32px 32px 27px; box-shadow: 4px 7px 0 #cfb29e4d; transform: rotate(3deg); transition: transform .25s, opacity .2s; }
.note-paper::before { content: ''; width: 75px; height: 26px; position: absolute; top: -12px; left: calc(50% - 38px); transform: rotate(-5deg); background: #b9937880; }
.note-paper.is-changing { transform: rotate(-2deg) translateY(-6px); opacity: .2; }
.note-topline, #note-topline { font-size: 8px; letter-spacing: 1.5px; color: #a38b73; }
#note-text { font-family: var(--serif); font-size: 30px; line-height: 1.35; letter-spacing: -.7px; color: #754b3e; margin: 0; }
#note-signature { color: #a63742; font-size: 14px; }
.note-doodle { position: absolute; top: -10px; left: -4px; font: 65px var(--serif); color: var(--red); transform: rotate(-15deg); }
.note-sparkle { position: absolute; right: -7px; bottom: 0; color: var(--red); font: 69px var(--serif); }
.letter-section { text-align: center; padding-block: 85px 63px; max-width: 740px; }
.letter-label > span { font-family: var(--serif); color: var(--red); font-size: 45px; }
.letter-label p { color: var(--muted); letter-spacing: 2px; font-size: 9px; margin: 12px 0 22px; }
.letter-section h2 { font-size: 42px; margin-bottom: 25px; }
.letter-body { max-width: 560px; margin: auto; }
.letter-body p { font-size: 14px; color: var(--muted); line-height: 2; margin-bottom: 18px; }
.letter-signature { font-size: 16px; line-height: 1.8; margin: 26px 0; color: #9b6756; }
.letter-signature span { display: inline-block; font-size: 30px; color: var(--red); transform: rotate(-6deg); margin-top: 4px; }
.button-outline { border-color: #cdb6a5; color: var(--red); background: transparent; font-size: 11px; }
.button-outline:hover { background: #f2e7dc; }
.button-outline span { font-size: 20px; }
.confetti-status { min-height: 18px; margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; color: #8d7765; font-size: 9px; }
.site-footer > span:last-child { letter-spacing: 1.5px; }
.site-footer > span:last-child span { font-size: 16px; color: var(--red); padding-left: 10px; }
.wish-dialog { width: min(510px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 44px 35px 25px; border: 1px solid #e1ccba; border-radius: 12px; text-align: center; color: var(--ink); background: var(--cream); box-shadow: 0 24px 100px #44282540; }
.wish-dialog::backdrop { background: #39271e7d; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.close-button { position: absolute; right: 11px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 28px; }
.wish-dialog .eyebrow { font-size: 9px; color: var(--red); margin-bottom: 16px; }
.wish-dialog h2 { font-size: 37px; margin-bottom: 17px; }
#wish-description { font-size: 13px; line-height: 1.9; color: var(--muted); }
.wish-cake { position: relative; height: 191px; width: 200px; margin: 10px auto 20px; padding-top: 93px; }
.candles { display: flex; justify-content: center; gap: 21px; position: absolute; top: 38px; left: 0; right: 0; z-index: 2; }
.candle { width: 8px; height: 55px; position: relative; background: repeating-linear-gradient(45deg,#fdf3df 0 6px,#bc6576 6px 11px); border-radius: 2px 2px 0 0; }
.candle:nth-child(even) { height: 43px; top: 12px; }
.candle::before { content: ''; position: absolute; height: 7px; width: 2px; left: 3px; top: -6px; background: #584236; }
.candle i { position: absolute; width: 13px; height: 23px; left: -2px; top: -28px; background: #efb949; border-radius: 55% 45% 45% 50%; transform-origin: center bottom; box-shadow: 0 0 18px #f7b14288; animation: flicker 1s ease-in-out infinite alternate; }
.candle:nth-child(even) i { animation-delay: -.5s; }
.cake-top { background: #f7c4c4; width: 200px; height: 39px; border-radius: 50%; position: absolute; top: 75px; z-index: 3; box-shadow: inset 0 -4px 0 #d8839a; }
.cake-body { width: 200px; height: 83px; background: #eaa4b2; border-radius: 0 0 50% 50% / 0 0 22% 22%; display: flex; align-items: center; justify-content: space-evenly; color: #a63742; font-size: 28px; padding-top: 13px; position: relative; z-index: 1; }
.cake-plate { position: absolute; bottom: 3px; left: -17px; width: 234px; height: 31px; border-radius: 50%; background: #d5bd9d; box-shadow: 0 3px 0 #b59976; }
.wish-cake.is-blown .candle i { animation: none; opacity: 0; transform: translateY(-12px) scale(.1); transition: opacity .5s, transform .5s; }
.wish-footnote { margin: 17px 0 0; font-size: 10px; line-height: 1.7; color: var(--muted); }
#blow-candles { width: 100%; font-size: 11px; gap: 12px; }
@keyframes flicker { from { transform: rotate(-5deg) scale(.95); } to { transform: rotate(6deg) scale(1.07); } }
@media (min-width: 1500px) { .hero { min-height: 760px; } }
@media (max-width: 1050px) { .wrap { width: calc(100% - 64px); } .hero { gap: 24px; min-height: 650px; } h1 { font-size: 65px; letter-spacing: -3px; } .title-heart { font-size: 35px; } .hero-actions { gap: 15px; } .hero-art { padding-inline: 12px; } .round-sticker { width: 95px; height: 95px; left: -7px; font-size: 7px; } .hero-polaroid figcaption { font-size: 13px; } .notes-inner { gap: 30px; } .notes-intro h2 { font-size: 42px; } .note-paper { padding: 28px 25px; } #note-text { font-size: 26px; } .picture-grid { gap: 20px; } }
@media (max-width: 760px) { .wrap { width: calc(100% - 40px); } .site-header { min-height: 80px; gap: 10px; } .wordmark { font-size: 19px; gap: 8px; } .wordmark span { font-size: 27px; } .header-note { display: none; } .sound-button { font-size: 10px; padding: 8px 12px; } .hero { grid-template-columns: 1fr; gap: 65px; padding-block: 47px 55px; } .hero-copy { text-align: center; } .hero .eyebrow { justify-content: center; font-size: 9px; } h1 { font-size: clamp(53px, 9.8vw, 75px); line-height: 1.06; letter-spacing: -2.8px; margin-bottom: 21px; } .title-heart { font-size: 31px; margin: 10px 0 0 7px; } .hero-description { font-size: 13px; margin-bottom: 25px; } .hero-actions { justify-content: center; gap: 19px; } .button { font-size: 11px; padding-inline: 18px; } .text-link { font-size: 10px; } .signature-small { font-size: 9px; margin-top: 21px; } .hero-art { width: min(400px, calc(100% - 30px)); margin: 0 auto; padding: 20px 14px 0; } .birthday-side-note { top: -24px; right: 0; font-size: 14px; } .hero-polaroid figcaption { padding-block: 19px 21px; font-size: 14px; } .round-sticker { bottom: -10px; left: -12px; width: 94px; height: 94px; } .hero-sparkle { font-size: 44px; right: -11px; bottom: 36px; } .birthday-ribbon { padding-block: 14px; } .birthday-ribbon > div { font-size: 9px; gap: 25px; } .little-things { padding-block: 57px 60px; } .section-heading { display: block; margin-bottom: 30px; } h2 { font-size: 34px; } .section-heading .eyebrow { font-size: 9px; } .section-heading > p { margin-top: 15px; font-size: 11px; } .section-heading > p br { display: none; } .picture-grid { grid-template-columns: 1fr; gap: 34px; max-width: 410px; margin: auto; } .picture-card figcaption { padding-top: 21px; } h3 { font-size: 25px; } .picture-card p { font-size: 12px; } .notes-inner { grid-template-columns: 1fr; gap: 38px; padding-block: 50px; } .notes-intro { text-align: center; } .notes-intro h2 { font-size: 40px; } .notes-intro .eyebrow { font-size: 9px; } .notes-intro > p:not(.eyebrow) { margin-block: 18px 23px; } .note-controls { align-items: center; } .note-stage { width: min(100%, 420px); margin: auto; padding-inline: 20px; } .note-paper { min-height: 267px; padding: 28px 25px; } #note-text { font-size: 28px; } .note-doodle { left: -1px; } .note-sparkle { right: 0; } .letter-section { padding-block: 54px 38px; } .letter-section h2 { font-size: 33px; } .letter-body p { font-size: 13px; } .letter-signature { font-size: 14px; } .site-footer { flex-direction: column; text-align: center; gap: 14px; padding-block: 24px; font-size: 9px; } }
@media (max-width: 370px) { .wrap { width: calc(100% - 32px); } h1 { font-size: 43px; letter-spacing: -2.5px; } .title-heart { font-size: 25px; margin-left: 3px; } .hero-actions { flex-direction: column; gap: 15px; } .wordmark { font-size: 17px; } .wish-dialog { padding-inline: 20px; } .wish-dialog h2 { font-size: 31px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
