/* ===================================
   הסטודיו של אנה — Anna's Studio
   Self-contained styles for /studio only.
   NOTE: netlify.toml caches *.css as immutable —
   when changing this file, copy it to studio.v2.css
   and update the <link> tags.
   =================================== */

:root {
    --bg: #FBF6EF;
    --bg-soft: #F3ECE2;
    --surface: #FFFFFF;
    --ink: #1F1B18;
    --ink-2: #4A433D;
    --ink-3: #7A7068;
    --line: rgba(31, 27, 24, 0.1);
    --coral: #FF6B4A;
    --coral-ink: #E04A28;
    --lilac: #C9BEFA;
    --lilac-deep: #7C6CF0;
    --mint: #8EE3C8;
    --sun: #FFD166;
    --shadow: 0 1px 2px rgba(31, 27, 24, .06), 0 12px 32px -12px rgba(31, 27, 24, .18);
    --shadow-lg: 0 2px 4px rgba(31, 27, 24, .06), 0 28px 60px -20px rgba(31, 27, 24, .32);
    --radius: 22px;
    --radius-sm: 12px;
    --font-display: "Rubik", system-ui, sans-serif;
    --font-body: "Heebo", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16131A;
        --bg-soft: #1F1B25;
        --surface: #24202B;
        --ink: #F6F1EA;
        --ink-2: #D9D1C7;
        --ink-3: #A79E95;
        --line: rgba(246, 241, 234, 0.12);
        --coral-ink: #FF8A6E;
        --lilac-deep: #A99DFF;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -20px rgba(0, 0, 0, .7);
    }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link {
    position: absolute; inset-inline-start: 16px; top: -60px;
    background: var(--ink); color: var(--bg); padding: 10px 16px;
    border-radius: 10px; z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none; font-family: var(--font-display);
    font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
}
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--coral), #FF9A62);
    color: #fff; box-shadow: 0 6px 16px -6px rgba(255, 107, 74, .7);
    transform: rotate(-6deg);
}
.brand-mark svg { width: 24px; height: 24px; }

.header-link {
    font-size: .95rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
    transition: background .2s, color .2s;
}
.header-link:hover { background: var(--surface); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.blob-1 { width: 420px; height: 420px; background: var(--lilac); top: -120px; inset-inline-end: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--sun); bottom: -140px; inset-inline-start: 6%; opacity: .4; }
.blob-3 { width: 240px; height: 240px; background: var(--mint); top: 40px; inset-inline-start: -80px; opacity: .35; }
@media (prefers-color-scheme: dark) { .blob { opacity: .18; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 600; color: var(--coral-ink);
    background: color-mix(in srgb, var(--coral) 12%, transparent);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.02;
    letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance;
}
.hero h1 .accent {
    background: linear-gradient(120deg, var(--coral) 10%, var(--lilac-deep) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 38ch; margin: 0; text-wrap: pretty; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding: 0; list-style: none; }
.hero-stats li {
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 16px; font-size: .95rem; color: var(--ink-2); box-shadow: var(--shadow);
}
.hero-stats strong { color: var(--ink); font-family: var(--font-display); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0; line-height: 1.1;
}
.section-head p { margin: 6px 0 0; color: var(--ink-3); }

/* ---------- Game cards ---------- */
.games-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }

.game-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.game-card.featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .game-card.featured { flex-direction: row; }
    .game-card.featured .game-media { flex: 1.35; aspect-ratio: auto; min-height: 420px; }
    .game-card.featured .game-body { flex: 1; padding: 40px; justify-content: center; }
}

.game-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.game-card:hover .game-media img { transform: scale(1.04); }

.badge {
    position: absolute; top: 16px; inset-inline-start: 16px;
    background: var(--sun); color: #3B2A00; font-weight: 800; font-family: var(--font-display);
    font-size: .85rem; padding: 6px 12px; border-radius: 999px;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); transform: rotate(-4deg);
}

.game-body { display: flex; flex-direction: column; gap: 14px; padding: 24px; flex: 1; }
.game-kind { font-size: .85rem; font-weight: 700; color: var(--lilac-deep); letter-spacing: .02em; }
.game-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
.game-body p { margin: 0; color: var(--ink-2); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; list-style: none; }
.tags li { font-size: .85rem; background: var(--bg-soft); color: var(--ink-2); padding: 4px 12px; border-radius: 999px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    padding: 14px 24px; border-radius: 14px; text-decoration: none;
    border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s;
    min-height: 48px;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 107, 74, .9); }
.btn-primary:hover { background: #FF5A35; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { font-size: 1.2rem; padding: 18px 32px; border-radius: 16px; }

/* Coming soon card */
.game-card.soon {
    border: 2px dashed var(--line); background: transparent; box-shadow: none;
    align-items: center; justify-content: center; text-align: center; min-height: 200px; padding: 32px;
    grid-column: 1 / -1;
}
.game-card.soon:hover { transform: none; box-shadow: none; }
.soon-icon {
    width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
    background: var(--bg-soft); font-size: 2rem; margin-bottom: 12px;
}
.game-card.soon h3 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 6px; }
.game-card.soon p { margin: 0; color: var(--ink-3); max-width: 30ch; }

/* ---------- How it's made ---------- */
.process { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; counter-reset: step; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(3, 1fr); } }
.process li {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px; position: relative; counter-increment: step;
}
.process li::before {
    content: counter(step, decimal-leading-zero);
    font-family: ui-monospace, "JetBrains Mono", monospace; font-weight: 700;
    color: var(--coral-ink); font-size: .9rem; display: block; margin-bottom: 12px;
}
.process .icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.process h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 1.25rem; }
.process p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- Game detail page ---------- */
.crumbs { font-size: .95rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

.detail-hero { padding: 24px 0 40px; }
.detail-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

.detail-hero h1 {
    font-family: var(--font-display); font-weight: 900; letter-spacing: -0.03em;
    font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.04; margin: 8px 0 16px;
}
.detail-hero .lede { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 24px; text-wrap: pretty; }

.shot-frame {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
    border: 1px solid var(--line); background: var(--bg-soft);
}
.shot-frame img { width: 100%; height: auto; }
.shot-frame.tilt { transform: rotate(-1.5deg); }
@media (prefers-reduced-motion: reduce) { .shot-frame.tilt { transform: none; } }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.facts li { font-size: .92rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.facts li + li::before { content: "·"; color: var(--ink-3); margin-inline-end: 4px; }

.steps { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .num { font-family: ui-monospace, "JetBrains Mono", monospace; font-weight: 700; color: var(--coral-ink); font-size: .9rem; }
.steps h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 8px 0 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 1rem; }

.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.split h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 16px; letter-spacing: -0.02em; line-height: 1.1; }
.split p { color: var(--ink-2); }
.checklist { padding: 0; margin: 16px 0 0; list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: "✦"; color: var(--coral); font-size: .9rem; line-height: 1.9; flex: none; }

.cta-band {
    background: linear-gradient(135deg, #2A2140, #3B2A55);
    color: #fff; border-radius: 28px; padding: 48px 32px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0 0 24px; }
.cta-band::after {
    content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: var(--coral); filter: blur(90px); opacity: .35; top: -120px; inset-inline-start: -60px;
}
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; color: var(--ink-3); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.site-footer a { color: var(--ink-2); }

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