@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #513445;
  --berry: #78485c;
  --muted: #795669;
  --line: #e0b8c3;
  font-family: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 280px;
  background: #fbefed;
  color: var(--ink);
}

.icon-library, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #fbefed url("assets/stationery.webp") center / 100% 100% no-repeat;
}

.sticker {
  position: absolute;
  color: #a5647b;
  opacity: .68;
  user-select: none;
}

.sticker-one { top: 24%; left: 27%; font-size: 28px; }
.sticker-two { top: 41%; left: 22%; font-size: 26px; transform: rotate(-18deg); }
.sticker-three { top: 46%; right: 23%; font-size: 23px; }
.sticker-four { bottom: 16%; right: 25%; font: 18px Georgia, serif; transform: rotate(5deg); }
.sticker-five { top: 25%; right: 24%; font-size: 16px; transform: rotate(14deg); }

.background-equalizer {
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: min(76vw, 1020px);
  height: clamp(110px, 26vh, 255px);
  display: flex;
  align-items: stretch;
  gap: clamp(3px, .48vw, 8px);
  transform: translateX(-50%);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.background-equalizer span {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 9px 9px 2px 2px;
  background: linear-gradient(0deg, #d18ba34d, #d494ae8f);
  transform: scaleY(.035);
  transform-origin: center bottom;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(136px, 17vh, 180px) 27px clamp(91px, 11vh, 128px);
  overflow: clip;
}

.profile {
  position: relative;
  z-index: 1;
  width: min(100%, 550px);
  text-align: center;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #a66d82;
}

.ornament span {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: .74;
}

.ornament span:last-child { transform: scaleX(-1); }
.ornament svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.25; }

h1 {
  margin: 8px 0 0;
  color: var(--berry);
  font: italic 600 clamp(55px, 7.2vw, 102px) / .99 "Playfair Display", Georgia, serif;
  letter-spacing: -.075em;
  padding-right: .08em;
  text-shadow: 0 2px #fffaf7, 0 4px 18px #c983a147;
}

.welcome {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .09em;
}

.welcome span { margin-left: 4px; color: #9b5972; }

.music {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  margin: 20px auto 18px;
  padding: 1px 11px 1px 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fae6eb;
  color: var(--berry);
  box-shadow: 0 3px 10px #a1647a13, inset 0 1px #fffafa;
}

.music-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.music-button:hover { background: #f4d5de; }
.music-button svg { width: 17px; height: 17px; fill: currentColor; }
.music-button .pause-icon, .music-button[data-playing="true"] .play-icon { display: none; }
.music-button[data-playing="true"] .pause-icon { display: block; }

.volume {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-left: 3px;
  padding-left: 10px;
  border-left: 1px solid #e4bac7;
}

.volume svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume input {
  appearance: none;
  width: 74px;
  height: 34px;
  margin: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.volume input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ab6882 var(--level, 32%), #e7becb var(--level, 32%));
}

.volume input::-moz-range-track {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ab6882 var(--level, 32%), #e7becb var(--level, 32%));
}

.volume input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 1px solid #9e5d76;
  border-radius: 50%;
  background: #fff8f6;
}

.volume input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid #9e5d76;
  border-radius: 50%;
  background: #fff8f6;
}

.links {
  width: min(100%, 386px);
  display: grid;
  gap: 8px;
  margin: 0 auto;
}

.link {
  min-height: 50px;
  padding: 0 15px 0 12px;
  display: grid;
  align-items: center;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  background: linear-gradient(108deg, #fffafaec, #f9e8ebed);
  border: 1px solid #e2bdc7;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 3px 10px #a1647a13, inset 0 1px #fffafa;
  transition: background .2s, border-color .2s, transform .2s;
}

.link[href] {
  border-color: #cb9bab;
  background: linear-gradient(108deg, #fff1f4, #f5d6de);
}

.link[href]:hover { transform: translateY(-2px); border-color: #ad7188; background: #f6d8e1; }
:where(a[href], button, input):focus-visible { outline: 2px solid #8a5067; outline-offset: 3px; }
.link svg { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.link-icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  color: var(--berry);
  border-radius: 8px;
  background: #f5dbe2;
}

.link-arrow { width: 16px; height: 16px; color: var(--berry); }
.pending { display: none; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.link[aria-disabled] .pending { display: inline; }
.link[aria-disabled] .link-arrow { display: none; }

.profile-end {
  margin-top: 19px;
  color: #a26077;
  font: 17px Georgia, serif;
}

.dancer {
  position: absolute;
  left: clamp(12px, 5.5vw, 115px);
  bottom: 0;
  width: clamp(150px, 20vw, 300px);
  pointer-events: none;
}

.dancer picture, .dancer img { display: block; width: 100%; height: auto; }

.dance-star { position: absolute; color: #a15d77; font: 22px Georgia, serif; }
.dance-star-left { left: -3%; top: 50%; }
.dance-star-right { right: -1%; top: 31%; transform: rotate(12deg); }

@media (max-width: 850px) {
  .dancer { left: 10px; width: clamp(140px, 21vw, 187px); }
  .sticker-two { left: 15%; }
  .sticker-three { right: 13%; }
}

@media (min-width: 621px) and (max-height: 780px) {
  .stage { padding-block: clamp(88px, 15vh, 120px) clamp(38px, 7vh, 65px); }
  h1 { font-size: clamp(55px, min(7.2vw, 12.5vh), 92px); }
  .welcome { margin-top: 12px; }
  .music { margin: 15px auto; }
  .links { gap: 7px; }
  .link { min-height: 43px; }
  .profile-end { margin-top: 13px; }
  .dancer { width: clamp(130px, min(19vw, 35vh), 250px); }
}

@media (max-width: 620px) {
  .scene { background-size: auto 100%; }
  .stage { padding: clamp(102px, 18vh, 160px) 23px 0; align-content: space-between; }
  .profile { grid-row: 1; }
  .profile-end { margin-top: 14px; }
  .welcome { margin-top: 12px; font-size: 13px; }
  .music { margin: 16px auto; }
  h1 { font-size: clamp(39px, 12.3vw, 69px); }
  .link { min-height: 46px; }
  .dancer { position: relative; left: auto; grid-row: 2; justify-self: start; width: 117px; }
  .dance-star { font-size: 16px; }
  .sticker-one { top: 16%; left: 13%; font-size: 21px; }
  .sticker-two, .sticker-three { display: none; }
  .sticker-four { right: 12%; bottom: 13%; font-size: 15px; }
  .sticker-five { right: 13%; top: 17%; }
  .background-equalizer { bottom: 19%; width: 95vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .background-equalizer { display: none; }
}
