
:root {
  --bg: #070707;
  --bg-soft: #0d0d0d;
  --panel: #11110f;
  --panel-2: #171510;
  --text: #f2eee4;
  --muted: #aaa394;
  --gold: #d4a43b;
  --gold-light: #f1cf78;
  --gold-dark: #7c5717;
  --line: rgba(212, 164, 59, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --serif-display: "Cinzel", Georgia, serif;
  --serif-reading: "Source Serif 4", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(117, 77, 13, 0.11), transparent 30%),
    linear-gradient(180deg, #080808 0%, #060606 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

button, input { font: inherit; }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-family: var(--serif-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transform: rotate(45deg);
}

.brand-mark::first-line { transform: rotate(-45deg); }

.brand > span:last-child {
  display: grid;
}

.brand strong {
  color: var(--gold-light);
  font-family: var(--serif-display);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #d4d0c6;
  font-size: 0.9rem;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--gold-light);
}

.nav-cta {
  border: 1px solid var(--gold-dark);
  padding: 10px 15px;
}

.menu-toggle,
.reading-toggle {
  display: none;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-dark);
  padding: 8px 12px;
  cursor: pointer;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 700px;
  margin: 0 auto;
  padding: 78px 0 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.72fr;
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero h1,
.section h2,
.story-hero h1,
.story-reader h2 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  background: linear-gradient(145deg, #fff3c8, #d2a039 60%, #9b6b1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: #c4beb1;
  font-family: var(--serif-reading);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

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

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 600;
  transition: 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, #e0b756, #a86f17);
  color: #100b03;
  box-shadow: 0 10px 35px rgba(212, 164, 59, 0.16);
}

.button-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.button-secondary {
  border-color: var(--gold-dark);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.015);
}

.button-secondary:hover {
  border-color: var(--gold);
  background: rgba(212, 164, 59, 0.06);
}

.featured-cover {
  position: relative;
  width: min(100%, 390px);
  justify-self: center;
}

.featured-cover img {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(238, 198, 98, 0.25);
  box-shadow: var(--shadow);
  transition: transform 300ms ease;
}

.featured-cover:hover img { transform: translateY(-8px); }

.cover-glow {
  position: absolute;
  inset: 10% -10% -5%;
  background: radial-gradient(circle, rgba(193, 132, 25, 0.22), transparent 65%);
  filter: blur(24px);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 44px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.9rem);
  color: #f3e7c7;
}

.section-heading > p,
.world-panel p,
.author-copy,
.form-note {
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: linear-gradient(180deg, rgba(23, 21, 16, 0.94), rgba(13, 13, 13, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 100%;
  overflow: hidden;
}

.story-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.story-cover {
  width: 240px;
  aspect-ratio: 2 / 3;
  background: #000;
  overflow: hidden;
}

.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.story-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.story-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(212, 164, 59, 0.23);
  color: #d8c391;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-card h3 {
  margin: 22px 0 4px;
  color: #f1dfb1;
  font-family: var(--serif-display);
  font-size: 1.8rem;
}

.story-series {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.story-card-body > p:not(.story-series) {
  color: #aaa497;
}

.story-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--gold-light);
  font-weight: 600;
}

.reading-time {
  color: #77736b;
  font-size: 0.82rem;
}

.placeholder-card {
  position: relative;
}

.placeholder-symbol {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: rgba(212, 164, 59, 0.28);
  font-family: var(--serif-display);
  font-size: 5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 164, 59, 0.04), transparent),
    radial-gradient(circle, rgba(212, 164, 59, 0.05), transparent 65%);
}

.world-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.world-panel {
  padding: 40px;
  border-left: 2px solid var(--gold-dark);
  background: linear-gradient(135deg, rgba(212, 164, 59, 0.06), transparent 70%);
}

.world-notes {
  display: grid;
  gap: 28px;
}

