:root {
    --bg: #fff8ef;
    --bg-2: #e9f8ff;
    --ink: #24313f;
    --ink-soft: #4a5a68;
    --brand: #ff7a59;
    --brand-deep: #e45d3c;
    --accent: #13b0a5;
    --sun: #ffd166;
    --card: #ffffff;
    --line: #e8edf2;
    --radius: 20px;
    --shadow: 0 14px 35px rgba(25, 46, 79, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 209, 102, 0.35), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(19, 176, 165, 0.28), transparent 30%),
        linear-gradient(170deg, var(--bg), var(--bg-2));
    min-height: 100vh;
}

.background-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 122, 89, 0.12), transparent 28%);
    z-index: -1;
}

img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

a {
    color: var(--brand-deep);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
.brand strong {
    font-family: 'Baloo 2', cursive;
    letter-spacing: 0.2px;
}

main {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding-bottom: 48px;
}

.site-header {
    width: min(1120px, 92vw);
    margin: 16px auto 20px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 12px;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover,
.brand:focus,
.brand:active {
    text-decoration: none;
}

.brand-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--sun));
    color: #fff;
}

.brand small {
    display: block;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-nav > a,
.series-dropdown > button {
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--ink);
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.main-nav > a.active {
    background: var(--sun);
    box-shadow: 0 3px 12px rgba(255, 209, 102, 0.4);
    text-decoration: none;
}

.main-nav > a:hover,
.series-dropdown > button:hover {
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.series-dropdown {
    position: relative;
}

.series-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 260px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    overflow: hidden;
}

.series-menu a {
    display: block;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.series-menu a:last-child {
    border-bottom: 0;
}

.series-dropdown.open .series-menu {
    display: block;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: center;
    padding: 24px 6px 20px;
}

.hero.compact {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    margin: 10px 0 8px;
    line-height: 1.04;
}

.hero p {
    font-size: 1.06rem;
    color: var(--ink-soft);
    max-width: 60ch;
}

.hero-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-block;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.74rem;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 2px solid transparent;
    padding: 11px 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, var(--sun), #f5b800);
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(255, 209, 102, 0.5);
}

.btn.secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.btn.ghost {
    background: #fff;
    border-color: var(--line);
}

.btn.tiny {
    padding: 8px 12px;
    font-size: 0.88rem;
}

.section {
    margin-top: 24px;
    padding: 20px 0;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.section-title-row h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.card-grid,
.book-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card,
.book-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body,
.book-card-body {
    padding: 14px;
}

.card-body h3,
.book-card-body h3 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.card-body p,
.book-card-body p {
    margin: 0 0 10px;
    color: var(--ink-soft);
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.actions.wrap {
    flex-wrap: wrap;
}

.pill,
.tag {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    background: #e5fff2;
    color: #0d7f6a;
    font-weight: 700;
    font-size: 0.77rem;
}

.small {
    font-size: 0.87rem;
    color: var(--ink-soft);
}

.banner {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    padding: 26px 22px;
}

.banner h2 {
    margin-top: 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(250px, 360px) 1fr;
    gap: 26px;
    margin-top: 24px;
    align-items: start;
}

.detail-content h1 {
    margin: 4px 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.subtitle {
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-weight: 700;
}

.book_description{
	margin-top: 24px;
}

.meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.meta-list li {
    margin: 6px 0;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.split article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.center {
    text-align: center;
}

.site-footer {
    width: min(1120px, 92vw);
    margin: 10px auto 26px;
    text-align: center;
    color: var(--ink-soft);
}

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    max-width: 760px;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(19, 176, 165, 0.18);
}

.captcha-wrap {
    margin: 6px 0 4px;
}

.form-alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 6px;
}

.form-alert.success {
    background: #e8fbf1;
    border: 1px solid #b8efd2;
    color: #0a7d4f;
}

.form-alert.error {
    background: #fff2f0;
    border: 1px solid #ffd1ca;
    color: #b83a2e;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.float {
    animation: bob 3.4s ease-in-out infinite;
}

.hover-lift {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(25, 46, 79, 0.16);
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 900px) {
    .site-header {
        border-radius: 18px;
        align-items: flex-start;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        padding-top: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.open {
        display: flex;
    }

    .series-dropdown {
        width: 100%;
    }

    .series-dropdown > button {
        width: 100%;
        text-align: left;
        background: #fff;
        border: 1px solid var(--line);
    }

    .series-menu {
        position: static;
        width: 100%;
        margin-top: 6px;
        display: none;
        box-shadow: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* ── New component styles ───────────────────────────────────────── */

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    background: #f3f4f6;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.77rem;
    border: 1px solid var(--line);
}

.notify-form {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
}

.notify-fields {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.notify-fields input[type="email"] {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 7px 12px;
    font: inherit;
    color: var(--ink);
    flex: 1;
    min-width: 0;
    background: #fff;
}

.notify-fields input[type="email"]:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(19, 176, 165, 0.18);
}

.pihu-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.pihu-traits li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.97rem;
    box-shadow: 0 2px 8px rgba(25, 46, 79, 0.06);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input[type="email"] {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 18px;
    font: inherit;
    color: var(--ink);
    flex: 1;
    min-width: 0;
    background: #fff;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(19, 176, 165, 0.18);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 8px 0;
}

.footer-social a {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.footer-social a:hover {
    color: var(--brand);
    text-decoration: none;
}
