/* Palette pulled from the KatieBeth Creations logo */
:root {
  --cream:        #fdf3dc;
  --cream-deep:   #f8e4b8;
  --teal:         #3e9a9c;
  --teal-dark:    #2c7b7e;
  --pink:         #f58ba8;
  --pink-deep:    #ec6a90;
  --pink-soft:    #ffd8e3;
  --purple:       #b49ae0;
  --yellow:       #f5b63f;
  --brown:        #5a3526;
  --brown-soft:   #8a6552;
  --paper:        #fffaf1;
  --shadow:       rgba(90, 53, 38, .16);
}

* { 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(--brown);
  background: var(--cream);
  -webkit-tap-highlight-color: rgba(62, 154, 156, .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(180, 154, 224, .28), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(245, 139, 168, .28), transparent 40%),
    radial-gradient(circle at 78% 88%, rgba(62, 154, 156, .26), transparent 45%),
    linear-gradient(170deg, var(--cream) 0%, var(--cream-deep) 100%);
}

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

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

.logo {
  display: block;
  width: min(320px, 82%);
  height: auto;
  margin: 0 auto;
  /* logo art ships on a solid white square; multiply drops it into the cream */
  mix-blend-mode: multiply;
}

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

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

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

.link {
  --accent: var(--teal);
  --accent-soft: rgba(62, 154, 156, .12);
  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(--brown);
  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   { --accent: var(--pink-deep); --accent-soft: rgba(236, 106, 144, .12); }
.link--tiktok    { --accent: var(--teal);      --accent-soft: rgba(62, 154, 156, .12); }
.link--instagram { --accent: var(--purple);    --accent-soft: rgba(180, 154, 224, .16); }
.link--etsy      { --accent: var(--yellow);    --accent-soft: rgba(245, 182, 63, .16); }

.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(--brown-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);
  text-align: center;
}

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

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

/* ---------- sparkles ---------- */
.sparkle {
  position: fixed;
  font-size: 2.4rem;
  color: var(--yellow);
  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; }
}
