/* ==========================================================================
   Bandaloop Games — Public Website Styles
   Warm-paper editorial design system
   ========================================================================== */

/* ==========================================================================
   1. Google Fonts Import
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400&display=swap');

/* ==========================================================================
   2. CSS Custom Properties
   ========================================================================== */

:root {
    --ws-page:    #EFE7D5;
    --ws-surface: #E5DBC4;
    --ws-ink:     #1A1815;
    --ws-brand:   #FF0080;
    --ws-wine:    #5A1525;
    --ws-forest:  #1F3A2C;
    --ws-quiet:   #8C8579;
}

/* ==========================================================================
   3. Base Reset (scoped to .ws-page)
   ========================================================================== */

/*
 * The admin app.css sets html,body { height:100%; overflow:hidden } for its
 * dashboard layout. The website pages live inside .ws-page, so we make that
 * element scroll independently, overriding the body lock.
 */
.ws-page {
    position: fixed;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: var(--ws-page);
    color: var(--ws-ink);
    font-family: 'Inter Tight', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ws-page *,
.ws-page *::before,
.ws-page *::after {
    box-sizing: border-box;
}

.ws-page a {
    color: var(--ws-brand);
    text-decoration: none;
}

.ws-page a:hover {
    text-decoration: underline;
}

/*
 * Reset link colors in nav and footer where inherit is needed. Card text
 * colors are handled directly on .ws-card-wine / .ws-card-forest below
 * (with their own a.x specificity to beat .ws-page a).
 *
 * The .ws-page a rule above sets color: var(--ws-brand) at specificity
 * 0,1,1, so these overrides match it via a.x selectors at 0,1,1.
 */
.ws-card a,
a.ws-nav-link,
a.ws-nav-mobile-link,
.ws-footer-nav a,
.ws-footer-social a {
    color: inherit;
}

.ws-card a:hover,
.ws-landing-card:hover,
.ws-nav-link:hover,
.ws-nav-mobile-link:hover {
    text-decoration: none;
}

.ws-page img {
    max-width: 100%;
    display: block;
}

.ws-page p {
    margin: 0 0 1rem;
}

.ws-page h1,
.ws-page h2,
.ws-page h3,
.ws-page h4,
.ws-page h5,
.ws-page h6 {
    margin: 0;
    font-family: 'Inter Tight', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   4. Container
   ========================================================================== */

.ws-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   5. Typography Scale
   ========================================================================== */

.ws-display {
    font-size: clamp(96px, 13vw, 180px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.ws-page h1,
.ws-h1 {
    font-size: clamp(56px, 7vw, 80px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ws-page h2,
.ws-h2 {
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ws-page h3,
.ws-h3 {
    font-size: clamp(24px, 2.5vw, 28px);
    font-weight: 600;
}

.ws-body {
    font-size: clamp(17px, 1.1vw, 18px);
    font-weight: 400;
    line-height: 1.6;
}

.ws-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ws-quiet);
}

.ws-caption {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ws-quiet);
}

/* ==========================================================================
   6. Text Utilities
   ========================================================================== */

.ws-text-secondary {
    color: var(--ws-quiet);
}

.ws-text-muted {
    color: var(--ws-quiet);
    opacity: 0.7;
}

.ws-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   7. Navigation
   ========================================================================== */

/*
 * .ws-stuck-top groups the preview banner (when present) and the nav so
 * they pin together at the top of .ws-page's scroll container. The nav
 * itself stays in normal flow inside the wrapper, so the banner can stack
 * above it without z-index battles.
 */
.ws-stuck-top {
    position: sticky;
    top: 0;
    z-index: 100;
}

.ws-nav {
    background: transparent;
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

.ws-nav-scrolled {
    background: rgba(239, 231, 213, 0.96);
    border-bottom: 1px solid rgba(26, 24, 21, 0.1);
    backdrop-filter: blur(4px);
}

.ws-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ws-nav-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.ws-nav-stamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ws-quiet);
}

.ws-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ws-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--ws-ink);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.ws-nav-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--ws-brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.ws-nav-link.active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--ws-brand);
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.ws-nav-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ws-ink);
}

