:root { --wine: #571f2d; --wine-dark: #321018; --rose: #c98f98; --rose-light: #e7c8cc; --cream: #fff8f1; --cream-2: #f7ede4; --gold: #c9a66b; --text: #3a282b; --white: #ffffff; } * { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; min-height: 100%; } body { font-family: "DM Sans", sans-serif; background: radial-gradient(circle at 10% 10%, rgba(201, 143, 152, 0.2), transparent 25%), radial-gradient(circle at 90% 80%, rgba(201, 166, 107, 0.15), transparent 25%), var(--cream); color: var(--text); overflow: hidden; } button { font-family: inherit; } .app { width: 100%; height: 100dvh; position: relative; overflow: hidden; } .grain { position: fixed; inset: 0; pointer-events: none; opacity: 0.12; z-index: 2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='.25'/%3E%3C/svg%3E"); } .ambient { position: fixed; border-radius: 999px; filter: blur(70px); pointer-events: none; z-index: 0; } .ambient.one { width: 250px; height: 250px; background: rgba(159, 66, 90, 0.15); left: -100px; top: 10%; } .ambient.two { width: 280px; height: 280px; background: rgba(211, 172, 106, 0.16); right: -120px; bottom: 10%; } .page { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 28px 20px 100px; opacity: 0; visibility: hidden; transform: scale(0.98); transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s; } .page.active { opacity: 1; visibility: visible; transform: scale(1); } .page-inner { width: min(100%, 900px); max-height: 100%; overflow-y: auto; scrollbar-width: none; } .page-inner::-webkit-scrollbar { display: none; } .eyebrow { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--wine); font-weight: 700; margin-bottom: 14px; } h1, h2, h3 { font-family: "Playfair Display", serif; } h1 { font-size: clamp(52px, 10vw, 94px); line-height: 0.95; font-weight: 500; } h2 { font-size: clamp(38px, 7vw, 66px); line-height: 1.05; font-weight: 500; } p { line-height: 1.8; } .subtitle { margin-top: 20px; color: #745b60; max-width: 600px; } .nav { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid rgba(87, 31, 45, 0.14); border-radius: 999px; background: rgba(255, 248, 241, 0.8); backdrop-filter: blur(16px); box-shadow: 0 15px 50px rgba(60, 20, 30, 0.12); } .nav button { border: none; cursor: pointer; border-radius: 999px; padding: 13px 20px; color: var(--wine); background: transparent; transition: 0.3s; } .nav .next { background: var(--wine); color: var(--cream); } .nav button:hover { transform: translateY(-2px); } .page-number { font-size: 12px; padding: 0 7px; color: #856b70; } .hero { text-align: center; } .hero-heart { width: 58px; height: 58px; border-radius: 50%; background: var(--wine); color: white; display: grid; place-items: center; margin: 0 auto 28px; font-size: 24px; animation: heartFloat 3s ease-in-out infinite; } @keyframes heartFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } } .hero strong { color: var(--wine); font-weight: 600; font-style: italic; } .date-badge { display: inline-flex; margin-top: 28px; padding: 10px 18px; border: 1px solid rgba(87, 31, 45, 0.16); border-radius: 999px; font-size: 13px; color: #70565c; background: rgba(255, 255, 255, 0.5); } .music-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; } .vinyl-card { min-height: 430px; background: linear-gradient( 145deg, rgba(255,255,255,0.92), rgba(246,230,222,0.82) ); border: 1px solid rgba(87, 31, 45, 0.12); border-radius: 36px; position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(77, 27, 39, 0.14); } .record { position: absolute; width: 270px; height: 270px; border-radius: 50%; background: repeating-radial-gradient( circle, #2c2022 0, #2c2022 4px, #1c1416 5px, #1c1416 7px ); left: 50%; top: 43%; transform: translate(-50%, -50%); box-shadow: 0 20px 45px rgba(0,0,0,0.23); } .record.playing { animation: spin 5s linear infinite; } @keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } } .record-label { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--wine)); left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; color: white; font-family: "Playfair Display", serif; font-style: italic; } .music-controls { position: absolute; bottom: 22px; left: 22px; right: 22px; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 22px; background: rgba(255,255,255,0.72); backdrop-filter: blur(14px); } .song-title { font-size: 13px; font-weight: 700; } .song-artist { font-size: 11px; color: #856f73; margin-top: 3px; } .play-button { border: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: white; cursor: pointer; } .gallery-header { text-align: center; margin-bottom: 30px; } .gallery-wrapper { position: relative; } .gallery-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px calc(50% - 150px) 40px; scrollbar-width: none; } .gallery-track::-webkit-scrollbar { display: none; } .memory-card { width: 300px; min-width: 300px; scroll-snap-align: center; border-radius: 26px; background: white; padding: 12px 12px 20px; transform: rotate(-2deg); box-shadow: 0 22px 55px rgba(77, 27, 39, 0.12); border: 1px solid rgba(87,31,45,0.08); transition: 0.35s; } .memory-card:nth-child(even) { transform: rotate(2deg); } .memory-card:hover { transform: rotate(0deg) translateY(-7px); } .photo-carousel { width: 100%; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; position: relative; background: #eadbd6; } .photo-track { height: 100%; display: flex; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); } .photo-track img { min-width: 100%; height: 100%; object-fit: cover; } .photo-button { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(255,255,255,0.78); cursor: pointer; z-index: 3; } .photo-button.prev { left: 8px; } .photo-button.next { right: 8px; } .memory-caption { text-align: center; margin-top: 15px; } .memory-caption strong { font-family: "Playfair Display", serif; font-size: 20px; } .memory-caption span { display: block; margin-top: 5px; color: #91787d; font-size: 12px; } .little-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; } .little-card { aspect-ratio: 1 / 1; perspective: 1000px; cursor: pointer; } .little-inner { position: relative; width: 100%; height: 100%; transition: transform 0.7s; transform-style: preserve-3d; } .little-card.flipped .little-inner { transform: rotateY(180deg); } .little-front, .little-back { position: absolute; inset: 0; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; backface-visibility: hidden; border: 1px solid rgba(87,31,45,0.11); } .little-front { background: rgba(255,255,255,0.75); } .little-back { transform: rotateY(180deg); background: var(--wine); color: var(--cream); } .little-icon { font-size: 32px; margin-bottom: 13px; } .letter-container { max-width: 700px; margin: auto; } .letter { background: #fffdf8; border-radius: 5px 5px 24px 24px; padding: clamp(30px, 7vw, 60px); box-shadow: 0 30px 80px rgba(69, 30, 38, 0.13); border-top: 5px solid var(--wine); position: relative; } .letter::before { content: "♥"; position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; top: -27px; left: 50%; transform: translateX(-50%); background: var(--wine); color: white; border: 5px solid var(--cream); } .letter p { margin-top: 25px; color: #675258; } .signature { margin-top: 35px; font-family: "Playfair Display", serif; font-style: italic; font-size: 24px; color: var(--wine); } .heart-game { text-align: center; } .heart-field { height: 350px; margin-top: 25px; position: relative; border-radius: 35px; overflow: hidden; background: linear-gradient( 135deg, rgba(255,255,255,0.72), rgba(231,200,204,0.42) ); border: 1px solid rgba(87,31,45,0.1); } .floating-heart { position: absolute; border: none; background: transparent; font-size: 28px; cursor: pointer; animation: bob 3s ease-in-out infinite; } @keyframes bob { 50% { transform: translateY(-10px) scale(1.1); } } .secret { margin-top: 20px; opacity: 0; transform: translateY(10px); transition: 0.5s; font-family: "Playfair Display", serif; font-size: 26px; color: var(--wine); } .secret.show { opacity: 1; transform: translateY(0); } .closing { text-align: center; } .closing-symbol { font-size: 70px; margin-bottom: 25px; animation: heartFloat 3s ease-in-out infinite; } .transition-layer { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; } .transition-overlay { position: absolute; inset: 0; background: var(--wine); transform: translateY(100%); transition: transform 0.75s cubic-bezier(.75,0,.2,1); } .transition-layer.enter .transition-overlay { transform: translateY(0); } .transition-layer.exit .transition-overlay { transform: translateY(-100%); } .flowers { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity 0.25s; } .transition-layer.enter .flowers { opacity: 1; } .flower { position: absolute; color: var(--rose-light); font-size: clamp(28px, 7vw, 70px); animation: bloom 0.7s ease both; } @keyframes bloom { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } } @media (max-width: 700px) { .page { padding-top: 35px; } .music-layout { grid-template-columns: 1fr; } .music-layout .copy { text-align: center; } .vinyl-card { min-height: 390px; } .record { width: 240px; height: 240px; } .little-grid { grid-template-columns: 1fr 1fr; } .nav { width: calc(100% - 28px); justify-content: space-between; } .nav button { padding: 12px 16px; } .page-number { flex: 1; text-align: center; } }