:root {
  color-scheme: dark;
  --ink: #f7f0dd;
  --muted: #d8caa6;
  --gold: #e7c873;
  --gold-deep: #9b7a35;
  --ember: #b84f35;
  --leaf: #3d6b53;
  --night: #050403;
  --panel: rgba(13, 10, 7, 0.74);
  --panel-soft: rgba(16, 13, 10, 0.58);
  --line: rgba(231, 200, 115, 0.34);
  --shadow: rgba(0, 0, 0, 0.72);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #050403;
  color: var(--ink);
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.82), rgba(5, 4, 3, 0.42) 45%, rgba(5, 4, 3, 0.78)),
    linear-gradient(180deg, rgba(5, 4, 3, 0.16), rgba(5, 4, 3, 0.88)),
    image-set(url("../images/bg-1400.jpg") 1x, url("../images/bg-2560.jpg") 2x) center / cover no-repeat;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 200, 115, 0.14), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 100% 4px;
  content: "";
  opacity: 0.65;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 200, 115, 0.22);
  background: rgba(5, 4, 3, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  min-height: 74px;
  margin: 0 auto;
  padding: 12px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: min(270px, 48vw);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: rgba(231, 200, 115, 0.34);
  color: var(--ink);
  background: rgba(231, 200, 115, 0.08);
}

.nav-links .nav-cta {
  margin-left: 8px;
  border-color: rgba(231, 200, 115, 0.62);
  color: #130d05;
  background: linear-gradient(180deg, #fff1b9, var(--gold) 52%, #b58d3d);
  font-weight: 700;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] {
  color: #130d05;
  background: linear-gradient(180deg, #fff6cd, #e9c96f 52%, #c79a42);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: min(820px, calc(100vh - 74px));
  padding: 38px 22px 48px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.97) 0%, rgba(5, 4, 3, 0.9) 34%, rgba(5, 4, 3, 0.58) 58%, rgba(5, 4, 3, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 4, 3, 0.12) 0%, rgba(5, 4, 3, 0.58) 100%);
  content: "";
}

.hero-inner,
.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-characters {
  position: absolute;
  right: clamp(-170px, -8vw, -48px);
  bottom: -42px;
  z-index: 1;
  width: min(58vw, 680px);
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 34px 64px rgba(0, 0, 0, 0.65));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: clamp(18px, 3vw, 30px);
  margin-left: clamp(-30px, -2vw, 0px);
  background: linear-gradient(90deg, rgba(5, 4, 3, 0.62), rgba(5, 4, 3, 0.34) 72%, transparent);
  text-shadow:
    0 3px 2px rgba(0, 0, 0, 0.9),
    0 10px 28px rgba(0, 0, 0, 0.95),
    0 0 44px rgba(0, 0, 0, 0.85);
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 960px;
  font-size: clamp(54px, 10vw, 118px);
}

h2 {
  font-size: clamp(38px, 6vw, 72px);
}

h3 {
  font-size: clamp(26px, 3vw, 34px);
}

.subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.25;
}

