/* ------------------------------------------------------------------
   gracieaj.com — baby pink, lace & letters
   three homepage looks, switched via html[data-look]:
     a — the letter (wax seal on folded paper)
     b — the lace   (ivory lace, scalloped edges, monogram medallion)
     c — the stars  (pink-grey nebula, crescent moon, sparkles)
   palette:
     blush bg      #f7dee4
     blush deep    #f2ccd6
     paper ivory   #fdfaf5
     wax rose      #d99aa7
     ink           #5a4348
     ink soft      #8c6f76
------------------------------------------------------------------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blush: #f7dee4;
  --blush-deep: #f2ccd6;
  --paper: #fdfaf5;
  --wax: #d99aa7;
  --wax-deep: #b06f7e;
  --ink: #5a4348;
  --ink-soft: #8c6f76;
  --script: "Monsieur La Doulaise", cursive;
  --cursive: "Tangerine", cursive;
  --serif: "Cormorant Garamond", serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: #f0ece7;
}

/* one full-page backdrop per look, fixed behind everything and
   drifting very slowly — the whole site lives in the chosen world */
body::before {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: -1;
  pointer-events: none;
  animation: drift-bg 38s ease-in-out infinite alternate;
}

html[data-look="a"] body::before {
  /* champagne-ivory aurora, just a whisper of rose */
  background:
    radial-gradient(46% 56% at 80% 14%, rgba(226, 210, 184, .5), transparent 70%),
    radial-gradient(42% 52% at 16% 24%, rgba(214, 202, 188, .42), transparent 70%),
    radial-gradient(50% 60% at 70% 86%, rgba(206, 192, 198, .32), transparent 72%),
    radial-gradient(36% 46% at 24% 78%, rgba(224, 200, 202, .26), transparent 70%),
    radial-gradient(44% 54% at 46% 46%, rgba(250, 246, 240, .85), transparent 72%),
    #f2efea;
}

html[data-look="b"] body::before {
  background:
    linear-gradient(rgba(252, 251, 249, .48), rgba(252, 251, 249, .58)),
    url("/img/lace.jpg") center / cover no-repeat;
}

html[data-look="c"] body::before {
  background:
    linear-gradient(rgba(246, 240, 242, .4), rgba(246, 240, 242, .52)),
    url("/img/space.jpg") center / cover no-repeat;
}

@keyframes drift-bg {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(2%, -1.5%) scale(1.06); }
}

.links,
.music,
.footer {
  background: transparent;
}

/* ============ look switcher ============ */

.switcher {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(253, 250, 245, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 154, 167, .45);
  border-radius: 999px;
  padding: 6px 12px 6px 16px;
  box-shadow: 0 4px 18px rgba(176, 111, 126, .22);
}

.switcher__label {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.switcher__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--wax);
  background: transparent;
  color: var(--wax-deep);
  font-family: var(--serif);
  font-size: 15px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}

.switcher__btn:hover { transform: translateY(-1px); }

html[data-look="a"] .switcher__btn[data-look-btn="a"],
html[data-look="b"] .switcher__btn[data-look-btn="b"],
html[data-look="c"] .switcher__btn[data-look-btn="c"] {
  background: var(--wax);
  color: #fff;
}

/* ============ heroes (shared) ============ */

.hero {
  display: none;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: clamp(56px, 10vh, 110px) 20px;
  text-align: center;
}

html[data-look="a"] .hero--a,
html[data-look="b"] .hero--b,
html[data-look="c"] .hero--c {
  display: flex;
  animation: heroIn .6s ease both;
}

@keyframes heroIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* a soft veil above each hero's artwork for text legibility */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero--b .hero__veil {
  background: radial-gradient(ellipse 80% 64% at 50% 52%,
    rgba(252, 251, 249, .5) 25%, rgba(252, 251, 249, .12));
}

