:root {
    color-scheme: light;
}

body {
    background: #f4efe5;
    color: #2c1f0f;
    line-height: 1.6;
    cursor: url("/fairytales/assets/cursors/ns.cur"), auto;
    margin: 0;
}

a,
button,
[role="button"],
.button {
    cursor: url("/fairytales/assets/cursors/ls.cur"), pointer;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.stories_title_text {
    margin-bottom: 8px;
}

.site_header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(44, 31, 15, 0.12);
    backdrop-filter: blur(6px);
}

.header_inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 4vw;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform 0.2s ease;
    user-select: none;
}

.brand a {
    transition: color 0.2s ease;
}

.brand:hover {
    transform: scale(1.04);
}

.brand a:hover {
    color: #7c3f00;
}

.brand img {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    user-select: none;
}

.nav_item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav > a,
.nav_link {
    color: #2c1f0f;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav > a:hover,
.nav > a:focus-visible,
.nav_link:hover,
.nav_link:focus-visible {
    text-decoration: underline;
    color: #7c3f00;
    transform: scale(1.08);
}

.nav_dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 10px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(44, 31, 15, 0.12);
    box-shadow: 0 16px 30px rgba(44, 31, 15, 0.12);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
    user-select: none;
}

.nav_item_dropdown:hover .nav_dropdown,
.nav_item_dropdown:focus-within .nav_dropdown,
.nav_item_dropdown.is-open .nav_dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav_dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: #2c1f0f;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav_dropdown a:hover,
.nav_dropdown a:focus-visible {
    background: rgba(247, 212, 136, 0.3);
    color: #7c3f00;
    transform: translateX(2px);
}

.container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 4vw;
}

.hero {
    padding: 64px 0 48px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;

}

.hero_tag {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    color: rgba(44, 31, 15, 0.65);
}

.hero_zoom {
    transition: transform 0.2s ease;
}

.hero_zoom:hover {
    transform: scale(1.01);
}

.hero_title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin: 12px 0;
}

.hero_text {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.hero_actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button_primary {
    background: #f7d488;
    color: #2c1f0f;
    border-color: #f7d488;
}

.button_outline {
    background: transparent;
    color: #2c1f0f;
    border-color: rgba(44, 31, 15, 0.3);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.hero_card {
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(44, 31, 15, 0.12);
    border: 1px solid rgba(44, 31, 15, 0.08);
}

.hero_card h2 {
    margin-bottom: 8px;
}

.story_grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 48px;
}

.story_card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(44, 31, 15, 0.08);
    box-shadow: 0 12px 24px rgba(44, 31, 15, 0.08);
    transition: transform 0.2s ease;
}

.story_card:hover {
    transform: scale(1.02);
}

.story_card h3 {
    margin-bottom: 8px;
}

.story_card a {
    color: #2c1f0f;
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.story_card a:hover,
.story_card a:focus-visible {
    text-decoration: underline;
    color: #7c3f00;
    transform: scale(1.04);
}

.spotlight_box {
    background: rgba(247, 212, 136, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.site_footer {
    margin-top: auto;
    padding: 20px 0 32px;
    border-top: 1px solid rgba(44, 31, 15, 0.12);
    color: rgba(44, 31, 15, 0.7);
    font-size: 0.95rem;
}

.page_header_title {
    text-decoration: none;
    color: black;
}

.nav_button {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hero,
    .spotlight {
        grid-template-columns: 1fr;
    }

    .story_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .header_inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav {
        width: 100%;
        gap: 12px 16px;
    }

    .nav_dropdown {
        min-width: 180px;
        max-width: calc(100vw - 32px);
    }
}
