* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: clamp(1rem, 0.5rem + 0.8vw, 1.25rem);
  background: #0b0a0a;
  color: #d4cfc4;
}

body {
  font-family: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
}

h1, h2, h3, .logo, .crawl-title, .page h1, .page h2, .year {
  font-family: 'IM Fell English SC', 'Georgia', serif;
  text-align: center;
  line-height: 1.25;
}

a {
  color: #c49a6c;
  text-decoration: none;
}

a:hover {
  color: #e8c39e;
}

/* ── Splash ── */

/* ── Site Layout (behind splash) ── */

body:not(.ready) .site {
  opacity: 0;
}

.site {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

.site-nav {
  flex-shrink: 0;
}

#content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  opacity: 0;
  transition: opacity 250ms linear;
}

#content.reveal {
  opacity: 1;
}

#content.htmx-swapping {
  opacity: 0;
}

footer {
  flex-shrink: 0;
}

/* ── Splash Overlay ── */

.splash {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0a0a;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/valley.webp') center / cover no-repeat;
  opacity: 0;
  transition: opacity 5s ease;
  will-change: transform;
}

body.ready .splash-bg {
  opacity: 1;
}

.splash::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
}

.splash.fade-out {
  animation: splash-fade 10s ease forwards;
  pointer-events: none;
}

@keyframes splash-fade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.splash-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
  width: 50dvh;
  max-width: 800px;
}

.splash-link img {
  display: block;
  width: 80%;
  height: auto;
  opacity: 0.0125;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: opacity 3s ease;
}

body.ready .splash-link img {
  opacity: 1;
}

body:not(.ready) .splash-link {
  cursor: not-allowed;
}

.splash-arc {
  display: block;
  width: 100%;
  margin-top: 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 5s ease;
}

body.ready .splash-arc {
  opacity: 1;
}

body.ready .splash-link img {
  animation: pulse 3s ease-in-out infinite;
  animation-play-state: paused;
}

body.ready .splash-link:hover img {
  animation-play-state: running;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ── Navigation ── */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid #2a2520;
  background: #0f0e0c;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: #fff;
}

.logo img {
  height: 1.15rem;
  width: auto;
}

.logo span {
  margin-top: 0.2rem;
}

.nav-links {
  opacity: 1;
  pointer-events: auto;
}

.nav-links a {
  margin-left: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a:hover {
  border-bottom: 1px solid #c49a6c;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  position: relative;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c49a6c;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.replay-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 0.75rem;
  z-index: 105;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #8a3a2a;
  color: #e8c39e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.replay-btn:hover {
  background: #a84a38;
}

/* ── Crawl ── */

.crawl {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #0b0a0a;
  transition: opacity 1.5s ease;
}

.crawl.fade-out {
  opacity: 0;
}

.crawl-skip {
  position: fixed;
  bottom: 1.25rem;
  left: 0.75rem;
  z-index: 105;
  background: none;
  border: none;
  color: #6b6055;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 1rem;
  line-height: 1.5rem;
  transition: color 0.2s;
}

.crawl-skip:hover {
  color: #8a8070;
}

.crawl::before,
.crawl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.crawl::before {
  top: 0;
  height: 20%;
  background: linear-gradient(180deg, #0b0a0a 0%, transparent 100%);
}

.crawl::after {
  bottom: 0;
  height: calc(20% + 4rem);
  background: linear-gradient(0deg, #0b0a0a 4rem, transparent 100%);
}

.crawl-content {
  box-sizing: border-box;
  max-width: calc(1024px + 4rem);
  width: 100%;
  padding: 0 2rem;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100dvh - 4rem));
  animation: scroll-up 120s linear forwards;
  animation-delay: 0;
  animation-play-state: paused;
}

.crawl-title {
  font-family: 'IM Fell English SC', Georgia, serif;
  font-size: 2rem;
  line-height: 1.25;
  color: #e8c39e;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.08em;
}

.crawl-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #c49a6c;
  margin-bottom: 1.5rem;
}

main p:first-of-type::first-letter {
  font-size: 2rem;
  line-height: 1;
}

.crawl-btn {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
}

.explore-page.page {
  position: relative;
  width: 100dvw;
  max-width: none;
  left: calc(-50dvw + 50%);
  margin: 0;
  padding: 2rem 0;
  height: 100%;
  overflow: hidden;
}

