/* =====================================================
   WORLD OF LUCY KAY
   Story Archive - stories.css v0.1
===================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; min-height: 100%; scroll-behavior: smooth; }

body {
  background: #060704;
  color: #fff;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.stories-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 86px;
}

.stories-bg {
  position: fixed;
  inset: 0;
  background: url("gateway.webp") center center / cover no-repeat;
  transform: scale(1.03);
  filter: blur(1px) saturate(0.88) brightness(0.74);
  z-index: 0;
}

.stories-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 236, 172, 0.12), rgba(48, 61, 34, 0.10) 35%, rgba(0, 0, 0, 0.56) 74%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.22) 38%, rgba(0, 0, 0, 0.82) 100%);
}

.gold-frame {
  position: fixed;
  inset: 22px;
  border: 1px solid rgba(203, 164, 91, 0.56);
  z-index: 5;
  pointer-events: none;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.stories-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 30px 64px 0;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 42px; }
.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
  color: rgba(255, 245, 220, 0.94);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 0.83rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  transition: 0.3s ease;
}

.nav-left a:hover, .nav-right a:hover {
  color: #e2bf72;
  text-shadow: 0 0 14px rgba(226, 191, 114, 0.5);
}

.stories-logo {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 174, 92, 0.9);
  border-radius: 50%;
  background: rgba(10, 14, 8, 0.5);
  color: #f5d48a;
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.85rem;
  box-shadow: 0 0 20px rgba(203, 164, 91, 0.28);
}

.stories-hero {
  position: relative;
  z-index: 8;
  max-width: 1040px;
  margin: 72px auto 0;
  padding: 0 24px;
  text-align: center;
}

.eyebrow, .section-kicker {
  margin-bottom: 12px;
  color: rgba(245, 212, 138, 0.95);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.stories-hero h1 {
  color: #fff7e8;
  font-family: "Cinzel", serif;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.stories-hero h1 span {
  display: block;
  font-size: clamp(3rem, 5.3vw, 5.8rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 0.92;
}

.stories-hero h1 em {
  display: block;
  margin-top: 8px;
  color: #fff2d0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 3.8vw, 4.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
}

.hero-subtitle {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(255, 245, 220, 0.94);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.18rem, 1.54vw, 1.72rem);
  font-style: italic;
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.archive-intro {
  position: relative;
  z-index: 8;
  width: min(880px, 88vw);
  margin: 50px auto 36px;
  padding: 28px 36px;
  border: 1px solid rgba(203, 164, 91, 0.42);
  background: rgba(9, 14, 8, 0.56);
  backdrop-filter: blur(5px);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.36);
}

.archive-intro p {
  color: rgba(255, 245, 220, 0.88);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.24rem;
  font-style: italic;
  line-height: 1.45;
}

.archive-intro strong { color: #fff2d0; font-weight: 600; }

.world-story-card {
  position: relative;
  z-index: 8;
  width: min(980px, 90vw);
  margin: 0 auto 38px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 34px;
  align-items: center;
  padding: 40px 46px;
  border: 1px solid rgba(203, 164, 91, 0.52);
  background: linear-gradient(rgba(12, 19, 10, 0.74), rgba(12, 19, 10, 0.74)), radial-gradient(circle at top left, rgba(224, 180, 89, 0.16), transparent 58%);
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 24px 58px rgba(0, 0, 0, 0.45);
}

.world-number {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(224, 180, 89, 0.62);
  border-radius: 50%;
  color: #f5d48a;
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  box-shadow: 0 0 22px rgba(224, 180, 89, 0.16);
}

.world-copy h2, .future-worlds h2, .archive-footer h2 {
  color: #fff7e8;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.world-copy p, .future-worlds > p, .archive-footer p {
  max-width: 690px;
  margin-top: 18px;
  color: rgba(255, 245, 220, 0.88);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.45;
}

.world-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.archive-button, .read-link {
  position: relative;
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid rgba(224, 180, 89, 0.82);
  background: rgba(14, 30, 14, 0.78);
  color: #f6d99a;
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.archive-button.secondary { background: rgba(10, 12, 8, 0.42); }
.archive-button::before, .read-link::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(224, 180, 89, 0.22);
  pointer-events: none;
}

.archive-button:hover, .chapter-card:hover .read-link {
  background: rgba(12, 25, 12, 0.92);
  color: #ffe2a3;
  border-color: rgba(245, 203, 112, 0.95);
  box-shadow: 0 0 20px rgba(224, 180, 89, 0.34), 0 16px 36px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.chapter-list {
  position: relative;
  z-index: 8;
  width: min(1120px, 92vw);
  margin: 0 auto 78px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.chapter-card {
  display: block;
  min-height: 360px;
  padding: 34px 30px;
  border: 1px solid rgba(203, 164, 91, 0.48);
  background: rgba(10, 15, 8, 0.68);
  backdrop-filter: blur(5px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 20px 48px rgba(0, 0, 0, 0.42);
  transition: 0.32s ease;
}

.chapter-card:hover {
  transform: translateY(-7px);
  border-color: rgba(224, 180, 89, 0.82);
  background: linear-gradient(rgba(14, 26, 12, 0.74), rgba(14, 26, 12, 0.74)), radial-gradient(circle at top, rgba(224, 180, 89, 0.16), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 26px rgba(224, 180, 89, 0.16), 0 26px 58px rgba(0, 0, 0, 0.52);
}

.chapter-number {
  color: #d7ae5c;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.chapter-card h2 {
  margin-top: 42px;
  color: #fff4d6;
  font-family: "Cinzel", serif;
  font-size: 1.34rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.32;
}

.chapter-card p {
  min-height: 114px;
  margin-top: 20px;
  color: rgba(255, 245, 220, 0.84);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.38;
}

.chapter-card .read-link { margin-top: 24px; }
.chapter-card.locked { opacity: 0.78; }
.chapter-card.locked:hover {
  transform: none;
  border-color: rgba(203, 164, 91, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 20px 48px rgba(0, 0, 0, 0.42);
}
.chapter-card.locked .read-link { opacity: 0.62; }

.future-worlds, .archive-footer {
  position: relative;
  z-index: 8;
  width: min(980px, 90vw);
  margin: 0 auto 70px;
  padding: 44px 46px;
  border: 1px solid rgba(203, 164, 91, 0.42);
  background: rgba(10, 15, 8, 0.64);
  backdrop-filter: blur(5px);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 18px 45px rgba(0, 0, 0, 0.34);
}

.future-worlds > p, .archive-footer p { margin-left: auto; margin-right: auto; }

.future-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.future-grid article {
  padding: 28px 22px;
  border: 1px solid rgba(203, 164, 91, 0.36);
  background: rgba(5, 8, 5, 0.42);
}

.future-grid span {
  color: #d7ae5c;
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}

.future-grid h3 {
  margin-top: 22px;
  color: #fff4d6;
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.future-grid p {
  margin-top: 12px;
  color: rgba(255, 245, 220, 0.72);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.02rem;
  font-style: italic;
}

.archive-footer .archive-button { margin-top: 26px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

.stories-header, .stories-hero, .archive-intro, .world-story-card, .chapter-card, .future-worlds, .archive-footer { animation: fadeUp 1.1s ease both; }
.stories-hero { animation-delay: 0.12s; }
.archive-intro { animation-delay: 0.18s; }
.world-story-card { animation-delay: 0.24s; }
.chapter-card:nth-child(1) { animation-delay: 0.3s; }
.chapter-card:nth-child(2) { animation-delay: 0.38s; }
.chapter-card:nth-child(3) { animation-delay: 0.46s; }
.future-worlds { animation-delay: 0.54s; }
.archive-footer { animation-delay: 0.62s; }

@media (max-width: 980px) {
  .stories-header { padding: 28px 36px 0; }
  .nav-left, .nav-right { gap: 24px; }
  .chapter-list { grid-template-columns: 1fr; width: min(620px, 90vw); }
  .chapter-card { min-height: auto; }
  .chapter-card p { min-height: auto; }
  .future-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .gold-frame { inset: 12px; }
  .stories-header { grid-template-columns: 1fr; gap: 18px; justify-items: center; padding: 24px 18px 0; }
  .nav-left, .nav-right { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .stories-hero { margin-top: 48px; }
  .world-story-card { grid-template-columns: 1fr; padding: 34px 26px; text-align: center; }
  .world-number { margin: 0 auto; }
  .world-buttons { justify-content: center; }
  .archive-button, .read-link { width: 100%; text-align: center; }
  .future-worlds, .archive-footer { padding: 36px 24px; }
}
