:root {
  color-scheme: dark;
  --ink: #07090d;
  --ink-soft: #0d1118;
  --bone: #f2ead9;
  --muted: #afa58f;
  --gold: #c9a252;
  --gold-bright: #eed88b;
  --line: rgba(218, 185, 104, 0.24);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(to bottom, rgba(3, 4, 7, 0.72), transparent);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.76rem;
}

.wordmark-mark {
  position: relative;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  overflow: hidden;
}

.wordmark-mark img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.75rem;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

nav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); }

nav a {
  padding: 0.4rem 0;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 0.73rem/1.2 Arial, sans-serif;
}

nav a:hover,
nav a:focus-visible,
nav a.active { color: var(--bone); }

.floating-navigation {
  position: fixed;
  z-index: 30;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.7rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.floating-navigation-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-navigation-controls {
  display: flex;
  gap: 0.5rem;
}

.floating-navigation-button {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(201, 162, 82, 0.42);
  border-radius: 2px;
  background: rgba(8, 10, 14, 0.94);
  color: var(--gold-bright);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.38);
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.floating-navigation-button:hover,
.floating-navigation-button:focus-visible,
.quick-menu-toggle[aria-expanded="true"] {
  border-color: rgba(238, 216, 139, 0.75);
  background: rgba(19, 19, 18, 0.97);
  color: var(--bone);
}

.back-to-top span {
  font: 1.35rem/1 Georgia, "Times New Roman", serif;
  transform: translateY(-0.08rem);
}

.menu-glyph {
  width: 1rem;
  display: grid;
  gap: 0.22rem;
}

.menu-glyph i {
  display: block;
  height: 1px;
  background: currentColor;
}

.quick-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  width: min(16rem, calc(100vw - 2rem));
  padding: 0.55rem;
  border: 1px solid rgba(201, 162, 82, 0.34);
  background:
    linear-gradient(145deg, rgba(19, 19, 18, 0.98), rgba(7, 9, 13, 0.98));
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.56);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.45rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.quick-menu-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.quick-menu-title {
  margin: 0;
  padding: 0.55rem 0.7rem 0.65rem;
  border-bottom: 1px solid rgba(218, 185, 104, 0.16);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font: 0.68rem/1.2 Arial, sans-serif;
}

.quick-menu-links {
  display: grid;
}

.quick-menu-link {
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid rgba(218, 185, 104, 0.09);
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font: 0.72rem/1.25 Arial, sans-serif;
  transition: color 150ms ease, background-color 150ms ease;
}

.quick-menu-link:last-child { border-bottom: 0; }

.quick-menu-link:hover,
.quick-menu-link:focus-visible {
  color: var(--bone);
  background: rgba(201, 162, 82, 0.08);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 7rem 1.5rem 5rem;
  background:
    radial-gradient(circle at 50% 43%, rgba(87, 67, 34, 0.19), transparent 24rem),
    linear-gradient(135deg, #050609 0%, #0b0f17 48%, #050609 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 9px, rgba(255,255,255,0.025) 10px 11px),
    radial-gradient(circle at center, transparent 0 38%, #000 83%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -16% -10%;
  height: 38%;
  z-index: -1;
  filter: blur(30px);
  background: radial-gradient(ellipse at center, rgba(130, 115, 88, 0.17), transparent 65%);
}

.sigil-echo {
  position: absolute;
  pointer-events: none;
  width: min(78vw, 52rem);
  aspect-ratio: 1;
  border: 1px solid rgba(221, 188, 106, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(221, 188, 106, 0.018),
    0 0 0 8rem rgba(221, 188, 106, 0.012);
}

.orb {
  position: absolute;
  pointer-events: none;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  background: var(--gold);
}

.orb-one { left: -7rem; top: 20%; }
.orb-two { right: -8rem; bottom: 5%; }

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 58rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(66vw, 31rem);
  height: auto;
  margin: 0 auto 0.75rem;
}

.hero-copy {
  margin: 0;
  max-width: 42rem;
  color: #c9c0ad;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  line-height: 1.72;
  letter-spacing: 0.025em;
}

.hero-copy strong {
  color: var(--bone);
  font-weight: normal;
}

.launch-countdown,
.launch-released {
  position: relative;
  width: min(100%, 38rem);
  margin-top: 1.75rem;
  padding: 1.15rem clamp(0.65rem, 2.5vw, 1.5rem) 1rem;
  color: var(--bone);
  isolation: isolate;
}

.launch-countdown::before,
.launch-countdown::after,
.launch-released::before,
.launch-released::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(86%, 31rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(218, 185, 104, 0.5), transparent);
}

.launch-countdown::before,
.launch-released::before {
  top: 0;
  box-shadow: 0 0 1.5rem rgba(201, 162, 82, 0.16);
}

.launch-countdown::after,
.launch-released::after { bottom: 0; }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.countdown-unit {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 0 0.55rem;
}

.countdown-unit + .countdown-unit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13%;
  height: 56%;
  width: 1px;
  background: linear-gradient(transparent, rgba(218, 185, 104, 0.22), transparent);
}

