@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=DM+Mono&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

:root {
    --ink: #163b36;
    --muted: #657773;
    --paper: #fbfaf4;
    --line: #d9e2dc;
    --coral: #e96c58;
    --gold: #ffbd63;
    --mint: #d8eee2;
    --shadow: 0 18px 50px #173f3920
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.6 'DM Sans',sans-serif
}

.live-learn-submit-processing {
    cursor: wait;
}

.live-learn-submit-processing::before {
    content: '';
    display: inline-block;
    width: .9em;
    height: .9em;
    margin-right: .45em;
    border: .14em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -.12em;
    animation: live-learn-submit-spin .7s linear infinite;
}

@keyframes live-learn-submit-spin {
    to { transform: rotate(360deg); }
}

a {
    color: inherit;
    text-decoration: none
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 5;
    width: min(1200px,94vw);
    margin: auto;
    padding: .55rem .7rem .55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffefae8;
    backdrop-filter: blur(14px);
    box-shadow: 0 7px 24px #173f3910;
    animation: drop .5s both
}

.brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    letter-spacing: -.04em
}

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

    .brand i, h1, h2, h3 {
        font-family: 'Playfair Display',serif
    }

    .brand i {
        font-weight: 600
    }

nav {
    display: flex;
    gap: .1rem;
    font-size: .82rem;
    font-weight: 700
}

    nav a {
        position: relative;
        padding: .48rem .72rem;
        border-radius: 10px;
        transition: .2s
    }

        nav a:after {
            content: '';
            position: absolute;
            left: 23%;
            right: 23%;
            bottom: 3px;
            height: 2px;
            background: var(--coral);
            transform: scaleX(0);
            transition: .2s
        }

        nav a.active:after, nav a:hover:after {
            transform: scaleX(1)
        }

        nav a:hover {
            background: #edf7f0;
            transform: translateY(-2px)
        }

.nav-studio {
    margin-left: .3rem;
    background: var(--ink);
    color: #fff !important
}

    .nav-studio:hover {
        background: var(--coral)
    }

.site-main, .site-footer {
    width: min(1160px,90vw);
    margin: auto
}

.site-footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font: .65rem 'DM Mono';
    letter-spacing: .1em
}

.eyebrow, .meta, .card-kicker {
    font: 500 .65rem 'DM Mono';
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #4f8875
}

.welcome-hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    padding: 4.5rem 2.5rem 3rem;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    background: linear-gradient(120deg,#eaf7ef,#fbfaf4 53%,#fff0d5)
}

.welcome-copy {
    z-index: 1;
    max-width: 610px
}

    .welcome-copy h1, .journal-hero h1, .article h1, .admin-hero h1, .about-hero h1 {
        font-size: clamp(3rem,6vw,6rem);
        line-height: .93;
        letter-spacing: -.075em;
        margin: .3rem 0 1.15rem
    }

    .welcome-copy em, .about-hero em {
        color: var(--coral)
    }

    .welcome-copy > p:not(.eyebrow) {
        color: #536863;
        max-width: 520px;
        font-size: 1.04rem
    }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.7rem
}

.hero-button, .primary-action {
    display: inline-flex;
    gap: .6rem;
    padding: .8rem 1rem;
    border: 0;
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: .84rem;
    transition: .2s
}

    .hero-button:hover, .primary-action:hover {
        background: var(--coral);
        transform: translateY(-3px)
    }

.text-button, .under-link {
    font-size: .8rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px
}

.hero-constellation {
    position: relative;
    height: 350px
}

.constellation-card {
    position: absolute;
    z-index: 2;
    top: 70px;
    right: 7%;
    width: 230px;
    padding: 1.25rem;
    border: 1px solid #fff;
    border-radius: 20px;
    background: #fffefac7;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    transform: rotate(4deg);
    animation: cardfloat 6s ease-in-out infinite
}

    .constellation-card span {
        display: block;
        font: .6rem 'DM Mono';
        color: #5a7b72;
        text-transform: uppercase
    }

    .constellation-card strong {
        display: block;
        margin-top: .7rem;
        font: 600 1.4rem/1.1 'Playfair Display'
    }

    .constellation-card i {
        color: var(--coral);
        font-style: normal
    }

.orbit {
    position: absolute;
    border: 1px solid #49806e44;
    border-radius: 50%
}

.orbit-one {
    width: 315px;
    height: 315px;
    top: 10px;
    left: 10%;
    animation: spin 22s linear infinite
}

