/* ==========================================================================
   Hour73 — Design tokens
   ========================================================================== */

:root {
    --bg: #0b0d14;
    --surface: #141225;
    --surface-2: #1a1730;
    --gold: #d4b06a;
    --gold-bright: #e8c988;
    --gold-soft: rgba(212, 176, 106, 0.1);
    --arcane: #9068ac;
    --arcane-soft: rgba(144, 104, 172, 0.16);
    --text: #f3eee4;
    --muted: #9d95b8;
    --muted-2: #6f6887;
    --line: rgba(212, 176, 106, 0.22);
    --line-soft: rgba(212, 176, 106, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 560px at 18% -8%, rgba(144, 104, 172, 0.16), transparent 60%),
        radial-gradient(ellipse 800px 500px at 88% 8%, rgba(212, 176, 106, 0.07), transparent 55%),
        radial-gradient(ellipse 900px 700px at 50% 110%, rgba(212, 176, 106, 0.05), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
    background: rgba(11, 13, 20, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
}

.brand svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.site-nav {
    display: flex;
    gap: clamp(1.1rem, 3vw, 2.25rem);
}

.site-nav a {
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding-bottom: 0.35rem;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a.active {
    color: var(--gold);
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--gold);
}

/* ==========================================================================
   Shared type + layout utilities
   ========================================================================== */

main.page {
    flex: 1;
}

.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--arcane);
    margin: 0 0 0.6rem;
}

.rune-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.75rem auto;
}

.rune-divider i {
    display: block;
    width: 52px;
    height: 1px;
    background: var(--line);
}

.rune-divider span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.rune-divider.left {
    justify-content: flex-start;
    margin: 1.25rem 0 1.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg);
    background: var(--gold);
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--gold-bright);
    box-shadow: 0 10px 28px rgba(212, 176, 106, 0.22);
}

.btn.ghost {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--line);
}

.btn.ghost:hover {
    background: var(--gold-soft);
    box-shadow: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--gold);
}

/* ==========================================================================
   Hero (index)
   ========================================================================== */

.hero {
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(4rem, 11vw, 7.5rem) 1.5rem 3rem;
    text-align: center;
}

.hero .mark {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero .mark svg {
    width: 88px;
    height: 88px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    letter-spacing: 0.03em;
    margin: 0 0 0.6rem;
    color: var(--text);
}

.hero .subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
}

.hero .tagline {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
}

.hero .tagline strong {
    color: var(--gold);
    font-weight: 500;
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.section-head h2 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin: 0 0 0.75rem;
    color: var(--text);
}

.section-head p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Games grid + card
   ========================================================================== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.9rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface), rgba(255, 255, 255, 0.015));
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.game-card:hover {
    border-color: var(--line);
    transform: translateY(-4px);
    background: linear-gradient(160deg, var(--surface-2), rgba(255, 255, 255, 0.02));
}

.game-status {
    align-self: flex-start;
    font-family: 'Space Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.32rem 0.7rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
}

.game-card h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
    color: var(--text);
}

.game-card .game-blurb {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0;
}

.game-meta {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-cta {
    margin-top: auto;
    padding-top: 0.4rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--gold);
}

.game-card.placeholder {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    color: var(--muted-2);
    gap: 0.5rem;
}

.game-card.placeholder .eyebrow {
    margin: 0;
}

.game-card.placeholder p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.game-card.placeholder p.joke {
    color: var(--muted-2);
    font-style: italic;
}

/* ==========================================================================
   About strip (index)
   ========================================================================== */

.about {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    text-align: center;
}

.about p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.about p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Page intro (games / devlogs)
   ========================================================================== */

.page-intro {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem 1rem;
}

.page-intro h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    margin: 0.75rem 0;
}

.page-intro p.lede {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 620px;
    margin: 0;
}

/* ==========================================================================
   Game detail page
   ========================================================================== */

.game-hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem 0;
}

.game-hero .status-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1.1rem;
}

.game-hero h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    margin: 0;
}

.game-hero .tagline {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 640px;
    margin: 0;
}

.stat-row {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line-soft);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--text);
}

.content-block {
    max-width: 720px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem 0;
}

.content-block h2 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.55rem;
    margin: 0 0 1.1rem;
    color: var(--text);
}

.content-block p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
    margin: 0 0 1.1rem;
}

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

.content-block p strong {
    color: var(--text);
    font-weight: 500;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.feature-list li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    top: 0.15em;
    color: var(--gold);
    font-size: 0.7rem;
}

.feature-list li strong {
    color: var(--text);
    font-weight: 500;
}

.post-image {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
    margin: 0.5rem 0 0;
}

.cta-banner {
    max-width: 720px;
    margin: 3.5rem auto 5rem;
    padding: 2.25rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--gold-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.cta-banner h2 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.4rem;
    margin: 0;
}

.cta-banner p {
    color: var(--muted);
    margin: 0;
    max-width: 460px;
    line-height: 1.7;
}

/* ==========================================================================
   Dev logs
   ========================================================================== */

.devlog-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 1.5rem 5rem;
}

.devlog-entry {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.25rem);
    background: linear-gradient(160deg, var(--surface), rgba(255, 255, 255, 0.012));
}

.devlog-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.devlog-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border: 1px solid var(--arcane);
    color: var(--arcane);
    border-radius: 999px;
}

.devlog-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted-2);
}

.devlog-entry h2 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.35rem;
    margin: 0 0 1rem;
    color: var(--text);
}

.devlog-entry .post-content p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.devlog-entry .post-content p:last-child {
    margin-bottom: 0;
}

.devlog-entry .post-image {
    margin-bottom: 1.4rem;
}

.devlog-end {
    text-align: center;
    color: var(--muted-2);
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    padding-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 3.25rem 1.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.footer-tagline {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
}

.footer-tagline strong {
    color: var(--gold);
    font-weight: 500;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
}

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

.footer-mark {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.footer-credit {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted-2);
    max-width: 420px;
    line-height: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
    .site-header {
        justify-content: center;
        text-align: center;
    }

    .site-nav {
        gap: 1.25rem;
    }

    .hero .mark svg {
        width: 68px;
        height: 68px;
    }

    .content-block,
    .devlog-list {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .stat-row {
        gap: 1.5rem;
    }
}
