@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Delius&display=swap');

/* ── CUSTOM TITLE FONT ──────────────────────────
   Drop your font file(s) into assets/fonts/ and point the
   src below at them. */
@font-face {
  font-family: 'Fantaisie Artistique';
  src: url('assets/fonts/FantaisieArtistique.otf') format('opentype'),
       url('assets/fonts/FantaisieArtistique.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --parchment:      #F7E9C9;
  --parchment-deep: #EFD9A6;
  --ink:            #142338;
  --ink-soft:       #3B4A5E;
  --blood:          #C41E2A;
  --blood-deep:     #6E1420;
  --wisp:           #86A9BE;

  --font-display: 'Fantaisie Artistique', 'Architects Daughter', cursive;
  --font-body:    'Delius', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-color: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* ── one calm parchment base, faint sparkle texture laid over it ── */
.bg-sparkle {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.16;
  pointer-events: none;
}

/* ── twinkle starfield, gold-on-cream instead of white-on-navy ── */
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.4); }
}

/* four-pointed sparkle glyph, reused at three tints via inline SVG */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  --sp-blood:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 6 14 10 24 12C14 14 12 18 12 24C12 18 10 14 0 12C10 10 12 6 12 0Z' fill='%23C41E2A' fill-opacity='0.55'/%3E%3C/svg%3E");
  --sp-blooddeep:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 6 14 10 24 12C14 14 12 18 12 24C12 18 10 14 0 12C10 10 12 6 12 0Z' fill='%236E1420' fill-opacity='0.5'/%3E%3C/svg%3E");
  --sp-ink:        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 6 14 10 24 12C14 14 12 18 12 24C12 18 10 14 0 12C10 10 12 6 12 0Z' fill='%233B4A5E' fill-opacity='0.4'/%3E%3C/svg%3E");

  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat,
                      no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-image:
    var(--sp-blooddeep), var(--sp-ink), var(--sp-blood),
    var(--sp-ink),       var(--sp-blooddeep), var(--sp-ink),
    var(--sp-blood),     var(--sp-ink), var(--sp-blooddeep),
    var(--sp-ink),       var(--sp-blood), var(--sp-ink);
  background-position:
    10% 15%, 22% 68%, 35% 30%,
    50% 82%, 63% 18%, 76% 54%,
    88% 86%, 16% 45%, 45% 95%,
    92% 35%, 6%  76%, 58% 48%;
  background-size:
    16px 16px, 10px 10px, 20px 20px,
    12px 12px, 14px 14px, 18px 18px,
    11px 11px, 15px 15px, 13px 13px,
    17px 17px, 10px 10px, 14px 14px;
  opacity: 0.7;
  animation: twinkle 6s ease-in-out infinite;
}

/* ── layout: big art on one side, content on the other ── */
.enter {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.art-side {
  flex: 1 1 420px;
  max-width: 460px;
  display: flex;
  justify-content: center;
}

.persona-art {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 30px rgba(20, 35, 56, 0.18));
}

.content-side {
  flex: 1 1 380px;
  max-width: 440px;
  text-align: center;
}

.mark-frame {
  width: 130px;
  height: 130px;
  margin: 0 auto 10px;
}

.mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, black 55%, transparent 78%);
  mask-image: radial-gradient(circle, black 55%, transparent 78%);
  filter: drop-shadow(0 0 18px rgba(196, 30, 42, 0.25));
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.6rem;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin: 4px 0 8px;
}

.wordmark .dot {
  color: var(--blood);
}

.tagline {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.tagline em {
  font-style: normal;
  color: var(--blood-deep);
}

.divider {
  color: var(--blood);
  letter-spacing: 8px;
  font-size: 0.7rem;
  opacity: 0.75;
  margin: 0 0 22px;
}

.notes {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.notes li::before {
  content: '✧ ';
  color: var(--wisp);
}

.enter-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--parchment);
  background: var(--blood-deep);
  border: 1px solid var(--blood);
  padding: 13px 44px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.enter-btn:hover {
  background: var(--blood);
  box-shadow: 0 0 22px rgba(196, 30, 42, 0.45);
  transform: translateY(-2px);
}

/* ── responsive: stack on narrower screens ── */
@media (max-width: 820px) {
  .layout {
    flex-direction: column;
    gap: 24px;
  }
  .art-side, .content-side {
    max-width: 380px;
  }
  .persona-art {
    max-height: 380px;
  }
}

@media (max-width: 480px) {
  .mark-frame { width: 110px; height: 110px; }
  .wordmark { font-size: 2rem; }
}