.orbit-two {
    width: 210px;
    height: 210px;
    top: 62px;
    left: 26%;
    border-style: dashed;
    animation: spin 13s linear infinite reverse
}

.hero-sun {
    position: absolute;
    left: 28%;
    top: 28px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 20px #ffbd6330;
    animation: pulse 4s ease-in-out infinite
}

.path-strip {
    display: flex;
    gap: 1.7rem;
    align-items: center;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .81rem
}

    .path-strip p {
        margin: 0;
        color: var(--muted)
    }

    .path-strip a {
        font-weight: 700;
        transition: .2s
    }

        .path-strip a:hover {
            color: var(--coral)
        }

.home-section {
    padding: 5rem 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2rem
}

    .section-head h2, .letter-section h2 {
        font-size: clamp(2.2rem,4vw,3.9rem);
        line-height: .98;
        letter-spacing: -.065em;
        margin: .3rem 0
    }

.round-link {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    font-size: 1.4rem;
    transition: .2s
}

    .round-link:hover {
        transform: rotate(45deg)
    }

.home-post-grid, .home-topic-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem
}

.home-post {
    animation: rise .6s both
}

    .home-post:nth-child(2) {
        animation-delay: .1s
    }

    .home-post:nth-child(3) {
        animation-delay: .2s
    }

.home-post-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1.35;
    border-radius: 18px;
    background: linear-gradient(135deg,#d9eee3,#ffebbc);
    font: 700 2rem 'Playfair Display'
}

    .home-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .5s
    }

.home-post:hover img {
    transform: scale(1.06)
}

.home-post h3 {
    font-size: 1.7rem;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin: .35rem 0 .6rem
}

.home-post > p:not(.meta), .journal-card p:not(.meta) {
    color: var(--muted);
    font-size: .89rem
}

.under-link span {
    display: inline-block;
    transition: .2s
}

.under-link:hover span {
    transform: translateX(4px)
}

.topic-section {
    margin: 0 calc(50% - 50vw);
    padding-left: max(5vw,calc((100vw - 1160px)/2));
    padding-right: max(5vw,calc((100vw - 1160px)/2));
    background: var(--ink);
    color: #fff
}

    .topic-section .eyebrow {
        color: #a9d8bd
    }

.section-aside {
    max-width: 300px;
    color: #c2d8cf;
    font-size: .88rem
}

.home-topic {
    position: relative;
    min-height: 175px;
    padding: 1.25rem;
    border: 1px solid #ffffff30;
    border-radius: 18px;
    background: #ffffff0b;
    transition: .25s
}

    .home-topic:hover {
        transform: translateY(-5px);
        background: #ffffff18
    }

.topic-symbol {
    color: var(--gold);
    font-size: 1.4rem
}

.home-topic strong {
    display: block;
    margin-top: 2rem;
    font: 600 1.7rem 'Playfair Display'
}

.home-topic small {
    display: block;
    color: #b9d3c8;
    font: .62rem 'DM Mono';
    text-transform: uppercase
}

.home-topic i {
    position: absolute;
    right: 1.2rem;
    bottom: 1rem;
    font-style: normal
}

.letter-section {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 5rem;
    align-items: end;
    margin: 5rem 0;
    padding: 5rem 7%;
    border-radius: 28px;
    background: #ffe1bd
}

    .letter-section > p {
        margin: 0;
        color: #644f3b;
        font: 1.1rem/1.8 'Playfair Display'
    }

.journal-hero, .hero, .about-hero {
    padding: 5rem 0 2rem
}

    .journal-hero > p:last-child, .about-hero > p:last-child {
        max-width: 550px;
        color: var(--muted)
    }

.journal-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1.3rem;
    padding: 1rem 0 5rem
}

.journal-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1.1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffefa;
    transition: .25s
}

    .journal-card:hover, .post-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow)
    }

    .journal-card > a {
        overflow: hidden;
        border-radius: 12px;
        background: var(--mint)
    }

    .journal-card img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .journal-card h2 {
        font-size: 1.5rem;
        line-height: 1.1;
        margin: .35rem 0
    }

.post-grid, .tag-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.2rem;
    padding: 1rem 0 4rem
}

    .post-card, .tag-grid a {
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fffefa;
        transition: .25s
    }

        .post-card img {
            width: 100%;
            aspect-ratio: 1.45;
            object-fit: cover
        }

