/* assets/css/style.css */
/* ------------------------
   GLOBAL RESET / VARIABLES
   ------------------------ */

:root {
    --color-bg: #f5f7ff;
    --color-page: #ffffff;
    --color-primary: #28a745;
    --color-primary-dark: #1e7a34;
    --color-accent: #ffc107;
    --color-accent-dark: #e0a800;
    --color-text: #222222;
    --color-muted: #6c757d;
    --color-border: #e2e6ea;
    --color-header: #161b33;
    --color-footer: #161b33;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-pill: 999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.12);

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ------------------------
   LAYOUT HELPERS
   ------------------------ */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-main {
    margin-top: 80px;
}

.section {
    padding: 4rem 0;
}

.section--light {
    background: #eef3ff;
}

.section--narrow {
    padding: 3.5rem 0;
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.subheading {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.section-intro {
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto 2rem;
    color: var(--color-muted);
}

.section-outro {
    margin-top: 1.5rem;
    max-width: 700px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.align-center {
    text-align: center;
}

.center {
    text-align: center;
}

.card {
    background: var(--color-page);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-soft);
    margin: 2.5rem 0;
}

/* Two-column blocks (auto stacks on mobile) */

.about-two-column,
.grid-2 {
    display: grid;
    grid-template-columns: 3fr 2.5fr;
    gap: 2rem;
    align-items: flex-start;
}

.creators-block {
    margin-top: 3rem;
}

/* ------------------------
   HEADER / NAV
   ------------------------ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(90deg, #161b33, #23304d);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.site-header--scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffe082, #ffa000);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #161b33;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.logo-text {
    display: inline-block;
}

/* Nav links */

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.site-nav a {
    text-decoration: none;
    color: #e4e7ff;
    font-size: 0.96rem;
    font-weight: 500;
    padding: 0.3rem 0;
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transition: width 0.2s ease-out;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

/* Hamburger */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    margin: 4px 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------
   HERO
   ------------------------ */

.hero {
    padding-top: 110px;
    padding-bottom: 4rem;
}

.hero--home {
    background: radial-gradient(circle at top left, #ffe082 0, #ffca28 25%, #ff7043 60%, #f5f7ff 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 540px;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.98rem;
    margin-top: 0.8rem;
}

.launch-countdown {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #1b3a24;
    font-weight: 600;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #4b2c0d;
}

.hero-art {
    text-align: center;
}

.hero-art img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ------------------------
   BUTTONS
   ------------------------ */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #111111;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(1.02);
}

.cta-button--secondary {
    background: #ffffff;
    color: #222222;
    border: 2px solid var(--color-primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.cta-button--disabled {
    background: #d1d5db;
    color: #4b5563;
    border: none;
    cursor: pointer; /* still clickable to go to contact section */
}

/* ------------------------
   BOOK CARDS
   ------------------------ */

.series-strip {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.series-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-muted);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.book-card {
    background: var(--color-page);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.5rem 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.book-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: rgba(22, 27, 51, 0.9);
    color: #fffdea;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
}

.book-cover-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-md);
    margin-bottom: 0.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.book-meta {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.book-tagline {
    font-size: 0.98rem;
}

.book-list {
    font-size: 0.95rem;
    margin: 0.4rem 0 0.9rem;
    padding-left: 1.1rem;
}

.book-list li {
    margin-bottom: 0.25rem;
}

.book-coming-soon {
    opacity: 0.96;
}

/* ------------------------
   QUOTES / NEWSLETTER
   ------------------------ */

.quote-list {
    list-style: none;
    max-width: 700px;
    margin: 2.2rem auto 2.5rem;
}

.quote-list li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    position: relative;
    padding-left: 1.2rem;
}

.quote-list li::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -0.3rem;
    font-size: 1.6rem;
    color: var(--color-accent-dark);
}

.newsletter-callout {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.newsletter-callout p {
    margin-bottom: 0.8rem;
}

.newsletter-note {
    font-size: 0.87rem;
    color: var(--color-muted);
}

/* ------------------------
   CHARACTERS
   ------------------------ */

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.8rem;
    margin-top: 2.2rem;
}

.character-card {
    background: var(--color-page);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.3rem 1.7rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s ease-out;
}

.character-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 5px solid var(--color-accent);
}

.character-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.character-card p {
    font-size: 0.96rem;
    color: var(--color-muted);
}

.character-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    background: #fdfbf5;
}

.character-card--placeholder {
    opacity: 0.85;
}

.detail-section {
    padding: 3.5rem 0;
    background: #f8f9fa;
}

.detail-inner {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.detail-inner img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid var(--color-accent);
    box-shadow: var(--shadow-soft);
}

.fun-fact {
    margin-top: 1.4rem;
    padding: 1.1rem 1.2rem;
    background: #e9ecef;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--color-muted);
}

.detail-cta {
    margin-top: 1.2rem;
}

/* ------------------------
   CHECKLIST / LISTS
   ------------------------ */

.checklist {
    list-style: none;
    font-size: 1rem;
}

.checklist li {
    margin-bottom: 0.6rem;
    padding-left: 1.7rem;
    position: relative;
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.bullet-list {
    padding-left: 1.2rem;
    font-size: 0.98rem;
}

.bullet-list li {
    margin-bottom: 0.4rem;
}

/* ------------------------
   FORMS
   ------------------------ */

.form {
    margin-top: 1.3rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font: inherit;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: #ffffff;
}

.form-field textarea {
    resize: vertical;
}

.form-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.form-success {
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    margin-top: 0.6rem;
    min-height: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.form-success--visible {
    opacity: 1;
}

.small {
    font-size: 0.87rem;
    color: var(--color-muted);
}

.newsletter-panel {
    background: var(--color-page);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
}

/* ------------------------
   QUIZ
   ------------------------ */

.quiz-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.quiz-question {
    margin: 1.6rem 0;
    padding: 1.2rem 1.3rem;
    background: #e9ecef;
    border-radius: var(--radius-md);
}

.quiz-button {
    display: inline-flex;
    margin: 0.4rem 0.4rem 0.2rem 0;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--color-accent);
    color: #333333;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.quiz-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
    background: var(--color-accent-dark);
}

.quiz-button--selected {
    background: var(--color-primary);
    color: #ffffff;
}

.quiz-actions {
    margin-top: 1.2rem;
    text-align: center;
}

#quiz-result {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    display: none;
}

/* ------------------------
   FOOTER
   ------------------------ */

.site-footer {
    background: var(--color-footer);
    color: #ffffff;
    margin-top: 3rem;
    padding: 1.8rem 0 2rem;
}

.footer-inner {
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--color-accent);
    text-decoration: none;
    margin: 0 0.4rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-tagline {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #cbd5f5;
}

/* ------------------------
   RESPONSIVE
   ------------------------ */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        order: 2;
    }

    .hero-copy h1 {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-art {
        order: 1;
    }

    .about-two-column,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .detail-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .detail-inner img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        right: 0;
        top: 72px;
        background: #161b33;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1.5rem 1.2rem;
        gap: 0.6rem;
    }

    .site-nav.is-open {
        max-height: 260px;
    }

    .book-cover-img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .card {
        padding: 1.6rem 1.4rem;
    }

    .book-card {
        padding: 1.3rem 1.1rem 1.5rem;
    }
}
