@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0e0e0e;
    --surface: #141414;
    --border: #222;
    --text: #d8d6d2;
    --text-dim: #6a6a6a;
    --red: #b53030;
    --red-dim: #7a1f1f;
    --font: 'IBM Plex Sans', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #fff;
}

/* ---- NAV ---- */
.nav {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.logomark {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
}

.logomark span {
    background: var(--red);
    border-radius: 1px;
    width: 3px;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    font-size: 13.5px;
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: #1c1c1c;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 4px;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
}

.btn-red {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.btn-red:hover {
    background: #9e2929;
    border-color: #9e2929;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

.btn-outline:hover {
    color: var(--text);
    border-color: #444;
    background: #1a1a1a;
}

.btn-discord {
    background: #404eed;
    color: #fff;
    border-color: #404eed;
}

.btn-discord:hover {
    background: #3540cc;
    border-color: #3540cc;
    color: #fff;
}

/* ---- LAYOUT ---- */
.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- HERO ---- */
.hero {
    padding: 80px 0 72px;
    border-bottom: 1px solid var(--border);
}

.hero-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(32px, 5.5vw, 58px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #f0ede8;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 420px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- SECTION ---- */
.section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.section-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.section-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    color: #f0ede8;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 500px;
}

/* ---- GAME CARD ---- */
.game-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    max-width: 520px;
    background: var(--surface);
    transition: border-color 0.15s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    border-color: var(--red-dim);
}

.game-thumb {
    height: 200px;
    position: relative;
    background: #080508;
    overflow: hidden;
}

/* CSS-only Something Wicked art */
.sw-scene {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #060008 0%, #120610 60%, #080408 100%);
    overflow: hidden;
}

.sw-moon {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #8b1a1a, #4a0e0e);
    box-shadow: 0 0 28px rgba(139, 26, 26, 0.45);
}

.sw-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(8, 4, 8, 0.92));
}

.game-body {
    padding: 22px 24px 24px;
}

.game-title {
    font-size: 20px;
    font-weight: 500;
    color: #f0ede8;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.game-status {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3aa06a;
    background: rgba(58, 160, 106, 0.1);
    border: 1px solid rgba(58, 160, 106, 0.2);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 14px;
}

.game-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 16px;
}

.game-credits {
    font-size: 12.5px;
    color: #444;
    font-style: italic;
}

.game-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ---- TUTORIAL BOX ---- */
.tutorial {
    margin-top: 16px;
    background: #0e0e0e;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    padding: 16px 18px;
}

.tutorial-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.tutorial-row {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 13.5px;
}

.tutorial-key {
    font-family: var(--mono);
    font-size: 12px;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    padding: 1px 7px;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

.tutorial-label {
    color: var(--text-dim);
}

.tutorial-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.role-block {
    margin-bottom: 10px;
}

.role-name {
    font-weight: 500;
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 2px;
}

.role-desc {
    font-size: 13px;
    color: var(--text-dim);
}

/* ---- TEAM ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--border);
}

.team-cell {
    background: var(--surface);
    padding: 20px 22px;
}

.team-name {
    font-size: 14px;
    font-weight: 500;
    color: #f0ede8;
    margin-bottom: 3px;
}

.team-role {
    font-size: 12.5px;
    color: var(--text-dim);
}

/* ---- BLOG ---- */
.blog-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.blog-page-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.blog-page-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 300;
    color: #f0ede8;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.post {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--border);
}

.post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 14px;
}

.post-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-tag {
    color: var(--red);
}

.post-title {
    font-size: 21px;
    font-weight: 500;
    color: #f0ede8;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.post-body {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.75;
}

.post-body p+p {
    margin-top: 14px;
}

/* ---- FOOTER ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 12.5px;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    font-size: 12.5px;
    color: var(--text-dim);
}

.footer-links a:hover {
    color: var(--text);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
    .nav-inner {
        gap: 16px;
        padding: 0 16px;
    }

    .wrap {
        padding: 0 16px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-wrap {
        padding: 40px 16px 80px;
    }
}