        /* Top navigation bar */
        .site-topbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.85rem 1.5rem;
            background: rgba(42, 148, 133, 0.4);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .topbar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            max-width: 1000px;
            position: relative;
        }

        .topbar-brand {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            color: var(--text-light);
            font-weight: 400;
            font-size: 1.25rem;
        
            font-family: 'Caprasimo', cursive;
        }

        .topbar-brand img {
            width: 34px;
            height: 34px;
        }

        .topbar-left-links {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .topbar-right {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.5rem;
        }

        .topbar-link {
            color: var(--highlight);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            opacity: 0.85;
            transition: all 0.2s ease;
            padding: 0.4rem 0.85rem;
            border-radius: 6px;
        }

        .topbar-link:hover {
            opacity: 1;
            background: rgba(255,255,255,0.08);
        }

        .topbar-quiz-btn {
            color: #2A332E;
            background: #57BCAB;
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 600;
            padding: 0.45rem 1.1rem;
            border-radius: 8px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .topbar-quiz-btn:hover {
            background: #7dd3c0;
            transform: translateY(-1px);
        }

        .topbar-prompts-btn {
            white-space: nowrap;
            color: #2A332E;
            background: #57BCAB;
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 600;
            padding: 0.45rem 1.1rem;
            border-radius: 8px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .topbar-prompts-btn:hover {
            background: #7dd3c0;
            transform: translateY(-1px);
        }

        .topbar-hamburger {
            display: none;
            background: none;
            border: none;
            color: #fff;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.3rem;
        }

        .topbar-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(42, 148, 133, 0.95);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255,255,255,0.08);
            padding: 0.5rem 1rem;
            flex-direction: column;
            gap: 0.25rem;
        }

        .topbar-dropdown.open { display: flex; }
        .topbar-dropdown .topbar-prompts-btn,
        .topbar-dropdown .topbar-quiz-btn {
            display: inline-flex;
            width: auto;
            align-self: flex-start;
            font-size: 0.8rem;
            padding: 0.4rem 1rem;
            margin-top: 0.15rem;
        }

        .topbar-dropdown .topbar-link {
            display: block;
            padding: 0.6rem 0.75rem;
            border-radius: 8px;
        }

        @media (max-width: 768px) {
            .site-topbar { padding: 0.6rem 0.75rem; }
            .topbar-left-links .topbar-link { display: none; }
            .topbar-right { display: none; }
            .topbar-hamburger { display: block; }
            .topbar-brand { font-size: 0.95rem; }
            .topbar-brand img { width: 24px; height: 24px; }
            .topbar-left-links { flex: none; }
        }

        /* The phone fits the viewport; its postcard content scrolls inside it. */
        .postcard-modal {
            width: min(520px, calc(100% - 2rem));
            height: calc(100vh - 2rem);
            height: min(800px, calc(100dvh - 2rem));
            max-height: calc(100vh - 2rem);
            max-height: calc(100dvh - 2rem);
            margin: auto;
            padding: 0;
            overflow: hidden;
        }

        .postcard-modal[open] {
            display: grid;
            grid-template-rows: auto minmax(0, 1fr) auto;
        }

        .postcard-modal::backdrop {
            background: #142d24b3;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .postcard-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            padding: .7rem 1rem;
            border-bottom: 1px solid #d8dfcf;
        }

        .postcard-modal-header h2 {
            margin: 0;
            font-size: 1.2rem;
            line-height: 1.3;
        }

        .postcard-modal-close {
            flex-shrink: 0;
            border: none;
            font-size: 1.3rem;
            line-height: 1;
            cursor: pointer;
        }

        .postcard-modal-content {
            display: grid;
            grid-template-rows: minmax(0, 1fr);
            min-height: 0;
            padding: 1rem;
        }

        .postcard-scroll {
            grid-row: 2;
            min-height: 0;
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-width: thin;
            scrollbar-color: #a5ad96 #f8f3e8;
        }

        .postcard-scroll:focus-visible { outline-offset: -3px; }

        .preview-phone-screen .postcard-scroll img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
        }

        .postcard-scroll img + img { margin-top: .75rem; }
        .postcard-preview-hint { margin: 0; padding: .5rem 1rem 1rem; color: #52665a; font-size: .78rem; line-height: 1.5; text-align: center; }

        /* Keep the corrected signature as text beside the original letter asset. */
        .postcard-modal-signature {
            color: #5a5248;
            font-family: 'Caveat', cursive;
            font-size: 1.4rem;
            font-weight: 600;
            line-height: 1.2;
            text-align: center;
            padding: .25rem 0 .75rem;
            margin: 0;
        }

/* The homepage shares the warm paper and forest palette of the journal. */
html { background: #f6f3ea; }
body {
    --home-ink: #234538;
    --home-muted: #52665a;
    display: block;
    height: auto;
    min-height: 100%;
    overflow-y: visible;
    padding: 0;
    background: #f6f3ea;
    color: var(--home-ink);
}
body :focus-visible { outline: 3px solid #a85c2f; outline-offset: 5px; }
[id] { scroll-margin-top: 90px; }
.home-skip { position: fixed; top: -80px; left: 1rem; z-index: 1300; padding: .8rem 1rem; background: white; color: #234538; border-radius: 10px; }
.home-skip:focus { top: 1rem; }
.home-page { width: min(1184px, 100%); margin: 0 auto; padding: 126px 32px 0; }
.home-hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: 4rem; align-items: center; padding-bottom: 54px; }
.home-eyebrow { display: block; color: #637756; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.25rem; }
.home-title { color: var(--home-ink); font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: clamp(2.8rem, 4.7vw, 4.3rem); letter-spacing: -.045em; line-height: 1.06; margin: 0 0 1.5rem; }
.home-title em { display: block; color: #57754e; font-weight: 400; }
.home-intro { color: var(--home-muted); font-size: 1.05rem; line-height: 1.85; max-width: 440px; margin: 0 0 1.6rem; }
.home-intro p { margin: 0; }
.home-intro .home-tagline { margin-top: .65rem; }
.home-intro strong { color: var(--home-ink); font-weight: 600; }
.home-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; align-items: center; }
.home-primary { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 50px; padding: .9rem 1.3rem; background: #294f3e; color: #fffbed; border-radius: 30px; font-size: .9rem; font-weight: 700; text-decoration: none; transition: transform 180ms ease, background 180ms ease; }
.home-primary:hover { background: #39654b; transform: translateY(-2px); }
.home-downloads { margin-top: 2rem; }
.home-downloads p { color: #677561; font-size: .75rem; margin-bottom: .65rem; }
.home-store-links { display: flex; align-items: center; gap: .65rem; }
.home-store-links a { display: inline-flex; align-items: center; min-height: 44px; }
.home-store-links img { display: block; width: auto; height: 40px; }
.home-store-links .play-badge { height: 54px; margin: -7px 0; }

/* A small window into the companion's world. */
.home-world-figure { margin: 0; min-width: 0; }
.home-world { position: relative; aspect-ratio: 1 / 1.02; isolation: isolate; border-radius: 46% 46% 28px 28px; background: #bdd8ce; box-shadow: inset 0 0 0 1px #ffffff66, 0 20px 50px #3c554014; }
.world-scenery { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.world-landscape { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 150%; max-width: none; height: auto; pointer-events: none; }
.home-world::before { display: none; content: ''; position: absolute; width: 74px; height: 21px; border-radius: 50%; background: #fbf1d9; top: 16%; left: 25%; opacity: .8; box-shadow: 25px 3px 0 -2px #fbf1d9; }
.home-world .mascot-wrapper { position: absolute; left: 12%; bottom: 7%; width: 80%; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 2; border-radius: 45%; }
.mascot-hero { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 12px #163e3726); }
.mascot-hero.is-welcoming { animation: home-float 2.8s ease-in-out; }
.speech-bubble { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); width: 48%; max-width: 190px; padding: .7rem .85rem; border-radius: 18px 18px 18px 4px; background: #fffdf6; color: #365243; font-size: .82rem; line-height: 1.6; box-shadow: 0 8px 24px #354e3420; z-index: 3; pointer-events: none; }
.speech-bubble::after { content: ''; position: absolute; bottom: -10px; left: calc(50% - 9px); border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 13px solid #fffdf6; }
.world-caption { margin: 1rem 0 0; width: 100%; text-align: center; font-size: .8rem; font-weight: 600; color: #52665a; line-height: 1.7; }
@keyframes home-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes mascot-jump { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-23px) rotate(-4deg); } 70% { transform: translateY(-5px) rotate(2deg); } }
.mascot-hero.jumping { animation: mascot-jump .5s ease-out; }
.home-maker { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: .65rem; border-top: 1px solid #dadfcd; border-bottom: 1px solid #dadfcd; padding: 1.25rem 0; font-size: .8rem; color: #5b705a; }
.home-maker-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1rem; }
.home-maker p { margin: 0; line-height: 1.6; }
.home-maker img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.home-maker a { color: #365841; font-weight: 600; text-underline-offset: 4px; }

.home-features { padding: 4.5rem 0 3rem; }
.home-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2rem; }
.home-section-heading .home-eyebrow { margin-bottom: .8rem; }
.home-section-heading h2, .home-wandering h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; color: var(--home-ink); }
.home-section-heading > p { color: var(--home-muted); max-width: 260px; font-size: .9rem; line-height: 1.75; }
.home-feature-layout { display: grid; grid-template-columns: 248px minmax(0,1fr); gap: 1.5rem; align-items: start; }
.home-app-preview { margin: 0; padding: 1.25rem; background: #e8eddf; border: 1px solid #d9e0d0; border-radius: 24px; text-align: center; }
.app-preview-link { display: block; color: var(--home-ink); text-decoration: none; border-radius: 18px; }
.app-preview-link img { display: block; width: 100%; max-width: 194px; height: auto; margin: 0 auto; border: 5px solid #233d34; border-radius: 22px; box-shadow: 0 8px 20px #233d3414; }
.app-preview-action { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; font-size: .78rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.app-preview-link:hover .app-preview-action { text-decoration-thickness: 2px; }
.home-app-preview figcaption { display: grid; gap: .35rem; color: var(--home-muted); font-size: .8rem; line-height: 1.6; }
.home-app-preview figcaption strong { color: var(--home-ink); font-size: .9rem; font-weight: 600; }
.feature-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
.feature-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.3rem; border: 1px solid #dbe0d2; background: #fffdf7; border-radius: 20px; color: var(--home-ink); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.feature-card:hover, .feature-card:focus-visible { transform: translateY(-3px); border-color: #91a382; box-shadow: 0 10px 28px #3451380c; }
.feature-icon-img { display: block; width: 36px; height: 36px; object-fit: contain; }
.feature-info { display: flex; flex-direction: column; gap: .45rem; }
.feature-name { font-size: 1rem; line-height: 1.4; font-weight: 700; }
.feature-desc { font-size: .88rem; line-height: 1.65; color: var(--home-muted); }
.home-arrow-icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.feature-arrow { position: absolute; top: 1.2rem; right: 1.2rem; color: #657f58; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .feature-arrow { transition: transform 180ms ease; }
    .feature-card:is(:hover,:focus-visible) .feature-arrow { transform: translate(2px,-2px); }
}
.companion-card { background: #eee8d5; border-color: #ddd6bd; }
.companion-card .feature-icon-img { width: 42px; object-position: left; }
.mood-card { background: #eaf0e4; }
.mood-card .feature-info { margin-bottom: auto; }
.mood-example { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: #214d40; }
.mood-inputs, .mood-result { display: inline-flex; align-items: center; gap: .35rem; }
.mood-example svg { display: block; width: 34px; height: 34px; flex-shrink: 0; }
.mood-symbol { font-size: 1rem; font-weight: 600; }
.mood-label { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.home-app-dialog { width: min(520px,calc(100% - 2rem)); height: calc(100vh - 2rem); height: min(900px,calc(100dvh - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 1px solid #d8dfcf; border-radius: 22px; background: #f6f3ea; color: var(--home-ink); box-shadow: 0 24px 80px #162d3655; overflow: hidden; }
.home-app-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.home-app-dialog::backdrop { background: #142d24b3; }
.app-preview-stage { display: grid; min-height: 0; padding: 1rem; background: #e8eddf; }
/* Size the decorative phone to both dimensions of the available dialog space. */
.preview-device-stage { container-type: size; display: grid; place-items: center; min-width: 0; min-height: 0; }
.preview-phone { --phone-ratio: .48; width: min(100cqw,calc(100cqh * var(--phone-ratio))); height: min(100cqh,calc(100cqw / var(--phone-ratio))); min-width: 0; min-height: 0; aspect-ratio: var(--phone-ratio); box-sizing: border-box; padding: 5px; border: 2px solid #686e68; border-radius: 13% / 6.24%; background: #171b19; box-shadow: 0 8px 20px #18291f24, inset 0 0 0 1px #a0a69d; }
.preview-phone-screen { display: grid; grid-template-rows: clamp(10px,3cqh,22px) minmax(0,1fr) clamp(8px,2cqh,14px); width: 100%; height: 100%; min-height: 0; border-radius: inherit; overflow: hidden; background: #13201b; }
.preview-phone-screen::before { content: ''; grid-row: 1; align-self: center; justify-self: center; width: 28%; height: 55%; border-radius: 50px; background: #050706; box-shadow: inset 0 0 0 1px #ffffff0c; }
.preview-phone-screen::after { content: ''; grid-row: 3; align-self: center; justify-self: center; width: 35%; height: 3px; border-radius: 4px; background: #e3e8df; }
.preview-phone-screen img { grid-row: 2; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.preview-phone--paper .preview-phone-screen { background: #f8f3e8; }
.preview-phone--paper .preview-phone-screen::after { background: #77796f; }
.app-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: #f6f3ea; border-bottom: 1px solid #d8dfcf; }
.app-preview-header h2 { font: 500 1.4rem/1.3 'Playfair Display', Georgia, serif; margin: 0; }
.app-preview-close { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: #e2e9d9; color: var(--home-ink); font-size: 1.6rem; cursor: pointer; }
.home-wandering { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; background: #294e3e; color: #fff8e7; border-radius: 26px; padding: 3rem; overflow: hidden; }
.home-wandering .home-eyebrow { color: #d5d8b2; margin-bottom: .85rem; }
.home-wandering h2 { color: #fff8e7; margin-bottom: 1rem; }
.home-wandering p { max-width: 460px; color: #e2e8d5; font-size: .95rem; line-height: 1.8; margin-bottom: 1.4rem; }
.wandering-card { display: inline-flex; align-items: center; gap: .8rem; border: 0; border-radius: 30px; padding: .85rem 1.2rem; min-height: 46px; background: #f4e1bc; color: #2b4b37; cursor: pointer; font: 700 .88rem 'Raleway', sans-serif; transition: transform 180ms; }
.wandering-card:hover { transform: translateY(-2px); }
.wandering-postcard { display: block; width: min(100%,290px); margin: 0 auto; transform: rotate(5deg); border: 8px solid #fff8e8; border-radius: 6px; box-shadow: 0 16px 30px #12251a44; }
.home-explore { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 3rem 0 4rem; }
.home-explore a { padding: 1.8rem; border: 1px solid #dadfce; border-radius: 20px; color: var(--home-ink); text-decoration: none; transition: background 180ms; }
.home-explore a:hover { background: #eaf0e2; }
.home-explore .home-eyebrow { margin-bottom: .7rem; }
.home-explore h2 { font: 500 1.65rem/1.3 'Playfair Display', Georgia, serif; letter-spacing: -.02em; margin-bottom: .6rem; }
.home-explore p { font-size: .88rem; line-height: 1.75; color: var(--home-muted); }
.home-explore .explore-link { display: block; font-size: .85rem; font-weight: 700; margin-top: 1.25rem; }
.home-footer { padding: 1.5rem 0 2rem; border-top: 1px solid #dadfce; color: #67745f; font-size: .75rem; line-height: 1.8; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .6rem; }
.home-footer a { color: #4b634d; text-decoration: none; }
.home-footer a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
    .home-page { padding-top: 104px; }
    .home-hero { gap: 2rem; }
    .home-title { font-size: 3.1rem; }
    .home-intro { font-size: .95rem; }
    .speech-bubble { font-size: .8rem; padding: .8rem; }
    .home-feature-layout { grid-template-columns: 210px minmax(0,1fr); gap: 1rem; }
    .home-app-preview { padding: 1rem; }
    .feature-card { padding: 1.1rem; }
    .feature-arrow { top: 1rem; right: 1rem; }
    .mood-card .feature-info { padding-right: 1rem; }
}
@media (max-width: 700px) {
    .home-page { padding: 82px 22px 0; }
    .home-hero { --mobile-world-height: clamp(128px,calc(100svh - 485px),240px); grid-template-columns: minmax(0,1fr); grid-template-areas: 'heading' 'world' 'intro' 'actions' 'downloads'; gap: clamp(.5rem,1.6svh,.75rem); min-height: calc(100svh - 82px); align-content: start; padding-bottom: 1.1rem; }
    .home-copy { display: contents; }
    .home-heading { grid-area: heading; text-align: center; }
    .home-heading .home-eyebrow { display: none; }
    .home-title { font-size: clamp(1.75rem,8.8vw,2.6rem); line-height: 1.08; margin-bottom: 0; overflow-wrap: anywhere; }
    .home-intro { grid-area: intro; max-width: none; font-size: .97rem; line-height: 1.6; margin: 0; }
    .home-actions { grid-area: actions; justify-content: center; }
    .home-eyebrow { font-size: .65rem; margin-bottom: 1rem; }
    .home-downloads { grid-area: downloads; margin-top: 0; text-align: center; }
    .home-downloads p { font-size: .7rem; margin-bottom: .4rem; }
    .home-store-links { justify-content: center; }
    .home-world-figure { grid-area: world; }
    .home-world { width: 100%; max-width: 360px; height: var(--mobile-world-height); margin: 0 auto; aspect-ratio: auto; border-radius: 50% 50% 20px 20px; }
    .home-world .world-landscape { width: 130%; }
    .home-world .mascot-wrapper { width: calc(var(--mobile-world-height) * .92); left: 52%; bottom: 0; transform: translateX(-50%); }
    .speech-bubble { top: 6px; width: max-content; max-width: 80%; font-size: .72rem; line-height: 1.4; padding: .35rem .75rem; text-align: center; border-radius: 12px; }
    .speech-reassurance { display: none; }
    .speech-bubble::after { bottom: -6px; left: calc(50% - 6px); border-left-width: 6px; border-right-width: 6px; border-top-width: 8px; }
    .world-caption { display: none; }
    .home-maker { align-items: flex-start; font-size: .75rem; }
    .home-maker-copy { flex-direction: column; align-items: flex-start; }
    .home-features { padding-top: 3rem; }
    .home-section-heading { display: block; margin-bottom: 1.5rem; }
    .home-section-heading > p { max-width: none; margin-top: .8rem; }
    .home-feature-layout { grid-template-columns: 1fr; gap: 1rem; }
    .home-app-preview { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 1.25rem; align-items: center; text-align: left; padding: 1.15rem; }
    .home-app-preview figcaption strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; line-height: 1.3; }
    .feature-cards { grid-template-columns: 1fr; gap: .65rem; }
    .feature-card { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: .5rem .85rem; padding: 1.1rem; border-radius: 16px; align-items: start; }
    .feature-icon-img, .companion-card .feature-icon-img { grid-column: 1; width: 36px; height: 36px; }
    .feature-info { grid-column: 2; padding-right: 1rem; gap: .25rem; }
    .mood-card .feature-info, .mood-example { grid-column: 1 / -1; }
    .mood-example svg { width: 27px; height: 27px; }
    .home-wandering { grid-template-columns: 1fr; padding: 1.8rem; gap: 2rem; }
    .wandering-postcard { width: 75%; }
    .home-explore { grid-template-columns: 1fr; padding-bottom: 2.5rem; }
}
@media (max-width: 480px) {
    .home-actions { gap: .7rem 1rem; }
    .home-primary { font-size: .83rem; }
}
/* Make room for the complete introduction when browser controls leave less height. */
@media (max-width: 700px) and (max-height: 650px) {
    .home-page { padding-top: 76px; }
    .home-hero { min-height: calc(100svh - 76px); gap: .5rem; padding-bottom: 1rem; }
    .home-intro { font-size: .94rem; line-height: 1.55; }
    .home-primary { min-height: 44px; padding: .75rem 1.15rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Match the navigation used by the refreshed journal and library. */
.site-topbar { background: rgba(28,69,57,.97); border-bottom-color: #456659; }
.topbar-dropdown { background: #1c4539; }
.topbar-hamburger[aria-expanded="true"] .fa-bars::before { content: '\f00d'; }
.topbar-link { color: #f1f5eb; opacity: 1; }
.topbar-prompts-btn, .topbar-quiz-btn { background: #deead7; color: #244c3b; border-radius: 30px; }
.world-landscape { mask-image: linear-gradient(to bottom, transparent, #000 32px); }
