:root {
  --color-black: #050403;
  --color-ink: #14100b;
  --color-charcoal: #171819;
  --color-charcoal-soft: #252322;
  --color-gold: #c99645;
  --color-gold-bright: #e7c276;
  --color-parchment: #ead7b7;
  --color-parchment-deep: #dec59a;
  --color-paper: #f2e5cb;
  --color-cream: #fff5df;
  --color-muted: #7d684e;
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, .36);
  --shadow-card: 0 18px 40px rgba(49, 31, 14, .18);
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--color-gold);
  color: var(--color-black);
  padding: .65rem 1rem;
  border-radius: 999px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 4, 3, .76);
  border-bottom: 1px solid rgba(201, 150, 69, .25);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1280px, calc(100% - 2rem));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(231, 194, 118, .65);
  border-radius: 50%;
  color: var(--color-gold-bright);
  box-shadow: inset 0 0 18px rgba(201, 150, 69, .16);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.7vw, 1.5rem);
  color: rgba(255, 245, 223, .86);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.nav-menu a:not(.btn) { position: relative; padding-block: .4rem; }
.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold-bright);
  transition: .25s ease;
  transform: translateX(-50%);
}
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(231, 194, 118, .45);
  border-radius: 50%;
  background: transparent;
  color: var(--color-cream);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-gold-bright);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold)); color: #160f08; box-shadow: 0 10px 30px rgba(201, 150, 69, .25); }
.btn-outline { border-color: rgba(231, 194, 118, .72); color: var(--color-gold-bright); }
.btn-outline-dark { border-color: rgba(72, 42, 14, .35); color: #3f2912; background: rgba(255, 245, 223, .28); }
.btn-ghost { border-color: rgba(255, 245, 223, .32); color: var(--color-cream); background: rgba(255, 245, 223, .05); }
.btn-small { min-height: 38px; padding: .55rem 1rem; font-size: .65rem; }

.section-dark { background: var(--color-black); color: var(--color-cream); position: relative; z-index: 2; }
.parchment-section {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 250, 222, .42), transparent 28rem),
    radial-gradient(circle at 80% 70%, rgba(154, 104, 42, .12), transparent 24rem),
    linear-gradient(90deg, rgba(67, 39, 14, .035) 1px, transparent 1px),
    linear-gradient(var(--color-parchment), var(--color-parchment));
  background-size: auto, auto, 7px 7px, auto;
}
.parchment-deep { background-color: var(--color-parchment-deep); }

/* Replace assets/img/hero-placeholder.png with final concept art, or update this URL. */
.hero {
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: visible;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('../img/hero-placeholder.png') center / cover no-repeat;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 52%, rgba(201, 150, 69, .16), transparent 18rem),
    linear-gradient(90deg, rgba(5, 4, 3, .94), rgba(5, 4, 3, .38) 50%, rgba(5, 4, 3, .94)),
    linear-gradient(180deg, rgba(5, 4, 3, .72), rgba(5, 4, 3, .2) 48%, rgba(5, 4, 3, .93));
}
.hero-content {
  padding: 8rem 0 9rem;
  text-align: center;
  color: var(--color-cream);
}
.eyebrow, .kicker {
  margin: 0 0 .8rem;
  color: var(--color-gold-bright);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 9vw, 8.5rem);
  line-height: .92;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-shadow: 0 10px 36px rgba(0, 0, 0, .82);
}
.hero-subtitle {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: rgba(255, 245, 223, .9);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }

.hero-emblem {
  position: relative;
  width: min(330px, 72vw);
  height: 92px;
  margin: 0 auto -1rem;
  opacity: .72;
}
.emblem-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(231, 194, 118, .7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 12px rgba(201, 150, 69, .08), inset 0 0 22px rgba(201, 150, 69, .22);
}
.blade {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 145px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold-bright), var(--color-gold));
  transform-origin: left center;
}
.blade::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -5px;
  border-left: 14px solid var(--color-gold-bright);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.blade-left { transform: rotate(28deg) translateX(-12px); }
.blade-right { transform: rotate(152deg) translateX(-12px); }

