/* ===========================================================
   Sweets by Alyssa P — placeholder landing page
   Brand palette + type pulled from the business-card SVGs:
     ink    #010101   (charcoal line-art / text)
     paper  #fdfefe   (off-white card background)
     mist   #e5e5e5   (soft gray line-art accents)
   Display: Rubik (300/700/800)   Body: Karla
   =========================================================== */

:root {
  --ink: #1a1715;        /* warm charcoal, softer than pure black for body text */
  --ink-strong: #010101; /* brand black */
  --paper: #fdfefe;      /* brand off-white */
  --mist: #e5e5e5;       /* brand soft gray */
  --cream: #f6f1ea;      /* warm ivory page wash */
  --cream-deep: #ece3d6; /* deeper ivory for gradient base */
  --muted: #6b625a;      /* muted warm gray for sub-copy */
  --shadow: 28px 40px 80px -32px rgba(26, 23, 21, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 120% at 50% 0%, var(--cream) 0%, var(--cream-deep) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7vh 1.5rem;
  overflow-x: hidden;
}

/* ---- decorative ambient dots (very subtle, CSS-only) ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.4;
}
body::before {
  top: -14vmax;
  left: -12vmax;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 70%);
}
body::after {
  bottom: -16vmax;
  right: -14vmax;
  background: radial-gradient(circle, rgba(236,227,214,0.9) 0%, rgba(236,227,214,0) 70%);
}

/* ---- brand dessert iconography, tiled site-wide ---- */
.pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/pattern.svg");
  background-repeat: repeat;
  background-position: center;
  background-size: 340px auto;
  opacity: 0.09;          /* soft watermark — reads as warm gray on the cream wash */
}

/* ===========================================================
   Layout
   =========================================================== */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* staggered entrance for direct children */
.hero > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero > :nth-child(1) { animation-delay: 0.05s; }
.hero > :nth-child(2) { animation-delay: 0.28s; }
.hero > :nth-child(3) { animation-delay: 0.42s; }
.hero > :nth-child(4) { animation-delay: 0.56s; }
.hero > :nth-child(5) { animation-delay: 0.70s; }
.hero > :nth-child(6) { animation-delay: 0.84s; }

/* ---- floating brand wordmark (the logo) ---- */
.wordmark {
  position: relative;
  margin: 0 0 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;               /* reset <h1> defaults */
  /* promote to its own compositor layer so the bob is buttery, not jittery */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  animation-name: rise, float;
  animation-duration: 0.9s, 7s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-delay: 0.05s, 1s;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}
/* soft ivory halo lifts the wordmark off the patterned background */
.wordmark::after {
  content: "";
  position: absolute;
  inset: -22% -12%;
  z-index: -1;
  background: radial-gradient(58% 64% at 50% 46%,
              rgba(246, 241, 234, 0.95) 0%, rgba(246, 241, 234, 0) 72%);
}

/* small line—gem—line flourish above the name */
.flourish {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.flourish::before,
.flourish::after {
  content: "";
  width: clamp(28px, 9vw, 56px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--d, 90deg), rgba(26, 23, 21, 0), rgba(26, 23, 21, 0.55));
}
.flourish::after { --d: 270deg; }
.flourish .gem {
  width: 9px;
  height: 9px;
  flex: none;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--ink-strong);
}

.wm-sweets {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: clamp(3.1rem, 15vw, 6rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--ink-strong);
}
.wm-name {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 5.4vw, 2.1rem);
  letter-spacing: 0.04em;
  margin-top: 0.55rem;
  color: var(--ink-strong);
}
.wm-by { font-weight: 300; color: var(--muted); }
.wm-tagline {
  font-family: "Karla", sans-serif;
  font-weight: 500;
  margin-top: 1rem;
  font-size: clamp(0.72rem, 2.3vw, 0.82rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- coming-soon subheading ---- */
.headline {
  margin: 2.3rem 0 0;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}

/* ---- supporting copy ---- */
.subcopy {
  margin: 1.1rem auto 0;
  width: 100%;
  max-width: 27rem;
  font-size: clamp(0.98rem, 2.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}

/* ---- divider with brand line-icon ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(280px, 70vw);
  margin: 2rem 0 0;
  color: var(--mist);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--mist));
}
.divider::before { --dir: left; }
.divider .mark {
  width: 48px;
  height: 48px;
  flex: none;
  animation: float 7s ease-in-out 1.5s infinite;
}
.divider .mark img { width: 100%; height: 100%; display: block; }

/* ---- contact buttons ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.2rem 0 0;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);            /* matches the Wisconsin badge black */
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 12px 28px -12px rgba(1, 1, 1, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
/* Icons rendered as masks so they inherit the button's text color
   (white on the Instagram button; dark → white on the email hover). */
.social .btn-ico {
  width: 20px;
  height: 20px;
  display: block;
  flex: none;
  transition: filter 0.25s ease;
}
/* Instagram icon: always white on the dark button. */
.btn-ico--ig {
  filter: brightness(0) invert(1);
}
/* Email icon: dark on the ghost button, turns white when it fills on hover. */
.social--ghost:hover .btn-ico--mail,
.social--ghost:focus-visible .btn-ico--mail {
  filter: brightness(0) invert(1);
}
.social:hover,
.social:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -12px rgba(1, 1, 1, 0.65);
  background: #2a2522;
}
.social:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 3px;
}

/* secondary "ghost" button (email) */
.social--ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.social--ghost:hover,
.social--ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.handle {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---- footer ---- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.made {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
.made .wi {
  height: 52px;
  width: auto;
  display: block;
}
.copy { opacity: 0.7; }

/* ===========================================================
   Motion
   =========================================================== */
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -9px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *,
  .wordmark,
  .divider .mark {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===========================================================
   Small screens
   =========================================================== */
@media (max-width: 480px) {
  body { padding: 6vh 1.25rem; justify-content: flex-start; }
  .wordmark { margin-top: 1rem; }
  .actions { flex-direction: column; width: 100%; max-width: 320px; }
  .social { width: 100%; justify-content: center; }
  .handle { word-break: break-word; }
  .foot { margin-top: 2.4rem; }
}