.countdown-value {
  color: #d9b968;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5.4vw, 3.45rem);
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 1.1rem rgba(201, 162, 82, 0.2),
    0 1px 0 rgba(255, 239, 190, 0.18);
}

.countdown-label {
  margin-top: 0.55rem;
  color: #aaa08c;
  font: 0.61rem/1.2 Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.launch-date,
.launch-released-date {
  margin: 0.9rem 0 0;
  color: #bdb19b;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.045em;
}

.launch-released {
  padding-block: 1.3rem 1.15rem;
}

.launch-released-title {
  margin: 0;
  color: var(--gold-bright);
  font: clamp(1.6rem, 4vw, 2.45rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 1.4rem rgba(201, 162, 82, 0.2);
}

.launch-released-copy {
  margin: 0.65rem 0 0;
  color: var(--bone);
  font-size: clamp(0.98rem, 2vw, 1.14rem);
  line-height: 1.5;
}

.launch-countdown[hidden],
.launch-released[hidden] { display: none; }

.hero-prologue-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.55rem;
  padding: 0.78rem 1.65rem;
  border: 1px solid rgba(218, 185, 104, 0.58);
  color: var(--gold-bright);
  background: rgba(8, 8, 7, 0.34);
  box-shadow:
    inset 0 0 1.15rem rgba(201, 162, 82, 0.035),
    0 0 1.6rem rgba(201, 162, 82, 0.055);
  font: 0.7rem/1.2 Arial, sans-serif;
  letter-spacing: 0.19em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.hero-prologue-link:hover,
.hero-prologue-link:focus-visible {
  border-color: rgba(236, 205, 126, 0.82);
  color: #ead49b;
  background: rgba(201, 162, 82, 0.09);
  box-shadow:
    inset 0 0 1.25rem rgba(201, 162, 82, 0.065),
    0 0 1.7rem rgba(201, 162, 82, 0.1);
}

.enter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.25rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-bright);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font: 0.74rem/1.2 Arial, sans-serif;
}

.enter-link:hover,
.enter-link:focus-visible { background: rgba(201, 162, 82, 0.08); }

.novel-guide-link {
  margin-top: 0.85rem;
  border-bottom-color: rgba(201, 162, 82, 0.42);
  color: #b8aa8e;
  font-size: 0.68rem;
}

.scroll-note {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 3.25rem;
  margin: 0;
  color: #746d5f;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  font: 0.62rem/1 Arial, sans-serif;
}

.saga {
  min-height: 100svh;
  padding: clamp(6rem, 11vw, 9rem) clamp(1.25rem, 6vw, 6rem);
  background:
    linear-gradient(rgba(7, 9, 13, 0.88), rgba(7, 9, 13, 0.97)),
    radial-gradient(circle at 20% 30%, #3c3020, transparent 35%),
    #07090d;
}

.section-heading {
  width: min(100%, 54rem);
  margin: 0 auto 4rem;
  text-align: center;
}

.eyebrow,
.volume-state {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font: 0.7rem/1.4 Arial, sans-serif;
}

.section-heading h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  font-weight: normal;
  line-height: 1;
}

.saga-intro {
  margin-top: 1.7rem;
}

.saga-intro p {
  margin: 0 auto 1rem;
  max-width: 50rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.saga-intro p:first-child {
  max-width: 44rem;
  color: #d3c9b6;
  font-size: 1.18rem;
}

.saga-intro em {
  color: var(--bone);
  font-style: normal;
}

.volumes {
  width: min(100%, 72rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.1fr repeat(4, 1fr);
  gap: 0.8rem;
}

.volume {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1016;
}

.volume-awake {
  background:
    linear-gradient(to top, rgba(5,6,9,0.96), rgba(5,6,9,0.18)),
    radial-gradient(circle at 72% 20%, rgba(200,160,77,0.31), transparent 35%),
    #15120e;
}

.volume-awake::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.095;
  background:
    radial-gradient(circle at 63% 29%, rgba(157, 19, 26, 0.95), transparent 20%),
    url("/assets/el-peso-del-mundo-portada-oficial.jpg") center 38% / cover no-repeat;
  pointer-events: none;
}

.volume-awake::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(240, 210, 135, 0.18);
  pointer-events: none;
}

.volume-awake-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: inherit;
  text-decoration: none;
}

.volume-awake-link::after {
  content: "↗";
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(238, 216, 139, 0.44);
  font: 1rem/1 Arial, sans-serif;
  transition: color 180ms ease, transform 180ms ease;
}

.volume-awake-link:hover::after,
.volume-awake-link:focus-visible::after {
  color: var(--gold-bright);
  transform: translate(0.15rem, -0.15rem);
}

.volume-number {
  color: rgba(238, 216, 139, 0.7);
  font-size: 3.5rem;
}

.volume h3 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: normal;
}

.volume-awake-link div > p:last-child { color: var(--muted); line-height: 1.5; }

.volume-veiled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #5f5e5b;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.025), transparent 35%),
    radial-gradient(ellipse at 50% 80%, rgba(148,139,119,0.11), transparent 55%),
    #090c11;
}