.hero-description {
  max-width: 760px;
  margin-top: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid rgba(231, 200, 115, 0.54);
  color: var(--ink);
  background: rgba(231, 200, 115, 0.11);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.button.primary {
  color: #130d05;
  background: linear-gradient(180deg, #fff1b9, var(--gold) 52%, #b58d3d);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  text-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
}

.scroll-cue {
  margin-top: 70px;
  color: rgba(247, 240, 221, 0.72);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section {
  padding: 78px 22px;
  border-top: 1px solid rgba(231, 200, 115, 0.18);
  background: rgba(5, 4, 3, 0.58);
}

.section.alt {
  background: rgba(12, 10, 8, 0.76);
}

.intro-grid,
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.copy p,
.page-copy p {
  margin: 18px 0 0;
  color: var(--muted);
}

.book-showcase {
  position: relative;
  align-self: center;
  padding: 18px;
}

.book-showcase::before {
  position: absolute;
  inset: 11% 5% 5% 18%;
  z-index: -1;
  background: radial-gradient(circle, rgba(231, 200, 115, 0.22), rgba(184, 79, 53, 0.12) 42%, transparent 70%);
  filter: blur(18px);
  content: "";
}

.book-showcase img {
  width: min(100%, 780px);
  margin: 0 auto;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.56));
}

.book-showcase.frame {
  border: 1px solid rgba(231, 200, 115, 0.24);
  background: linear-gradient(135deg, rgba(247, 240, 221, 0.06), rgba(5, 4, 3, 0.18));
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.panel.pad {
  padding: clamp(22px, 4vw, 38px);
}

.meta-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list strong {
  display: block;
  color: var(--gold);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.meta-list span {
  color: var(--ink);
  font-size: 22px;
}

.feature-grid .panel + .kicker {
  margin-top: 34px;
}

.book-feature {
  position: relative;
  overflow: hidden;
}

.book-feature-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  align-items: stretch;
}

.book-feature .book-showcase {
  width: 100%;
  min-height: 100%;
  display: grid;
  align-items: center;
  padding: clamp(12px, 2.6vw, 28px);
  margin: 0;
}

.book-feature .book-showcase.frame {
  border-color: rgba(231, 200, 115, 0.28);
  background:
    radial-gradient(circle at 48% 46%, rgba(231, 200, 115, 0.15), transparent 54%),
    linear-gradient(135deg, rgba(247, 240, 221, 0.05), rgba(5, 4, 3, 0.34));
}

.book-feature .book-showcase img {
  width: min(100%, 680px);
}

.book-details {
  min-height: 100%;
  display: grid;
  align-content: center;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.36);
}

.book-details .kicker {
  margin-bottom: 24px;
}

.book-details .meta-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 3vw, 38px);
  row-gap: 22px;
}

.book-details .meta-list li:first-child,
.book-details .meta-list li:last-child {
  grid-column: 1 / -1;
}

.book-details .meta-list span {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.18;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 260px;
  padding: 25px;
  border: 1px solid rgba(231, 200, 115, 0.25);
  background: var(--panel-soft);
}

.card p,
.card strong {
  margin: 14px 0 0;
  color: var(--muted);
}

.closing-copy {
  max-width: 850px;
  margin-top: 28px;
}

.page-hero {
  padding: 86px 22px 58px;
  border-bottom: 1px solid rgba(231, 200, 115, 0.2);
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.35;
}

.page-hero .story-premise {
  max-width: 900px;
  margin-top: 28px;
}

.page-hero .story-premise p {
  max-width: 840px;
  margin-top: 18px;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.72;
}

.page-hero .story-premise p:first-child {
  max-width: 780px;
  margin-top: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.34;
}

.author-hero {
  padding-bottom: 72px;
}

.author-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}

.author-intro {
  max-width: 760px;
  margin-top: 30px;
}

.author-portrait {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(231, 200, 115, 0.34);
  background: rgba(5, 4, 3, 0.48);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.42);
}

.author-portrait::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(5, 4, 3, 0.42));
  content: "";
}

.author-portrait img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 58% center;
}

.world-hero {
  padding-bottom: 36px;
}

.map-banner {
  margin: 36px 0 0;
  border: 1px solid rgba(231, 200, 115, 0.38);
  background: rgba(5, 4, 3, 0.54);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.map-banner img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-inner {
  max-width: 900px;
}

.lore-article {
  background: rgba(5, 4, 3, 0.72);
}

.lore-article p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.82;
}

.article-section {
  padding-top: 58px;
  margin-top: 58px;
  border-top: 1px solid rgba(231, 200, 115, 0.2);
}

.article-section.first {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.article-section h2 {
  margin-bottom: 30px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
}

.article-section h3 {
  margin-top: 48px;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
}

.article-section h3 + p {
  margin-top: 12px;
}

.characters-hero p + p {
  margin-top: 14px;
}

.character-guide {
  border-top: 1px solid rgba(231, 200, 115, 0.18);
}

.character-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 8vw, 96px) max(22px, calc((100vw - var(--max)) / 2 + 22px));
  background: rgba(5, 4, 3, 0.64);
  border-bottom: 1px solid rgba(231, 200, 115, 0.16);
}

