:root {
  color-scheme: dark;
  --ink: #07060d;
  --ink-soft: #100c1a;
  --violet: #352346;
  --plum: #6f466f;
  --gold: #d6b66f;
  --gold-bright: #f1d99a;
  --cream: #f4ecdd;
  --muted: #c9bdc8;
  --line: rgba(214, 182, 111, 0.28);
  --display-magical: "Cinzel Decorative", "Cormorant Garamond", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Cinzel", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  border-radius: .3rem;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { transform: none; }

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(81, 51, 103, .24), transparent 35%), var(--ink);
}
.stars {
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 26%, #d9c6ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 31% 70%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 81%, #f1d99a 0 1px, transparent 1.5px);
  background-size: 290px 240px, 360px 330px, 250px 310px, 410px 360px;
}
.mist {
  position: absolute;
  width: 72vw;
  height: 20rem;
  opacity: .1;
  filter: blur(55px);
  border-radius: 50%;
  background: #cbb5d6;
  animation: drift 18s ease-in-out infinite alternate;
}
.mist-one { top: 37%; left: -20%; }
.mist-two { top: 72%; right: -30%; animation-delay: -8s; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(to bottom, rgba(5,4,10,.72), transparent);
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display-magical); font-size: 1.12rem; font-weight: 700; letter-spacing: .025em; text-decoration: none; }
.brand-moon { color: var(--gold-bright); font-size: 1.7rem; line-height: 1; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { position: relative; padding: .55rem .1rem; color: #e9e2ea; font-size: .9rem; letter-spacing: .07em; text-decoration: none; }
nav a::after { content: ""; position: absolute; right: 50%; bottom: .25rem; left: 50%; height: 1px; background: var(--gold); transition: .3s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; left: 0; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  transform: scale(1.03);
  background: url("./assets/hexenstube-portal.png") center 48% / cover no-repeat;
  animation: breathe 18s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,4,10,.3), rgba(5,4,10,.15) 45%, var(--ink) 100%),
    radial-gradient(circle at center 43%, rgba(13, 9, 24, .05) 0 18%, rgba(6,5,12,.72) 82%);
}
.hero-content { width: min(92%, 780px); padding: 8rem 1rem 5rem; text-shadow: 0 3px 30px #030208; }
.eyebrow { margin: 0 0 1rem; color: var(--gold-bright); font-size: .78rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.eyebrow span { margin: 0 .7rem; font-size: .65rem; }
h1, h2 { font-family: var(--display-magical); }
h3 { font-family: var(--display); }
h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .9;
}
h1 em { color: var(--gold-bright); font-style: normal; font-weight: 700; }
.intro { max-width: 680px; margin: 2.2rem auto 2rem; color: #f2edf1; font-size: clamp(.96rem, 1.8vw, 1.08rem); line-height: 1.8; }
.enter-button {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  min-height: 50px;
  padding: .65rem 1.25rem .65rem 1.5rem;
  border: 1px solid rgba(241,217,154,.65);
  border-radius: 999px;
  background: rgba(9,7,17,.55);
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  color: var(--cream);
  font-size: .9rem;
  letter-spacing: .04em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: .3s ease;
}
.enter-button:hover, .enter-button:focus-visible { background: var(--gold); color: #17101c; transform: translateY(-2px); }
.scroll-hint { position: absolute; bottom: 1.25rem; left: 50%; display: flex; align-items: center; gap: .65rem; transform: translateX(-50%); color: rgba(255,255,255,.65); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.scroll-hint span { width: 1px; height: 2rem; background: linear-gradient(var(--gold), transparent); }

.portal-section { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(6rem, 12vw, 10rem) 0; }
.section-heading { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.section-heading h2, .news-content h2 { margin: 0 0 1rem; font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 400; line-height: 1.12; }
.section-heading > p:last-child { color: var(--muted); font-size: 1rem; }
.portal-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; }
.portal-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(31,22,42,.95), rgba(12,9,19,.97));
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  text-decoration: none;
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.portal-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 15%, rgba(122,78,133,.27), transparent 44%); opacity: .65; transition: .35s ease; }
.portal-card:hover, .portal-card:focus-visible { z-index: 2; border-color: rgba(241,217,154,.7); outline: none; transform: translateY(-8px); box-shadow: 0 28px 70px rgba(0,0,0,.42), 0 0 30px rgba(125,83,140,.13); }
.portal-card:hover::before { opacity: 1; }
.portal-card > * { position: relative; z-index: 1; }
.card-number { position: absolute; top: 1.25rem; right: 1.5rem; color: rgba(214,182,111,.45); font-family: var(--display); font-size: 1rem; }
.card-icon { position: absolute; top: 2.1rem; left: 50%; color: var(--gold-bright); font-size: 4.4rem; line-height: 1; transform: translateX(-50%); filter: drop-shadow(0 0 20px rgba(214,182,111,.35)); }
.featured .card-icon { font-size: 5.2rem; }
.card-kicker { margin-bottom: .5rem; color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.portal-card strong { font-family: var(--display-magical); font-size: clamp(1.65rem, 2.8vw, 2.45rem); font-weight: 400; line-height: 1.15; }
.card-copy { max-width: 28rem; margin-top: .85rem; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.card-action { display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; color: var(--gold-bright); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card-action b { transition: transform .3s ease; }
.portal-card:hover .card-action b { transform: translateX(5px); }
.card-glow { position: absolute; top: -20%; left: 50%; width: 11rem; height: 11rem; transform: translateX(-50%); border-radius: 50%; background: rgba(190,151,225,.16); filter: blur(35px); }

.home-offers { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 9rem; }
.home-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.home-price-card { display: flex; flex-direction: column; min-height: 330px; padding: 1.8rem; border: 1px solid var(--line); border-radius: 1.1rem; background: linear-gradient(145deg, rgba(31,22,42,.94), rgba(12,9,19,.97)); }
.home-price-card.featured-price { border-color: rgba(241,217,154,.7); box-shadow: 0 20px 60px rgba(111,70,111,.22); }
.home-price-card > span { color: var(--gold); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.home-price-card h3 { margin: 1rem 0 .7rem; color: var(--cream); font-size: 1.75rem; line-height: 1.15; }
.home-price-card p { margin: 0 0 1.5rem; color: var(--muted); font-size: .88rem; }
.home-price-card strong { margin-top: auto; color: var(--gold-bright); font-family: var(--display-magical); font-size: 1.75rem; font-weight: 400; }
.home-price-card strong small { color: var(--muted); font-family: var(--body); font-size: .65rem; }
.home-price-card a { align-self: flex-start; margin-top: 1rem; padding: .65rem 1rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-bright); font-size: .78rem; text-decoration: none; }

.news-section { width: min(1050px, calc(100% - 2rem)); display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(2rem, 8vw, 7rem); margin: 0 auto; padding: 4rem 0 10rem; }
.news-orbit { position: relative; width: min(75vw, 330px); aspect-ratio: 1; margin: auto; border-radius: 50%; background: radial-gradient(circle, rgba(168,128,183,.16), transparent 55%); }
.orbit-ring { position: absolute; inset: 12%; border: 1px solid rgba(214,182,111,.42); border-radius: 50%; box-shadow: 0 0 35px rgba(214,182,111,.08), inset 0 0 35px rgba(214,182,111,.08); }
.orbit-ring::before, .orbit-ring::after { content: "✦"; position: absolute; color: var(--gold-bright); text-shadow: 0 0 14px var(--gold); }
.orbit-ring::before { top: -12px; left: calc(50% - 6px); }
.orbit-ring::after { right: -7px; bottom: 25%; font-size: .7rem; }
.orbit-moon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-bright); font-size: 8rem; line-height: 1; text-shadow: 0 0 45px rgba(214,182,111,.28); animation: float 6s ease-in-out infinite; }
.news-content article { margin-top: 2rem; padding: 1.6rem 0 0 1.5rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.news-content time { color: var(--gold); font-size: .77rem; letter-spacing: .1em; text-transform: uppercase; }
.news-content h3 { margin: .5rem 0; font-size: 1.8rem; font-weight: 600; }
.news-content article p { margin: 0; color: var(--muted); }

footer { padding: 3rem 1rem; border-top: 1px solid rgba(214,182,111,.18); text-align: center; }
.footer-mark { color: var(--gold); font-size: 2rem; }
footer p { margin: .2rem 0; color: var(--muted); font-family: var(--display); font-size: 1.2rem; }
footer .copyright { font-family: var(--body); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.notice { position: fixed; z-index: 50; right: 1.25rem; bottom: 1.25rem; max-width: min(390px, calc(100% - 2.5rem)); display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid rgba(214,182,111,.48); border-radius: .8rem; background: rgba(16,12,26,.96); box-shadow: 0 18px 60px rgba(0,0,0,.5); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: .3s ease; }
.notice.visible { opacity: 1; transform: none; }
.notice > span { color: var(--gold-bright); font-size: 1.4rem; }
.notice p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.notice strong { color: var(--cream); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.portal-card:nth-child(2) { transition-delay: .1s; }
.portal-card:nth-child(3) { transition-delay: .2s; }

.magic-cursor { display: none; }
@media (pointer: fine) {
  html.magic-pointer, html.magic-pointer a { cursor: none; }
  .magic-cursor { position: fixed; z-index: 999; top: 0; left: 0; width: 2.9rem; height: 2.9rem; display: block; pointer-events: none; transform: translate(-10%, -84%); filter: drop-shadow(0 0 7px rgba(184,92,255,.72)); transition: width .18s, height .18s, filter .18s; }
  .magic-cursor img { display: block; width: 100%; height: 100%; }
  .magic-cursor.hovering { width: 3.45rem; height: 3.45rem; filter: drop-shadow(0 0 12px rgba(109,226,228,.88)); }
  .cursor-spark { position: fixed; z-index: 998; color: var(--gold-bright); font-size: .45rem; pointer-events: none; animation: sparkle .7s ease-out forwards; }
}

@media (max-width: 850px) {
  .portal-grid { grid-template-columns: 1fr 1fr; }
  .home-price-grid { grid-template-columns: 1fr; }
  .featured { grid-column: 1 / -1; }
  .news-section { grid-template-columns: 1fr; text-align: center; }
  .news-content article { padding-left: 0; border-left: 0; }
}
@media (max-width: 580px) {
  .site-header { padding: 1rem 1.15rem; }
  .brand { font-size: 1.08rem; }
  nav a:not(:last-child) { display: none; }
  nav a { font-size: .8rem; }
  .hero-content { padding-top: 6.5rem; }
  h1 { font-size: clamp(2.75rem, 13.5vw, 4.4rem); line-height: .98; }
  .intro { max-width: 32rem; }
  .portal-grid { grid-template-columns: 1fr; }
  .featured { grid-column: auto; }
  .portal-card { min-height: 340px; }
}

@keyframes drift { to { transform: translateX(32vw) translateY(-3rem) scale(1.15); } }
@keyframes breathe { to { transform: scale(1.085); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes sparkle { to { opacity: 0; transform: translateY(-14px) scale(.2) rotate(90deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
