/* Aure & Ritual — restrained, dark, mobile-first */

:root {
  --bg: #2f3120;
  --fg: #d4b96a;
  --muted: #9a8f5e;
  --line: #4a4d33;
  --font-display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: 1.5rem;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

.state {
  min-height: 100vh;
  width: 100%;
}

/* ---------- State 1: Pre-launch ---------- */

.prelaunch {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 5vw, 2.25rem);
  letter-spacing: 0.18em;
  text-align: center;
  margin: 0;
}

/* ---------- Shared containers ---------- */

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
}

.wrap--wide {
  max-width: 960px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: 0.04em;
  margin: 0 0 2.5rem;
}

/* ---------- State 2: Waitlist ---------- */

.body-copy p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 1.25rem;
}

.body-copy p:last-child {
  color: var(--muted);
}

.form-slot {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.form-slot iframe {
  width: 100%;
  border: none;
  min-height: 900px;
  display: block;
}

.form-placeholder-note {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 1rem;
  line-height: 1.6;
}

.form-placeholder-note code {
  color: var(--fg);
}

.confirmation {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- State 3: Gallery ---------- */

.section-note {
  margin-bottom: 2.5rem;
}

.section-note p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.text-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.text-link:hover {
  text-decoration-color: var(--fg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.piece-card {
  display: block;
  border: 1px solid var(--line);
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

a.piece-card {
  cursor: pointer;
}

a.piece-card:hover {
  border-color: var(--fg);
}

.piece-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, #3a3d24, #2a2c1c 60%);
  margin-bottom: 1rem;
  overflow: hidden;
}

.piece-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.piece-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.piece-price {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.piece-status {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0;
}

.piece-status[data-status="sold"],
.piece-status[data-status="reserved"] {
  color: var(--muted);
}

.soldout {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Piece detail ---------- */

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.piece-detail-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .piece-detail-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

.piece-title--lg {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}
