/* Luna's Treasure — celestial luxe. Midnight violet, candle-gold, amethyst.
   Cormorant serif for headlines; quiet, elegant, a little mystical. */

:root {
  --bg: #0c0a16;
  --bg-2: #120e22;
  --panel: rgba(28, 22, 46, 0.66);
  --panel-2: #181232;
  --edge: rgba(233, 198, 126, 0.18);
  --ink: #ece7f3;
  --bright: #fbf8ff;
  --muted: #b1a4c8;
  --muted-strong: #d6cce6;

  --gold: #e6c27e;
  --gold-bright: #f4d893;
  --gold-deep: #c79f4f;
  --gold-line: rgba(233, 198, 126, 0.42);
  --gold-faint: rgba(233, 198, 126, 0.12);

  --amethyst: #b794f6;
  --amethyst-bright: #cdb4fb;
  --amethyst-line: rgba(183, 148, 246, 0.4);

  --starlight: #efe9f5;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 55% at 18% -8%, rgba(183, 148, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 65% 50% at 88% 4%, rgba(233, 198, 126, 0.12), transparent 52%),
    radial-gradient(ellipse 90% 60% at 50% 108%, rgba(183, 148, 246, 0.1), transparent 60%),
    linear-gradient(170deg, #0a0813 0%, #110d20 50%, #0b0915 100%);
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.65;
  background: transparent;
  letter-spacing: 0.01em;
}

.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 20px 30px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90px 130px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 150px 70px, rgba(233, 198, 126, 0.45), transparent),
    radial-gradient(1px 1px at 200px 180px, rgba(205, 180, 251, 0.4), transparent);
  background-size: 240px 240px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header ------------------------------------------------------------- */

header.site {
  padding: 28px 0 8px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mark {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-flex;
  filter: drop-shadow(0 0 16px rgba(233, 198, 126, 0.4));
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--starlight);
  text-decoration: none;
}

.wordmark span {
  color: var(--gold);
  font-style: italic;
}

.wordmark small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

header.site nav a {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

header.site nav a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 16px var(--gold-line);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 0 8px;
  transition: color 0.15s ease;
}

.back-home:hover {
  color: var(--gold-bright);
}

/* --- Hero -------------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 70px 0 40px;
  max-width: 760px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: var(--gold-faint);
  border: 1px solid var(--gold-line);
  margin: 0 0 26px;
}

.pill em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--amethyst-bright);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: twinkle 2.4s infinite;
}

@keyframes twinkle {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-line); opacity: 1; }
  60% { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0); opacity: 0.6; }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 7.5vw, 5.3rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: 0.005em;
  margin: 0 0 18px;
  color: var(--bright);
}

.glow {
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 44px rgba(233, 198, 126, 0.5);
}

.welcome {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--amethyst-bright);
  margin: 0 0 14px;
}

.welcome strong {
  color: var(--starlight);
  font-weight: 600;
}

.hero .sub {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted-strong);
  max-width: 600px;
  margin: 0 auto;
}

.hero .sub strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--gold-line);
  background: rgba(24, 18, 50, 0.5);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--gold-bright);
  border-color: var(--gold);
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-bright));
  border-color: transparent;
  color: #2c1d05;
  box-shadow: 0 10px 30px rgba(233, 198, 126, 0.28);
}

.btn.primary:hover {
  color: #2c1d05;
  box-shadow: 0 14px 38px rgba(233, 198, 126, 0.42);
  filter: brightness(1.05);
}

/* --- Crystal marquee --------------------------------------------------- */

.marquee {
  display: flex;
  gap: 38px;
  overflow: hidden;
  white-space: nowrap;
  margin: 26px 0 8px;
  padding: 16px 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted-strong);
  flex: none;
  animation: drift 26s linear infinite;
}

.marquee span:nth-child(odd) {
  color: var(--gold);
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-460px); }
}

/* --- Collection / gallery ---------------------------------------------- */

.collection {
  margin: 56px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 30px;
}

.section-head h2,
.panel h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--bright);
  margin: 0 0 8px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
}

.gallery {
  column-count: 4;
  column-gap: 14px;
}

.tile {
  position: relative;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: 0 16px 36px rgba(6, 4, 14, 0.5);
  background: var(--panel-2);
}

.tile.tall {
  grid-row: span 2;
}

.tile.wide {
  grid-column: span 2;
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.tile:hover img {
  transform: scale(1.05);
}

.tile.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(233, 198, 126, 0.12), transparent 60%),
    linear-gradient(150deg, #1a1336, #120d24);
}

.tile.ph span {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
}

.tile.ph::after {
  content: "Luna's Treasure";
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.5;
}

/* --- Panels ------------------------------------------------------------ */

.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(6, 4, 14, 0.45);
  padding: 40px;
  margin: 28px 0;
  backdrop-filter: blur(6px);
  text-align: center;
}

.panel > p {
  color: var(--muted-strong);
  max-width: 620px;
  margin: 0 auto 22px;
}

.panel em {
  font-style: italic;
  color: var(--amethyst-bright);
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
  text-align: left;
}

.buy-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(12, 9, 22, 0.5);
  border: 1px solid var(--edge);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.buy-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: 0 0 36px rgba(233, 198, 126, 0.14);
}

.buy-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bright);
  margin: 0;
}

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

.buy-card .link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.buy-card.soon {
  border-style: dashed;
  border-color: var(--amethyst-line);
}

.buy-card.soon h3 {
  color: var(--amethyst-bright);
}

/* --- Notify form ------------------------------------------------------- */

.notify {
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(233, 198, 126, 0.12), transparent 70%),
    var(--panel);
}

.notify-form {
  max-width: 520px;
  margin: 0 auto;
}

.nf-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(10, 8, 18, 0.7);
  color: var(--bright);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.notify-form input::placeholder {
  color: var(--muted);
}

.notify-form input:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px var(--gold-faint);
}

.nf-fine {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}

.nf-msg {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 0;
  min-height: 1px;
}

.nf-msg.ok {
  color: var(--gold-bright);
}

.nf-msg.err {
  color: #f3a6b8;
}

/* --- Footer ------------------------------------------------------------ */

footer.site {
  margin: 60px 0 40px;
  padding-top: 26px;
  border-top: 1px solid var(--edge);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px 24px;
  align-items: start;
}

.foot-brand .wordmark.small {
  font-size: 20px;
  flex-direction: row;
  gap: 6px;
}

.foot-brand p {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
  max-width: 320px;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.foot-links a {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.16s ease;
}

.foot-links a:hover {
  color: var(--gold-bright);
}

.copy {
  grid-column: 1 / -1;
  color: var(--muted);
  opacity: 0.7;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--edge);
  padding-top: 16px;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 980px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 820px) {
  .gallery {
    column-count: 2;
  }
  .buy-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  header.site nav {
    display: none;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  footer.site {
    grid-template-columns: 1fr;
  }
  .foot-links {
    align-items: flex-start;
  }
}