.explore-map {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  z-index: 0;
  background: #d4c9a8;
}

.explore-map.leaflet-container {
  background: #d4c9a8;
}

@media (min-width: 1280px) {
  .explore-map,
  .explore-map.leaflet-container {
    background: #d4c9a8 linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.3) 100%);
  }
}

.explore-page.page h1,
.explore-page h1 {
  position: relative;
  z-index: 1;
  color: #000;
  transition: opacity 0.8s ease;
}

.explore-page.interacted h1 {
  opacity: 0;
}

.compass-rose {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50dvw;
  height: 50dvw;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
}

@media (max-width: 1023px) {
  .compass-rose {
    width: 75dvw;
    height: 75dvw;
  }
}

.compass-rose img {
  width: 100%;
  height: 100%;
}

.leaflet-control-layers {
  background: rgba(15,14,12,0.75) !important;
  color: #d4cfc4;
  border: 1px solid #2a2520 !important;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.leaflet-control-layers-toggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='%23c49a6c'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E") !important;
  width: 2rem;
  height: 2rem;
}

.leaflet-control-layers label {
  color: #d4cfc4;
}

.leaflet-control-layers input[type="checkbox"] {
  accent-color: #c49a6c;
}

.leaflet-control-zoom a {
  background: rgba(15,14,12,0.75) !important;
  color: #c49a6c !important;
  border-color: #2a2520 !important;
  backdrop-filter: blur(4px);
}

.leaflet-control-zoom a:hover {
  background: rgba(15,14,12,0.9) !important;
}

.leaflet-control-zoom a:hover {
  background: #1a1917 !important;
}

.leaflet-control-attribution {
  background: rgba(11,10,10,0.8) !important;
  color: #5a5245 !important;
}

.leaflet-control-attribution a {
  color: #8a8070 !important;
}

@keyframes scroll-up {
  0% { transform: translateX(-50%) translateY(calc(100dvh - 4rem)); }
  100% { transform: translateX(-50%) translateY(-350%); }
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid #c49a6c;
  color: #c49a6c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  border-radius: 3px;
  transition: all 0.3s;
}

.btn:hover {
  background: #c49a6c;
  color: #0b0a0a;
}

/* ── Main Content ── */

#content {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  min-height: 0;
}

.page {
  position: relative;
  width: 100dvw;
  max-width: none;
  left: calc(-50dvw + 50%);
  margin: 0;
  height: 100%;
  overflow-y: auto;
}

.page-bg {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  z-index: 0;
}

.news-page {
  padding: 0;
}

.news-bg {
  background:
    linear-gradient(180deg, #0b0a0a 0%, transparent 30dvh),
    url('/assets/images/news-bg.svg') repeat;
}

.page-content {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 2rem;
}

.page h1,
.episodes-page h1,
.video-page h1,
#content > h1 {
  font-size: 2rem;
  color: #e8c39e;
  letter-spacing: 0.05em;
  margin: 3rem 0 1rem;
}

.page h2 {
  font-size: 1.3rem;
  color: #c49a6c;
}

.page p {
  margin-bottom: 1.25rem;
}

.markdown:empty {
  display: none;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  font-family: 'IM Fell English SC', Georgia, serif;
  color: #e8c39e;
}

.markdown ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.markdown ul li {
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.markdown ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: #5a5245;
}

.page ul {
  list-style: none;
  padding: 0;
}

.page ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #1f1b17;
}

/* ── Episodes / Play ── */

.episodes-page {
  position: relative;
  width: 100dvw;
  max-width: none;
  left: calc(-50dvw + 50%);
  margin: 0;
  min-height: 100%;
  padding: 0;
}

.video-page {
  position: relative;
  width: 100dvw;
  max-width: none;
  left: calc(-50dvw + 50%);
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b0a0a;
}

.episodes-bg {
  background:
    linear-gradient(180deg, #0b0a0a 0%, transparent 30dvh),
    url('/assets/images/episodes-bg.svg') repeat;
}

.episodes-thumb-placeholder {
  position: absolute;
  inset: 0;
  background: #0b0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.episodes-thumb-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episodes-player {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.episodes-player.player-visible {
  opacity: 1;
  pointer-events: auto;
}

.yt-wrap {
  width: 100%;
  height: 100%;
}

#yt-player {
  width: 100%;
  height: 100%;
}

