:root {
  color-scheme: dark;
  --bg: #0f0f12;
  --surface: #17141b;
  --pink: #f472b6;
  --soft: #f9daeb;
  --ink: #fff;
  --muted: #e9cddc;
  --line: #f472b647;
  --ease: cubic-bezier(.22, .75, .25, 1);
  --serif: Georgia, serif;
  --hand: "Segoe Script", "Brush Script MT", cursive;
  font: 100%/1.6 system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
section[id] { scroll-margin-top: 2rem; }
h1, h2, h3, .brand, .preview-brand { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { line-height: 1.05; }
h2 { font-size: clamp(2.3rem, 5vw, 3.65rem); letter-spacing: -.045em; }
em { color: var(--pink); font-weight: inherit; }
.shell { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.site-header { background: #17141bf2; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.35rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.25rem; white-space: nowrap; }
.brand span, .step-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--pink);
}
.site-header nav { display: flex; gap: clamp(.8rem, 3vw, 2.25rem); }
.site-header nav a, .site-footer a:last-child { color: var(--muted); font-size: .9rem; }
.site-header nav a:hover, .site-footer a:last-child:hover { color: var(--soft); text-decoration: underline; }

.hero {
  overflow: hidden;
  border-bottom: 1px solid #f472b625;
  background: radial-gradient(ellipse at 76% 45%, #3a2031 0%, #231622 33%, transparent 69%), #130f16;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: clamp(31rem, 45vw, 40rem);
  padding-block: 4rem;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--pink); font-size: .875rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin-top: 1rem; font-size: clamp(3.25rem, 5.55vw, 5.2rem); letter-spacing: -.055em; }
h1 em { white-space: nowrap; }
.intro { max-width: 32rem; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.45rem; margin-top: 1.9rem; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; }
.button {
  border: 1px solid #f472b680;
  border-radius: 100px;
  padding: .65rem 1.5rem;
  background: var(--soft);
  color: #2b1825;
  box-shadow: 0 8px 32px #f472b62a;
  font-weight: 700;
  transition: background .25s, box-shadow .25s;
}
.button:hover { background: #ffe8f3; box-shadow: 0 8px 34px #f472b64d; }
.text-link { color: var(--soft); text-decoration: underline; text-underline-offset: .3em; }
.note { color: var(--muted); font-size: .875rem; margin-top: .75rem; }

.hero-art { position: relative; isolation: isolate; width: 100%; max-width: 35rem; aspect-ratio: 1.27; margin-inline: auto; }
.art-orbit { position: absolute; inset: 7% 1% 4%; border: 1px solid #f472b627; border-radius: 50%; transform: rotate(-22deg); }
.spark, .art-heart { position: absolute; color: var(--pink); opacity: .7; }
.spark-one { top: 9%; left: 13%; font-size: 1.25rem; }
.spark-two { top: 17%; right: 7%; font-size: .8rem; }
.spark-three { bottom: 9%; right: 8%; font-size: 1.35rem; }
.art-heart { bottom: 12%; left: 2%; font: 2rem var(--serif); transform: rotate(-22deg); }
.art-letter {
  position: absolute;
  top: 10%;
  left: 18%;
  width: 55%;
  height: 65%;
  padding: 5%;
  border: 1px solid #ffe8f3;
  border-radius: .35rem;
  background: linear-gradient(150deg, #fae6df, #dfadbd);
  color: #72394f;
  transform: rotate(-13deg);
  box-shadow: 0 12px 32px #0f0f1270;
}
.art-letter span, .address, .signature { font-family: var(--hand); font-style: italic; }
.art-letter span { font-size: clamp(1rem, 2vw, 1.65rem); }
.art-letter i { display: block; height: 1px; margin-top: .6rem; background: #72394f4a; }
.art-letter i:last-child { width: 75%; }
.polaroid {
  position: relative;
  padding: .48rem .48rem .65rem;
  border-radius: .25rem;
  background: #f1dcd4;
  color: #523943;
  box-shadow: 0 18px 34px #09050c8c, 0 2px 6px #08050970;
}
.polaroid::after {
  content: "";
  position: absolute;
  top: -.35rem;
  left: 34%;
  width: 32%;
  height: 1.2rem;
  transform: rotate(-5deg);
  background: linear-gradient(125deg, #efb9bfdd, #c584919c, #dba0b1c9);
  clip-path: polygon(0 0, 100% 0, 96% 18%, 100% 38%, 96% 56%, 100% 78%, 96% 100%, 0 100%, 4% 80%, 0 62%, 4% 40%, 0 21%);
}
.polaroid img { width: 100%; aspect-ratio: 1.28; height: auto; object-fit: cover; }
.art-photo { position: absolute; top: 13%; right: 11%; width: 38%; transform: rotate(13deg); padding-bottom: 1.6rem; }
.envelope {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.63;
  border: 1px solid #bd829980;
  border-radius: .75rem;
  background: linear-gradient(140deg, #613146, #371c30 72%);
  box-shadow: 0 20px 52px #0c050ca6, 0 0 40px #d46b852b;
}
.envelope::before, .envelope::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.envelope::before {
  background: linear-gradient(33deg, transparent 49.6%, #e8a4bd3a 50%, transparent 50.5%),
    linear-gradient(-33deg, transparent 49.6%, #e8a4bd3a 50%, transparent 50.5%);
}
.envelope::after { z-index: -1; clip-path: polygon(0 0, 100% 0, 50% 58%); background: linear-gradient(150deg, #99566d, #502a40 69%); }
.hero-envelope { position: absolute; bottom: 10%; left: 9%; width: 80%; transform: rotate(-5deg); }
.seal {
  position: absolute;
  top: 55%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 14%;
  aspect-ratio: 1;
  border: 2px solid #ef9bae80;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #c46d87, #8b3453);
  box-shadow: 0 4px 12px #160b15a6;
  font-size: clamp(.8rem, 2vw, 1.4rem);
}
.address { position: absolute; inset: auto 0 10%; color: var(--soft); text-align: center; font-size: clamp(.78rem, 2vw, 1.45rem); }

.product { display: grid; grid-template-columns: .85fr 1.3fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 7rem); }
.product h2 { margin-block: .7rem 1.25rem; }
.product-copy > p:not(.eyebrow) { max-width: 25rem; margin-bottom: .8rem; color: var(--muted); }
.product-details { display: grid; gap: .55rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.product-details li { display: flex; align-items: baseline; gap: .75rem; }
.product-details span { width: 1rem; color: var(--pink); text-align: center; }
.preview { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--surface); box-shadow: 0 18px 55px #08050a8c; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.preview-brand { white-space: nowrap; }
.preview-brand span { color: var(--pink); }
.preview-label { color: var(--muted); font-size: .875rem; }
.preview-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: .5rem; }
.preview-controls button {
  min-height: 2.75rem;
  padding: .35rem .15rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  cursor: pointer;
}
.preview-controls button:hover { border-color: var(--line); }
.preview-controls button[aria-selected="true"] { background: #3a2638; border-color: var(--line); color: var(--soft); }
.preview-controls button:focus-visible, .scene:focus-visible { outline-offset: -3px; }
.scene {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.2rem;
  min-height: 19rem;
  padding: 1.4rem .9rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 55%, #422336, #17121b 78%);
}
.scene[role="tabpanel"] > * { animation: scene-in .42s var(--ease) both; }
.scene h3 { font-size: clamp(1.5rem, 3vw, 2.45rem); letter-spacing: -.03em; }
.scene-heart { position: absolute; bottom: 12%; left: 9%; color: #f472b69c; font: 1.5rem var(--serif); }
.sample-envelope { width: min(56vw, 15.5rem); }
.sample-envelope .address { font-size: clamp(.72rem, 2vw, 1rem); }
.photo-pair { display: flex; width: min(100%, 20rem); gap: .7rem; padding: .3rem; }
.photo-pair .polaroid { flex: 1; min-width: 0; transform: rotate(-4deg); }
.photo-pair .polaroid:last-child { transform: rotate(4deg); }
.photo-pair figcaption { margin-top: .3rem; font: italic .88rem/1.2 var(--serif); }
.music-memory {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: .8rem;
  max-width: 24rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, #371d32, #16151c 78%);
  color: var(--muted);
  text-align: left;
  font-size: .875rem;
}
.music-memory img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .55rem; }
.track { color: var(--soft); font-weight: 650; margin-bottom: .25rem; }
.track span { color: var(--pink); }
.signature { margin-top: .4rem; color: var(--soft); }
@keyframes scene-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

.how { padding-block: clamp(3rem, 6vw, 5rem); border-block: 1px solid #f472b625; background: var(--surface); }
.how h2 { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 4vw, 3rem); list-style: none; padding: 0; margin: 2.5rem 0 0; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.step-icon { font: 1.25rem var(--serif); }
.steps h3 { margin-block: .85rem .5rem; font-size: 1.55rem; }
.steps p { max-width: 26ch; color: var(--muted); }
.closing { padding-block: clamp(3.25rem, 7vw, 6rem); }
.closing-card { display: grid; justify-items: center; gap: 1.25rem; text-align: center; padding: clamp(2rem, 6vw, 4.2rem) 1rem; border: 1px solid var(--line); border-radius: 1.75rem; background: radial-gradient(ellipse at 50% 30%, #351d30, #17141b 75%); }
.closing-heart { color: var(--pink); font: 2rem/1 var(--serif); }
.site-footer { border-top: 1px solid #f472b625; }

@media (max-width: 56rem) {
  .desktop-break { display: none; }
}
@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { background: radial-gradient(ellipse at 52% 81%, #3a2031, #231622 35%, transparent 72%), #130f16; }
  .hero-inner, .product { grid-template-columns: 1fr; }
  .hero-inner { gap: .9rem; padding-block: 3.3rem 1.5rem; }
  .hero-art { max-width: 26rem; }
  h1 { font-size: clamp(2.65rem, 10vw, 4.2rem); max-width: 13ch; }
  .intro { margin-top: 1rem; }
  .product { gap: 1.6rem; }
  .steps { grid-template-columns: 1fr; margin-top: 1.8rem; }
  .steps p { max-width: 37ch; }
}
@media (max-width: 26rem) {
  .site-header nav a:first-child:not(:only-child) { display: none; }
  .brand { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.support { padding-block: 2rem 4rem; }
.support p { max-width: 64ch; color: var(--muted); margin-top: 1rem; }
