/* Palette sampled from the KatiBeth Creative logos */
:root {
  --pink:         #bd4a77;
  --pink-deep:    #9c3560;
  --pink-soft:    #f3d9e4;
  --olive:        #8e9a3b; /* logo is #919d3d; nudged darker so white icons clear 3:1 */
  --olive-deep:   #6b7529;
  --sage:         #e9ebd8;
  --sage-soft:    #f4f5ea;
  --ink:          #3b2a33;
  --ink-soft:     #6f5d66;
  --paper:        #ffffff;
  --shadow:       rgba(59, 42, 51, .14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* iOS: account for the collapsing URL bar */
  padding: 40px 16px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sage-soft);
  -webkit-tap-highlight-color: rgba(189, 74, 119, .2);
  -webkit-text-size-adjust: 100%;
}

/* The gradient lives on a fixed layer instead of background-attachment: fixed,
   which iOS Safari does not honour and renders at the wrong scale. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(142, 154, 59, .20), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(189, 74, 119, .16), transparent 40%),
    radial-gradient(circle at 78% 88%, rgba(142, 154, 59, .18), transparent 45%),
    linear-gradient(170deg, var(--sage-soft) 0%, var(--sage) 100%);
}

/* ---------- card ---------- */
.card {
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  border: 3px solid var(--pink);
  border-radius: 32px;
  padding: 28px 26px 22px;
  box-shadow: 0 18px 40px var(--shadow);
  position: relative;
  z-index: 1;
}

/* ---------- hero ---------- */
.hero { text-align: center; }

.brand { margin: 0; }

/* logo.png has real transparency; its pale star needs the white card behind it to read */
.logo {
  display: block;
  width: min(300px, 80%);
  height: auto;
  margin: 0 auto;
}

.tagline {
  margin: 4px 0 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tagline::after {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--olive));
}

/* ---------- links ---------- */
.links {
  display: grid;
  gap: 14px;
  margin: 26px 0 8px;
}

.link {
  --accent: var(--pink);
  --accent-soft: rgba(189, 74, 119, .08);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2.5px solid var(--accent);
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--accent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

@media (hover: hover) {
  .link:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 var(--accent);
    background: var(--paper);
  }

  .link:hover .chev { transform: translateX(4px); }
}

.link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--accent);
  background: var(--paper);
}

.link:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--accent);
}

.link:focus-visible {
  outline: 3px dashed var(--accent);
  outline-offset: 4px;
}

.link--youtube,
.link--instagram { --accent: var(--pink);  --accent-soft: rgba(189, 74, 119, .08); }
.link--tiktok,
.link--etsy      { --accent: var(--olive); --accent-soft: rgba(142, 154, 59, .12); }

.icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
}

.icon svg { width: 24px; height: 24px; }

.label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.label strong {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .2px;
}

.label small {
  font-size: .85rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chev {
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform .15s ease;
}

.link:focus-visible .chev { transform: translateX(4px); }

/* ---------- footer ---------- */
.foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.badge { width: 44px; height: 44px; }

.foot p {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-soft);
}

.heart { color: var(--pink); }

/* ---------- sparkles ---------- */
.sparkle {
  position: fixed;
  font-size: 2.4rem;
  color: var(--olive);
  opacity: .75;
  pointer-events: none;
  animation: twinkle 3.6s ease-in-out infinite;
}

.sparkle--a { top: 12%; left: 9%; }
.sparkle--b { bottom: 14%; right: 10%; animation-delay: 1.4s; color: var(--pink); }

@keyframes twinkle {
  0%, 100% { transform: scale(.85) rotate(0deg);  opacity: .45; }
  50%      { transform: scale(1.15) rotate(18deg); opacity: .9; }
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .card { padding: 22px 16px 18px; border-radius: 26px; }
  .link { padding: 12px 14px; gap: 12px; }
  .icon { width: 40px; height: 40px; }
  .label strong { font-size: 1rem; }
  .sparkle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
