/* ==========================================================================
   project.css — project detail pages as "project log" articles
   Loads AFTER the legacy stylesheets and redesign.css. The legacy palette
   is remapped via :root; the legacy glass-card sections are flattened into
   a clean centered article: back-link, big title, hero media, serif
   subtitle, mono date, then numbered sections with serif body text.
   ========================================================================== */

:root {
    /* remap the legacy palette to violet-ink */
    --color-bg: #0f0a1f;
    --color-surface: #191234;
    --color-surface-elevated: #261c4d;
    --color-text: #ded9f0;
    --color-accent: #a88bff;
    --color-accent-hover: #baa3ff;
    --color-accent-rgb: 168, 139, 255;
    --color-accent-glow: rgba(168, 139, 255, 0.30);
    --color-cyan-edge: #a88bff;
    --color-cyan-rgb: 168, 139, 255;
    --color-border: #ded9f0;
    --font-primary: "NTR", sans-serif;

    --pl-serif: Georgia, "Times New Roman", serif;
}

body {
    background-color: var(--navy, #0f0a1f);
    color: var(--slate, #8e89a8);
    font-family: var(--font-body, "NTR", sans-serif);
    font-size: 20px;
}

/* --------------------------------------------------------------------------
   Log header — back link, title, hero, subtitle, date
   -------------------------------------------------------------------------- */

.pl-top {
    max-width: 900px;
    margin: 0 auto;
    padding: 128px 24px 0;
}

.pl-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    color: var(--lightest-slate, #ded9f0);
    transition: all 0.25s ease;
}

.pl-back .arrow,
.pl-back .slash {
    color: var(--accent, #a88bff);
}

.pl-back:hover {
    color: var(--accent, #a88bff);
    transform: translateX(-3px);
}

.pl-header {
    /* the legacy stylesheet sets header{display:flex} for the old navbar —
       force this back to a normal flow container */
    display: block;
    min-height: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 36px 24px 8px;
    text-align: center;
}

.pl-title {
    font-family: var(--font-body, "NTR", sans-serif);
    font-size: clamp(38px, 5.5vw, 54px);
    font-weight: 400;
    color: var(--white, #f4f1ff);
    line-height: 1.1;
    margin-bottom: 30px;
}

.pl-hero {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px -20px var(--shadow, rgba(4, 2, 12, 0.7));
    margin-bottom: 28px;
    background: var(--light-navy, #191234);
}

.pl-hero video,
.pl-hero img,
.pl-hero iframe {
    display: block;
    width: 100%;
    height: auto;
}

.pl-sub {
    font-family: var(--pl-serif);
    font-size: 20px;
    line-height: 1.7;
    color: var(--light-slate, #b5afce);
    max-width: 640px;
    margin: 0 auto 16px;
}

.pl-date {
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent, #a88bff);
    margin-bottom: 8px;
}

.pl-meta {
    font-family: var(--font-mono, monospace);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--slate, #8e89a8);
}

/* --------------------------------------------------------------------------
   Article body — flatten the legacy glass cards into log sections
   -------------------------------------------------------------------------- */

#game-details {
    display: block;
    max-width: 780px;
    margin: 0 auto;
    padding: 16px 24px 90px;
    counter-reset: plsec -1;
}

#game-details .game-description,
#game-details .game-mechanics,
#game-details .design-principles,
#game-details .gas-powers,
#game-details .contribution-summary,
#game-details .Process,
#game-details .reflection,
#game-details .link-build {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 46px 0 0;
    margin: 0;
    width: auto;
    max-width: none;
    transform: none;
}

#game-details .game-description:hover,
#game-details .game-mechanics:hover,
#game-details .design-principles:hover,
#game-details .gas-powers:hover,
#game-details .contribution-summary:hover,
#game-details .Process:hover,
#game-details .reflection:hover,
#game-details .link-build:hover,
#game-details .game-description:focus-within,
#game-details .game-mechanics:focus-within,
#game-details .design-principles:focus-within,
#game-details .gas-powers:focus-within,
#game-details .contribution-summary:focus-within,
#game-details .Process:focus-within,
#game-details .reflection:focus-within,
#game-details .link-build:focus-within {
    transform: none;
    box-shadow: none;
    background: transparent;
    border-color: transparent;
}

#game-details .game-description::before,
#game-details .game-mechanics::before,
#game-details .design-principles::before,
#game-details .gas-powers::before,
#game-details .contribution-summary::before,
#game-details .Process::before,
#game-details .reflection::before,
#game-details .link-build::before,
#game-details .game-description::after,
#game-details .game-mechanics::after,
#game-details .design-principles::after,
#game-details .gas-powers::after,
#game-details .contribution-summary::after,
#game-details .Process::after,
#game-details .reflection::after,
#game-details .link-build::after {
    display: none;
}

/* numbered section headings — "0. what is ..." */

#game-details .game-description-title {
    font-family: var(--font-body, "NTR", sans-serif);
    font-weight: 400;
    font-size: 27px;
    color: var(--white, #f4f1ff);
    text-align: left;
    counter-increment: plsec;
    border-bottom: 1px solid var(--lightest-navy, #261c4d);
    padding-bottom: 10px;
    margin-bottom: 26px;
}

#game-details .game-description-title::before {
    content: counter(plsec) ". ";
    color: var(--accent, #a88bff);
}

/* serif body text */

#game-details .game-description-text {
    font-family: var(--pl-serif);
    font-size: 19px;
    line-height: 1.8;
    color: var(--light-slate, #b5afce);
    text-align: left;
    margin-bottom: 22px;
}

#game-details .game-description-text strong {
    color: var(--lightest-slate, #ded9f0);
}

#game-details .contribution-summary > .game-description-text strong {
    color: var(--lightest-slate, #ded9f0);
}

/* media inside sections */

#game-details .video-wrapper,
#game-details .image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0 26px;
}

#game-details .video-wrapper video,
#game-details .video-wrapper iframe,
#game-details .image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

#game-details .video-slide video,
#game-details .video-slide img,
#game-details .image-slide img {
    border-radius: 12px;
}

#game-details .video-title,
#game-details .image-title {
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    letter-spacing: 0.05em;
}

#game-details .slide-arrow {
    border-radius: 4px;
}

/* CTA */

#game-details .link-build {
    text-align: center;
    padding-bottom: 20px;
}

#game-details .link-build .game-description-title {
    text-align: left;
}

.game-download-link {
    font-family: var(--font-mono, monospace);
    font-size: 14px;
    color: #a88bff;
    background: transparent;
    background-color: transparent;
    border: 1px solid #a88bff;
    border-radius: 4px;
    padding: 15px 26px;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.game-download-link:hover,
.game-download-link:focus-visible {
    background: rgba(168, 139, 255, 0.1);
    background-color: rgba(168, 139, 255, 0.1);
    color: #a88bff;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .pl-top {
        padding-top: 106px;
    }

    .pl-title {
        font-size: 34px;
    }

    .pl-sub {
        font-size: 17.5px;
    }

    #game-details .game-description-title {
        font-size: 23px;
    }

    #game-details .game-description-text {
        font-size: 17px;
    }
}
