:root {
  --ink: #ecf2e9;
  --muted: #a8b8ad;
  --deep: #03100c;
  --green: #0b241a;
  --green-2: #123b2a;
  --gold: #d9ad54;
  --gold-pale: #f3dda0;
  --line: rgba(218, 181, 95, .22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(38, 101, 70, .23), transparent 30rem),
    radial-gradient(circle at 90% 40%, rgba(194, 145, 53, .08), transparent 36rem),
    var(--deep);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.08) 23px, transparent 24px 48px);
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -10rem; z-index: 100; background: white; color: black; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.09);
  position: relative;
  z-index: 20;
}

.wordmark { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; font: 1.35rem/1 var(--serif); letter-spacing: .04em; }
.thread-mark { position: relative; width: 38px; height: 18px; display: inline-block; }
.thread-mark::before, .thread-mark::after { content: ""; position: absolute; inset: 7px 0 auto; height: 2px; border-radius: 50%; background: var(--gold); transform: rotate(13deg); }
.thread-mark::after { transform: rotate(-13deg); }
nav { display: flex; align-items: center; gap: 1.65rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--gold-pale); }
.nav-shop { border: 1px solid var(--line); padding: .6rem .9rem; }
.menu-button { display: none; color: var(--ink); border: 1px solid var(--line); background: transparent; padding: .55rem .8rem; font: inherit; }