.torn-bottom::after, .torn-top::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 4;
  background:
    radial-gradient(circle at 8% 64%, rgba(255,255,255,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 61% 42%, rgba(255,255,255,.06) 0 1px, transparent 2px),
    var(--color-black);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 94% 86%, 89% 58%, 83% 92%, 76% 68%, 70% 98%, 64% 63%, 58% 84%, 51% 60%, 45% 94%, 38% 67%, 31% 90%, 25% 61%, 18% 86%, 12% 59%, 6% 93%, 0 70%);
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.35));
}
.torn-bottom::after { bottom: -42px; }
.torn-top::before { top: -42px; transform: rotate(180deg); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px) 1fr;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 4rem);
}
.parchment-card, .book-card, .character-card, .accordion-item {
  border: 1px solid rgba(73, 42, 15, .2);
  background: rgba(255, 245, 223, .42);
  box-shadow: var(--shadow-card);
}
.parchment-card {
  padding: clamp(1.5rem, 3vw, 2.35rem);
  min-height: 300px;
}
h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-transform: none;
}
h2 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.4rem); }
h3 { margin: 0 0 .65rem; font-size: 1.45rem; }
.parchment-card h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.parchment-card p:not(.kicker), .section-intro { color: #503d28; }
.text-link {
  display: inline-flex;
  margin-top: .5rem;
  color: #6d4618;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mystery-illustration {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(81, 51, 21, .15);
  border-radius: 50%;
  opacity: .72;
}
.mystery-illustration::before, .mystery-illustration::after {
  content: '';
  position: absolute;
  inset: 14%;
  border: 2px solid rgba(94, 64, 28, .22);
  border-radius: 50%;
}
.mystery-illustration::after { inset: 28%; transform: rotate(45deg); border-radius: 16px; }
.mystery-core {
  position: absolute;
  inset: 35%;
  background: linear-gradient(145deg, rgba(84, 83, 76, .28), rgba(36, 30, 22, .16));
  clip-path: polygon(50% 0, 88% 27%, 76% 88%, 22% 88%, 10% 26%);
}
.rune { position: absolute; color: rgba(92, 61, 24, .42); font-size: 2rem; }
.rune-one { left: 18%; top: 18%; }
.rune-two { right: 16%; top: 24%; }
.rune-three { left: 45%; bottom: 12%; }

.section-heading { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.centered { text-align: center; }
.ornament {
  width: min(280px, 70vw);
  height: 1px;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(83, 50, 18, .38), var(--color-gold), rgba(83, 50, 18, .38), transparent);
  position: relative;
}
.ornament::after {
  content: '✦';
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0 .7rem;
  background: var(--color-parchment-deep);
  color: #81591f;
  transform: translate(-50%, -50%);
}

.book-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.book-card { overflow: hidden; background: rgba(255, 245, 223, .52); }
/* Replace the gradient book-cover blocks with final cover images when available. */
.book-cover {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.6rem;
  color: var(--color-gold-bright);
  text-align: center;
  border: 10px solid rgba(15, 9, 5, .9);
  box-shadow: inset 0 0 0 1px rgba(231, 194, 118, .26), inset 0 -90px 110px rgba(0, 0, 0, .64);
}
.book-cover span { font-family: var(--font-display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.book-cover strong { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; text-transform: uppercase; }
.cover-one { background: radial-gradient(circle at 50% 36%, rgba(231, 194, 118, .28), transparent 9rem), linear-gradient(140deg, #0d1618, #1a1715 52%, #3a2a19); }
.cover-two { background: radial-gradient(circle at 30% 25%, rgba(231, 194, 118, .32), transparent 7rem), linear-gradient(140deg, #1a1013, #1e2528 52%, #4b3217); }
.cover-three { background: radial-gradient(circle at 70% 22%, rgba(231, 194, 118, .25), transparent 8rem), linear-gradient(140deg, #111111, #22211f 50%, #5b3516); }
.book-copy { padding: 1.55rem; }
.book-copy p { color: #56442f; }

.world-feature { padding: clamp(6rem, 10vw, 9rem) 0; overflow: visible; }
.world-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.world-copy p:not(.kicker) { max-width: 650px; color: rgba(255, 245, 223, .78); font-size: 1.25rem; }
.world-art {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(201, 150, 69, .28);
  background: radial-gradient(circle at 50% 22%, rgba(201, 150, 69, .18), transparent 9rem), linear-gradient(155deg, #080706, #191817 50%, #0a0908);
  box-shadow: var(--shadow-deep), inset 0 0 90px rgba(0,0,0,.7);
  overflow: hidden;
}
.world-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, black, transparent 78%);
}
.world-helm, .world-body, .world-blade { position: absolute; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #3b3b37, #090807); }
.world-helm { top: 78px; width: 104px; height: 120px; border-radius: 52px 52px 24px 24px; box-shadow: inset 18px 0 25px rgba(231,194,118,.1); }
.world-body { top: 185px; width: 220px; height: 285px; clip-path: polygon(50% 0, 86% 20%, 100% 100%, 0 100%, 14% 20%); }
.world-blade { top: 110px; left: 28%; width: 8px; height: 360px; background: linear-gradient(var(--color-gold-bright), #2e2114); transform: rotate(-10deg); transform-origin: top; }

.icon-strip { padding: 2.1rem 0; background: linear-gradient(135deg, #b98239, var(--color-gold), #d6ad68); }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.symbol { display: grid; place-items: center; gap: .35rem; color: rgba(33, 22, 10, .74); font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.symbol span { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid rgba(33,22,10,.26); border-radius: 50%; font-size: 1.7rem; box-shadow: inset 0 0 0 6px rgba(255,255,255,.08); }
.symbol p { margin: 0; }

.character-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 1.7rem); }
.character-card { padding: .75rem .75rem 1.4rem; text-align: center; background: rgba(255, 245, 223, .55); }
.portrait {
  min-height: 290px;
  margin-bottom: 1.2rem;
  background: linear-gradient(160deg, #201a15, #6d5533);
  position: relative;
  overflow: hidden;
}
.portrait::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46%;
  height: 72%;
  background: linear-gradient(145deg, rgba(12, 11, 10, .9), rgba(64, 55, 44, .7));
  border-radius: 46% 46% 0 0;
  transform: translateX(-50%);
}
.portrait::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 22%;
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #b89b71, #46331e);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 22px rgba(15, 12, 9, .42);
}
.portrait-wanderer { background: radial-gradient(circle at 50% 30%, rgba(231,194,118,.18), transparent 8rem), linear-gradient(150deg, #171b1f, #4a3d2a); }
.portrait-noblewoman { background: radial-gradient(circle at 52% 24%, rgba(231,194,118,.18), transparent 8rem), linear-gradient(150deg, #182322, #634827); }
.portrait-soldier { background: radial-gradient(circle at 48% 28%, rgba(231,194,118,.18), transparent 8rem), linear-gradient(150deg, #211d1c, #5b2f20); }
.portrait-keeper { background: radial-gradient(circle at 50% 28%, rgba(231,194,118,.2), transparent 8rem), linear-gradient(150deg, #1a201b, #3f4b34); }
.character-card .role { margin: -.35rem 0 .65rem; color: #8a5c21; font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.character-card p:last-child { color: #5d4933; margin-inline: .45rem; }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.accordion { display: grid; gap: .8rem; }
.accordion-item { background: rgba(255, 245, 223, .58); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border: 0;
  background: transparent;
  color: #2f2114;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.accordion-icon { color: #9a682a; font-size: 1.3rem; }
.accordion-trigger[aria-expanded='true'] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { padding: 0 1.35rem 1.2rem; color: #5c472f; }
.accordion-panel p { margin: 0; }

.site-footer {
  padding-top: clamp(4rem, 8vw, 6rem);
  background: radial-gradient(circle at 50% 0, rgba(201, 150, 69, .13), transparent 22rem), var(--color-black);
  color: rgba(255, 245, 223, .72);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .55fr .55fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand p { max-width: 340px; }
.footer-links, .newsletter { display: grid; align-content: start; gap: .55rem; }
.footer-links h3, .newsletter h3 { margin: 0 0 .5rem; color: var(--color-cream); font-family: var(--font-display); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { color: rgba(255, 245, 223, .66); }
.newsletter-row { display: flex; gap: .5rem; }
.newsletter input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(231, 194, 118, .25);
  border-radius: 999px;
  background: rgba(255, 245, 223, .08);
  color: var(--color-cream);
  padding: .75rem 1rem;
}
.newsletter input::placeholder { color: rgba(255, 245, 223, .45); }
.footer-bottom { margin-top: 3.5rem; padding: 1.5rem 1rem; border-top: 1px solid rgba(231, 194, 118, .12); text-align: center; font-size: .95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    display: grid;
    justify-items: center;
    gap: 1.15rem;
    padding: 2rem;
    background: rgba(5, 4, 3, .97);
    border-bottom: 1px solid rgba(231, 194, 118, .25);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .intro-grid, .world-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
  .mystery-illustration { max-width: 250px; margin-inline: auto; order: -1; }
  .book-carousel, .character-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .world-copy { text-align: center; }
  .world-copy p:not(.kicker) { margin-inline: auto; }
}

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .nav { min-height: 68px; }
  .brand { font-size: .78rem; letter-spacing: .05em; }
  .hero { min-height: 690px; }
  .hero-content { padding-top: 6rem; }
  .hero-actions, .newsletter-row { flex-direction: column; }
  .book-carousel, .character-grid, .icon-grid { grid-template-columns: 1fr; }
  .book-cover { min-height: 360px; }
  .world-art { min-height: 420px; }
  .symbol span { width: 56px; height: 56px; }
}