#yt-player > *,
#yt-player iframe {
  width: 100% !important;
  height: 100% !important;
}

#yt-player iframe {
  display: block;
}

.episodes-playlist-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 0.75rem;
  z-index: 200;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #8a3a2a;
  color: #e8c39e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.episodes-playlist-btn:hover {
  background: #a84a38;
}

.episodes-playlist-modal {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
}

.episodes-playlist-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.episodes-playlist-modal.animated {
  transition: opacity 0.3s ease;
}

.episodes-playlist-content {
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 60dvh;
}

.episodes-playlist-content .episodes-coming-soon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.1rem;
}

.episodes-book-select {
  margin-bottom: 1.25rem;
}

.episodes-book-select label {
  display: block;
  font-family: 'IM Fell English SC', Georgia, serif;
  font-size: 0.85rem;
  color: #8a8070;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.episodes-book-select select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: #d4cfc4;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a8070'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}

.episodes-book-select select:focus {
  outline: none;
  border-color: #c49a6c;
}

.episodes-select-btn,
.episodes-coming-soon {
  width: 100%;
  height: 4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(196,154,108,0.15);
  border: 1px solid #c49a6c;
  color: #e8c39e;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  border-radius: 4px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.episodes-select-btn {
  cursor: pointer;
  transition: background 0.2s;
}

.episodes-select-btn:hover {
  background: rgba(196,154,108,0.25);
}

.episodes-coming-soon {
  font-style: italic;
}

.episodes-back-btn {
  width: 100%;
  padding: 0.6rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: #8a8070;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  transition: all 0.2s;
}

.episodes-back-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: #d4cfc4;
}

.episodes-loading {
  color: #8a8070;
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

.episodes-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}

.episodes-item:last-child {
  border-bottom: none;
}

.episodes-item:hover {
  background: rgba(255,255,255,0.05);
}

.episodes-item.active {
  background: rgba(196,154,108,0.1);
  border-left: 2px solid #c49a6c;
}

.episodes-item img {
  width: 100px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}

.episodes-item span {
  font-size: 0.9rem;
  color: #d4cfc4;
  line-height: 1.3;
}

.episodes-item.active span {
  color: #e8c39e;
}





/* ── Latest Upload Section ── */

.episodes-latest-section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.episodes-latest-heading {
  font-family: 'IM Fell English SC', Georgia, serif;
  font-size: 1rem;
  color: #8a8070;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  text-align: left;
}

.episodes-latest-card {
  display: flex;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}

.episodes-latest-card:hover {
  border-color: #c49a6c;
  transform: translateY(-2px);
}

.episodes-latest-img-wrap {
  position: relative;
  width: 40%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.episodes-latest-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.episodes-latest-desc {
  flex: 1;
  min-width: 0;
  padding: 1rem;
  font-size: 0.85rem;
  color: #8a8070;
  line-height: 1.5;
  backdrop-filter: blur(4px);
  background: rgba(11,10,10,0.3);
}

.episodes-books-heading {
  max-width: 1024px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}

@media (max-width: 640px) {
  .episodes-latest-section {
    padding: 0 1rem;
  }
  .episodes-latest-card {
    flex-direction: column;
  }
  .episodes-latest-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ── Episode Card Grid ── */

.episodes-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1024px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width: 961px) {
  .episodes-card:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.75rem);
  }
}

.episodes-card {
  background: rgba(25,25,25,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.episodes-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: #c49a6c;
  transform: translateY(-2px);
}

.episodes-card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.episodes-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.episodes-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.125) 0%, #000 100%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.episodes-card:hover .episodes-card-img-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 100%);
}

.episodes-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  font-family: 'IM Fell English SC', Georgia, serif;
  font-size: 1.1rem;
  color: #e8c39e;
  line-height: 1.3;
  margin: 0;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.episodes-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.episodes-card-desc {
  font-size: 0.9rem;
  color: #8a8070;
  line-height: 1.5;
  margin: 0;
}

/* ── Character Grid ── */

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.character-card {
  background: #12100e;
  border: 1px solid #2a2520;
  padding: 1.5rem;
  border-radius: 4px;
}

.character-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

/* ── Timeline ── */

.timeline {
  border-left: 2px solid #2a2520;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.event {
  margin-bottom: 1.5rem;
}

