/* Cinderella story page styling */

.story_page {
    padding: 44px 0 64px;
}

.story_hero,
.story_section {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(44, 31, 15, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(44, 31, 15, 0.08);
    backdrop-filter: blur(8px);
}

.story_hero {
    position: relative;
    overflow: hidden;
    padding: 40px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.9fr);
    gap: 28px;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(247, 212, 136, 0.35), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 229, 0.9));
}

.story_hero_content {
    position: relative;
    z-index: 1;
}

.story_hero_media {
    margin: 0;
    justify-self: end;
    width: min(100%, 320px);
}

.story_hero_media img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 1px solid rgba(44, 31, 15, 0.08);
    box-shadow: 0 18px 36px rgba(44, 31, 15, 0.18);
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.story_hero::after {
    content: "";
    position: absolute;
    inset: auto -16px -38px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 212, 136, 0.35), rgba(247, 212, 136, 0));
    pointer-events: none;
}

.story_kicker,
.section_label {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(44, 31, 15, 0.66);
}

.story_hero h1,
.section_heading h2 {
    margin: 0;
    line-height: 1.1;
    color: #2c1f0f;
}

.story_hero h1 {
    font-size: clamp(2.7rem, 6vw, 4.6rem);
    max-width: 11ch;
}

.story_lead {
    max-width: 68ch;
    margin: 18px 0 0;
    font-size: 1.12rem;
    color: rgba(44, 31, 15, 0.86);
}

.story_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.story_pills span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(247, 212, 136, 0.35);
    border: 1px solid rgba(124, 63, 0, 0.08);
    font-size: 0.95rem;
    font-weight: 700;
    color: #4e300d;
}

.story_section {
    padding: 30px 34px;
    margin-bottom: 18px;
}

.story_section p {
    margin-top: 0;
}

.story_section ul {
    margin: 0;
    padding-left: 20px;
}

.story_section li + li {
    margin-top: 8px;
}

.story_feature {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 236, 0.92));
}

.section_heading {
    margin-bottom: 18px;
}

.section_heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.callout_box,
.info_card,
.symbol_card,
.comparison_card {
    background: #fff;
    border: 1px solid rgba(44, 31, 15, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(44, 31, 15, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.callout_box:hover,
.info_card:hover,
.symbol_card:hover,
.comparison_card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 30px rgba(44, 31, 15, 0.1);
}

.callout_box {
    margin-top: 22px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(247, 212, 136, 0.26), rgba(255, 255, 255, 0.95));
}

.callout_box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.08rem;
}

.callout_box p {
    margin-bottom: 0;
}

.info_grid,
.symbol_grid,
.comparison_grid {
    display: grid;
    gap: 16px;
}

.info_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info_grid.two_column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.symbol_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.comparison_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info_card,
.symbol_card,
.comparison_card {
    padding: 20px;
}

.info_card h3,
.symbol_card h3,
.comparison_card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.card_meta {
    margin: -4px 0 12px;
    color: rgba(44, 31, 15, 0.68);
    font-size: 0.95rem;
    font-style: italic;
}

.symbol_card p,
.comparison_card p,
.info_card p,
.story_note {
    color: rgba(44, 31, 15, 0.82);
}

.story_note {
    margin: 16px 0 0;
    padding-left: 14px;
    border-left: 4px solid rgba(247, 212, 136, 0.9);
    font-style: italic;
}

@media (max-width: 980px) {
    .story_hero {
        grid-template-columns: 1fr;
    }

    .story_hero_media {
        justify-self: start;
        width: min(100%, 280px);
    }

    .symbol_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .story_page {
        padding: 26px 0 52px;
    }

    .story_hero,
    .story_section {
        padding: 22px;
        border-radius: 20px;
    }

    .story_hero h1 {
        max-width: none;
    }

    .info_grid,
    .info_grid.two_column,
    .comparison_grid,
    .symbol_grid {
        grid-template-columns: 1fr;
    }

    .story_pills {
        gap: 8px;
    }

    .story_pills span {
        font-size: 0.9rem;
    }

    .story_hero_media {
        width: min(100%, 100%);
    }
}