.ws-nav-online-dot {
    width: 8px;
    height: 8px;
    background: var(--ws-brand);
    border-radius: 50%;
    flex-shrink: 0;
}

.ws-nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ws-nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ws-nav-online-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.ws-nav-online-sleeping {
    color: var(--ws-quiet);
}

/* Hamburger */
.ws-nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.ws-nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ws-ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ws-nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ws-nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.ws-nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.ws-nav-mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ws-page);
    border-bottom: 1px solid rgba(26, 24, 21, 0.1);
    padding: 1.5rem 2rem;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ws-nav-mobile-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-ink);
    text-decoration: none;
}

.ws-nav-mobile-link:hover {
    color: var(--ws-brand);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.ws-footer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(26, 24, 21, 0.1);
}

.ws-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.ws-footer-domain {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ws-ink);
}


.ws-footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ws-footer-nav {
    font-size: 12px;
    color: var(--ws-quiet);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ws-footer-nav a {
    color: var(--ws-quiet);
    text-decoration: none;
}

.ws-footer-nav a:hover {
    color: var(--ws-ink);
}

.ws-footer-sep {
    color: var(--ws-quiet);
    opacity: 0.5;
}

.ws-footer-legal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ws-quiet);
}

.ws-footer-legal a {
    color: var(--ws-quiet);
    text-decoration: none;
}

.ws-footer-legal a:hover {
    color: var(--ws-ink);
}

.ws-footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ws-footer-social a {
    color: var(--ws-quiet);
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.ws-footer-social a:hover {
    color: var(--ws-ink);
}

/* ==========================================================================
   9. Buttons
   ========================================================================== */

/*
 * a.x selectors match .ws-page a's specificity (0,1,1) so anchor-styled
 * buttons render with the intended foreground at rest, not the brand
 * pink inherited from the global a-color rule.
 */
.ws-btn-primary,
a.ws-btn-primary,
button.ws-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ws-brand);
    color: #fff;
    padding: 0.75rem 2rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    letter-spacing: 0;
}

.ws-btn-primary:hover,
a.ws-btn-primary:hover,
button.ws-btn-primary:hover {
    background: #d6006c;
    color: #fff;
}

.ws-btn-ghost,
a.ws-btn-ghost,
button.ws-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--ws-ink);
    padding: 0.75rem 2rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    border: 1.5px solid var(--ws-ink);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0;
}

.ws-btn-ghost:hover,
a.ws-btn-ghost:hover,
button.ws-btn-ghost:hover {
    background: var(--ws-ink);
    color: var(--ws-page);
}

/* ==========================================================================
   10. Cards
   ========================================================================== */

.ws-card {
    padding: 2rem 2.5rem;
    border-radius: 4px;
}

.ws-card-wine,
a.ws-card-wine {
    background: var(--ws-wine);
    color: #fff;
}

.ws-card-forest,
a.ws-card-forest {
    background: var(--ws-forest);
    color: #fff;
}

/* ==========================================================================
   11. Status Pills
   ========================================================================== */

.ws-status-pill {
    display: inline-block;
    border: 2px solid var(--ws-ink);
    background: transparent;
    color: var(--ws-ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-variant: small-caps;
}

/* ==========================================================================
   12. Landing Page
   ========================================================================== */

.ws-landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ws-landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 3rem;
}

.ws-landing-wordmark {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(64px, 10vw, 160px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: var(--ws-ink);
    margin: 0;
}

.ws-landing-dot {
    color: var(--ws-brand);
}

.ws-landing-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--ws-quiet);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.ws-landing-tagline {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    color: var(--ws-ink);
    max-width: 500px;
    margin: 1rem auto 2.5rem;
    line-height: 1.5;
}

.ws-landing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.ws-landing-card {
    padding: 2.5rem;
    border-radius: 4px;
    position: relative;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
}

