*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #fafaf9;
    --surface: #fff;
    --border: #e8e6e1;
    --border-hover: #c8c4be;
    --text: #1a1a1a;
    --text-muted: #888;
    --text-faint: #bbb;
    --accent: #00ABFF;
    --accent-hover: #0090dd;
    --radius-sm: 8px;
    --radius-md: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { color: var(--accent-hover); }

/* Layout */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Site Header */

.site-header {
    padding: 2rem 0 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.site-logo {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto 0.75rem;
}

.site-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.12s, background 0.12s;
}

.social-icons a:hover {
    border-color: var(--border-hover);
    background: #f7f5f2;
}

.social-icons img {
    width: 18px !important;
    height: 18px !important;
}

.patreon-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    transition: border-color 0.12s, background 0.12s;
}
.patreon-btn:hover {
    border-color: var(--border-hover);
    background: #f7f5f2;
    color: var(--text);
}

/* Section Titles */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-link {
    font-size: 13px;
    color: var(--accent);
}
.section-link:hover { color: var(--accent-hover); }

section {
    margin-bottom: 3rem;
}

/* Book cards */

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75rem;
}

@media (max-width: 500px) {
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

.book-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cover-wrap {
    background: #f1efea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cover-wrap img {
    width: 100%;
    max-width: 160px;
    border-radius: 4px;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.book-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
}

.book-series {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.book-blurb {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.store-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
    transition: background 0.12s, border-color 0.12s;
}

.store-btn:hover {
    background: #f7f5f2;
    border-color: var(--border-hover);
    color: var(--text);
}

.store-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.icon-amazon    { background: #FF9900; color: #000; }
.icon-apple     { background: #000; }
.icon-kobo      { background: #E31837; }
.icon-itch      { background: #FA5C5C; font-size: 9px; }
.icon-d2d       { background: #F76C1B; font-size: 9px; }

.store-name  { flex: 1; }

/* Games grid */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.12s, background 0.12s;
}

.game-card:hover {
    border-color: var(--border-hover);
    background: #fdfdfc;
    color: var(--text);
}

.game-img-wrap {
    background: #f1efea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    aspect-ratio:  16/9;
}

.game-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.game-info {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.game-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.game-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Blog Posts */

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom:  1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    transition: color 0.12s;
}

.blog-list a:first-child {
    border-top: 1px solid var(--border);
}

.blog-list a:hover {
    color: var(--accent);
}

/* Page Header (Games/Books) */

.page-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header-home {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}
.page-header-home:hover { color: var(--accent) }

.page-header-title {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.page-header-sep {
    color: var(--text-faint);
    font-size: 13px;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 3rem;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
    line-height: 2;
}

footer a {
    color: var(--text-faint);
}
footer a:hover { color: var(--accent); }

/* .footer-note {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    margin-top: 3rem;
}


h1 {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
} */