/* Dark Wizardry Gaming — studio website */
:root {
    --bg: #0c0b12;
    --bg-2: #110f19;
    --card: #13111c;
    --line: #262233;
    --line-2: #3a3450;
    --text: #ece8f5;
    --soft: #c4bed4;
    --muted: #a9a3bb;
    --faint: #8f89a3;
    --accent: #a88bff;   /* arcane violet */
    --gold: #e3b55b;
    --dw: #c9b6ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--dw); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; font-weight: 700; margin: 0; }
p { margin: 0; }
[id] { scroll-margin-top: 80px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 19px; color: var(--soft); max-width: 560px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 26px; border-radius: 8px;
    font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 500; }
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.primary:hover { background: #bda6ff; color: var(--bg); }
.btn.gold { background: var(--gold); color: var(--bg); }
.btn.gold:hover { background: #f0c979; color: var(--bg); }
.btn.ghost { border-color: var(--line-2); color: var(--text); font-weight: 500; }
.btn.ghost:hover { border-color: var(--accent); color: #fff; }
.btn.link { padding: 0 12px; color: var(--dw); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(12, 11, 18, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand .ring { color: var(--accent); }
.brand .blade { fill: var(--gold); }
.brand span, .brand-text { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: 17px; letter-spacing: .14em; white-space: nowrap; }
.brand b, .brand-text b { color: var(--gold); font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--text); }
.discord { margin-left: auto; }

/* ---------------------------------------------------------------- hero */
.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 85% 30%, #231a3f 0%, var(--bg) 70%); }
.hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero h1 { margin-bottom: 20px; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.08; letter-spacing: .02em; }
.hero .lead { margin-bottom: 36px; }
.hero-cards { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hero-card {
    position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line-2); text-decoration: none; transition: transform .2s, border-color .2s;
}
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 18, 0) 45%, rgba(12, 11, 18, .9) 100%); }
.hero-card span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: 20px; color: #fff; }
.hero-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.art-dw { background: #1a1230 url(../img/dw-splash.jpg) center / cover no-repeat; }
.art-id { background: #0a1222 url(../img/id-splash.jpg) center / cover no-repeat; }

/* ---------------------------------------------------------------- sections */
.section { padding-top: 88px; padding-bottom: 40px; }
.section h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; margin-bottom: 36px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 0; }
.section-head .muted { font-size: 14px; max-width: 420px; }

/* games */
.games { display: flex; flex-direction: column; gap: 32px; }
.game { display: flex; flex-wrap: wrap; border: 1px solid #2a2638; border-radius: 16px; overflow: hidden; background: var(--card); }
.game.reverse { flex-direction: row-reverse; }
.game-art { flex: 1 1 440px; min-height: 320px; }
.game-body { flex: 1 1 460px; min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; gap: 16px; }
.game-body h3 { font-size: 34px; line-height: 1.15; }
.game-body p { color: var(--soft); }
.game-body .meta { font-size: 15px; color: var(--muted); }
.game-body .note { font-size: 13px; color: var(--muted); }
.game-body .actions { margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); }
.tag.live { background: #1f5c3a; border-color: #1f5c3a; color: #c9f5da; }
.tag.beta { background: #5a4313; border-color: #5a4313; color: #ffe4ad; }

/* news */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid #2a2638; border-radius: 12px; background: var(--card); text-decoration: none; color: var(--text); transition: border-color .15s; }
.news-card:hover { border-color: var(--accent); color: var(--text); }
.news-card strong { font-size: 18px; line-height: 1.35; }
.news-card .muted { font-size: 15px; }
.news-meta { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.news-card.id .news-meta { color: var(--gold); }
.news-card.dw .news-meta { color: var(--dw); }

/* about */
.band { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.about { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.about-text { flex: 1 1 420px; min-width: 0; }
.about-text h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; margin-bottom: 20px; }
.about-text p { color: var(--soft); }
.pillars { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pillar { padding: 24px; border: 1px solid #2a2638; border-radius: 12px; background: var(--card); color: var(--accent); }
.pillar h3 { margin: 12px 0 6px; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 18px; color: var(--text); }
.pillar p { font-size: 15px; color: var(--muted); }

/* community */
.cta {
    display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
    padding: 48px; border-radius: 16px; border: 1px solid var(--line-2);
    background: radial-gradient(ellipse 80% 120% at 0% 0%, #2a1d4d 0%, #15121f 70%);
}
.cta > div:first-child { flex: 1 1 420px; min-width: 0; }
.cta h2 { font-size: 34px; line-height: 1.2; margin-bottom: 10px; }
.cta p { color: var(--soft); }
#community { padding-bottom: 88px; }

/* 404 */
.notfound { padding-top: 120px; padding-bottom: 140px; }
.notfound h1 { font-size: clamp(34px, 4.5vw, 56px); margin-bottom: 16px; }
.notfound .lead { margin-bottom: 32px; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); background: #09080e; }
.foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot .brand-text { font-size: 15px; }
.foot p { margin-top: 10px; font-size: 14px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot nav strong { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.copy { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #1d1a28; font-size: 13px; color: var(--faint); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) {
    .top-in { gap: 4px 16px; }
    .nav { order: 3; width: 100%; gap: 4px 20px; }
    .hero-in { padding-top: 56px; padding-bottom: 64px; gap: 36px; }
    .section { padding-top: 64px; }
    .game-art { min-height: 220px; }
    .game-body { padding: 28px 24px; }
    .game-body h3 { font-size: 28px; }
    .cta { padding: 32px 24px; }
    .hero-card span { font-size: 17px; left: 12px; right: 12px; bottom: 12px; }
}
@media (max-width: 480px) {
    .top-in { column-gap: 12px; }
    .brand { gap: 8px; }
    .brand span { font-size: 14px; letter-spacing: .06em; }
    .brand svg { width: 28px; height: 28px; }
    .discord { padding: 0 12px; min-width: 44px; }
    .discord-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-card, .btn, .news-card { transition: none; }
    .hero-card:hover { transform: none; }
}
