/* ═══════════════════════════════════════════════════
   REGAL MOTH PUBLISHING — Stylesheet
   regalmoth.com
═══════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ─────────────────────────────────── */
:root {
  --bg:              #FDFCF6;
  --gold:            #C8952D;
  --gold-light:      #E5C85A;
  --gold-dark:       #7C5A12;
  --gold-alpha-06:   rgba(200, 149, 45, 0.06);
  --gold-alpha-12:   rgba(200, 149, 45, 0.12);
  --gold-alpha-35:   rgba(200, 149, 45, 0.35);

  --text:            #1E1508;
  --text-muted:      #5E4A2A;
  --text-faint:      #9A8560;

  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Jost', system-ui, sans-serif;

  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ──────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
}

/* ── Background Dot Pattern ────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(200, 149, 45, 0.065) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── Particle Canvas ───────────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Page Wrapper ──────────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 3rem;
  perspective: 1000px;
}

/* ── Logo ──────────────────────────────────────────── */
.logo-wrap {
  opacity: 0;
  transform: scale(0.08);
  margin-bottom: 2.5rem;
}

.logo-wrap.is-visible {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity   0.9s ease,
    transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* slight spring on arrival */
}

.logo-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.logo {
  display: block;
  width: clamp(180px, 26vw, 300px);
  height: auto;
  filter: drop-shadow(0 6px 28px rgba(200, 149, 45, 0.22));
  transition: filter 0.5s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.logo-wrap:hover .logo {
  filter: drop-shadow(0 8px 44px rgba(200, 149, 45, 0.44));
}

/* ── Wing Flutter ──────────────────────────────────── */
@keyframes wingFlutter {
  0%, 100% { transform: scaleX(1.0);  }
  40%      { transform: scaleX(0.88); }
}
/* Applied via JS animation properties — no persistent class needed */

/* ── Title ─────────────────────────────────────────── */
.title-wrap {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity   0.85s ease,
    transform 0.85s var(--ease-out);
  margin-bottom: 2rem;
  text-align: center;
}

.title-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.title-name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--text);
}

.title-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.6rem, 1.6vw, 0.85rem);
  font-weight: 200;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.52em; /* visually compensate for trailing letter-spacing */
}

/* ── Divider ───────────────────────────────────────── */
.divider-wrap {
  opacity: 0;
  transition: opacity 0.5s ease;
  width: clamp(200px, 40vw, 380px);
  margin-bottom: 2rem;
}

.divider-wrap.is-visible {
  opacity: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold-alpha-35) 30%,
    var(--gold-alpha-35) 70%,
    transparent
  );
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) 0.15s;
}

.divider-wrap.is-visible .divider-line {
  transform: scaleX(1);
}

.divider-gem {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.55s;
}

.divider-wrap.is-visible .divider-gem {
  opacity: 1;
}

/* ── Contact ───────────────────────────────────────── */
.contact-wrap {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.7s ease,
    transform 0.7s var(--ease-out);
}

.contact-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact {
  font-style: normal;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.contact-link {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out);
}

.contact-link:hover {
  color: var(--gold);
}

.contact-link:hover::after {
  width: 100%;
}

.contact-dot {
  color: var(--gold-light);
  font-size: 1.1rem;
  line-height: 1;
  user-select: none;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  width: 100%;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid var(--gold-alpha-12);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.site-footer.is-visible {
  opacity: 1;
}

.copyright {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--gold);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 480px) {
  .contact {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-dot {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

/* ════════════════════════════════════════════════════
   PRIVACY PAGE
════════════════════════════════════════════════════ */

body.privacy-body::before {
  display: none;
}

body.privacy-body .wrapper {
  justify-content: flex-start;
}

.privacy-header {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--gold-alpha-12);
}

.privacy-back {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.privacy-logo {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(200, 149, 45, 0.2));
}

.privacy-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  letter-spacing: 0.03em;
}

.privacy-effective {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.privacy-content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.privacy-content section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.privacy-content h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold-alpha-12);
}

.privacy-content p,
.privacy-content li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.privacy-content ul {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.privacy-content ul li {
  padding-left: 1.4rem;
  position: relative;
}

.privacy-content ul li::before {
  content: '◆';
  font-size: 0.38rem;
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.privacy-content a {
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 90, 18, 0.3);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.privacy-content a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

body.privacy-body .site-footer {
  opacity: 1;
  margin-top: auto;
}
