:root {
  --night: #1a0f14;
  --night-2: #241219;
  --rust: #c2492b;
  --ember: #e8794a;
  --sand: #f3d9b8;
  --cream: #fbf1e4;
  --line: rgba(243, 217, 184, 0.18);
  --muted: rgba(251, 241, 228, 0.68);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(120, 40, 70, 0.45), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(194, 73, 43, 0.28), transparent 55%),
    linear-gradient(170deg, #24121c 0%, var(--night) 50%, #120a0e 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--ember); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stars span {
  position: absolute;
  border-radius: 50% 40% 55% 45%;
  background: var(--sand);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }
  50% { opacity: 0.85; transform: scale(1.1); }
}

.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(26, 15, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font-family: "Caveat Brush", cursive;
  font-size: 2rem; color: var(--ember); text-decoration: none;
  transform: rotate(-3deg); display: inline-block;
}
.nav ul { list-style: none; display: flex; gap: 1.6rem; }
.nav ul a {
  color: var(--sand); text-decoration: none;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.82rem;
}
.nav ul a:hover { color: var(--ember); }

/* hero */
.hero { text-align: center; padding: 4.5rem 0 3rem; }
.planet-wrap {
  width: min(52vw, 230px); aspect-ratio: 1; margin: 0 auto 1.2rem;
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.planet-wrap svg { width: 100%; height: 100%; overflow: visible; }
.signature {
  font-family: "Caveat Brush", "Brush Script MT", cursive;
  font-size: clamp(4.2rem, 15vw, 7.5rem);
  line-height: 0.9; color: var(--ember);
  text-shadow: 0 4px 30px rgba(232, 121, 74, 0.35);
  transform: rotate(-4deg); display: inline-block; font-weight: 400;
}
.stroke { display: block; width: min(70%, 280px); height: 18px; margin: 0.4rem auto 1.4rem; }
.tagline {
  font-size: clamp(1rem, 3vw, 1.3rem); letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--sand); font-weight: 500;
}

/* sections */
section { padding: 3.5rem 0; }
.section-title {
  font-family: "Caveat Brush", cursive; font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.4rem); color: var(--sand);
  text-align: center; margin-bottom: 0.4rem;
}
.section-sub { text-align: center; color: var(--muted); font-style: italic; margin-bottom: 2.4rem; }

/* gallery */
.filters { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--sand);
  padding: 0.35rem 1.1rem; border-radius: 999px; cursor: pointer;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem;
}
.chip.on, .chip:hover { background: rgba(232, 121, 74, 0.18); border-color: var(--ember); color: var(--cream); }

.grid { columns: 3 300px; column-gap: 1.4rem; }
.card {
  break-inside: avoid; margin-bottom: 1.4rem; cursor: pointer;
  background: rgba(251, 241, 228, 0.04); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; transition: transform .25s, border-color .25s;
  display: block; width: 100%; text-align: left; padding: 0;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: rgba(232, 121, 74, 0.6); outline: none; }
.card img { width: 100%; height: auto; background: #2a1820; }
.card .meta { padding: 0.8rem 1rem 1rem; }
.card h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.card .details { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
.badge {
  display: inline-block; margin-top: 0.5rem; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--sand);
}
.badge.sold { border-color: rgba(194, 73, 43, 0.7); color: #f2a273; }
.badge.sold::before { content: "● "; color: var(--rust); }

.empty { text-align: center; padding: 2rem 1rem 1rem; }
.empty .soon-badge {
  display: inline-block; margin-top: 1.6rem; padding: 0.6rem 1.5rem;
  border: 1.5px solid rgba(243, 217, 184, 0.5); border-radius: 999px 820px 999px 760px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--sand); font-size: 0.9rem;
  background: rgba(194, 73, 43, 0.12);
}
.loading { text-align: center; color: var(--muted); font-style: italic; padding: 2rem; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(10, 5, 8, 0.94); padding: 1rem;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; max-width: 1200px; width: 100%; max-height: 92vh; }
.lb-img { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-img img { max-height: 88vh; width: auto; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-info { align-self: center; overflow-y: auto; max-height: 88vh; }
.lb-info h2 { font-weight: 500; font-size: 2rem; line-height: 1.15; }
.lb-info .details { color: var(--muted); margin: 0.5rem 0 1rem; }
.lb-info p.desc { white-space: pre-line; }
.lb-info .price { margin-top: 1rem; color: var(--sand); letter-spacing: 0.06em; }
.lb-info .inquire { display: inline-block; margin-top: 1.2rem; }
.lb-btn {
  position: absolute; background: rgba(251,241,228,.08); border: 1px solid var(--line);
  color: var(--cream); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* about + contact */
.about { display: grid; grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; text-align: center; }
.about p { white-space: pre-line; font-size: 1.15rem; }
.links { margin-top: 1.4rem; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.links a { text-decoration: none; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; }

form.contact { max-width: 620px; margin: 0 auto; display: grid; gap: 1rem; }
.field label { display: block; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); margin-bottom: 0.3rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 4px;
  border: 1px solid var(--line); background: rgba(251, 241, 228, 0.05);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ember); }
.field textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block; padding: 0.7rem 1.8rem; border-radius: 999px; cursor: pointer;
  background: var(--rust); border: 1px solid var(--rust); color: var(--cream);
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.82rem; text-decoration: none;
}
.btn:hover { background: var(--ember); border-color: var(--ember); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--sand); }
.btn.ghost:hover { border-color: var(--ember); color: var(--cream); }
.btn:disabled { opacity: .55; cursor: wait; }
.form-note { text-align: center; color: var(--muted); font-style: italic; min-height: 1.5em; }
.hidden-field { position: absolute; left: -9999px; }

footer.site {
  position: relative; z-index: 1; text-align: center; padding: 3rem 1rem 2.5rem;
  color: rgba(243, 217, 184, 0.5); font-size: 0.9rem; letter-spacing: 0.06em;
  border-top: 1px solid var(--line); margin-top: 2rem;
}
footer.site a { color: rgba(243, 217, 184, 0.5); }

@media (max-width: 820px) {
  .lb-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-img img { max-height: 60vh; }
  .lb-info { max-height: none; }
  .nav ul { gap: 1rem; }
}
@media (max-width: 480px) {
  body { font-size: 18px; }
  .nav ul a { font-size: 0.72rem; letter-spacing: 0.12em; }
}
@media (prefers-reduced-motion: reduce) {
  .planet-wrap, .stars span { animation: none; }
  html { scroll-behavior: auto; }
}