.ws-landing-card:hover {
    opacity: 0.9;
}

.ws-landing-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variant: small-caps;
    opacity: 0.7;
}

.ws-landing-card-heading {
    font-size: 36px;
    font-weight: 800;
    margin: 0.5rem 0;
    line-height: 1;
}

.ws-landing-card-cta {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.85;
    display: block;
    margin: 0.5rem 0;
}

.ws-landing-card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    opacity: 0.65;
}

.ws-landing-heartbeat {
    max-width: 900px;
    width: 100%;
    margin: 1.5rem auto 2.5rem;
    padding: 0 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ws-quiet);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ws-landing-heartbeat-dot {
    width: 6px;
    height: 6px;
    background: var(--ws-brand);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================================================
   13. Games Index
   ========================================================================== */

.ws-games-page {
    padding: 120px 0 4rem;
}

.ws-games-header {
    margin-bottom: 3rem;
}

.ws-game-item {
    position: relative;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(26, 24, 21, 0.1);
}

.ws-game-item-featured {
    padding: 3rem 0 4rem;
}

.ws-game-item-featured .ws-game-item-title {
    font-size: clamp(56px, 7vw, 80px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/*
 * Items with a bg video/image become hero-style cards: the media fills
 * the card, an overlay tint sits above it, and the text/logo/buttons
 * sit on top in white. Items without media keep the editorial padding
 * style with quiet ink-on-cream typography.
 */
.ws-game-item-with-media {
    min-height: 420px;
    padding: 3rem;
    border-bottom: none;
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    background: var(--ws-ink);
}

.ws-game-item-featured.ws-game-item-with-media {
    min-height: 560px;
}

.ws-game-item-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ws-game-item-media img,
.ws-game-item-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-game-item-overlay {
    position: absolute;
    inset: 0;
}

.ws-game-item-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 640px;
}

.ws-game-item-logo {
    max-width: 220px;
    height: auto;
    display: block;
    margin-bottom: 0.25rem;
}

.ws-game-item-featured .ws-game-item-logo {
    max-width: 320px;
}

.ws-game-item-title {
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.ws-game-item-pitch {
    color: var(--ws-quiet);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 500px;
}

.ws-game-item-with-media .ws-game-item-pitch {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
}

.ws-game-item-with-media .ws-game-item-meta {
    color: rgba(255, 255, 255, 0.75);
}

.ws-game-item-with-media .ws-status-pill {
    border-color: #fff;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
}

.ws-game-item-with-media a.ws-btn-ghost {
    color: #fff;
    border-color: #fff;
}

.ws-game-item-with-media a.ws-btn-ghost:hover {
    background: #fff;
    color: var(--ws-ink);
}

.ws-game-item-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.ws-game-item-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ws-quiet);
}

/* ==========================================================================
   14. Game Detail
   ========================================================================== */

.ws-game-detail {
    /* Per-game accent color via --game-accent custom property */
}

.ws-game-hero {
    padding: 120px 0 4rem;
    background: var(--ws-page);
}

.ws-game-hero-with-media {
    position: relative;
    padding: 160px 0 5rem;
    color: #fff;
    overflow: hidden;
    background: var(--ws-ink);
}

.ws-game-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ws-game-hero-media img,
.ws-game-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-game-hero-overlay {
    position: absolute;
    inset: 0;
}

.ws-game-hero-content {
    position: relative;
    z-index: 1;
}

.ws-game-hero-with-media .ws-game-hero-tagline,
.ws-game-hero-with-media .ws-game-hero-meta {
    color: rgba(255, 255, 255, 0.85);
}

.ws-game-hero-with-media .ws-status-pill {
    border-color: #fff;
    color: #fff;
}

.ws-game-hero-with-media a.ws-btn-ghost {
    color: #fff;
    border-color: #fff;
}

.ws-game-hero-with-media a.ws-btn-ghost:hover {
    background: #fff;
    color: var(--ws-ink);
}

.ws-game-hero-logo {
    max-width: 280px;
    margin-bottom: 2rem;
    display: block;
}

.ws-game-hero-tagline {
    font-size: 1.15rem;
    color: var(--ws-quiet);
    max-width: 700px;
    margin: 0.5rem 0;
    line-height: 1.55;
}

.ws-game-hero-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ws-quiet);
    margin: 0.5rem 0;
}

