/* Midnight Treasures & More — one-page draft */
:root {
  --night: #0b0618;
  --night-deep: #070412;
  --dusk: #1a0f32;
  --card: #241544;
  --card-hover: #2e1a55;
  --lavender: #e8d7f6;
  --lavender-soft: #d4c0e8;
  --plum: #3b1854;
  --gold: #e0b54b;
  --gold-soft: #f3d88a;
  --gold-deep: #b8872a;
  --cream: #f7f1e8;
  --text: #f6f0fb;
  --muted: #c9b6db;
  --line: rgba(224, 181, 75, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 1.15rem;
  --font-display: "Cormorant Garamond", Palatino, "Palatino Linotype", Times, serif;
  --font-body: Nunito, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(90, 40, 140, 0.35), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--cream); }

a:focus-visible,
.shop-btn:focus-visible,
.social a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Sky decorations */
.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.star { fill: #f8f4ff; }

.twinkle {
  animation: twinkle 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.moon {
  position: absolute;
  top: 1.25rem;
  right: 5vw;
  width: 4.25rem;
  height: 4.25rem;
  filter: drop-shadow(0 0 16px rgba(224, 181, 75, 0.55));
}


.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.glow-a {
  width: 18rem;
  height: 18rem;
  left: -6rem;
  top: 20vh;
  background: #5a2a8a;
}

.glow-b {
  width: 16rem;
  height: 16rem;
  right: -5rem;
  bottom: 10vh;
  background: #3a1a6a;
}

/* Layout */
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 2.5rem 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "brand brand"
    "copy copy"
    "charlie violet";
  gap: 0.75rem 1rem;
  align-items: end;
  justify-items: center;
  max-width: 68rem;
  margin: 0 auto;
}

.hero-row {
  display: contents;
}

.brand { grid-area: brand; text-align: center; width: 100%; }
.hero-copy { grid-area: copy; text-align: center; width: min(36rem, 100%); }
.charlie-wrap { grid-area: charlie; }
.violet-wrap { grid-area: violet; }

.logo {
  width: min(72vw, 19rem);
  margin: 0 auto;
  border-radius: 1.6rem;
  box-shadow:
    0 0 0 2px rgba(224, 181, 75, 0.55),
    0 0 36px rgba(224, 181, 75, 0.28),
    var(--shadow);
  background: #e4d2f3;
}

h1 { margin: 0; }

.tagline {
  margin: 1.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.approved {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.mascot-wrap {
  margin: 0;
  width: min(44vw, 15rem);
  text-align: center;
}

.mascot { width: 100%; height: auto; }

.mascot.charlie {
  filter:
    drop-shadow(0 0 1px #f4eef8)
    drop-shadow(0 0 12px rgba(224, 181, 75, 0.4));
}

.mascot.violet {
  filter: drop-shadow(0 0 10px rgba(224, 181, 75, 0.28));
}

.mascot-wrap figcaption {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--lavender-soft);
}

.section {
  padding: 1.75rem 1.25rem;
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.section.shop { max-width: 48rem; }

h2 {
  margin: 0.4rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--cream);
}

.lead,
.about p,
.contact p {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--lavender);
}

.lead { margin-bottom: 1.35rem; color: var(--muted); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.15rem;
}

.ornament span {
  display: block;
  height: 1px;
  width: 3.2rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.ornament .diamond {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(224, 181, 75, 0.7);
}

.shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--card-hover), var(--card));
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.shop-btn:hover,
.shop-btn:focus-visible {
  background: linear-gradient(180deg, #3a2268, #2a1750);
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

.email {
  font-weight: 700;
  word-break: break-word;
}

.footer {
  margin-top: 1.25rem;
  padding: 2rem 1.25rem 2.75rem;
  text-align: center;
  border-top: 1px solid rgba(224, 181, 75, 0.18);
  background: linear-gradient(180deg, transparent, rgba(20, 10, 40, 0.65));
}

.follow-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.9rem;
  margin: 0 0 1.35rem;
  padding: 0;
}

.social a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--lavender);
  text-decoration: none;
  border: 1px solid rgba(201, 182, 219, 0.25);
  font-size: 0.95rem;
}

.social a:hover,
.social a:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold);
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tablet and up: wider type, three shop columns. Hero stays stacked so the moon
   in the corner does not sit on Violet. */
@media (min-width: 720px) {
  .hero { padding: 3rem 2rem 1.75rem; }

  .logo { width: min(20rem, 100%); }

  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }

  .section { padding: 2.15rem 2rem; }

  body { font-size: 1.1rem; }
}

/* Wide screens: Charlie and Violet flank the logo. */
@media (min-width: 1200px) {
  .hero {
    padding: 3.25rem 2rem 1.75rem;
    grid-template-columns: minmax(10rem, 16rem) minmax(18rem, 24rem) minmax(10rem, 16rem);
    grid-template-areas:
      "charlie brand violet"
      "copy copy copy";
    align-items: end;
    gap: 0.35rem 1.75rem;
  }

  .logo { width: min(22rem, 100%); }

  .mascot-wrap {
    width: 100%;
    max-width: 16rem;
  }

  .charlie-wrap { justify-self: end; }
  .violet-wrap { justify-self: start; }

  .tagline { margin-top: 0.85rem; }

  .moon {
    width: 5.25rem;
    height: 5.25rem;
    top: 2rem;
    right: 4vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .twinkle { animation: none; }
  .shop-btn { transition: none; }
  .shop-btn:hover { transform: none; }
}

/* Storybook-style mascots (Nov 16) */
.mascot.charlie, .mascot.violet { border-radius: 22px; filter: drop-shadow(0 0 14px rgba(224,181,75,0.3)); }