.hero--c .hero__veil {
  background: radial-gradient(ellipse 78% 58% at 50% 50%,
    rgba(246, 240, 242, .72) 20%, rgba(238, 226, 230, .1));
}

.hero--c .hero__salutation { color: var(--ink); }

.hero--c .hero__salutation,
.hero--c .hero__name,
.hero--c .hero__hint {
  text-shadow: 0 0 16px rgba(255, 252, 253, .9), 0 0 4px rgba(255, 252, 253, .6);
}

.letter__wrap,
.hero--b__inner,
.hero--c__inner {
  position: relative;
  z-index: 2;
}

.hero__salutation {
  font-size: 15px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.hero__name {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 44px);
  line-height: 1.35;
  color: var(--ink);
}

.hero__hint {
  margin-top: 34px;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}

.emblem {
  border: none;
  background: none;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}

.emblem.emblem--pressed { transform: scale(.9) rotate(5deg); }

.hero-scroll {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--wax-deep);
  animation: drift 2.4s ease-in-out infinite;
  z-index: 40;
}

/* only show the scroll hint while the hero is on screen */
body.past-hero .hero-scroll { display: none; }

@keyframes drift {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ============ look a — the letter ============ */
/* faithful to Gracie's reference: torn white handmade paper on a warm
   off-white ground, one small dusty-pink seal breaking the top edge */

.hero--a { background: transparent; }

.letter__wrap {
  /* shadow lives on the wrap so it follows the torn-edge alpha of the
     masked paper below, and the seal escapes the mask */
  filter: drop-shadow(0 2px 3px rgba(120, 110, 100, .2))
          drop-shadow(0 18px 38px rgba(120, 110, 100, .18));
}

.letter__paper {
  background: #fdfdfc;
  width: min(400px, 86vw);
  min-height: min(560px, 120vw);
  padding: 70px 36px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* torn deckled edges */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 560' preserveAspectRatio='none'><defs><filter id='t' x='-6%25' y='-6%25' width='112%25' height='112%25'><feTurbulence type='fractalNoise' baseFrequency='0.045' numOctaves='4' seed='11'/><feDisplacementMap in='SourceGraphic' scale='13'/></filter></defs><rect x='10' y='10' width='380' height='540' fill='white' filter='url(%23t)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 560' preserveAspectRatio='none'><defs><filter id='t' x='-6%25' y='-6%25' width='112%25' height='112%25'><feTurbulence type='fractalNoise' baseFrequency='0.045' numOctaves='4' seed='11'/><feDisplacementMap in='SourceGraphic' scale='13'/></filter></defs><rect x='10' y='10' width='380' height='540' fill='white' filter='url(%23t)'/></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  /* folded-in-quarters creases, like the reference */
  background-image:
    linear-gradient(to bottom, transparent 49.7%,
      rgba(120, 110, 100, .07) 50%, transparent 50.5%),
    linear-gradient(to right, transparent 49.7%,
      rgba(120, 110, 100, .06) 50%, transparent 50.5%);
}

.seal {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 3px 8px rgba(150, 110, 118, .35));
  z-index: 3;
}

.seal:hover { transform: translateX(-50%) scale(1.06) rotate(-3deg); }
.seal.emblem--pressed { transform: translateX(-50%) scale(.92) rotate(6deg); }

.seal svg { width: 100%; height: 100%; }

.seal__initials {
  font-family: var(--script);
  font-size: 26px;
  fill: #a97f88;
  letter-spacing: 1px;
}

/* ============ look b — the lace ============ */
/* Gracie's real lace photograph as the ground, her collage idea on top:
   overlapping photo cards + the calligraphy monogram card */

.hero--b { background: transparent; }

.collage {
  position: relative;
  width: min(400px, 88vw);
  height: min(300px, 66vw);
  margin: 0 auto;
}

.collage__tile {
  position: absolute;
  display: block;
  background: #fff;
  padding: 7px;
  box-shadow: 0 8px 26px rgba(120, 110, 100, .3);
}