.ws-game-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.ws-game-about {
    padding: 4rem 0;
}

.ws-game-about .ws-container {
    max-width: 800px;
}

.ws-game-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ws-game-press {
    padding: 4rem 0;
    border-top: 1px solid rgba(26, 24, 21, 0.1);
}

.ws-game-press-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.ws-game-press-assets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.ws-game-press-asset {
    background: var(--ws-surface);
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
}

.ws-game-press-asset img {
    max-height: 60px;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

/* ==========================================================================
   15. Studio Page
   ========================================================================== */

.ws-studio-page {
    /* Studio page wrapper */
}

.ws-studio-masthead {
    padding: 120px 0 2rem;
    text-align: center;
}

.ws-studio-tagline {
    font-size: 1.15rem;
    color: var(--ws-quiet);
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.5;
}

.ws-studio-section {
    padding: 3rem 0;
}

/* ==========================================================================
   16. Services Page
   ========================================================================== */

.ws-services-page {
    /* Services page wrapper */
}

.ws-services-header {
    padding: 120px 0 2rem;
}

.ws-service-card {
    padding: 2.5rem;
    background: var(--ws-surface);
    border-left: 3px solid var(--ws-brand);
    border-radius: 4px;
}

/* ==========================================================================
   16b. Case Study Page
   ========================================================================== */

.ws-case-study-page {
    /* Case study page wrapper */
}

.ws-case-study-hero {
    padding: 120px 0 2rem;
}

/* ==========================================================================
   17. Journal Page (formerly News)
   ========================================================================== */

.ws-journal-page {
    padding: 120px 0 4rem;
}

.ws-journal-header {
    margin-bottom: 3rem;
}

.ws-journal-posts {
    /* Journal posts container */
}

.ws-journal-post {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(26, 24, 21, 0.1);
}

.ws-journal-post:last-child {
    border-bottom: none;
}

.ws-journal-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ws-journal-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* Featured Post Hero */
.ws-journal-featured {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(26, 24, 21, 0.1);
}

.ws-journal-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.ws-journal-featured-body {
    /* Body below the hero image */
}

.ws-journal-featured-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0.5rem 0 0;
}

/* Tag Filter Chips */
.ws-journal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.ws-journal-tag {
    display: inline-block;
    background: transparent;
    color: var(--ws-quiet);
    border: 1.5px solid rgba(26, 24, 21, 0.15);
    padding: 0.35rem 1rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ws-journal-tag:hover {
    border-color: var(--ws-ink);
    color: var(--ws-ink);
}

.ws-journal-tag-active {
    background: var(--ws-ink);
    color: var(--ws-page);
    border-color: var(--ws-ink);
}

.ws-journal-tag-active:hover {
    background: var(--ws-ink);
    color: var(--ws-page);
}

/* Post inline tags */
.ws-journal-post-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ws-quiet);
    border: 1px solid rgba(26, 24, 21, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

/* Load More Button */
.ws-journal-load-more {
    /* Inherits ws-btn-ghost styles */
}

/* Discord Community Section */
.ws-journal-community {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(26, 24, 21, 0.1);
    border-bottom: 1px solid rgba(26, 24, 21, 0.1);
}

.ws-journal-community-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
    margin-top: 1.5rem;
}

.ws-journal-community-pitch {
    /* Left column text content */
}

.ws-journal-community-embed {
    border-radius: 4px;
    border: 1px solid rgba(26, 24, 21, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.ws-journal-community-embed iframe {
    display: block;
    border: 0;
}

/* Journal Detail Page */
.ws-journal-detail-page {
    padding: 120px 0 4rem;
}

.ws-journal-detail-back {
    margin-bottom: 2rem;
}

.ws-journal-detail-back a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ws-quiet);
    text-decoration: none;
}

