/*
Theme Name: Indie Lantern Catalog
Theme URI: https://example.test/
Author: Codex
Description: Block theme for the Indie Lantern catalog MVP.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: igd-catalog
*/

html {
    scroll-behavior: smooth;
}

body {
    background: var(--wp--preset--color--base);
}

a {
    text-underline-offset: .18em;
}

.wp-site-blocks > header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.wp-site-blocks > header > .wp-block-group {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid rgba(17, 24, 22, .08);
    box-shadow: 0 10px 32px rgba(17, 24, 22, .06);
}

.wp-block-site-title a {
    text-decoration: none;
}

.wp-block-navigation a {
    border-radius: 999px;
    color: var(--wp--preset--color--muted);
    font-size: .9rem;
    font-weight: 700;
    padding: .3rem .5rem;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus-visible {
    background: rgba(8, 117, 111, .1);
    color: var(--wp--preset--color--contrast);
    outline: none;
}

main > .wp-block-post-title,
.entry-content > h1,
.entry-content > h2 {
    letter-spacing: 0;
    line-height: 1.02;
}

main > .wp-block-post-title {
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    margin-bottom: .75rem;
    max-width: 12ch;
}

.taxonomy-game_genre {
    color: var(--wp--preset--color--muted);
    font-size: .92rem;
    font-weight: 750;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.igd-card-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-block: 1.5rem 3rem;
}

.igd-card {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 22, .09);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(17, 24, 22, .08);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.igd-card:hover {
    border-color: rgba(8, 117, 111, .35);
    box-shadow: 0 24px 58px rgba(17, 24, 22, .13);
    transform: translateY(-2px);
}

.igd-card img {
    aspect-ratio: 460 / 215;
    display: block;
    object-fit: cover;
    width: 100%;
}

.igd-card-body,
.igd-collection-card {
    padding: 1.1rem;
}

.igd-card h3 {
    font-size: 1.25rem;
    line-height: 1.15;
    margin: .25rem 0 .5rem;
}

.igd-card h3 a {
    text-decoration: none;
}

.igd-card p {
    margin: 0 0 .75rem;
}

.igd-eyebrow,
.igd-meta-line {
    color: var(--wp--preset--color--muted);
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: uppercase;
}

.igd-card-meta {
    align-items: center;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    margin-bottom: .7rem;
}

.igd-score {
    background: rgba(8, 117, 111, .1);
    border: 1px solid rgba(8, 117, 111, .18);
    border-radius: 999px;
    color: var(--wp--preset--color--accent);
    font-size: .78rem;
    font-weight: 800;
    padding: .18rem .52rem;
    white-space: nowrap;
}

.igd-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .8rem 0 0;
}

.igd-pill {
    background: #f1f6f4;
    border: 1px solid rgba(17, 24, 22, .08);
    border-radius: 999px;
    color: var(--wp--preset--color--contrast);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1;
    padding: .42rem .6rem;
}

.igd-game-panel {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 22, .08);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(17, 24, 22, .08);
    color: var(--wp--preset--color--contrast);
    margin-block: 2rem 3rem;
    overflow: hidden;
    padding: clamp(1rem, 3vw, 1.4rem);
}

.igd-game-panel a {
    color: var(--wp--preset--color--contrast);
}

.igd-game-hero {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: 1fr;
    margin-bottom: 1.25rem;
}

.igd-game-hero-image {
    aspect-ratio: 460 / 215;
    border-radius: 6px;
    display: block;
    margin: 0;
    object-fit: cover;
    width: 100%;
}

.igd-game-summary {
    align-self: stretch;
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 8px;
    padding: 1rem;
}

.igd-game-summary h2 {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.08;
    margin: 0 0 1rem;
}

.igd-game-panel dl {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0;
}

.igd-game-panel dt {
    color: var(--wp--preset--color--muted);
    font-size: .76rem;
    font-weight: 650;
    text-transform: uppercase;
}

.igd-game-panel dd {
    margin: .15rem 0 0;
}

.igd-note {
    border-top: 1px solid var(--wp--preset--color--line);
    padding-top: 1.1rem;
}

.igd-note h3 {
    color: var(--wp--preset--color--contrast);
    margin-bottom: .3rem;
}

.igd-note p {
    color: var(--wp--preset--color--muted);
    margin-top: 0;
}

.igd-button {
    background: var(--wp--preset--color--accent-2);
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    padding: .7rem 1rem;
    text-decoration: none;
}

.igd-button:hover,
.igd-button:focus-visible {
    background: #db583b;
    outline: 2px solid rgba(194, 73, 47, .28);
    outline-offset: 3px;
}

.igd-gallery-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
    margin: 1.7rem 0 .85rem;
}

.igd-screenshot-row {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.25rem 0;
}

.igd-screenshot-row img {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(17, 24, 22, .1);
    object-fit: cover;
    width: 100%;
}

.igd-site-shell {
    min-height: 100vh;
}

@media (max-width: 680px) {
    .igd-card-grid {
        grid-template-columns: 1fr;
    }

    .igd-game-hero {
        grid-template-columns: 1fr;
    }

    .igd-game-panel dl {
        grid-template-columns: 1fr;
    }

    .igd-screenshot-row {
        grid-template-columns: 1fr;
    }

    main > .wp-block-post-title {
        max-width: 100%;
    }
}
