/* Song campaign pages: the existing record-sleeve palette, with Spotify first. */
.share-page {
  --bone: #ddd1bf;
  --bone-dim: #c0b39f;
  --ember-soft: #c78c64;
  --share-muted: #a29480;
  --share-lyric: #958068;
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
}

.share {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2rem;
}

.share[data-song="when-i-fell-asleep"] {
  --share-lyric: #bba58b;
}

/* Keep the listening action close to the song title on EP campaign pages. */
.share--ep {
  --share-lyric: #bba58b;
  overflow-x: clip;
}

.share--ep .share__cover-stage {
  max-width: 360px;
}

.share--ep .share__title {
  margin-bottom: 1rem;
}

.share--ep .share__spotify {
  background: #1db954;
  border-color: #1db954;
  color: #000;
}

.share--ep .share__spotify:hover {
  background: #20c45b;
  border-color: #20c45b;
}

.share__hero {
  text-align: center;
  padding-bottom: 2.5rem;
}

.share__artist {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 1rem;
}

.share__title {
  max-width: 100%;
  margin: 0 auto 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 9vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.share__cover-stage {
  position: relative;
  isolation: isolate;
  margin: 0 auto 1.4rem;
}

.share__cover-stage::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 45% 40%, rgba(194, 91, 58, 0.38) 0%, rgba(194, 91, 58, 0.22) 38%, transparent 76%),
    radial-gradient(ellipse at 60% 65%, rgba(99, 55, 39, 0.25) 0%, transparent 72%);
  transform: translateY(clamp(3rem, 5vw, 6.25rem));
  opacity: 0.6;
  filter: blur(22px);
  pointer-events: none;
}

.share__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

.share__spotify {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid #70ad7f;
  border-radius: 3px;
  background: #579d68;
  color: #14291b;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.share__spotify:hover {
  background: #4b905b;
  border-color: #65a374;
}

.share[data-song="when-i-fell-asleep"] .share__spotify {
  background: #1db954;
  border-color: #1db954;
  color: #000;
}

.share[data-song="when-i-fell-asleep"] .share__spotify:hover {
  background: #20c45b;
  border-color: #20c45b;
}

.share__spotify:disabled {
  cursor: default;
}

.share__icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: currentColor;
  pointer-events: none;
}

.share__spotify .share__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.share__platform {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.share__release {
  margin-top: 0.75rem;
  color: var(--share-muted);
  font-size: 1.0625rem;
}

.share__lyric {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.9rem, 6.3vw, 2.7rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--share-lyric);
}

.share__section {
  padding: 2rem 0;
  border-top: 1px solid rgba(111, 100, 87, 0.3);
}

.share__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ember-soft);
  margin-bottom: 0.7rem;
}

.share__sub,
.share__story > p {
  color: var(--bone-dim);
  margin-bottom: 1rem;
}

.share__label {
  display: block;
  font-size: 1rem;
  color: var(--share-muted);
  margin-bottom: 0.4rem;
}

.share .newsletter__input {
  min-width: 0;
  min-height: 48px;
  flex-basis: 180px;
  font-size: 1.125rem;
  font-weight: 400;
}

.share .newsletter__input::placeholder {
  color: var(--bone-dim);
}

.share .newsletter__input:focus {
  border-color: var(--share-muted);
  outline: 1px solid var(--share-muted);
  outline-offset: 0;
}

.share .newsletter__btn {
  min-height: 48px;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
}

.share .newsletter__btn:hover {
  transform: none;
}

.share .newsletter__btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.share .newsletter__msg {
  font-size: 1rem;
}

.share .newsletter__msg:empty {
  min-height: 0;
  margin: 0;
}

.share__note,
.share__story > .share__note {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--share-muted);
}

.share__links {
  display: flex;
  flex-direction: column;
}

.share__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(111, 100, 87, 0.2);
  color: var(--bone-dim);
}

.share__links a:last-child {
  border-bottom: 0;
}

.share__links a:hover,
.share__home:hover {
  color: var(--bone);
}

.share__story em {
  color: var(--bone);
}

.share__lyrics {
  margin-top: 1.5rem;
}

.share__lyrics summary {
  min-height: 48px;
  padding: 0.65rem 0;
  color: var(--ember-soft);
  cursor: pointer;
}

.share__lyrics-body {
  padding-top: 1rem;
  font-style: italic;
  line-height: 1.9;
  color: var(--bone-dim);
}

.share__lyrics-body p + p {
  margin-top: 1.4rem;
}

.share__footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(111, 100, 87, 0.3);
  color: var(--share-muted);
  font-size: 1rem;
  text-align: center;
}

.share__home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  color: var(--bone-dim);
}

.share :is(a, button, summary):focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 4px;
}

@media (max-width: 380px) {
  .share {
    padding-top: 1.25rem;
  }

  .share .newsletter__btn {
    width: 100%;
  }
}

/* Keep the new Getting By page decoration inside the viewport. */
.share-page[data-song="getting-by"] .grain { inset: 0; }
.share[data-song="getting-by"] { overflow-x: clip; --share-lyric: #bba58b; }
