/* Mulula VGM Loops - shared styles. Each page sets a theme class on <body>. */
@font-face { font-family: "Fraktur"; src: url("../fonts/UnifrakturMaguntia-Book.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fell"; src: url("../fonts/IMFellEnglishSC-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  --bg: #0e0b10; --bg2: #17121b; --panel: #1d1722; --line: #2e2533;
  --text: #ece6ef; --muted: #a79bb0; --accent: #f0b04a; --accent2: #8b7cf6;
  --btn-text: #1a1206; --radius: 14px; --maxw: 1180px;
  --display: "Inter", system-ui, sans-serif; --display-weight: 800;
}
body.theme-aether {
  --bg: #120c07; --bg2: #1c130b; --panel: #22180e; --line: #3b2a17;
  --text: #f1e6cc; --muted: #b9a37f; --accent: #d6a84c; --accent2: #b0432f;
  --btn-text: #1e1307; --display: "Fell", Georgia, serif; --display-weight: 400;
}
body.theme-sf {
  --bg: #0a0f1c; --bg2: #0e1528; --panel: #121a30; --line: #22304f;
  --text: #e8eefc; --muted: #93a2c4; --accent: #45d4f0; --accent2: #a77bff;
  --btn-text: #06101f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.theme-aether { background: radial-gradient(1200px 600px at 50% -10%, #3a2512 0%, transparent 60%), var(--bg); }
body.theme-sf { background: radial-gradient(1000px 600px at 80% -10%, #1d2a5a 0%, transparent 60%), radial-gradient(800px 500px at 0% 10%, #24164a 0%, transparent 55%), var(--bg); }
body.theme-hub { background: radial-gradient(900px 500px at 15% -5%, #3a2512aa 0%, transparent 60%), radial-gradient(900px 500px at 90% 0%, #1d2a5aaa 0%, transparent 60%), var(--bg); }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
body.theme-aether h1, body.theme-aether h2, body.theme-aether h3 { letter-spacing: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.fraktur { font-family: "Fraktur", serif; font-weight: 400; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; display: block; flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #d6a84c, #8b7cf6); color: #120c07; font-weight: 800; font-size: 15px; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 9px; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--panel); }
.header-right { display: flex; align-items: center; gap: 10px; order: 3; }
.site-header .wrap > .site-nav { order: 2; margin-left: auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); }
.lang-switch a { padding: 6px 11px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang-switch a.on { background: var(--accent); color: var(--btn-text); }
.lang-switch a:not(.on):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 7px 10px; font-size: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 17px; transition: transform .15s ease, box-shadow .15s ease; border: 1px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-buy { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent2))); color: var(--btn-text); box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
body.theme-sf .btn-buy { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34ch; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.media-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px #000a; background: #000; }
body.theme-aether .media-frame { border: 2px solid #8a6a2e; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 34px 0 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat b { display: block; font-size: 28px; line-height: 1.1; color: var(--accent); font-family: var(--display); font-weight: var(--display-weight); }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .ico { font-size: 26px; margin-bottom: 10px; display: block; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--btn-text); font-weight: 800; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.rev > :first-child { order: 2; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--line); }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chip b { color: var(--accent); font-weight: 600; margin-left: 4px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .3s ease; }
.gallery a.sq img { aspect-ratio: 1/1; }
.gallery a:hover img { transform: scale(1.04); }

/* Videos */
.video-wide { max-width: 980px; margin: 0 auto; }
.shorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shorts figure, .video-wide figure { margin: 0; }
.shorts video { aspect-ratio: 9/16; width: 100%; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #000; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }

/* Product cards on the home page */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.product { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product .pimg { display: block; aspect-ratio: 16/9; overflow: hidden; }
.product .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .pimg img { transform: scale(1.03); }
.product .pbody { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product .pbody p { color: var(--muted); }
.product .btn-row { margin-top: auto; }
.product.aether { background: linear-gradient(180deg, #24190e, #1a120a); border-color: #4a3519; --accent: #d6a84c; --accent2: #b0432f; --btn-text: #1e1307; }
.product.aether h3 { font-family: "Fraktur", serif; font-weight: 400; font-size: 40px; color: #f1d58f; }
.product.sf { background: linear-gradient(180deg, #111a33, #0b1122); border-color: #22304f; --accent: #45d4f0; --accent2: #a77bff; --btn-text: #06101f; }
.product.sf h3 { font-size: 34px; font-weight: 800; }
.product.sf .btn-buy { background: linear-gradient(135deg, #45d4f0, #a77bff); }

/* About */
section[id] { scroll-margin-top: 80px; }
.about .split { align-items: start; }
.about p { color: var(--muted); }
.about-card { background: linear-gradient(160deg, #2a1d10 0%, var(--panel) 45%, #141b33 100%); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 24px 60px #0008; }
.about-head { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.about-head img { border-radius: 16px; width: 64px; height: 64px; }
.about-head b { display: block; font-size: 22px; }
.about-head span { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }
.about-card h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-family: "Inter", sans-serif; font-weight: 600; margin: 4px 0 12px; }
.edu { list-style: none; padding: 0; margin: 0 0 22px; border-left: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.edu li { position: relative; padding: 0 0 14px 20px; }
.edu li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg2); }
.edu b { display: block; }
.edu span { color: var(--muted); font-size: 14px; }

.video-embed { position: relative; aspect-ratio: 16/9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-card { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.yt-card h3 { margin-bottom: 6px; }
.btn-yt { background: #e62117; color: #fff; }
.btn-yt:hover { box-shadow: 0 8px 26px #e6211755; }

/* Portfolio player */
.tracklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.track { display: grid; grid-template-columns: 44px 30px 1fr auto 46px; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; transition: border-color .2s, background .2s; }
.track:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.track.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.track-play, .np-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #120c07; font-size: 15px; }
.track-num { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.track-title { font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-genre { font-size: 12px; padding: 3px 10px; white-space: nowrap; }
.track-time { color: var(--muted); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.i-play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.playing > .i-play, .track.playing .i-play { width: 12px; height: 14px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.track.playing .track-title { color: var(--accent); }
.nowplaying { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.np-inner { display: flex; align-items: center; gap: 12px; height: 72px; }
.np-btn { width: 36px; height: 36px; font-size: 13px; flex: none; }
.np-prev, .np-next { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.np-toggle { width: 46px; height: 46px; }
.np-info { min-width: 0; width: 230px; display: flex; flex-direction: column; line-height: 1.25; }
.np-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-genre { color: var(--muted); font-size: 13px; }
.np-time, .np-dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.np-seek { flex: 1; accent-color: var(--accent); }
body.has-player { padding-bottom: 80px; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.site-nav a { white-space: nowrap; }
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg2); padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
}
@media (max-width: 900px) {
  .tracklist, .video-pair { grid-template-columns: 1fr; }
  .np-info { width: auto; flex: 1; }
  .np-seek, .np-time, .np-dur { display: none; }
}
@media (max-width: 480px) {
  .track { grid-template-columns: 40px 1fr 40px; }
  .track-num, .track-genre { display: none; }
}

.yt-thumb { position: absolute; inset: 0; display: block; background: #000; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt-thumb:hover img { opacity: 1; }
.yt-playbtn { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%); border-radius: 14px; background: #e62117; box-shadow: 0 8px 24px #0009; }
.yt-playbtn::after { content: ""; position: absolute; left: 29px; top: 15px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

.buy-group { display: inline-flex; align-items: center; gap: 14px; }
.buy-group .btn { white-space: nowrap; }
.price { display: inline-flex; align-items: baseline; gap: 5px; line-height: 1; }
.price b { font-size: 28px; font-weight: 800; color: var(--text); font-family: "Inter", sans-serif; }
.price small { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 480px) { .buy-group { width: 100%; justify-content: space-between; } .buy-group .btn { width: auto; flex: 1; padding: 13px 16px; font-size: 16px; } .price b { font-size: 24px; } }

/* Callout */
.cta { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 46px 22px; }
.cta .btn-row { justify-content: center; }
.note { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 50px; background: color-mix(in srgb, var(--bg) 70%, #000); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; }
.disclaimer { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 20px; font-size: 14.5px; color: var(--muted); }
.disclaimer h4 { margin: 0 0 8px; color: var(--text); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.disclaimer p { margin: 0 0 .7em; }
.disclaimer p:last-child { margin: 0; }
.footer-links a { display: block; color: var(--text); text-decoration: none; padding: 4px 0; }
.footer-links a:hover { color: var(--accent); }
.copy { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: #000e; display: none; place-items: center; z-index: 100; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; max-width: 96vw; border-radius: 10px; }
.lightbox-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

@media (max-width: 900px) {
  .hero-grid, .split, .products, .footer-grid { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .shorts { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg2); padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero { padding-top: 36px; }
}
@media (max-width: 480px) {
  .brand small { display: none; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; }
}

/* Header: keep the brand on one line now that the nav has 8 links */
.brand { flex: none; white-space: nowrap; }
.site-nav { gap: 2px; }
.site-nav a { padding: 8px 10px; font-size: 14.5px; }
@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg2); padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
}

/* Free demo button (itch.io) */
.btn-demo { border: 2px solid var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.btn-demo:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.btn-demo svg { color: var(--accent); }
.product.sf .btn-demo { border-color: #45d4f0; background: rgba(69,212,240,.10); }
.product.sf .btn-demo svg { color: #45d4f0; }
.price { white-space: nowrap; }