.character-profile.alt {
  background: rgba(12, 10, 8, 0.76);
}

.character-image {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 36vw, 460px);
  border: 1px solid rgba(231, 200, 115, 0.32);
  background:
    linear-gradient(135deg, rgba(231, 200, 115, 0.14), rgba(184, 79, 53, 0.08)),
    rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 28px 70px rgba(0, 0, 0, 0.28);
}

.character-image img {
  width: 100%;
  height: 100%;
  min-height: clamp(300px, 36vw, 460px);
  object-fit: cover;
  object-position: center top;
}

.character-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
  content: "";
}

.character-copy h2 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
}

.character-role {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 700;
  line-height: 1.2;
}

.character-copy p:not(.character-role) {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.callout {
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid rgba(231, 200, 115, 0.42);
  background:
    linear-gradient(135deg, rgba(184, 79, 53, 0.18), rgba(61, 107, 83, 0.16)),
    rgba(8, 6, 5, 0.8);
}

.store-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.store-mark {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid rgba(231, 200, 115, 0.25);
  background: rgba(0, 0, 0, 0.36);
}

.store-mark img {
  width: min(620px, 92%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.48));
}

.site-footer {
  border-top: 1px solid rgba(231, 200, 115, 0.22);
  background: rgba(0, 0, 0, 0.86);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 28px 22px;
  color: rgba(216, 202, 166, 0.82);
  font-size: 16px;
}

.footer-inner a {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 22px 22px;
    border-bottom: 1px solid rgba(231, 200, 115, 0.22);
    background: rgba(5, 4, 3, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .intro-grid,
  .feature-grid,
  .store-grid,
  .split-list,
  .character-profile,
  .author-hero-grid {
    grid-template-columns: 1fr;
  }

  .book-feature-grid {
    gap: 34px;
  }

  .book-feature .book-showcase img {
    width: min(100%, 620px);
  }

  .character-profile {
    padding: 58px 22px;
  }

  .character-image {
    min-height: 360px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .author-portrait {
    min-height: 280px;
  }

  .author-portrait img {
    min-height: 280px;
  }

  .hero {
    min-height: auto;
    padding: 42px 18px 74px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(5, 4, 3, 0.98) 0%, rgba(5, 4, 3, 0.88) 56%, rgba(5, 4, 3, 0.5) 100%),
      linear-gradient(180deg, rgba(5, 4, 3, 0.2) 0%, rgba(5, 4, 3, 0.74) 100%);
  }

  .hero-characters {
    right: -120px;
    bottom: -70px;
    width: min(112vw, 650px);
    opacity: 0.86;
  }

  .hero-copy {
    width: min(100%, 620px);
    padding: 18px 4px 18px 0;
    margin-left: 0;
    background: linear-gradient(90deg, rgba(5, 4, 3, 0.86), rgba(5, 4, 3, 0.54) 66%, rgba(5, 4, 3, 0.08));
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .brand img {
    width: min(230px, 64vw);
  }

  .section {
    padding: 58px 18px;
  }

  .page-hero {
    padding: 64px 18px 44px;
  }

  .hero {
    padding: 34px 18px 64px;
  }

  .hero-characters {
    right: -156px;
    bottom: -68px;
    width: 142vw;
    opacity: 0.86;
  }

  .lore-article p {
    font-size: 18px;
    line-height: 1.78;
  }

  .article-section {
    padding-top: 46px;
    margin-top: 46px;
  }

  .hero-copy {
    background: linear-gradient(90deg, rgba(5, 4, 3, 0.88), rgba(5, 4, 3, 0.62) 70%, rgba(5, 4, 3, 0.16));
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .book-details .meta-list {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .book-details .meta-list li:first-child,
  .book-details .meta-list li:last-child {
    grid-column: auto;
  }

  .character-profile {
    padding: 48px 18px;
  }

  .character-image {
    min-height: 280px;
  }

  .character-copy p:not(.character-role) {
    font-size: 18px;
    line-height: 1.72;
  }
}
