/* StrayCat — modern minimal site styles */
:root {
    --bg: #fbfaf7;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --border: #ece9e2;
    --accent: #d97757;
    --accent-hover: #c0613e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    --radius: 14px;
    --max-width: 960px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121110;
        --bg-card: #1c1b1a;
        --text: #f0ece4;
        --text-muted: #9a9591;
        --border: #2a2826;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.2);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    z-index: 10;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
nav a {
    color: var(--text-muted);
    margin-left: 32px;
    font-size: 15px;
}
nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 64px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: -0.025em;
}
.hero p {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Sections ---------- */
section {
    padding: 64px 0;
}
section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 32px;
    letter-spacing: -0.015em;
}

/* ---------- Games grid ---------- */
.games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.game-card.coming-soon {
    opacity: 0.55;
}
.game-card.coming-soon:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}
.game-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}
.game-card .tags {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 14px;
}
.game-card .platforms {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* ---------- About / Studio ---------- */
.studio p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0;
}

/* ---------- Contact ---------- */
.contact .email {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 500;
}

/* ---------- Footer ---------- */
footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 14px;
}
footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
footer .footer-links a {
    color: var(--text-muted);
    margin-left: 20px;
}
footer .footer-links a:hover {
    color: var(--text);
}
footer .footer-links a:first-child {
    margin-left: 0;
}

/* ---------- Legal pages ---------- */
.legal {
    padding: 56px 0 32px;
    max-width: 760px;
}
.legal h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.legal .effective {
    color: var(--text-muted);
    margin: 0 0 48px;
    font-size: 14px;
}
.legal h2 {
    font-size: 21px;
    font-weight: 600;
    margin: 44px 0 14px;
    letter-spacing: -0.01em;
}
.legal h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 10px;
}
.legal p, .legal li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}
.legal ul, .legal ol {
    padding-left: 22px;
}
.legal li {
    margin-bottom: 6px;
}
.legal strong { font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    nav a { margin-left: 18px; font-size: 14px; }
    .hero { padding: 72px 0 48px; }
    section { padding: 48px 0; }
    footer .container { flex-direction: column; align-items: flex-start; }
    footer .footer-links a:first-child { margin-left: 0; }
}