.post-card-body {
    padding: 1.2rem
}

.post-card h2 {
    font-size: 1.6rem;
    line-height: 1.1;
    margin: .4rem 0
}

.tag-grid a {
    min-height: 145px;
    padding: 1.3rem;
    background: linear-gradient(135deg,#dff3e8,#fff9e9)
}

.tag-grid strong {
    display: block;
    margin-top: 2.5rem;
    font: 600 1.7rem 'Playfair Display'
}

.tag-grid span {
    font: .65rem 'DM Mono';
    color: var(--muted)
}

.article {
    max-width: 760px;
    margin: auto;
    padding: 5rem 0
}

.article-image {
    width: 100%;
    max-height: 490px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow)
}

.article-content {
    font: 1.2rem/1.9 'Playfair Display';
    color: #25443f
}

    .article-content img {
        max-width: 100%;
        border-radius: 14px
    }

    .article-content a {
        color: var(--coral);
        text-decoration: underline
    }

.admin-hero {
    display: flex;
    justify-content: space-between;
    margin: 3.5rem 0 1.3rem;
    padding: 2.5rem 3rem;
    border-radius: 28px;
    background: var(--ink);
    color: #fff
}

    .admin-hero p:not(.eyebrow) {
        color: #cae0d6
    }

.admin-orbit {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    border: 1px solid #9fc7b5;
    border-radius: 50%;
    color: var(--gold);
    font-size: 2.6rem;
    animation: spin 14s linear infinite
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.3rem;
    padding-bottom: 4rem
}

.editor-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fffefa
}

    .editor-card label {
        display: block;
        margin-top: 1rem;
        font-size: .8rem;
        font-weight: 700
    }

    .editor-card input, .editor-card textarea {
        display: block;
        width: 100%;
        margin-top: .35rem;
        padding: .72rem;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fcfcf8;
        font: inherit;
        resize: vertical
    }

.two-up {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.secondary-action {
    margin-top: 1rem;
    padding: .75rem;
    border: 0;
    border-radius: 10px;
    background: var(--mint);
    font-weight: 700
}

.admin-side {
    display: grid;
    gap: 1.3rem
}

.studio-note {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 20px;
    background: #ffe9a8
}

    .studio-note p {
        margin: .2rem 0;
        color: #705b2f;
        font-size: .86rem
    }

.value-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    padding-bottom: 5rem
}

    .value-grid article {
        padding: 1.4rem;
        background: #fffefa;
        border-top: 3px solid var(--coral)
    }

    .value-grid h2 {
        font-size: 2rem;
        margin: .2rem 0
    }

.status {
    padding: 3rem 0;
    color: var(--muted)
}

.toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: .9rem 1.2rem;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow)
}

@keyframes drop {
    from {
        opacity: 0;
        transform: translateY(-18px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes cardfloat {
    50% {
        transform: rotate(1deg) translateY(-9px)
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.1)
    }
}

@media(max-width:760px) {
    .site-header {
        width: 96vw
    }

    .brand span {
        font-size: .82rem
    }

    nav a {
        padding: .4rem
    }

    .nav-studio {
        font-size: 0
    }

        .nav-studio b {
            font-size: 1rem
        }

    .welcome-hero {
        grid-template-columns: 1fr;
        padding: 3.5rem 1.3rem 2.4rem
    }

    .hero-constellation {
        height: 190px
    }

    .constellation-card {
        top: 10px
    }

    .orbit-one {
        width: 220px;
        height: 220px
    }

    .orbit-two {
        width: 150px;
        height: 150px;
        top: 42px
    }

    .hero-sun {
        left: 20%;
        top: 24px
    }

    .path-strip {
        flex-wrap: wrap;
        gap: .7rem 1.2rem
    }

        .path-strip p {
            width: 100%
        }

    .home-post-grid, .home-topic-grid, .letter-section, .value-grid, .post-grid, .tag-grid, .admin-grid {
        grid-template-columns: 1fr
    }

    .section-aside {
        display: none
    }

    .letter-section {
        gap: 1.5rem;
        margin: 3rem 0;
        padding: 3rem 1.5rem
    }

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

    .journal-card {
        grid-template-columns: 120px 1fr
    }

    .admin-hero {
        padding: 2rem
    }

    .admin-orbit {
        width: 70px;
        height: 70px;
        font-size: 1.7rem
    }

    .two-up {
        grid-template-columns: 1fr
    }
}