.collage__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}

.collage__tile--1 {
  left: 2%;
  top: 12%;
  width: 56%;
  height: 82%;
  transform: rotate(-4deg);
}

.collage__tile--2 {
  right: 2%;
  top: 0;
  width: 54%;
  height: 78%;
  transform: rotate(3deg);
  z-index: 1;
}

.monotile {
  position: relative;
  width: 116px;
  height: 128px;
  margin: -52px 0 28px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 10px 26px rgba(120, 110, 100, .32);
  transform: rotate(-2deg);
  z-index: 2;
}

.monotile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.monotile:hover { transform: rotate(-2deg) scale(1.06); }
.monotile.emblem--pressed { transform: rotate(3deg) scale(.92); }

/* ============ look c — the stars ============ */

.hero--c {
  overflow: hidden;
  color: var(--ink);
  background: transparent;
}

.moon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 30px;
  position: relative;
  filter: drop-shadow(0 0 18px rgba(255, 248, 250, .8));
}

.moon:hover { transform: scale(1.06) rotate(-6deg); }

.moon__crescent {
  position: absolute;
  top: 18px;
  left: 8px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 16px 6px 0 0 #fdf6f8;
  transform: rotate(-16deg);
  display: block;
}

.sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fdf6f8;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 2.8s ease-in-out infinite alternate;
  opacity: .85;
}

.sparkle--1 { top: 22%; left: 16%; }
.sparkle--2 { top: 14%; right: 20%; width: 11px; height: 11px; animation-delay: .9s; }
.sparkle--3 { bottom: 24%; right: 13%; animation-delay: 1.6s; }
.sparkle--4 { bottom: 15%; left: 22%; width: 10px; height: 10px; animation-delay: .4s; }

@keyframes twinkle {
  from { opacity: .4; }
  to   { opacity: 1; }
}

/* ============ the links ============ */

.links { padding: 90px 20px 40px; }

