
:root {
  color-scheme: dark;
  --background: #160b1b;
  --surface: #261329;
  --surface-light: #321a32;
  --pink: #f5a9ca;
  --pink-bright: #ffcee2;
  --gold: #e8c47d;
  --text: #fff5fb;
  --muted: #d0b9cd;
  --border: rgba(232, 196, 125, 0.25);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Poppins", Arial, sans-serif;
  --radius: 22px;
  --content-width: 1200px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(126, 45, 106, 0.18), transparent 36rem),
    radial-gradient(ellipse at 85% 45%, rgba(106, 53, 116, 0.13), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--pink-bright);
  outline-offset: 5px;
}

::selection {
  color: #1b0c1e;
  background: var(--pink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #1b0c1e;
  background: var(--gold);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -20px;
  color: var(--pink);
  opacity: 0;
  animation: float-up linear forwards;
  text-shadow: 0 0 14px rgba(245, 169, 202, 0.5);
}

@keyframes float-up {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }

  12% {
    opacity: 0.55;
  }

  85% {
    opacity: 0.3;
  }

  100% {
    transform: translate3d(35px, -105vh, 0) rotate(180deg);
    opacity: 0;
  }
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232, 196, 125, 0.12);
  background: rgba(22, 11, 27, 0.91);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar {
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.logo span {
  color: var(--pink);
  font-size: 1.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--gold);
  background: rgba(232, 196, 125, 0.08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 78px));
  padding: 110px 24px 95px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 4%;
  left: 50%;
  width: min(90vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(146, 58, 116, 0.25),
    rgba(82, 34, 76, 0.09) 48%,
    transparent 70%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 0;
  color: var(--pink-bright);
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 40px rgba(245, 169, 202, 0.17);
}

.ornament {
  margin: 14px 0 20px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
}

.hero-description {
  max-width: 590px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 13px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button {
  color: #241124;
  background: linear-gradient(135deg, #f7d99d, #e7b6ce);
  box-shadow: 0 8px 28px rgba(226, 174, 194, 0.16);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(226, 174, 194, 0.17);
}

.primary-button:hover {
  background: linear-gradient(135deg, #ffe8b6, #ffd4e7);
}

.hero-stars {
  margin-top: 38px;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  opacity: 0.75;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  transform: translateX(-50%);
}

.scroll-cue span {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Realm cards */

.section-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: auto;
}

.realms {
  padding-top: 95px;
  padding-bottom: 85px;
}

.section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.section-heading h2,
.message-card h2 {
  margin: 10px 0 8px;
  color: var(--pink-bright);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.realm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.realm-card {
  --accent: var(--pink);
  position: relative;
  min-width: 0;
  min-height: 260px;
  padding: 27px 22px 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    linear-gradient(155deg, rgba(50, 26, 50, 0.95), rgba(30, 15, 34, 0.97));
  box-shadow: var(--shadow);
  transition: transform 200ms ease, border-color 200ms ease,
    box-shadow 200ms ease;
}

.realm-card:hover {
  z-index: 1;
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}

.realm-card:active {
  transform: translateY(-2px);
}

.realm-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 17px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 1.9rem;
}

.realm-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.5;
}

.realm-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.realm-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.rose { --accent: #ff9cb9; }
.teddy { --accent: #e7b98b; }
.vault { --accent: #a9b9ff; }
.letters { --accent: #ffafd5; }
.riddles { --accent: #bca7ff; }
.palace { --accent: #f3d17e; }
.mirror { --accent: #a8e9ee; }
.hearts { --accent: #ff8da8; }

/* Daily message */

.daily-message {
  padding-top: 25px;
  padding-bottom: 100px;
}

.message-card {
  position: relative;
  max-width: 820px;
  margin: auto;
  padding: clamp(32px, 6vw, 65px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 169, 202, 0.13), transparent 65%),
    linear-gradient(145deg, #2e1933, #1f1026);
  box-shadow: var(--shadow);
  text-align: center;
}

.message-decoration {
  display: block;
  margin-bottom: 5px;
  color: var(--pink);
  font-size: 2.3rem;
  line-height: 1.2;
}

.message-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.message-card > p {
  min-height: 3.5em;
  max-width: 600px;
  margin: 22px auto 27px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.secondary-button {
  color: var(--gold);
  background: rgba(232, 196, 125, 0.07);
}

.secondary-button:hover {
  background: rgba(232, 196, 125, 0.14);
}

/* Footer */

.site-footer {
  padding: 45px 20px 35px;
  border-top: 1px solid rgba(232, 196, 125, 0.14);
  background: rgba(13, 6, 17, 0.4);
  text-align: center;
}

.footer-crown {
  color: var(--gold);
  font-size: 2rem;
}

.site-footer p {
  margin: 8px 0;
  color: var(--muted);
}

.site-footer a {
  display: inline-block;
  margin: 8px 0 18px;
  color: var(--pink);
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer small {
  display: block;
  color: #9c829a;
  font-size: 0.75rem;
}

/* Responsive navigation and layout */

@media (max-width: 1050px) {
  .navbar {
    gap: 14px;
  }

  .nav-links a {
    padding: 7px;
    font-size: 0.72rem;
  }

  .realm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 70px;
    width: calc(100% - 32px);
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .nav-links {
    position: fixed;
    inset: 70px 0 0;
    z-index: 1;
    padding: 22px 24px 35px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    overflow-y: auto;
    background: rgba(22, 11, 27, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease,
      visibility 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 15px;
    border: 1px solid rgba(232, 196, 125, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 650px;
    min-height: min(700px, calc(100svh - 70px));
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .realms {
    padding-top: 65px;
    padding-bottom: 60px;
  }

  .realm-grid {
    gap: 13px;
  }

  .realm-card {
    min-height: 250px;
    padding: 20px 17px;
  }

  .daily-message {
    padding-bottom: 70px;
  }
}

@media (max-width: 420px) {
  .realm-grid {
    grid-template-columns: 1fr;
  }

  .realm-card {
    min-height: 220px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }

  .section-shell {
    width: calc(100% - 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particles {
    display: none;
  }
}