.volume-veiled::before {
  content: "";
  position: absolute;
  inset: -15%;
  opacity: 0.18;
  filter: blur(12px);
  background: repeating-linear-gradient(116deg, transparent 0 17px, rgba(255,255,255,0.05) 18px 20px);
}

.volume-veiled span {
  position: relative;
  font-size: 2.5rem;
}

.volume-veiled p {
  position: relative;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font: 0.62rem/1.2 Arial, sans-serif;
}

.book-detail {
  position: relative;
  width: min(100%, 72rem);
  margin: clamp(5rem, 9vw, 8rem) auto 0;
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(218, 185, 104, 0.12);
  background:
    linear-gradient(120deg, rgba(207, 166, 80, 0.065), transparent 44%),
    rgba(8, 11, 16, 0.62);
}

.book-detail::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 6rem;
  height: 1px;
  background: var(--gold-bright);
}

.book-cover-preview {
  position: relative;
  width: min(100%, 25rem);
  margin: 0 auto;
}

.book-cover-preview::before {
  content: "";
  position: absolute;
  inset: 13% 8% -4%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(128, 15, 22, 0.28), transparent 65%);
  filter: blur(1.5rem);
}

.book-cover-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(218, 185, 104, 0.16);
  box-shadow: 0 2rem 4.5rem rgba(0, 0, 0, 0.58);
}

.book-copy h3 {
  margin: 0.35rem 0 1.3rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: normal;
  line-height: 1;
}

.book-home-hook {
  max-width: 39rem;
  margin: 0;
  color: #c9bfad;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.7;
}

.book-discover-link { display: inline-block; }

.world {
  min-height: 100svh;
  padding: clamp(6rem, 10vw, 8.5rem) clamp(1rem, 4vw, 4rem) clamp(5rem, 8vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(171, 130, 62, 0.1), transparent 48rem),
    linear-gradient(180deg, #080a0e, #05070a 70%);
}

.world-heading {
  width: min(100%, 90rem);
  margin: 0 auto 2rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.world-heading h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(3.1rem, 8vw, 6.5rem);
  font-weight: normal;
  line-height: 0.92;
}

.world-heading > p {
  width: min(100%, 34rem);
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.territory-switch {
  width: min(100%, 90rem);
  margin: 0 auto 1rem;
  display: flex;
  gap: 0.75rem;
  font: 0.7rem/1.2 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.territory-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  color: #8f887a;
  background: transparent;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.territory-active {
  color: var(--gold-bright);
  border-color: rgba(201, 162, 82, 0.55);
  background: rgba(201, 162, 82, 0.1);
}

.territory-tab:hover,
.territory-tab:focus-visible {
  color: var(--gold-bright);
  border-color: rgba(201, 162, 82, 0.72);
  outline: none;
}

.map-shell {
  position: relative;
  width: min(100%, 90rem);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(224, 188, 105, 0.42);
  background: #a18a60;
  box-shadow:
    0 2rem 6rem rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 236, 181, 0.12);
}

.map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 3rem rgba(41, 29, 17, 0.38);
}

.world-map {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 765;
  border: 0;
  background: #a18a60;
}

.map-hint {
  width: min(100%, 90rem);
  margin: 0.9rem auto 0;
  color: #777061;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 0.63rem/1.4 Arial, sans-serif;
}

.characters {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem) clamp(6rem, 10vw, 9rem);
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.2), #080a0e 18%, #07090d 100%),
    radial-gradient(circle at 78% 20%, rgba(165, 126, 58, 0.1), transparent 31rem),
    #07090d;
}

.characters::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(218, 185, 104, 0.15) 50%, transparent 50.06%),
    repeating-linear-gradient(115deg, transparent 0 13px, rgba(255, 255, 255, 0.015) 14px 15px);
}

.characters-heading {
  position: relative;
  width: min(100%, 78rem);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.characters-heading h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(3.1rem, 8vw, 6.5rem);
  font-weight: normal;
  line-height: 0.92;
}

