:root {
    --sky: #87CEEB;
    --cream: #FFFBDE;
    --light-1: #91C8E4;
    --light-2: #749BC2;
    --light-3: #4682A9;
    --white: #FFFFFF;
    --gray: #D3D3D3;
    --night: #0B0C2A;

    --bg: var(--cream);
    --text: #0b2239;
    --card: #fff;
    --muted: #4c6072;
    --accent: var(--light-3);
    --shadow: rgba(0, 0, 0, .1);
}

.dark {
    --bg: var(--night);
    --text: #e7edf6;
    --card: #101233;
    --muted: #a8b3c7;
    --accent: var(--light-1);
    --shadow: rgba(0, 0, 0, .4);
}

body.dark-mode,
body.dark {
    cursor: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">\
<text y="18" font-size="18" fill="white">✈</text></svg>') 2 2, auto !important;
}

body.dark-mode a,
body.dark-mode button,
body.dark-mode [role="button"],
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark a,
body.dark button,
body.dark [role="button"],
body.dark input,
body.dark select,
body.dark textarea {
    cursor: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">\
<text y="18" font-size="18" fill="white">✈</text></svg>') 2 2, auto !important;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 70% -100px, var(--sky), transparent 60%),
        var(--bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><text y="18" font-size="18">✈</text></svg>') 2 2, auto;
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(0deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .5)), var(--bg);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--text)
}

.brand-icon {
    width: 28px;
    height: 28px
}

.brand-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: .3px;
}

.site-nav {
    position: relative
}

.hamburger {
    display: none;
    background: none;
    border: 0;
    padding: .25rem .5rem;
    cursor: pointer
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 2px;
    transition: .2s
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    padding: .4rem .6rem;
    border-radius: 8px;
    transition: transform .2s, background .2s
}

.nav-menu a:hover {
    background: var(--light-1);
    transform: translateY(-1px)
}

.nav-menu a.active {
    background: var(--light-2);
    color: #fff
}

.btn {
    border: 0;
    padding: .6rem .9rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer
}

.btn.small {
    padding: .35rem .6rem;
    font-size: .9rem
}

.btn-primary {
    background: var(--light-3);
    color: #fff;
    box-shadow: 0 8px 24px var(--shadow)
}

.btn-ghost {
    background: transparent;
    border: 2px dashed var(--accent);
    color: var(--accent)
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent)
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0
}

.hero-text .lead {
    color: var(--muted);
    margin-top: .25rem
}

.hero-img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px var(--shadow));
}

.hero-cta {
    display: flex;
    gap: .75rem;
    margin-top: 1rem
}

.teaser {
    margin-top: .75rem;
    background: var(--card);
    border: 1px dashed var(--light-2);
    padding: .75rem 1rem;
    border-radius: 12px
}

.collapsed {
    display: none
}

.fun-planes-area {
    position: relative;
    min-height: 180px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(135, 206, 235, .35), transparent 80%), var(--card);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .05)
}

.fun-plane {
    position: absolute;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px var(--shadow);
    cursor: pointer;
    transition: transform .15s
}

.fun-plane:hover {
    transform: scale(1.08)
}

.fun-plane img {
    width: 22px;
    height: 22px
}

.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    background: var(--card);
    color: var(--text);
    border-radius: 12px;
    padding: .7rem 1rem;
    box-shadow: 0 14px 24px var(--shadow);
    display: none;
    z-index: 2000;
    max-width: min(90vw, 600px)
}

.toast.show {
    display: block;
    animation: toastIn .25s ease-out
}

.section {
    padding: 2.2rem 0
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.section-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 1.1rem
}

.post-grid.small {
    grid-template-columns: repeat(3, 1fr)
}

.post-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 1rem 1.2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-content h3 {
    font-family: "Montserrat", sans-serif;
    margin: 0 0 .6rem;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--text);
}

.post-excerpt {
    flex: 1;
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 1rem;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-meta {
    font-size: .8rem;
    color: var(--muted);
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: .5rem;
    margin-top: .5rem;
}

.post-thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block
}

.post-body {
    padding: .9rem 1rem
}

.post-title {
    margin: .2rem 0 .3rem;
    font-weight: 700
}

.link-arrow {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700
}

.post-view {
    max-width: 820px;
    margin: auto
}

.post-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 28px var(--shadow)
}

.post-header .meta {
    color: var(--muted)
}

.content p {
    margin: 1rem 0
}

.content img {
    width: 100%;
    border-radius: 12px;
    margin: .6rem 0
}

.quiz {
    background: var(--card);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 20px var(--shadow)
}

.quiz .q {
    margin-bottom: 1rem
}

.quiz .choices {
    list-style: none;
    padding: 0;
    margin: .5rem 0
}

.quiz .choices li {
    margin: .2rem 0
}

.quiz-feedback {
    font-weight: 700;
    margin-top: .6rem
}

.mini-quiz {
    margin: 0.8rem;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.mini-quiz .quiz-feedback {
    margin-top: 0.4rem;
    font-weight: 600;
}

.slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 12px 24px var(--shadow)
}

.slide {
    display: none;
    width: 100%;
    height: 360px;
    object-fit: cover
}

.slide.active {
    display: block
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer
}

.slide-prev {
    left: 8px
}

.slide-next {
    right: 8px
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: none;
    border: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 10px 20px var(--shadow);
    background: var(--light-3);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    z-index: 1200
}

.back-to-top.show {
    display: block
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: var(--bg)
}

.site-footer .container {
    padding: 1.1rem 0;
    text-align: center;
    font-weight: 600
}

#entry-plane {
    position: fixed;
    left: -10vw;
    top: 20vh;
    width: 60px;
    height: 60px;
    z-index: 1500;
    pointer-events: none;
    opacity: 0;
}

#entry-plane img {
    width: 100%;
    height: 100%
}

.dark body,
body.dark {
    background: var(--night)
}

.star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: .8;
    pointer-events: none
}

.btn:hover {
    filter: brightness(1.05)
}

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

    .post-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 640px) {
    .nav-menu {
        position: absolute;
        right: 0;
        top: 52px;
        background: var(--card);
        border: 1px solid rgba(0, 0, 0, .08);
        padding: .7rem;
        border-radius: 12px;
        display: none;
        flex-direction: column;
        gap: .5rem
    }

    .nav-menu.open {
        display: flex
    }

    .hamburger {
        display: block
    }

    .post-grid {
        grid-template-columns: 1fr
    }
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.post-card {
    background: var(--card-bg, #fff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.post-card p {
    font-size: 0.95rem;
    color: #555;
}

.post-meta {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #888;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.fun-plane {
    position: absolute;
    width: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fun-plane:hover {
    transform: scale(1.2);
}

body.dark .post-content h3,
body.dark-mode .post-content h3 {
    color: var(--light-1);
}

body.dark .post-content h3:hover,
body.dark-mode .post-content h3:hover {
    color: var(--sky);
}
