/* STARCROSSED — scoped neon-harbor styling.
   Palettes from series-bible.md §3 and characters/style-guide.md.
   House Capulet: crimson #B3122E, gold #D4A84B, black, amber.
   House Montague: navy #14284B, teal #1F8A8A, steel #A9B4C2, sodium #F29C38.
   Lovers together: dusk magenta #E8538F into lavender #9B8BD6. */
.sc {
  --sc-bg: #070b14;
  --sc-bg-2: #0d1526;
  --sc-navy: #14284b;
  --sc-teal: #1f8a8a;
  --sc-crimson: #b3122e;
  --sc-gold: #d4a84b;
  --sc-steel: #a9b4c2;
  --sc-sodium: #f29c38;
  --sc-dusk-a: #e8538f;
  --sc-dusk-b: #9b8bd6;
  --sc-text: #f3efe6;
  --sc-muted: #9aa6b8;
  --sc-line: rgba(169, 180, 194, 0.22);
  --sc-display: "Cinzel", "Palatino Linotype", serif;
  color: var(--sc-text);
}

/* Featured block on the (light) Lord Otaku News homepage */
.sc-feature {
  --sc-bg: #070b14;
  --sc-navy: #14284b;
  --sc-teal: #1f8a8a;
  --sc-crimson: #b3122e;
  --sc-gold: #d4a84b;
  --sc-dusk-a: #e8538f;
  --sc-dusk-b: #9b8bd6;
  --sc-steel: #a9b4c2;
  --sc-display: "Cinzel", "Palatino Linotype", serif;
  margin: 1.75rem 0 0.5rem;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.2), rgba(7, 11, 20, 0.55)),
    linear-gradient(105deg, #2a0a12 0%, #070b14 46%, #0a2a2c 100%);
  color: #f3efe6;
  position: relative;
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(7, 11, 20, 0.28);
}
.sc-feature::before {
  /* Two lines crossing — the series' establishing motif */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 47.6%, rgba(179, 18, 46, 0.85) 48.2%, rgba(179, 18, 46, 0.85) 49.1%, transparent 49.7%),
    linear-gradient(65deg, transparent 47.6%, rgba(31, 138, 138, 0.9) 48.2%, rgba(31, 138, 138, 0.9) 49.1%, transparent 49.7%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.sc-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sc-crimson), var(--sc-dusk-a), var(--sc-dusk-b), var(--sc-teal));
  z-index: 1;
}
.sc-feature__inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.6rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem 2rem;
  align-items: end;
}
.sc-feature__kicker {
  font-family: "Figtree", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sc-gold);
  margin: 0 0 0.65rem;
}
.sc-feature__title {
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}
.sc-feature__tagline {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #f0c9d8;
  margin: 0 0 0.9rem;
  max-width: 34rem;
  line-height: 1.35;
}
.sc-feature__logline {
  margin: 0 0 1.25rem;
  color: var(--sc-steel);
  max-width: 38rem;
  font-size: 1rem;
}
.sc-feature .btn--solid {
  background: var(--sc-crimson);
  color: #fff;
}
.sc-feature .btn--solid:hover { background: #d21a3a; color: #fff; }
.sc-feature .btn--ghost {
  color: #f3efe6;
  border-color: rgba(212, 168, 75, 0.65);
}
.sc-feature .btn--ghost:hover { border-color: var(--sc-gold); color: #fff; }
.sc-feature__meta {
  font-size: 0.88rem;
  color: var(--sc-steel);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 0 0;
}
.sc-feature__houses {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.house-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.house-chip--capulet {
  background: rgba(179, 18, 46, 0.25);
  color: #f0c9a0;
  border: 1px solid rgba(212, 168, 75, 0.5);
}
.house-chip--montague {
  background: rgba(31, 138, 138, 0.18);
  color: #9ee0e0;
  border: 1px solid rgba(31, 138, 138, 0.55);
}
@media (max-width: 800px) {
  .sc-feature__inner { grid-template-columns: 1fr; }
}

/* Dark series pages keep the site header, but invert it */
body.theme-starcrossed {
  background: #070b14;
  color: #f3efe6;
}
body.theme-starcrossed .site-header {
  background: color-mix(in srgb, #070b14 86%, transparent);
  border-bottom-color: rgba(169, 180, 194, 0.18);
}
body.theme-starcrossed .logo,
body.theme-starcrossed .logo:hover,
body.theme-starcrossed .logo__name,
body.theme-starcrossed .nav-toggle,
body.theme-starcrossed .site-nav a,
body.theme-starcrossed .site-nav a:hover,
body.theme-starcrossed .site-nav a[aria-current="page"] {
  color: #f3efe6;
}
body.theme-starcrossed .logo__news { color: #9aa6b8; }
body.theme-starcrossed .logo__mark { color: #f3efe6; }
body.theme-starcrossed .nav-toggle { border-color: rgba(169, 180, 194, 0.3); }
body.theme-starcrossed .site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #d4a84b;
}
@media (max-width: 720px) {
  body.theme-starcrossed .site-nav {
    background: #0d1526;
    border-bottom-color: rgba(169, 180, 194, 0.18);
  }
  body.theme-starcrossed .site-nav a { border-bottom-color: rgba(169, 180, 194, 0.15); }
}
body.theme-starcrossed .site-footer {
  background: #0a101c;
  border-top-color: rgba(169, 180, 194, 0.18);
}
body.theme-starcrossed .site-footer h2,
body.theme-starcrossed .site-footer a { color: #c5cdd8; }
body.theme-starcrossed .site-footer a:hover { color: #d4a84b; }
body.theme-starcrossed .site-footer p { color: #8b95a5; }
body.theme-starcrossed .ad-slot {
  background: #121a2b;
  border-color: rgba(169, 180, 194, 0.28);
  color: #8b95a5;
}
body.theme-starcrossed .section-head a { color: #d4a84b; }

.sc-hero {
  padding: 2.4rem 0 1.5rem;
  border-bottom: 1px solid var(--sc-line);
  background:
    radial-gradient(800px 240px at 10% 0%, rgba(179, 18, 46, 0.22), transparent 60%),
    radial-gradient(800px 240px at 90% 0%, rgba(31, 138, 138, 0.2), transparent 60%);
}
.sc-hero__kicker {
  color: var(--sc-gold);
  font-family: "Figtree", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.sc-hero h1 {
  font-family: var(--sc-display);
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  letter-spacing: 0.1em;
  margin: 0 0 0.6rem;
  line-height: 0.95;
}
.sc-hero .tagline {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: #e9b3c8;
  margin: 0 0 0.9rem;
  max-width: 36rem;
}
.sc-hero .logline {
  max-width: 40rem;
  color: var(--sc-steel);
  margin: 0 0 1.2rem;
}

.sc-volumes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}
.sc-volume-card {
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(20, 40, 75, 0.35);
}
.sc-volume-card strong {
  display: block;
  font-family: var(--sc-display);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.sc-volume-card span {
  color: var(--sc-muted);
  font-size: 0.85rem;
}

/* Episode list */
.sc-ep-list { padding-bottom: 3rem; }
.sc-volume-block { margin: 1.75rem 0; }
.sc-volume-block h2 {
  font-family: var(--sc-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem;
  color: var(--sc-gold);
}
.sc-ep {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 0.6rem 1rem;
  align-items: center;
  padding: 0.85rem 0.2rem;
  border-top: 1px solid var(--sc-line);
  color: inherit;
  text-decoration: none;
}
a.sc-ep:hover { color: #fff; }
.sc-ep__num {
  font-family: var(--sc-display);
  font-variant-numeric: tabular-nums;
  color: var(--sc-teal);
  letter-spacing: 0.06em;
}
.sc-ep__title { font-weight: 650; margin: 0; font-size: 1.02rem; }
.sc-ep__meta { color: var(--sc-muted); font-size: 0.82rem; }
.sc-ep--soon { color: var(--sc-muted); }
.sc-ep--soon .sc-ep__title { font-weight: 500; }
.sc-ep--demo .sc-ep__num { color: var(--sc-gold); }
.demo-badge {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #070b14;
  background: var(--sc-gold);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  vertical-align: middle;
}

/* Characters */
.sc-char-group { margin: 2rem 0 2.5rem; }
.sc-char-group h2 {
  font-family: var(--sc-display);
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--sc-gold);
}
.sc-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.1rem;
}
.sc-char {
  background: var(--sc-bg-2);
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  overflow: hidden;
}
.sc-char img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: #0a1020;
}
.sc-char__body { padding: 0.9rem 1rem 1.1rem; }
.sc-char__body h3 {
  font-family: var(--sc-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.2rem;
}
.sc-char__meta {
  color: var(--sc-muted);
  font-size: 0.82rem;
  margin: 0 0 0.55rem;
}
.sc-char__body p {
  margin: 0;
  color: var(--sc-steel);
  font-size: 0.95rem;
}
.house-tag { font-weight: 700; }
.house-tag--capulet { color: #e8b86a; }
.house-tag--montague { color: #7fd0d0; }
.house-tag--scala { color: #c8b7ef; }
.house-tag--neutral { color: #c5d59a; }

/* Reader — mobile-first vertical scroll. No ads here. */
body.theme-reader { background: #05070c; }
.reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--sc-line);
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: color-mix(in srgb, #05070c 92%, transparent);
  backdrop-filter: blur(10px);
}
.reader-bar__title {
  font-family: var(--sc-display);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-bar a {
  color: var(--sc-steel);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}
.reader-bar a:hover { color: var(--sc-gold); }
.reader-bar a[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.demo-banner {
  background: linear-gradient(90deg, #d4a84b, #f0c9a0);
  color: #140c08;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.demo-banner a { color: #7a2a10; }

.reader {
  background: #05070c;
  padding: 0 0 2rem;
}
.reader__stage {
  width: min(800px, 100%);
  margin: 0 auto;
  background: #000;
}
.reader__stage img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.reader-end {
  width: min(800px, calc(100% - 2rem));
  margin: 1.5rem auto 2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.reader-end .btn { min-width: 8rem; }
body.theme-starcrossed .btn--solid {
  background: var(--sc-crimson, #b3122e);
  color: #fff;
}
body.theme-starcrossed .btn--solid:hover { background: #d21a3a; color: #fff; }
body.theme-starcrossed .btn--ghost {
  color: #f3efe6;
  border-color: rgba(169, 180, 194, 0.35);
}
body.theme-starcrossed .btn--ghost:hover { border-color: var(--sc-gold, #d4a84b); color: #fff; }

.reader-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #b3122e, #e8538f, #1f8a8a);
  width: 0;
  z-index: 80;
  pointer-events: none;
}

@media (max-width: 720px) {
  .reader-bar { top: var(--header-h); }
  .sc-ep { grid-template-columns: 3.4rem 1fr; }
  .sc-ep__meta { grid-column: 2; }
}