.ws-journal-detail-back a:hover {
    color: var(--ws-ink);
}

.ws-journal-detail-header {
    margin-bottom: 2.5rem;
}

.ws-journal-detail-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-top: 0.5rem;
}

.ws-journal-detail-hero-image {
    margin-bottom: 3rem;
}

.ws-journal-detail-hero-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.ws-journal-detail-body {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ws-ink);
}

.ws-journal-detail-body p {
    margin-bottom: 1.5rem;
}

.ws-journal-detail-body p:first-of-type::first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 0.8;
    font-weight: 800;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: var(--ws-brand);
}

.ws-journal-detail-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.ws-journal-detail-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.ws-journal-detail-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.ws-journal-detail-body blockquote {
    border-left: 3px solid var(--ws-brand);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--ws-quiet);
    font-style: italic;
}

.ws-journal-detail-body a {
    color: var(--ws-brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.ws-journal-detail-body a:hover {
    text-decoration-thickness: 2px;
}

.ws-journal-detail-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 24, 21, 0.1);
}

.ws-journal-channels {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 24, 21, 0.1);
}

/* ==========================================================================
   18. Imprint / Legal
   ========================================================================== */

.ws-legal-page {
    padding: 120px 0 4rem;
}

.ws-legal-section {
    margin-bottom: 3rem;
}

/* ==========================================================================
   19. Press Page
   ========================================================================== */

.ws-press-page {
    padding: 120px 0 4rem;
}

.ws-press-header {
    margin-bottom: 3rem;
}

.ws-press-section {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

/* ==========================================================================
   20. Maintenance Page
   ========================================================================== */

.ws-maintenance {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ws-page);
}

.ws-maintenance-container {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.ws-maintenance-logo {
    max-width: 200px;
    margin: 0 auto 2rem;
}

.ws-maintenance-tagline {
    font-size: 1.1rem;
    color: var(--ws-ink);
    margin-bottom: 1rem;
}

.ws-maintenance-notice {
    color: var(--ws-quiet);
    margin: 1rem 0;
}

.ws-maintenance-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.ws-maintenance-link-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ws-brand);
    color: #fff;
    padding: 0.75rem 2rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ws-maintenance-link-primary:hover {
    background: #d6006c;
    color: #fff;
}

.ws-maintenance-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--ws-ink);
    padding: 0.75rem 2rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    border: 1.5px solid var(--ws-ink);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ws-maintenance-link-secondary:hover {
    background: var(--ws-ink);
    color: var(--ws-page);
}

.ws-maintenance-steam {
    margin-top: 2rem;
}

.ws-maintenance-steam iframe {
    max-width: 100%;
    border-radius: 4px;
}

.ws-maintenance-divider {
    border: none;
    border-top: 1px solid rgba(26, 24, 21, 0.1);
    margin: 2rem 0;
}

.ws-maintenance-impressum {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ws-quiet);
    margin-top: 2rem;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   21. 404 Page
   ========================================================================== */

.ws-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.ws-404-container {
    max-width: 500px;
}

.ws-404-title {
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--ws-ink);
    margin: 0;
}

.ws-404-message {
    font-size: 1.15rem;
    color: var(--ws-quiet);
    margin-top: 1rem;
}

/* ==========================================================================
   22. Content Blocks (BlockRenderer)
   ========================================================================== */

.ws-block {
    padding: 4rem 0;
}

.ws-block-split {
    display: grid;
    gap: 3rem;
    align-items: start;
    grid-template-columns: 1fr 1fr;
}

.ws-block-col {
    min-width: 0;
}

.ws-block-col-primary {
    /* Primary column — takes natural width from grid */
}

.ws-block-col-secondary {
    /* Secondary column — takes natural width from grid */
}