.characters-heading > p {
  width: min(100%, 31rem);
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.character-stage {
  position: relative;
  width: min(100%, 82rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(19rem, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  transition: opacity 320ms ease, transform 320ms ease;
}

.character-stage.character-changing {
  opacity: 0.32;
  transform: translateY(0.35rem);
  transition-duration: 160ms;
}

.character-hero-portrait {
  position: relative;
  display: grid;
  width: min(100%, 31rem);
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(224, 188, 105, 0.38);
  background:
    linear-gradient(180deg, rgba(224, 188, 105, 0.11), transparent 34%),
    radial-gradient(ellipse at 50% 38%, rgba(201, 162, 82, 0.16), transparent 35%),
    repeating-linear-gradient(112deg, transparent 0 13px, rgba(255, 255, 255, 0.018) 14px 15px),
    #0c0f14;
  box-shadow: 0 2.3rem 6rem rgba(0, 0, 0, 0.48);
}

.character-hero-portrait::before,
.character-hero-portrait::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.character-hero-portrait::before {
  inset: 1rem;
  z-index: 2;
  border: 1px solid rgba(238, 216, 139, 0.08);
}

.character-hero-portrait::after {
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(to top, rgba(4, 6, 9, 0.9), transparent);
}

.character-hero-portrait.preserve-details::after {
  height: 22%;
  background: linear-gradient(to top, rgba(4, 6, 9, 0.5), transparent);
}

.character-hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.character-hero-image[hidden],
.character-hero-portrait.has-image .character-monogram,
.character-hero-portrait.has-image .portrait-status {
  display: none;
}

.character-monogram {
  position: relative;
  z-index: 1;
  color: rgba(238, 216, 139, 0.12);
  font-size: clamp(10rem, 24vw, 17rem);
  line-height: 0.8;
}

.portrait-status {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 3rem);
  color: #8e8678;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font: 0.68rem/1.4 Arial, sans-serif;
}

.character-copy { position: relative; }

.character-count {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  color: #655f55;
  letter-spacing: 0.15em;
  font: 0.7rem/1.4 Arial, sans-serif;
}

.character-copy h3 {
  margin: clamp(1.8rem, 4vw, 3rem) 0 1rem;
  color: var(--bone);
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: normal;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.character-hero-phrase {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(1.18rem, 2.1vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
}

.character-rule {
  width: 5rem;
  height: 1px;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  background: var(--gold);
}

.character-description {
  max-width: 39rem;
  margin: 0;
  color: #b9b09f;
  font-size: 1.08rem;
  line-height: 1.78;
}

.character-nav {
  position: relative;
  width: min(100%, 82rem);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(218, 185, 104, 0.21);
  border-bottom: 1px solid rgba(218, 185, 104, 0.12);
}

.character-nav-item {
  appearance: none;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  border: 0;
  border-right: 1px solid rgba(218, 185, 104, 0.1);
  color: #81796b;
  background: transparent;
  text-align: left;
  font: 0.95rem/1.25 Georgia, "Times New Roman", serif;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.character-nav-item:last-child { border-right: 0; }

.character-thumb {
  flex: 0 0 auto;
  display: grid;
  width: 2.15rem;
  aspect-ratio: 3 / 4;
  place-items: center;
  border: 1px solid rgba(218, 185, 104, 0.18);
  color: rgba(238, 216, 139, 0.32);
  background: #0c0f14;
  font-size: 1rem;
  overflow: hidden;
}

.character-thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.character-nav-item:hover,
.character-nav-item:focus-visible,
.character-nav-item.character-active {
  color: var(--bone);
  background: rgba(201, 162, 82, 0.075);
}

.character-nav-item.character-active .character-thumb {
  border-color: rgba(224, 188, 105, 0.68);
  color: var(--gold-bright);
}

.character-nav-item:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: -3px;
}

.ibentria-politics {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem) clamp(7rem, 12vw, 11rem);
  background:
    radial-gradient(circle at 12% 20%, rgba(125, 88, 42, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 74%, rgba(23, 79, 63, 0.08), transparent 29rem),
    linear-gradient(180deg, #07090d, #0a0d12 48%, #06080b);
}

.home-world-hub {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 11vw, 10rem) clamp(1.25rem, 6vw, 6rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(123, 89, 45, 0.13), transparent 31rem),
    linear-gradient(180deg, #07090d, #0b0d12 52%, #07090d);
}

.home-world-heading { width: min(100%, 50rem); margin: 0 auto clamp(3rem, 6vw, 5rem); }

.home-world-heading h2 {
  margin: 0.55rem 0 1.2rem;
  color: var(--bone);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: normal;
  line-height: 0.9;
  text-transform: uppercase;
}

.home-world-heading > p:last-child {
  margin: 0 auto;
  color: #aaa192;
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  line-height: 1.75;
}

.home-world-grid {
  width: min(100%, 72rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto clamp(3.5rem, 6vw, 5rem);
  border: 1px solid rgba(201, 162, 82, 0.18);
  background: rgba(201, 162, 82, 0.18);
}

.home-world-grid a {
  min-height: 10rem;
  display: grid;
  align-content: space-between;
  gap: 1.8rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: linear-gradient(145deg, rgba(201, 162, 82, 0.045), transparent 52%), #090b0f;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.home-world-grid a:hover,
.home-world-grid a:focus-visible { background-color: #121218; }

.home-world-grid span { color: #766c5b; letter-spacing: 0.18em; font: 0.65rem/1 Arial, sans-serif; }
.home-world-grid strong { color: var(--bone); font-size: clamp(1.75rem, 3.4vw, 2.65rem); font-weight: normal; line-height: 1; }

@media (max-width: 700px) {
  .home-world-grid { grid-template-columns: 1fr 1fr; }
  .home-world-grid a { min-height: 8rem; }
}

@media (max-width: 420px) {
  .home-world-grid { grid-template-columns: 1fr; }
  .home-world-grid a { min-height: 7.2rem; }
}

.ibentria-politics::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(218, 185, 104, 0.14) 50%, transparent 50.06%),
    repeating-linear-gradient(115deg, transparent 0 13px, rgba(255, 255, 255, 0.015) 14px 15px);
}

.ibentria-heading {
  width: min(100%, 78rem);
  margin: 0 auto clamp(2.6rem, 5vw, 4.5rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.ibentria-heading h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(3.5rem, 9vw, 7.2rem);
  font-weight: normal;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.ibentria-heading > p {
  width: min(100%, 34rem);
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ibentria-tabs {
  width: min(100%, 78rem);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(218, 185, 104, 0.26);
  border-bottom: 1px solid rgba(218, 185, 104, 0.15);
}

.ibentria-tab {
  appearance: none;
  min-height: 4.5rem;
  padding: 1rem;
  border: 0;
  border-right: 1px solid rgba(218, 185, 104, 0.12);
  color: #81796b;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font: 0.76rem/1.3 Arial, sans-serif;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ibentria-tab:last-child { border-right: 0; }

.ibentria-tab:hover,
.ibentria-tab:focus-visible,
.ibentria-tab.ibentria-tab-active {
  color: var(--gold-bright);
  background: rgba(201, 162, 82, 0.07);
}

.ibentria-tab.ibentria-tab-active { box-shadow: inset 0 -1px var(--gold); }

.ibentria-tab:focus-visible,
.house-tab:focus-visible,
.vassal-layer summary:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: -3px;
}

.political-panel {
  width: min(100%, 78rem);
  margin: 0 auto;
  animation: political-panel-in 320ms ease both;
}

.political-panel[hidden] { display: none; }

@keyframes political-panel-in {
  from { opacity: 0; transform: translateY(0.45rem); }
  to { opacity: 1; transform: translateY(0); }
}

.political-kicker {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font: 0.75rem/1.4 Arial, sans-serif;
}

.tugal-ledger {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(2.5rem, 6vw, 5rem);
  border: 1px solid rgba(218, 185, 104, 0.2);
  background:
    linear-gradient(120deg, rgba(201, 162, 82, 0.08), transparent 38%),
    rgba(10, 13, 18, 0.72);
  box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.32);
}

.tugal-title h3,
.empire-intro h3,
.aljora-copy h3 {
  margin: 0.65rem 0 1rem;
  color: var(--bone);
  font-size: clamp(3.5rem, 7vw, 6.2rem);
  font-weight: normal;
  line-height: 0.9;
}

.political-motto {
  max-width: 21rem;
  margin: 1.6rem 0 0;
  color: var(--gold-bright);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
}

.tugal-copy > p {
  margin: 0;
  color: #c1b8a6;
  font-size: 1.08rem;
  line-height: 1.78;
}

.tugal-places {
  margin: 2rem 0;
  display: grid;
  border-top: 1px solid rgba(218, 185, 104, 0.18);
}

.tugal-places span {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(218, 185, 104, 0.11);
  color: var(--bone);
  letter-spacing: 0.035em;
}

.tugal-copy .tugal-note {
  color: #8f8779;
  font-size: 0.98rem;
}

.empire-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  align-items: end;
  column-gap: clamp(3rem, 8vw, 8rem);
}

.empire-intro .political-kicker { grid-column: 1 / -1; }

.empire-intro h3 { margin-bottom: 0; }

.empire-intro > p:last-child {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.house-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(218, 185, 104, 0.22);
  border-bottom: 1px solid rgba(218, 185, 104, 0.14);
}

.house-tab {
  appearance: none;
  min-width: 0;
  min-height: 6.1rem;
  padding: 1rem;
  border: 0;
  border-right: 1px solid rgba(218, 185, 104, 0.1);
  color: #847c6e;
  background: transparent;
  text-align: left;
  font: 1rem/1.2 Georgia, "Times New Roman", serif;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.house-tab:last-child { border-right: 0; }

.house-tab span,
.house-tab small {
  display: block;
  color: #625c51;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 0.75rem/1.3 Arial, sans-serif;
}

.house-tab span { margin-bottom: 0.75rem; }
.house-tab small { margin-top: 0.35rem; }

.house-tab:hover,
.house-tab:focus-visible,
.house-tab.house-tab-active {
  color: var(--bone);
  background: rgba(201, 162, 82, 0.065);
}

.house-tab.house-tab-active span,
.house-tab.house-tab-active small { color: var(--gold); }

.house-stage {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) 0;
  transition: opacity 260ms ease, transform 260ms ease;
}

.house-stage.house-changing {
  opacity: 0.24;
  transform: translateY(0.35rem);
  transition-duration: 140ms;
}

.house-emblem-frame,
.aljora-emblem-frame {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
}

.house-emblem-frame::before {
  content: "";
  position: absolute;
  inset: 8% 5% 15%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(198, 151, 65, 0.1);
  filter: blur(3rem);
}

.house-emblem-frame img {
  display: block;
  width: min(100%, 24rem);
  max-height: 31rem;
  object-fit: contain;
  filter: drop-shadow(0 1.8rem 2rem rgba(0, 0, 0, 0.58));
}

.house-emblem-frame figcaption,
.aljora-emblem-frame figcaption {
  margin-top: 1.25rem;
  color: #777064;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 0.75rem/1.5 Arial, sans-serif;
}

.house-copy h4 {
  margin: 0.8rem 0 1.25rem;
  color: var(--bone);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: normal;
  line-height: 0.92;
}

.house-copy blockquote,
.aljora-copy blockquote {
  margin: 0 0 2rem;
  color: var(--gold-bright);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
}

.house-facts {
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(218, 185, 104, 0.2);
}

.house-facts div {
  padding: 1rem 1.2rem 1rem 0;
  border-bottom: 1px solid rgba(218, 185, 104, 0.11);
}

.house-facts .house-colors { grid-column: 1 / -1; }

.house-facts dt {
  margin-bottom: 0.35rem;
  color: #756e61;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 0.75rem/1.3 Arial, sans-serif;
}

.house-facts dd {
  margin: 0;
  color: #d3cab8;
  font-size: 0.98rem;
  line-height: 1.45;
}

.house-identity,
.aljora-copy > p:last-of-type {
  margin: 0;
  color: #b9b09f;
  font-size: 1rem;
  line-height: 1.75;
}

.vassal-layer {
  margin-top: 2.2rem;
  border-top: 1px solid rgba(218, 185, 104, 0.14);
  border-bottom: 1px solid rgba(218, 185, 104, 0.09);
}

.vassal-layer summary {
  padding: 1rem 0;
  color: #8e8678;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font: 0.75rem/1.4 Arial, sans-serif;
  cursor: pointer;
}

.vassal-layer p {
  margin: 0;
  padding: 0 0 1.2rem;
  color: #696358;
  font-size: 0.9rem;
  font-style: italic;
}

.aljora-panel {
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(62, 150, 111, 0.28);
  background:
    radial-gradient(circle at 76% 50%, rgba(21, 117, 79, 0.18), transparent 27rem),
    linear-gradient(135deg, rgba(14, 39, 31, 0.56), rgba(4, 8, 8, 0.82));
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.38);
}

.aljora-dynasty {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.aljora-copy h3 {
  color: #ece3c7;
  text-transform: none;
}

.aljora-copy .political-kicker,
.aljora-copy blockquote { color: #d8b85c; }

.aljora-facts { border-color: rgba(83, 164, 122, 0.28); }
.aljora-facts div { border-color: rgba(83, 164, 122, 0.16); }

.aljora-emblem-frame {
  isolation: isolate;
  padding: clamp(1rem, 3vw, 2rem);
}

.aljora-radial {
  position: absolute;
  z-index: -1;
  inset: 7%;
  border: 1px solid rgba(213, 177, 79, 0.22);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 22.5deg, rgba(218, 181, 80, 0.09) 0 1deg, transparent 1deg 22.5deg),
    radial-gradient(circle, transparent 48%, rgba(24, 105, 72, 0.12) 49% 50%, transparent 51%);
  box-shadow: 0 0 0 1.25rem rgba(20, 77, 56, 0.035), 0 0 5rem rgba(16, 106, 72, 0.18);
}

.aljora-emblem-frame img {
  display: block;
  width: min(100%, 27rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2rem 2.6rem rgba(0, 0, 0, 0.66));
}

.novel-availability {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem);
  background:
    radial-gradient(circle at 77% 46%, rgba(174, 127, 49, 0.13), transparent 27rem),
    linear-gradient(145deg, #090b0f, #06070a 54%, #0b0a08);
}

.novel-availability::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(218, 185, 104, 0.12) 50%, transparent 50.06%),
    repeating-linear-gradient(115deg, transparent 0 13px, rgba(255, 255, 255, 0.014) 14px 15px);
}

.novel-availability-inner {
  width: min(100%, 78rem);
  margin: 0 auto;
}

.novel-availability-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.58fr) minmax(0, 1.42fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: 1.2rem;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(218, 185, 104, 0.2);
}

.novel-cover {
  position: relative;
  width: min(100%, 18rem);
  margin: 0 auto;
}

.novel-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(218, 185, 104, 0.13);
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.52);
}

.novel-availability-content {
  min-width: 0;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid rgba(218, 185, 104, 0.2);
}

.novel-availability-content h2 {
  margin: 1.2rem 0 0;
  color: var(--bone);
  font-size: clamp(2.75rem, 5.5vw, 5.7rem);
  font-weight: normal;
  line-height: 0.92;
  text-transform: uppercase;
}

.availability-status {
  max-width: 100%;
  margin: 0;
  color: var(--gold-bright);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-size: clamp(2.2rem, 3.4vw, 3.75rem);
  line-height: 0.95;
}

.novel-volume-line {
  margin: 1.35rem 0 0;
  color: #bbb2a1;
  font-size: 1.08rem;
}

.novel-release-date {
  margin: 0.75rem 0 0;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.novel-print-note {
  max-width: 36rem;
  margin: 0.7rem 0 0;
  color: #948b7b;
  font-size: 0.94rem;
  line-height: 1.55;
}

.novel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.8rem;
}

.novel-preorder-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.2rem;
  border: 1px solid rgba(218, 185, 104, 0.5);
  color: var(--gold-bright);
  background: rgba(7, 9, 13, 0.48);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 0.7rem/1.3 Arial, sans-serif;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.novel-preorder-link:hover,
.novel-preorder-link:focus-visible {
  color: var(--bone);
  border-color: rgba(238, 216, 139, 0.76);
  background: rgba(201, 162, 82, 0.09);
}

.novel-discover-link { margin-top: 0; }

.author {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem) clamp(7rem, 11vw, 10rem);
  background:
    radial-gradient(circle at 24% 42%, rgba(164, 121, 54, 0.12), transparent 30rem),
    linear-gradient(180deg, #05070a, #090b0f 42%, #050609);
}

.author::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(218, 185, 104, 0.14) 50%, transparent 50.06%),
    repeating-linear-gradient(115deg, transparent 0 13px, rgba(255, 255, 255, 0.015) 14px 15px);
}

.author-shell {
  width: min(100%, 78rem);
  margin: 0 auto;
}

.author-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(218, 185, 104, 0.18);
}

