:root {
  --ink: #f9edd1;
  --muted: #bda982;
  --ember: #d29a3a;
  --blood: #6f1d17;
  --night: #070604;
  --charcoal: #120d09;
  --panel: rgba(31, 22, 14, 0.78);
  --line: rgba(246, 205, 123, 0.22);
  --shadow: 0 24px 90px rgba(0,0,0,0.58);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(190, 94, 34, 0.28), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgba(86, 19, 13, 0.42), transparent 30rem),
    linear-gradient(145deg, #050403 0%, #140d08 48%, #030201 100%);
  font-family: "Spectral", "Cormorant Garamond", Georgia, serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 4, 0.78);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: "Cinzel", serif; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ember); box-shadow: inset 0 0 24px rgba(210,154,58,0.15); }
.site-header nav { display: flex; gap: clamp(12px, 3vw, 32px); color: var(--muted); font-family: "Cinzel", serif; font-size: 0.84rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-header nav a:hover { color: var(--ink); }
.hero { min-height: 86vh; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.78fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 84px); overflow: hidden; }
.hero-copy { max-width: 820px; animation: rise 800ms ease both; }
.eyebrow { color: var(--ember); font-family: "Cinzel", serif; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; }
h1, h2, h3 { font-family: "Cinzel", serif; margin: 0; line-height: 0.98; }
h1 { font-size: clamp(4rem, 12vw, 11rem); letter-spacing: -0.075em; max-width: 940px; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5vw, 5.4rem); letter-spacing: -0.055em; }
h3 { font-size: clamp(1.35rem, 2vw, 2.1rem); letter-spacing: -0.035em; }
p { color: var(--muted); line-height: 1.72; font-size: 1.08rem; }
.hero-lede { max-width: 650px; font-size: clamp(1.18rem, 2.2vw, 1.55rem); color: #e8d6b4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; font-family: "Cinzel", serif; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; background: rgba(210,154,58,0.12); color: var(--ink); }
.button-primary { background: linear-gradient(135deg, #d29a3a, #7f2a19); color: #100905; border-color: rgba(255,232,172,0.4); font-weight: 900; }
.hero-orbit { position: relative; min-height: 600px; display: grid; place-items: center; animation: rise 900ms 120ms ease both; }
.orbit-ring { position: absolute; width: min(90vw, 540px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; animation: spin 34s linear infinite; }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 30px var(--ember); }
.orbit-ring::before { top: 8%; left: 18%; }
.orbit-ring::after { right: 5%; bottom: 26%; }
.hero-poster { width: min(78vw, 390px); border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(2deg); }
.section { padding: clamp(54px, 8vw, 120px) clamp(18px, 5vw, 84px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head p { max-width: 560px; margin: 0; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 18px 64px rgba(0,0,0,0.28); transition: transform 180ms ease, border-color 180ms ease; }
.story-card:hover { transform: translateY(-4px); border-color: rgba(246,205,123,0.48); }
.story-card-image { aspect-ratio: 4 / 5; overflow: hidden; background: #0b0704; }
.story-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.story-card:hover img { transform: scale(1.04); }
.story-card-body { padding: 22px; }
.story-card-body p { margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: #e6c98f; font-size: 0.8rem; }
.kingdom-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: rgba(10,7,5,0.65); }
.kingdom-strip div { min-height: 220px; padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: end; background: radial-gradient(circle at 50% 0, rgba(210,154,58,0.18), transparent 60%); }
.kingdom-strip div:last-child { border-right: 0; }
.footer { padding: 44px clamp(18px, 5vw, 84px); border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 18px; }
.archive-hero { padding: 80px clamp(18px, 5vw, 84px) 34px; }
.archive-hero h1 { font-size: clamp(3.4rem, 9vw, 8.2rem); }
.story-page { padding: clamp(34px, 5vw, 74px) clamp(18px, 5vw, 84px); }
.story-layout { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.story-poster { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.story-content { max-width: 840px; }
.story-content h1 { font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -0.07em; }
.story-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 30px; color: var(--muted); }
.story-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.caption-box, .lore-box { border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 34px); background: rgba(23,16,10,0.74); margin: 26px 0; }
.caption-box p { font-size: clamp(1.24rem, 2vw, 1.65rem); color: #ead6ad; margin: 0; }
.lore-box p:first-child { margin-top: 0; }
.lore-box p:last-child { margin-bottom: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.related-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(23,16,10,0.65); }
.related-card h3 { font-size: 1.1rem; line-height: 1.12; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) { .hero, .story-layout { grid-template-columns: 1fr; } .hero-orbit { min-height: 420px; } .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kingdom-strip { grid-template-columns: repeat(2, 1fr); } .story-poster { position: static; max-width: 430px; } }
@media (max-width: 640px) { .site-header { align-items: flex-start; flex-direction: column; } .site-header nav { width: 100%; justify-content: space-between; } .story-grid, .related-grid, .kingdom-strip { grid-template-columns: 1fr; } .footer { flex-direction: column; } h1 { font-size: clamp(3.2rem, 18vw, 5.4rem); } }
