/* ============================================================================
 *  theme.css — Kidzink brand tokens + primitives shared across every page.
 *  Warm cream canvas, coral-red primary, playful serif headings.
 * ========================================================================== */

:root {
    /* Brand palette (from kidzink.com) */
    --bg: #EFEAE0;          /* warm cream canvas */
    --fg: #2E2A26;          /* dark warm near-black text */
    --red: #E63E2C;         /* coral red — primary */
    --orange: #F49A34;      /* amber */
    --purple: #C098C6;      /* soft lavender */
    --pink: #F2A8CA;        /* soft pink */
    --taupe: #BEB4A4;       /* warm taupe */
    --card: #FFFFFF;
    --muted: #E2DBCE;       /* dotted background pattern */

    /* Legacy aliases so older rules keep working with brand colors */
    --blue: var(--purple);
    --yellow: var(--orange);
    --border: var(--fg);

    /* Shape language — soft and rounded */
    --radius: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Fonts */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;

    /* Soft shadow (gentle, not the old hard offset shadows) */
    --shadow: 0 10px 30px rgba(46, 42, 38, 0.08);
    --shadow-sm: 0 4px 14px rgba(46, 42, 38, 0.08);
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Decorative doodle layer (populated by js/decor.js) */
.decor-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.decor-doodle {
    position: absolute;
    opacity: 0.2;
    max-width: none;
}

/* Playful logo mark (three rounded shapes) */
.logo-circle {
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: var(--red);
}

.logo-square {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--purple);
}

.logo-triangle {
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 20px solid var(--orange);
}

/* Buttons — rounded pills, solid brand fills */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-red {
    background: var(--red);
    color: white;
}

.btn-blue {
    background: var(--purple);
    color: white;
}

.btn-outline {
    background: var(--card);
    color: var(--fg);
    border: 2px solid var(--fg);
}

.btn-outline.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.85em;
}