.author-heading h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(3.5rem, 9vw, 7.2rem);
  font-weight: normal;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.author-editorial {
  display: grid;
  grid-template-columns: minmax(18rem, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(3.5rem, 8vw, 7.5rem);
}

.author-portrait {
  position: relative;
  min-height: 41rem;
  margin: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  isolation: isolate;
  border-bottom: 1px solid rgba(218, 185, 104, 0.38);
}

.author-portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7% 5% 0;
  border: 1px solid rgba(218, 185, 104, 0.16);
  background: linear-gradient(145deg, rgba(201, 162, 82, 0.07), rgba(9, 11, 15, 0.16));
}

.author-portrait-glow {
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  top: 12%;
  border-radius: 50%;
  background: rgba(182, 139, 67, 0.13);
  filter: blur(3.2rem);
}

.author-portrait img {
  display: block;
  width: min(115%, 34rem);
  height: auto;
  max-height: 45rem;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 1.8rem 2.6rem rgba(0, 0, 0, 0.48));
}

.author-copy { padding-top: 0.25rem; }

.author-name {
  margin: 0 0 2rem;
  color: var(--gold-bright);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.author-biography p {
  margin: 0 0 1.25rem;
  color: #bdb4a3;
  font-size: 1.03rem;
  line-height: 1.78;
}

.author-biography strong {
  color: var(--bone);
  font-weight: normal;
}

.author-statement {
  position: relative;
  margin: clamp(2.4rem, 5vw, 3.6rem) 0;
  padding: 0.3rem 0 0.2rem clamp(1.4rem, 3vw, 2.2rem);
  border-left: 1px solid var(--gold);
}

.author-statement p {
  margin: 0;
  color: #e2d8c4;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-style: italic;
  line-height: 1.58;
}

.author-statement cite {
  display: block;
  margin-top: 1rem;
  color: #777062;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font: normal 0.66rem/1.3 Arial, sans-serif;
}

.author-instagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(218, 185, 104, 0.2);
  border-bottom: 1px solid rgba(218, 185, 104, 0.11);
}