.hero {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: calc(100vh - 88px);
  padding: 5.5rem 0 7rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  position: relative;
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.glow-one { width: 28rem; height: 28rem; right: -10rem; top: 8%; background: radial-gradient(circle, rgba(37,130,86,.21), transparent 68%); }
.glow-two { width: 18rem; height: 18rem; left: -12rem; bottom: 0; background: radial-gradient(circle, rgba(221,169,63,.13), transparent 70%); }
.eyebrow { margin: 0 0 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: .77rem; font-weight: 700; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; max-width: 780px; font-size: clamp(3.2rem, 6vw, 6.5rem); line-height: .98; letter-spacing: -.045em; }
h1 em { color: var(--gold-pale); font-weight: 400; }
.hero-lede { max-width: 620px; margin: 2rem 0 0; color: var(--muted); font: 1.25rem/1.65 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; text-decoration: none; font-weight: 700; letter-spacing: .03em; }
.button-primary { background: linear-gradient(135deg, #e2b85e, #ad7729); color: #07130f; box-shadow: 0 12px 32px rgba(198,145,45,.16); }
.button-primary:hover { filter: brightness(1.1); }
.button-quiet { border-bottom: 1px solid var(--gold); color: var(--gold-pale); }
.release-note { margin-top: 2.25rem; color: var(--muted); font-size: .86rem; letter-spacing: .04em; }
.release-note span { display: inline-block; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; margin-right: .5rem; box-shadow: 0 0 18px var(--gold); }

.book-stage { display: grid; justify-items: center; position: relative; perspective: 1300px; }
.book-aura { position: absolute; width: 95%; aspect-ratio: 1; top: 12%; background: radial-gradient(circle, rgba(215,174,82,.22), rgba(29,91,62,.14) 35%, transparent 69%); filter: blur(20px); }
.book-object { width: min(370px, 78vw); position: relative; transform: rotateY(-9deg) rotateX(1deg); filter: drop-shadow(34px 38px 30px rgba(0,0,0,.5)); transition: transform .5s ease; }
.book-object:hover { transform: rotateY(-3deg) translateY(-8px); }
.book-object img { width: 100%; aspect-ratio: 1323/2000; object-fit: cover; border-radius: 2px 7px 7px 2px; position: relative; z-index: 2; }
.book-spine { position: absolute; top: 1%; bottom: 1%; left: -18px; width: 22px; background: linear-gradient(90deg, #020705, #173629 70%, #07100c); transform: skewY(-2deg); border-radius: 4px 0 0 4px; }
.book-stage > p { margin: 2rem 0 0; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--muted); }
.book-stage > p span { color: var(--gold); padding: 0 .35rem; }

.quote-band { border-block: 1px solid var(--line); min-height: 180px; display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 4rem); padding: 2rem; background: rgba(9,30,22,.38); }
.quote-band span { width: min(170px, 15vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.quote-band span:last-child { transform: scaleX(-1); }
blockquote { margin: 0; text-align: center; color: var(--gold-pale); font-size: clamp(1.5rem, 3vw, 2.55rem); font-style: italic; }

.section-shell { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(6rem, 10vw, 9rem) 0; }
.section-label { margin-bottom: 4rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1rem; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; }
.book-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
.intro { color: var(--muted); font: 1.25rem/1.65 var(--serif); }
.book-details { margin-top: 3rem; border-top: 1px solid var(--line); }
.book-details div { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.book-details dt { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.book-details dd { margin: 0; color: var(--muted); }
.blurb-card { padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid var(--line); background: linear-gradient(140deg, rgba(21,62,45,.58), rgba(4,16,12,.75)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.blurb-card p { color: #cad5ce; font: 1.1rem/1.85 var(--serif); }
.blurb-ending { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; color: var(--gold-pale); font: 1.05rem/1.7 var(--serif); }

.mythara-section { border-top: 1px solid var(--line); }
.mythara-heading { max-width: 760px; }
.mythara-heading > p:last-child { max-width: 650px; color: var(--muted); font: 1.15rem/1.7 var(--serif); }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.region-card { min-height: 360px; padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--line); background: linear-gradient(155deg, rgba(24,71,49,.48), rgba(3,16,12,.78)); position: relative; overflow: hidden; }
.region-card::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 190px; height: 190px; border: 1px solid rgba(217,173,84,.12); border-radius: 50%; box-shadow: 0 0 0 28px rgba(217,173,84,.018), 0 0 0 56px rgba(217,173,84,.012); }
.region-card > span { color: var(--gold); font-size: .7rem; letter-spacing: .15em; }
.region-card .region-direction { margin: 3.5rem 0 .35rem; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: .67rem; }
.region-card h3 { margin: 0 0 1.3rem; color: var(--gold-pale); font-size: clamp(1.8rem, 3vw, 2.75rem); }
.region-card > p:last-child { color: var(--muted); font: 1rem/1.75 var(--serif); position: relative; z-index: 1; }
.character-heading { max-width: 760px; margin-top: clamp(6rem, 10vw, 9rem); }
.character-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
.character-card { min-height: 310px; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(5,21,15,.88), rgba(17,54,38,.42)); position: relative; }
.character-card::before { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.character-trait { margin: 0 0 2.5rem; color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700; }
.character-card h3 { margin: 0 0 1rem; color: var(--gold-pale); font-size: clamp(2rem, 4vw, 3.35rem); }
.character-card > p:last-child { margin: 0; max-width: 500px; color: var(--muted); font: 1.05rem/1.78 var(--serif); }
.world-section { border-top: 1px solid var(--line); }
.world-heading { max-width: 780px; }
.world-heading > p:last-child { max-width: 680px; color: var(--muted); font: 1.15rem/1.7 var(--serif); }
.volume-thread { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 5rem; position: relative; }
.volume-thread::before { content: ""; position: absolute; left: 4%; right: 4%; top: 23px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(216,174,84,.18)); }
.volume { padding: 0 1.1rem; position: relative; }
.volume span { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--deep); border-radius: 50%; display: grid; place-items: center; color: var(--muted); font: .72rem var(--sans); position: relative; z-index: 1; }
.volume.active span { background: var(--gold); color: var(--deep); box-shadow: 0 0 25px rgba(217,173,84,.3); }
.volume.current span { color: var(--gold-pale); border-color: rgba(217,173,84,.68); box-shadow: 0 0 20px rgba(217,173,84,.2); }
.volume h3 { margin: 1.5rem 0 .5rem; color: var(--gold-pale); font-size: 1.2rem; }
.volume p { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.volume .volume-part { min-height: 2.6em; margin-bottom: .8rem; }
.volume-status { width: fit-content; margin: 0; padding: .3rem .55rem; border: 1px solid rgba(217,173,84,.16); text-transform: uppercase; letter-spacing: .13em; font-size: .66rem !important; font-weight: 700; }
.volume .woven { color: var(--gold-pale); background: rgba(217,173,84,.08); }
.volume .weaving { color: var(--gold-pale); border-color: rgba(217,173,84,.5); background: rgba(217,173,84,.12); box-shadow: 0 0 18px rgba(217,173,84,.16); animation: thread-glow 2.8s ease-in-out infinite; }
.volume .awaiting { color: #7e9084; }
@keyframes thread-glow { 50% { border-color: rgba(243,221,160,.85); box-shadow: 0 0 27px rgba(217,173,84,.3); } }

.author-section { display: grid; grid-template-columns: .45fr 1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.author-tree { width: min(360px, 76vw); aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.author-tree::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(35,111,75,.38), rgba(6,23,16,.12) 58%, transparent 72%); filter: blur(10px); }
.author-tree img { width: 100%; height: 100%; object-fit: contain; position: relative; filter: drop-shadow(0 0 22px rgba(217,173,84,.18)); }
.author-copy { max-width: 680px; }
.author-copy p:not(.eyebrow) { color: var(--muted); font: 1.14rem/1.78 var(--serif); }

.shop-section { padding: 2rem max(1rem, calc((100vw - 1160px)/2)) 8rem; }
.shop-card { border: 1px solid var(--line); padding: clamp(2rem, 6vw, 5rem); display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: center; background: linear-gradient(135deg, rgba(25,77,53,.48), rgba(5,19,14,.9)); position: relative; overflow: hidden; }
.shop-card::after { content: ""; position: absolute; width: 450px; height: 450px; right: -230px; top: -230px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 40px rgba(217,173,84,.02), 0 0 0 80px rgba(217,173,84,.015); }
.shop-card > div:first-child { position: relative; z-index: 1; }
.shop-card > div:first-child p:last-child { color: var(--muted); max-width: 690px; font: 1.1rem/1.75 var(--serif); }
.shop-status { display: grid; gap: .75rem; position: relative; z-index: 1; }
.shop-status > span { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.shop-status strong { color: var(--gold-pale); font: 2rem var(--serif); }
.shop-status button { min-height: 52px; border: 1px solid var(--line); color: #8e9b92; background: rgba(0,0,0,.25); font: 700 .88rem var(--sans); cursor: not-allowed; }
.shop-status small { color: var(--muted); }

footer { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; border-top: 1px solid var(--line); padding: 3rem 0 4rem; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 2rem; color: var(--muted); }
footer > p { margin: 0; font-size: .85rem; }
.copyright { text-align: right; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { min-height: 72px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 1rem; background: rgba(3,16,12,.98); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  nav a { padding: .7rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 4rem; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .book-stage { margin-top: 2rem; }
  .book-grid, .author-section, .shop-card { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: 1fr; }
  .volume-thread { grid-template-columns: 1fr; gap: 1rem; }
  .volume-thread::before { left: 23px; right: auto; top: 25px; bottom: 30px; width: 1px; height: auto; }
  .volume { display: grid; grid-template-columns: 46px 1fr; column-gap: 1rem; align-items: center; }
  .volume h3 { margin: 0; }
  .volume p { grid-column: 2; }
  .volume .volume-part { min-height: 0; margin: -.4rem 0 .4rem; }
  .volume .volume-status { margin: 0 0 1rem; }
  .author-tree { margin: 0 auto; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .copyright { text-align: center; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .hero { padding-bottom: 5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .button { width: 100%; }
  .quote-band span { display: none; }
  .book-details div { grid-template-columns: 80px 1fr; }
  .blurb-card { padding: 1.5rem; }
  .shop-card { gap: 2rem; }
}

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