/*
Theme Name: Satumetsa
Theme URI: https://example.com/satumetsa
Author: GitHub Copilot
Author URI: https://github.com
Description: Suomenkielinen WordPress-teema lastensatuja julkaisevalle blogille.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: satumetsa
*/

:root {
    --bg-sky: #fff8eb;
    --bg-dawn: #d9f6ff;
    --cloud: #ffffff;
    --mint: #b8f2cf;
    --peach: #ffd8a8;
    --berry: #f46ba4;
    --forest: #2f6a4f;
    --ink: #2a2534;
    --paper: #fffef9;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 8px 24px rgba(56, 41, 74, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Nunito", "Trebuchet MS", sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.7) 0 12%, transparent 13%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.65) 0 10%, transparent 11%),
        linear-gradient(180deg, var(--bg-dawn) 0%, var(--bg-sky) 44%, #ffefd9 100%);
    min-height: 100vh;
}

.site-wrap {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    padding: 1.2rem 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 252, 244, 0.85);
    border-bottom: 1px solid rgba(47, 106, 79, 0.12);
}

.branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-title {
    margin: 0;
    font-family: "Baloo 2", "Comic Sans MS", cursive;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1;
    letter-spacing: 0.5px;
}

.site-title a {
    color: var(--forest);
    text-decoration: none;
}

.site-description {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    color: #4f4a5a;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.main-navigation a {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    background: rgba(184, 242, 207, 0.45);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    transform: translateY(-2px);
    background: var(--mint);
}

.hero {
    margin: 2rem auto 1.5rem;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.9) 0 15%, transparent 16%),
        linear-gradient(135deg, #ffefd1, #ffe2f1 55%, #def6ff);
    box-shadow: var(--shadow-soft);
    animation: float-in 0.8s ease both;
    grid-column: 1 / -1;
}

.hero h1 {
    margin: 0;
    font-family: "Baloo 2", "Comic Sans MS", cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    color: #5d2a68;
}

.hero p {
    max-width: 60ch;
    margin: 0.8rem 0 0;
    font-size: 1.12rem;
}

.hero .cta-link {
    display: inline-block;
    margin-top: 1.1rem;
    background: var(--berry);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.content-grid > section,
.content-grid > aside {
    min-width: 0;
}

body.single .content-grid > aside {
    margin-top: 0.5rem;
}

body.page .content-grid > aside {
    margin-top: 0.5rem;
}

@media (min-width: 960px) {
    .content-grid {
        grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
        align-items: start;
    }
}

.post-card,
.page-card,
.widget {
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(47, 106, 79, 0.1);
}

.post-card,
.page-card {
    padding: 1.3rem;
    margin: 0.5rem 0;
    animation: rise-in 0.5s ease both;
}

.post-card + .post-card {
    margin-top: 1.4rem;
}

section > .page-card + .post-card,
section > .page-card + .page-card,
section > .widget + .widget {
    margin-top: 1.4rem;
}

.post-card h2,
.page-card h1,
.page-card h2 {
    margin-top: 0;
    font-family: "Baloo 2", "Comic Sans MS", cursive;
    line-height: 1.2;
}

.post-card h2 a {
    color: #5d2a68;
    text-decoration: none;
}

.post-card img,
.page-card img,
.wp-post-image,
.post-thumbnail img,
.entry-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.post-meta {
    margin: 0.2rem 0 0.8rem;
    color: #575061;
    font-size: 0.92rem;
}

.read-more {
    font-weight: 700;
    color: var(--forest);
    text-decoration: none;
}

.widget {
    padding: 1rem 1.1rem;
    margin: 0 0 1rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    margin: 0 0 0.6rem;
    font-family: "Baloo 2", "Comic Sans MS", cursive;
    color: #5d2a68;
}

.site-footer {
    border-top: 1px dashed rgba(47, 106, 79, 0.32);
    padding: 1.3rem 0 2rem;
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0;
}

.site-footer-meta,
.site-footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.site-footer-links {
    margin-top: 0.35rem;
}

.site-footer-links a {
    font-weight: 700;
    text-decoration: none;
}

.site-footer-links a:hover {
    text-decoration: underline;
}

a {
    color: #1e6d57;
}

a:hover {
    color: #ba2f76;
}

input,
textarea,
button {
    font: inherit;
}

input[type="search"],
input[type="text"],
textarea {
    width: 100%;
    border: 2px solid rgba(47, 106, 79, 0.18);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    background: #fff;
}

button,
input[type="submit"] {
    border: 0;
    border-radius: 12px;
    padding: 0.6rem 0.95rem;
    background: var(--forest);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .branding {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero p {
        font-size: 1rem;
    }
}