.author-instagram-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.instagram-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.25;
}

.instagram-icon .instagram-dot {
  fill: var(--gold);
  stroke: none;
}

.author-instagram-copy p {
  margin: 0 0 0.35rem;
  color: #c8beac;
  font-size: 0.95rem;
  line-height: 1.4;
}

.author-instagram-copy span {
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.instagram-link {
  flex: 0 0 auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 162, 82, 0.46);
  color: var(--gold-bright);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 0.68rem/1.2 Arial, sans-serif;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: var(--bone);
  border-color: rgba(238, 216, 139, 0.72);
  background: rgba(201, 162, 82, 0.08);
}

@media (max-width: 840px) {
  .site-header { padding-top: 1.2rem; }
  .wordmark span:last-child { display: none; }
  .hero-logo { width: min(80vw, 29rem); }
  .volumes { grid-template-columns: repeat(2, 1fr); }
  .volume-awake { grid-column: 1 / -1; min-height: 23rem; }
  .volume-veiled { min-height: 13rem; }
  .book-detail {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .book-cover-preview { width: min(68vw, 24rem); }
  .world-heading {
    align-items: start;
    flex-direction: column;
    gap: 1.2rem;
  }
  .world-heading > p { margin: 0; }
  .characters-heading {
    align-items: start;
    flex-direction: column;
    gap: 1.2rem;
  }
  .characters-heading > p { margin: 0; }
  .character-stage {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .character-hero-portrait { margin-inline: auto; }
  .character-copy { width: min(100%, 42rem); margin-inline: auto; }
  .character-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .character-nav-item:nth-child(3) { border-right: 0; }
  .character-nav-item:nth-child(-n + 3) { border-bottom: 1px solid rgba(218, 185, 104, 0.1); }
  .ibentria-heading {
    align-items: start;
    flex-direction: column;
    gap: 1.2rem;
  }
  .ibentria-heading > p { margin: 0; }
  .tugal-ledger,
  .empire-intro,
  .house-stage,
  .aljora-dynasty {
    grid-template-columns: 1fr;
  }
  .empire-intro { gap: 1.2rem; }
  .house-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .house-tab:nth-child(3) { border-right: 0; }
  .house-tab:nth-child(-n + 3) { border-bottom: 1px solid rgba(218, 185, 104, 0.1); }
  .house-stage { padding-inline: 0; }
  .house-emblem-frame img { width: min(78vw, 22rem); }
  .aljora-copy { order: 2; }
  .aljora-emblem-frame { order: 1; }
  .novel-availability-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .novel-availability-content {
    padding-left: 0;
    border-left: 0;
  }
  .author-editorial { grid-template-columns: 1fr; }
  .author-portrait {
    width: min(100%, 32rem);
    min-height: 38rem;
    margin-inline: auto;
  }
  .author-copy {
    width: min(100%, 42rem);
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .site-header { gap: 0.4rem; padding-inline: 0.75rem; }
  .wordmark-mark { width: 1.65rem; height: 1.65rem; }
  .wordmark-mark img { width: 2.3rem; }
  nav { flex: 1; justify-content: space-between; gap: 0.22rem; }
  nav a { font-size: 0.54rem; letter-spacing: 0.035em; }
  .hero { padding-inline: 1rem; }
  .hero-logo { width: min(88vw, 25rem); }
  .hero-copy br { display: none; }
  .launch-countdown,
  .launch-released {
    margin-top: 1.4rem;
    padding-inline: 0.25rem;
  }
  .countdown-unit { padding-inline: 0.2rem; }
  .countdown-value { font-size: clamp(1.9rem, 10vw, 2.55rem); }
  .countdown-label {
    margin-top: 0.45rem;
    font-size: 0.52rem;
    letter-spacing: 0.11em;
  }
  .launch-date,
  .launch-released-date {
    font-size: 0.75rem;
    padding-inline: 0.75rem;
  }
  .hero-prologue-link {
    max-width: 100%;
    margin-top: 1.35rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }
  .enter-link { margin-top: 1.7rem; }
  .scroll-note { display: none; }
  .saga { padding-inline: 1rem; }
  .volumes { grid-template-columns: 1fr; }
  .volume-awake { grid-column: auto; }
  .world { padding-inline: 0.7rem; }
  .territory-tab { padding-inline: 0.75rem; }
  .map-hint { text-align: left; }
  .characters { padding-inline: 1rem; }
  .character-hero-portrait { width: min(100%, 23rem); }
  .character-copy h3 { font-size: clamp(3.5rem, 18vw, 5.2rem); }
  .character-count { position: static; margin-top: 1rem; }
  .character-copy h3 { margin-top: 1.2rem; }
  .character-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .character-nav-item {
    flex: 0 0 9.5rem;
    border-right: 1px solid rgba(218, 185, 104, 0.1);
    border-bottom: 0 !important;
    scroll-snap-align: start;
  }
  .character-nav-item:last-child { border-right: 0; }
  .ibentria-politics { padding-inline: 1rem; }
  .ibentria-tabs { margin-bottom: 2.5rem; }
  .ibentria-tab {
    min-height: 4rem;
    padding-inline: 0.6rem;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
  }
  .tugal-ledger { padding: 2rem 1.3rem; gap: 2rem; }
  .house-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .house-tab {
    flex: 0 0 9rem;
    border-right: 1px solid rgba(218, 185, 104, 0.1);
    border-bottom: 0 !important;
    scroll-snap-align: start;
  }
  .house-tab:last-child { border-right: 0; }
  .house-stage { gap: 2.5rem; }
  .house-copy h4 { font-size: clamp(2.9rem, 15vw, 4.5rem); }
  .house-facts { grid-template-columns: 1fr; }
  .house-facts .house-colors { grid-column: auto; }
  .aljora-panel { padding: 2rem 1.2rem; }
  .aljora-copy h3 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .novel-availability {
    min-height: auto;
    padding: 6rem 1rem;
  }
  .novel-availability-layout { gap: 2rem; }
  .novel-cover { width: min(62vw, 16rem); }
  .novel-availability-content { text-align: center; }
  .novel-availability-content h2 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .novel-print-note { margin-inline: auto; }
  .novel-actions { align-items: stretch; flex-direction: column; }
  .novel-actions a { width: 100%; }
  .availability-status {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    letter-spacing: 0.025em;
  }
  .author { padding-inline: 1rem; }
  .author-heading { margin-bottom: 2.5rem; }
  .author-portrait {
    width: 100%;
    min-height: 31rem;
  }
  .author-portrait img {
    width: min(116%, 27rem);
    max-height: 35rem;
  }
  .author-name { margin-bottom: 1.5rem; }
  .author-instagram {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
  }
  .instagram-link { text-align: center; }
  .floating-navigation {
    right: 0.8rem;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
  }
  .floating-navigation-button {
    width: 2.75rem;
    height: 2.75rem;
  }
  .quick-menu { width: min(15rem, calc(100vw - 1.6rem)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .character-stage,
  .character-nav-item { transition: none; }
  .house-stage,
  .house-tab,
  .ibentria-tab { transition: none; }
  .political-panel { animation: none; }
  .floating-navigation,
  .floating-navigation-button,
  .quick-menu,
  .quick-menu-link { transition: none; }
  .instagram-link { transition: none; }
}