.year {
  display: inline-block;
  font-size: 0.85rem;
  color: #c49a6c;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

/* ── Footer ── */

footer {
  border-top: 1px solid #2a2520;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #5a5245;
}

.footer-reset {
  margin-top: 0.5rem;
}

.footer-reset a {
  color: #3a3530;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-reset a:hover {
  color: #5a5245;
}

/* ── Audio Toggle ── */

.audio-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 0.75rem;
  z-index: 200;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #8a3a2a;
  color: #e8c39e;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.audio-toggle:hover {
  background: #a84a38;
}

[x-cloak] {
  display: none !important;
}

/* ── Home (post-crawl) ── */

.home {
  position: relative;
  text-align: center;
  padding: 0;
  height: 100%;
  min-height: 80dvh;
}

.photo-bg {
  background:
    linear-gradient(180deg,
      rgba(11,10,10,0.7) 0%,
      rgba(11,10,10,0.7) 60%,
      rgba(11,10,10,0.98) 92%,
      #0b0a0a 100%),
    var(--bg-img) center / cover no-repeat;
  will-change: transform;
}

.home-bg {
  --bg-img: url('/assets/images/hill.webp');
}

.home-content {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

/* ── Site reveal after crawl ── */

.home-title {
  font-family: 'IM Fell English SC', Georgia, serif;
  font-size: 2.8rem;
  letter-spacing: 0.1em;
  color: #e8c39e;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.home-subtitle {
  font-size: 1.2rem;
  color: #8a8070;
  margin-bottom: 2rem;
}

.home-divider {
  width: 4rem;
  border: none;
  height: 1px;
  background: #c49a6c;
  margin: 2rem auto;
  opacity: 0.5;
}

.home-blurb {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: #b0a898;
  font-size: 1.05rem;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.home-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.home-news {
  margin: 2.5rem auto 0;
  max-width: 700px;
  text-align: left;
  color: #b0a898;
  font-size: 1rem;
  line-height: 1.8;
}

.home-news-item {
  display: flex;
  gap: 1.5rem;
}

.home-news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 3.5rem;
  padding-top: 0.1rem;
}

.home-news-day {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c49a6c;
  line-height: 1;
}

.home-news-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8070;
  line-height: 1;
  margin-top: 0.2rem;
}

.home-news-year {
  font-size: 0.8rem;
  color: #5a5245;
  line-height: 1;
}

.home-news-content {
  flex: 1;
  min-width: 0;
}

.home-news-content p {
  margin-bottom: 1rem;
  color: #b0a898;
}

.home-news-content a {
  color: #c49a6c;
  text-decoration: underline;
}

.btn-primary {
  background: #c49a6c;
  color: #0b0a0a;
  border-color: #c49a6c;
}

.btn-primary:hover {
  background: #e8c39e;
  color: #0b0a0a;
}

.btn-tertiary {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-family: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  color: #0b0a0a !important;
  background: #c49a6c;
  border-radius: 3px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-tertiary:hover {
  background: #e8c39e;
  color: #0b0a0a !important;
}

/* Prevents cross-breakpoint transition flash on resize — see main.js */
body.no-transition .nav-links {
  transition: none !important;
}

/* ── Responsive (Mobile < 960px) ── */

@media (max-width: 960px) {
  .crawl-title { font-size: 1.8rem; }
  .home { min-height: 70dvh; }
  .home-title { font-size: 2rem; }
  .home-bg { background-position: center 20%; }
  .home-blurb { font-size: 1rem; }
  .character-grid { grid-template-columns: 1fr; }
  .splash-arc { margin-top: 0; }
  .splash-link { width: 75dvw; max-width: 450px; }
  .home-actions { flex-direction: column; align-items: center; }
  .home-actions .btn { width: 100%; max-width: 300px; text-align: center; }
  .home-news-item { flex-direction: column; gap: 0.75rem; }
  .home-news-date { flex-direction: row; align-items: center; gap: 0.4rem; min-width: 0; }
  .home-news-day { font-size: 1.2rem; }
  .home-news-month { margin-top: 0; }

  .episodes-card-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .episodes-card-img-wrap {
    aspect-ratio: 3 / 2;
  }

  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
  #content { transition: none !important; }
  .site-nav { padding: 0.6rem 1rem; }
  .logo { font-size: 1rem; gap: 0.3rem; }
  .logo img { height: 1rem; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #0b0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(196,154,108,0.15);
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  .nav-links a:hover {
  color: #b85a3a;
  }
}

/* ── Support Page ── */

.support-page.page {
  padding: 0;
}

.support-bg {
  --bg-img: url('/assets/images/spring.webp');
}

.support-tagline {
  text-align: center;
  font-style: italic;
  color: #e8c39e;
  font-size: 1.3rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.support-tagline p {
  margin: 0;
}

.about-support-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.about-page {
  padding: 0;
}

.about-bg {
  background:
    linear-gradient(180deg, #0b0a0a 0%, transparent 30dvh),
    url('/assets/images/about-bg.svg') repeat;
}

.about-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.support-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 960px) {
  .support-callouts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.support-callout {
  background: rgba(11,10,10,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid #2a2520;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.support-callout:hover {
  border-color: #c49a6c;
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.support-callout h3 {
  font-family: 'IM Fell English SC', Georgia, serif;
  font-size: 1.2rem;
  color: #e8c39e;
  margin: 0;
  line-height: 1.3;
}

.support-callout p {
  font-size: 0.9rem;
  color: #d4cfc4;
  margin: 0;
  line-height: 1.6;
}

.support-callout .markdown {
  flex: 1;
}

.support-callout-btn {
  align-self: center;
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

.support-callout-btn:hover {
  background: #c49a6c;
  color: #0b0a0a;
}

/* ── News Page ── */

.news-list {
  margin-top: 2rem;
}

.news-article {
  display: flex;
  gap: 1.5rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid #1f1b17;
}

.news-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-article-summary {
  padding-top: 2rem;
}

.news-article-summary:first-of-type {
  padding-top: 0;
}

.news-article-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 3.5rem;
  padding-top: 0.1rem;
  text-align: center;
}

.news-article-day {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c49a6c;
  line-height: 1;
}

.news-article-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8070;
  line-height: 1;
  margin-top: 0.2rem;
}

.news-article-year {
  font-size: 0.8rem;
  color: #5a5245;
  line-height: 1;
}

.news-article-body {
  flex: 1;
  min-width: 0;
}



.news-article .news-article-title {
  display: block;
  font-family: 'IM Fell English SC', Georgia, serif;
  font-size: 1.15rem;
  color: #e8c39e;
  margin: 0 0 0.5rem;
  text-align: left;
}

.news-article .news-article-title a {
  color: inherit;
  text-decoration: none;
}

.news-article .news-article-title a:hover {
  color: #e8c39e;
}

.news-article-summary .news-article-title {
  margin-top: 0.25rem;
}

/* ── Compact list style (articles 4+) ── */

.news-article-compact {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid #1f1b17;
}

.news-article-compact:last-child {
  border-bottom: none;
}

.news-article-compact .news-article-date {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem 0.3rem;
  width: 5rem;
  min-width: 5rem;
  padding-top: 0;
}

.news-article-compact .news-article-date .news-article-day {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a5245;
  min-width: auto;
}

.news-article-compact .news-article-date .news-article-month {
  font-size: 0.75rem;
  margin-top: 0;
  color: #5a5245;
}

.news-article-compact .news-article-date .news-article-year {
  font-size: 0.65rem;
  color: #5a5245;
}

.news-article-compact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.news-article-compact-link:hover {
  color: inherit;
}

.news-article-compact-link .news-article-title {
  font-size: 0.9rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400;
  margin: 0;
  flex: 1;
}

.article-page .article-title {
  margin-bottom: 0.25rem;
}

.article-page .news-article-date {
  margin: 0 auto 1.5rem;
}

.news-full-content {
  margin-top: 1rem;
}

.news-article-body p {
  margin-bottom: 1rem;
  color: #b0a898;
}

.news-article-body a {
  color: #c49a6c;
  text-decoration: underline;
}

.news-article-body .news-read-more,
.home-news-content .news-read-more {
  float: right;
  margin-top: 0.5rem;
  text-decoration: none;
}
}

.news-load-trigger {
  text-align: center;
  padding: 1rem;
  color: #5a5245;
  font-style: italic;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .news-article-summary {
    flex-direction: column;
    gap: 0.75rem;
  }
  .news-article-summary .news-article-date {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }
  .news-article-summary .news-article-day {
    font-size: 1.2rem;
  }
  .news-article-summary .news-article-month {
    margin-top: 0;
  }
}