.links__inner {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.portrait {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #e9e2dc 90%);
  border: 3px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 30px rgba(88, 72, 76, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.portrait__monogram {
  font-family: var(--script);
  font-size: 64px;
  color: var(--wax-deep);
  transform: translateY(6px);
}

.links__name {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 46px);
  line-height: 1.3;
}

.links__tagline {
  font-size: 14px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 8px 0 40px;
}

.linklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.linkrow {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 254, 251, .72);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(88, 72, 76, .1);
  border: 1px solid rgba(90, 67, 72, .1);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.linkrow:hover {
  transform: translateY(-2px);
  background: rgba(255, 254, 251, .88);
  box-shadow: 0 12px 30px rgba(88, 72, 76, .16);
}

.linkrow__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
}

.linkrow__icon svg { width: 21px; height: 21px; }

.linkrow__icon--apple { background: linear-gradient(135deg, #fb5c74, #fa233b); }
.linkrow__icon--sp    { background: #1db954; }
.linkrow__icon--am    { background: #232f3e; }
.linkrow__icon--ig    { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.linkrow__icon--tt    { background: #1b1b1f; }

.linkrow__label {
  font-family: var(--cursive);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  flex: 1;
  text-align: left;
  transform: translateY(2px);
}

.linkrow__btn {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wax-deep);
  border: 1px solid var(--wax);
  border-radius: 999px;
  padding: 7px 18px;
  transition: background .25s ease, color .25s ease;
}

.linkrow:hover .linkrow__btn {
  background: var(--wax);
  color: #fff;
}

/* ============ the music ============ */

.music { padding: 70px 20px 30px; text-align: center; }

.music__heading {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(32px, 7vw, 42px);
  margin-bottom: 36px;
}

.music__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}

.single {
  width: 200px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s ease;
}

a.single:hover { transform: translateY(-4px); }

.single__art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(88, 72, 76, .2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.single__art--lace {
  background:
    radial-gradient(circle at 25% 25%, rgba(217,154,167,.28) 1.2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(217,154,167,.22) 1.2px, transparent 2px),
    linear-gradient(150deg, #fdfaf5, #f6e3e8);
  background-size: 22px 22px, 22px 22px, cover;
  border: 1px solid rgba(217, 154, 167, .35);
}

.single__art--alt {
  background:
    radial-gradient(circle at 50% 50%, rgba(217,154,167,.25) 1.2px, transparent 2px),
    linear-gradient(210deg, #fbf0e8, #f4dce2);
  background-size: 18px 18px, cover;
}

.single__monogram {
  font-family: var(--script);
  font-size: 78px;
  color: rgba(176, 111, 126, .55);
  transform: translateY(8px);
}

/* the space one — for the new song */
.single__art--space {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(233, 160, 180, .5) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 70%, rgba(196, 130, 150, .45) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #4a3540 0%, #362630 70%, #2b1e26 100%);
}

.space-stars,
.space-stars::before {
  content: "";
  position: absolute;
  inset: 0;
}

.space-stars {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) .7px, transparent 1.3px),
    radial-gradient(circle, rgba(255,255,255,.5) .5px, transparent 1px);
  background-size: 46px 46px, 29px 29px;
  background-position: 8px 12px, 20px 4px;
  animation: twinkle 3.6s ease-in-out infinite alternate;
}

.space-stars::before {
  background-image: radial-gradient(circle, rgba(255,220,230,.75) .6px, transparent 1.2px);
  background-size: 37px 37px;
  background-position: 3px 25px;
  animation: twinkle 2.7s ease-in-out infinite alternate-reverse;
}

.space-moon {
  position: absolute;
  top: 22%;
  left: 26%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 7px 3px 0 0 #f3e3e8;
  transform: rotate(-14deg);
}

.single--soon .single__title { color: var(--ink); }

.single__title {
  font-family: var(--cursive);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}

.single__meta {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ============ footer ============ */

.footer {
  text-align: center;
  padding: 70px 20px 46px;
}

.footer__label {
  display: block;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.footer__contact a {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--wax-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 154, 167, .5);
}

.footer__sign {
  font-family: var(--script);
  font-size: 34px;
  margin: 36px 0 18px;
}

.footer__legal {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .75;
}

/* ============ short viewports ============ */
/* keep the whole hero — name included — on the first screen */

@media (max-height: 780px) {
  .hero { padding: clamp(44px, 8vh, 70px) 20px; }

  .letter__paper {
    min-height: min(440px, 104vw);
    padding: 46px 30px 36px;
  }

  .seal { width: 72px; height: 72px; top: -28px; }
  .seal__initials { font-size: 22px; }

  .collage {
    width: min(330px, 78vw);
    height: min(225px, 52vw);
  }

  .monotile { width: 90px; height: 98px; margin: -38px 0 16px; }

  .moon { width: 68px; height: 68px; margin-bottom: 14px; }
  .moon__crescent { top: 13px; left: 6px; width: 42px; height: 42px; box-shadow: 12px 4px 0 0 #fdf6f8; }

  .hero__name { font-size: clamp(28px, 6.5vw, 36px); }
  .hero__salutation { font-size: 13px; margin-bottom: 6px; }
  .hero__hint { margin-top: 16px; font-size: 14px; }
}

/* very wide + short (small laptop window): give look B's collage room
   beside nothing — just keep it compact */
@media (max-height: 640px) {
  .collage { width: min(280px, 72vw); height: min(180px, 44vw); }
  .hero__hint { margin-top: 10px; }
}

/* ============ reveal on scroll ============ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll, .space-stars, .space-stars::before,
  .sparkle { animation: none; }
  body::before { animation: none; }
  html[data-look="a"] .hero--a,
  html[data-look="b"] .hero--b,
  html[data-look="c"] .hero--c { animation: none; }
}