.ws-block-full .ws-container,
.ws-block-hero .ws-container {
    max-width: 900px;
}

.ws-block-hero {
    padding: 6rem 0;
}

.ws-block-hero h2 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ws-block-text h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.ws-block-body {
    line-height: 1.65;
    color: var(--ws-ink);
}

.ws-block-body p {
    margin-bottom: 1rem;
}

.ws-block-body p:last-child {
    margin-bottom: 0;
}

.ws-block-image img {
    max-width: 100%;
    border-radius: 4px;
}

.ws-block-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ws-quiet);
    margin-top: 0.5rem;
}

.ws-block-embed {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.ws-block-embed iframe {
    width: 100%;
    border: 0;
}

.ws-block-pad-none {
    padding: 0;
}

.ws-block-pad-small {
    padding: 2rem 0;
}

.ws-block-pad-large {
    padding: 6rem 0;
}

.ws-block-bg-dark {
    background: var(--ws-ink);
    color: var(--ws-page);
}

.ws-block-bg-dark .ws-block-body {
    color: var(--ws-page);
}

.ws-block-bg-surface {
    background: var(--ws-surface);
}

.ws-block-theme-dark {
    color: var(--ws-page);
}

/* ==========================================================================
   23. Animations
   ========================================================================== */

/*
 * .ws-fade-in defaults to visible. The JS observer adds .ws-animatable
 * to opt elements into the fade-in animation only after it confirms
 * it can run. If JS is delayed, blocked, or fails entirely, content
 * is still visible — fail-open instead of fail-blank.
 */
.ws-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ws-fade-in.ws-animatable:not(.ws-visible) {
    opacity: 0;
    transform: translateY(20px);
}

.ws-fade-in.ws-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   24. Preview Banner
   ========================================================================== */

.ws-preview-banner {
    background: var(--ws-brand);
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   25. Responsive — 768px Breakpoint
   ========================================================================== */

@media (max-width: 768px) {

    /* Container */
    .ws-container {
        padding: 0 1rem;
    }

    /* Navigation */
    .ws-nav-links {
        display: none;
    }

    .ws-nav-stamp {
        display: none;
    }

    .ws-nav-hamburger {
        display: flex;
    }

    /* Typography scale-down */
    .ws-display {
        font-size: clamp(56px, 14vw, 96px);
    }

    .ws-page h1,
    .ws-h1 {
        font-size: clamp(40px, 10vw, 56px);
    }

    .ws-page h2,
    .ws-h2 {
        font-size: clamp(28px, 7vw, 36px);
    }

    /* Landing */
    .ws-landing-cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .ws-landing-heartbeat {
        padding: 1rem 1rem;
    }

    /* Games index */
    .ws-game-item-with-media {
        min-height: 360px;
        padding: 2rem 1.5rem;
    }

    .ws-game-item-featured.ws-game-item-with-media {
        min-height: 440px;
    }

    .ws-game-item-logo {
        max-width: 160px;
    }

    .ws-game-item-featured .ws-game-item-logo {
        max-width: 220px;
    }

    /* Game detail */
    .ws-game-about-grid {
        grid-template-columns: 1fr;
    }

    .ws-game-press-facts {
        grid-template-columns: 1fr 1fr;
    }

    /* Journal community */
    .ws-journal-community-grid {
        grid-template-columns: 1fr;
    }

    .ws-journal-community-embed iframe {
        width: 100%;
        max-width: 350px;
    }

    /* Journal featured */
    .ws-journal-featured-image {
        max-height: 250px;
    }

    /* Content blocks */
    .ws-block-split {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .ws-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Buttons */
    .ws-maintenance-links {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   26. Print
   ========================================================================== */

@media print {
    .ws-nav,
    .ws-nav-mobile,
    .ws-footer,
    .ws-btn-primary,
    .ws-btn-ghost,
    .ws-preview-banner {
        display: none !important;
    }

    .ws-page {
        position: static;
        overflow: visible;
    }
}
