/* Realm of Shadows website: one stylesheet, no frameworks or web fonts (system fonts load instantly). */
:root {
  --bg: #0d0716; --bg2: #160c26; --panel: #1d1131; --line: #3a2560;
  --text: #ece6f7; --muted: #b3a6c9; --accent: #9b5cff; --accent2: #c9a8ff; --silver: #d9d4e4;
  --blu: #3d7bff; --zero: #d0314a; --eli: #39e07a; --mizu: #2fc7c7;
  --radius: 12px; --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg) url(/img/bg-1600.webp) center top / cover fixed; color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent2); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; color: #fff; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .4em 0 .3em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: .5em 0 .2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
main > section { padding-block: 28px; }
.lead { font-size: 1.15rem; color: var(--silver); }
.muted { color: var(--muted); } .small { font-size: .9rem; } .center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.preview-bar { background: #ffcc33; color: #1a1200; text-align: center; font-weight: 700; padding: 6px 12px; font-size: .9rem; }
mark.confirm { background: #ffcc33; color: #1a1200; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Buttons: one primary style, one secondary; 44 px minimum touch target. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--accent); color: #fff; text-decoration: none; font-weight: 700; background: rgba(155, 92, 255, .12); }
.btn:hover { background: rgba(155, 92, 255, .28); color: #fff; }
.btn.primary { background: linear-gradient(135deg, #8a3dff, #5b2bd6); border-color: #b98cff; box-shadow: 0 0 18px rgba(155, 92, 255, .45); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.big { min-height: 52px; padding: 12px 28px; font-size: 1.08rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header and navigation (dropdowns work with hover, keyboard and touch). */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 7, 22, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: Georgia, serif; font-weight: 700; font-size: 1.15rem; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; background: rgba(155, 92, 255, .18); }
.has-menu { display: flex; align-items: center; }
.menu-toggle { background: none; border: 0; color: var(--muted); min-width: 32px; min-height: 44px; cursor: pointer; font-size: 1rem; }
.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 6px !important; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.has-menu:hover > .submenu, .has-menu:focus-within > .submenu, .has-menu.open > .submenu { display: block; }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: #fff; font-weight: 700; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; max-height: calc(100vh - 64px); overflow: auto; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; }
  .has-menu { flex-wrap: wrap; }
  .has-menu > a { flex: 1; }
  .submenu { position: static; width: 100%; box-shadow: none; }
  .has-menu:hover > .submenu { display: none; }
  .has-menu.open > .submenu, .has-menu:focus-within > .submenu { display: block; }
  .play-cta { padding: 8px 14px; }
  .brand span { display: none; }
}

/* Hero and sections */
.hero { padding-block: 40px 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; }
.hero-art img, .banner { border-radius: var(--radius); box-shadow: 0 0 40px rgba(155, 92, 255, .35); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--accent2); font-weight: 700; font-size: .85rem; margin: 0; }
.section-title { text-align: center; }
.band { background: linear-gradient(180deg, rgba(29, 17, 49, .85), rgba(13, 7, 22, .6)); border-block: 1px solid var(--line); margin-block: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split img { border-radius: var(--radius); }
.community { text-align: center; }
@media (max-width: 900px) { .hero-grid, .split { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* Grids and cards */
.grid { display: grid; gap: 18px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
.char-card, .product-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--text); text-decoration: none; display: block; }
.char-card:hover, .product-card:hover { border-color: var(--accent); }
.char-card img, .product-card img { border-radius: 8px; }
.char-blu { border-top: 4px solid var(--blu); } .char-zero { border-top: 4px solid var(--zero); }
.char-eli { border-top: 4px solid var(--eli); } .char-mizu { border-top: 4px solid var(--mizu); }
.product-link { color: inherit; text-decoration: none; position: relative; display: block; }
.product-card p { margin: .2em 0; }
.cards-row img { border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.draft { outline: 3px dashed #ffcc33; outline-offset: 2px; }
.draft::before { content: "DRAFT (preview only)"; display: block; color: #ffcc33; font-weight: 700; font-size: .8rem; }

/* Status badges: clearly different for available / pre-order / coming soon. */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; margin-top: 8px; }
.status-upcoming { background: #2c2350; color: var(--accent2); border: 1px solid var(--accent); }
.status-preorder { background: #3d2a00; color: #ffcc66; border: 1px solid #ffb020; }
.status-available { background: #0f3a22; color: #7dffb0; border: 1px solid #2fbf6a; }
.status-sold-out, .status-discontinued { background: #2a2a2a; color: #ccc; border: 1px solid #666; }

/* Product page */
.crumbs { font-size: .9rem; margin-top: 12px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; padding-block: 16px; }
.product-detail img { border-radius: var(--radius); }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.notice { background: rgba(155, 92, 255, .12); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; }

/* Lists */
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 28px; position: relative; margin: .45em 0; }
.ticks li::before { content: "✦"; position: absolute; left: 4px; color: var(--accent2); }
.steps li { margin: .4em 0; }
.prose ul { padding-left: 1.2em; }

/* Video (loads YouTube only when pressed) */
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.episode { margin: 0; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(155, 92, 255, .9); color: #fff; font-size: 1.6rem; display: grid; place-items: center; }
.yt iframe { width: 100%; height: 100%; border: 0; }
figcaption { margin-top: 8px; }

/* Footer */
.site-footer { margin-top: 48px; padding-block: 28px; border-top: 1px solid var(--line); background: rgba(13, 7, 22, .9); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .3em 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The official logo has dark artwork made for light backgrounds: show it on a light badge so it stays visible. */
.brand img { background: radial-gradient(circle, #f4eefc 62%, #d9cdf0 100%); border-radius: 50%; padding: 3px; box-shadow: 0 0 10px rgba(155, 92, 255, .5); }

/* External links are marked so visitors know they leave the site. */
main a[rel~="noopener"]::after, .site-footer a[rel~="noopener"]::after { content: " ↗"; font-size: .85em; }