.world-notes > div {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.world-notes span {
  color: var(--gold-dark);
  font-family: var(--serif-display);
}

.world-notes h3 {
  margin: 8px 0;
  color: #e8ddc0;
  font-family: var(--serif-display);
}

.world-notes p { margin: 0; color: var(--muted); }

.author-section,
.subscribe-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.subscribe-section {
  align-items: center;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.subscribe-form input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(212, 164, 59, 0.3);
  background: #0c0c0b;
  color: var(--text);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
}

.site-footer {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #78736a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

/* Story page */
.story-hero {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 75px 0 100px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 70px;
  align-items: center;
}

.story-hero img {
  border: 1px solid rgba(212, 164, 59, 0.22);
  box-shadow: var(--shadow);
}

.story-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  color: #f2dfaa;
}

.story-deck {
  max-width: 680px;
  color: #beb7a9;
  font-family: var(--serif-reading);
  font-size: 1.2rem;
}

.story-meta-large { margin: 28px 0; }

.story-reader {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 120px;
  border-top: 1px solid var(--line);
}

.story-reader-header {
  text-align: center;
  margin-bottom: 70px;
}

.story-reader h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #f0dfb7;
}

.story-reader-header > p:last-child {
  color: var(--muted);
}

.story-prose {
  font-family: var(--serif-reading);
  font-size: clamp(1.13rem, 2vw, 1.28rem);
  line-height: 1.9;
  color: #ddd6c9;
}

.story-prose p { margin: 0 0 1.7em; }

.story-prose .dropcap::first-letter {
  float: left;
  margin: 0.1em 0.14em 0 0;
  color: var(--gold-light);
  font-family: var(--serif-display);
  font-size: 4.6rem;
  line-height: 0.75;
}

.story-prose code {
  font-size: 0.8em;
  color: var(--gold-light);
}

.story-prose blockquote {
  margin: 2.2em 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--gold-dark);
  color: #c4b58d;
  font-style: italic;
}

.scene-break {
  margin: 3rem 0;
  color: var(--gold);
  text-align: center;
  letter-spacing: 1em;
}

.story-end {
  margin-top: 90px;
  text-align: center;
  color: var(--muted);
}

.story-end > span { color: var(--gold); }

.story-end h3 {
  color: #e8d9b4;
  font-family: var(--serif-display);
  font-size: 1.5rem;
}

.reading-page.focus-mode {
  background: #11100d;
}

.reading-page.focus-mode .site-header,
.reading-page.focus-mode .story-hero,
.reading-page.focus-mode .site-footer {
  display: none;
}

.reading-page.focus-mode .story-reader {
  padding-top: 60px;
  border: 0;
}

.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;
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 0;
    width: min(320px, 90vw);
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    background: #0c0c0b;
    border: 1px solid rgba(212, 164, 59, 0.22);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .reading-page .site-nav { display: flex; position: static; width: auto; padding: 0; flex-direction: row; background: none; border: 0; box-shadow: none; }
  .reading-toggle { display: inline-block; }

  .hero,
  .section-heading,
  .world-section,
  .author-section,
  .subscribe-section,
  .story-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
    text-align: center;
  }

  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .featured-cover { width: min(72vw, 360px); }

  .story-grid { grid-template-columns: 1fr; }
  .story-card-featured {
	  grid-column: span 2;
	  display: grid;
	  grid-template-columns: 240px 1fr;
	  align-items: start;
	}
  .world-section,
  .author-section,
  .subscribe-section,
  .section-heading { gap: 35px; }

  .story-hero { width: min(760px, calc(100% - 40px)); text-align: center; }
  .story-hero img { width: min(70vw, 300px); margin: auto; }
  .story-meta-large { justify-content: center; }
}

@media (max-width: 620px) {
  .site-header,
  .section,
  .hero,
  .site-footer,
  .story-hero,
  .story-reader {
    width: min(100% - 28px, 1180px);
  }

  .brand small { display: none; }

  .hero h1 { font-size: 2.75rem; }
  .hero { min-height: auto; gap: 45px; padding-bottom: 70px; }

  .story-card-featured { grid-template-columns: 1fr; }
  .story-cover img { max-height: 470px; object-fit: contain; background: #090909; }

  .story-footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscribe-form { grid-template-columns: 1fr; }
  .subscribe-form .button { width: 100%; }

  .section { padding: 70px 0; }
  .world-panel { padding: 25px; }
}
