/* Editorial theme and shared marketing chrome. Reading pages opt in with home-page.
   Auth and the showcase UI stay in landing.css; reading content stays in pages.css. */
.home-page {
    --home-paper: #eee8dc;
    --home-ink: #28222e;
    --home-muted: #aaa3ad;
    --home-lilac: #c8b4df;
    --home-rule: rgba(238, 232, 220, 0.17);
    --home-focus: #c9a6ff;
}

body.home-page {
    background: #100e15;
}

.home-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 28px;
}

.home-page main > section,
.home-page #top {
    scroll-margin-top: calc(100px + var(--safe-top, 0px));
}

.home-page .skip-link {
    position: fixed;
    top: 12px;
    left: 20px;
    z-index: 110;
    padding: 12px 20px;
    background: var(--home-paper);
    color: var(--home-ink);
    transform: translateY(-160%);
}

.home-page .skip-link:focus {
    transform: none;
}

.home-button,
.home-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 48px;
    font: 600 0.88rem/1.4 var(--font-body);
    cursor: pointer;
}

.home-button {
    padding: 15px 22px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: var(--home-lilac);
    color: #211829;
    transition: background 180ms ease, transform 180ms ease;
}

.home-button:hover {
    background: #dfceef;
}

.home-button > [aria-hidden] {
    font-size: 1.3rem;
    line-height: 1;
}

.home-text-link {
    gap: 14px;
    width: fit-content;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    transition: color 180ms ease;
}

.home-text-link:hover {
    color: var(--home-lilac);
}

.home-page :is(.home-button, .home-text-link, .character-cover, .nav-toggle, .nav-links a, .nav-logo a, summary):focus-visible {
    outline: 2px solid var(--home-focus);
    outline-offset: 5px;
}

/* An open masthead instead of a floating pill. */
.home-page .navbar,
.home-page .navbar.scrolled {
    top: calc(12px + var(--safe-top, 0px));
    max-width: 1144px;
    width: calc(100% - 56px - var(--safe-left, 0px) - var(--safe-right, 0px));
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--home-rule);
    border-radius: 0;
    background: rgba(16, 14, 21, 0.94);
    box-shadow: none;
    gap: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-page .navbar.scrolled {
    border-color: rgba(238, 232, 220, 0.28);
}

.home-page .logo-text {
    font-size: 1.55rem;
    font-weight: 650;
    color: var(--home-paper);
}

.home-page .nav-logo a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.home-page .nav-links {
    position: static;
    display: flex;
    gap: 24px;
    transform: none;
}

.home-page .nav-links a {
    padding: 12px 0;
    border-radius: 0;
    font-size: 0.78rem;
    color: #bab2c1;
    white-space: nowrap;
}

.home-page .nav-links a:hover {
    background: transparent;
    color: var(--home-paper);
}

.home-page .nav-actions {
    gap: 10px;
}

.home-page .login-btn {
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 0.78rem;
    box-shadow: none;
}

.home-page .login-btn:hover {
    color: var(--home-lilac);
}

.home-page .nav-start {
    min-height: 42px;
    padding: 10px 16px;
    gap: 20px;
    font-size: 0.78rem;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    flex: none;
    border: 1px solid var(--home-rule);
    border-radius: 4px;
    background: none;
    color: var(--home-paper);
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 11px;
    top: 17px;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
}

.nav-toggle span + span { top: 25px; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span + span { transform: translateY(-4px) rotate(-45deg); }

/* Only the copy and surrounding space change. Demo and tab styling is inherited intact. */
.home-page .hero {
    padding: calc(116px + var(--safe-top, 0px)) 0 56px;
}

.hero-edition {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 48px;
    color: #92899c;
    font: 0.66rem/1.5 ui-monospace, 'Cascadia Mono', monospace;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hero-edition span:last-child {
    text-transform: none;
    letter-spacing: 0;
    font: italic 1rem/1 Georgia, serif;
}

.home-page .hero-copy { color: var(--home-paper); }

.home-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--home-lilac);
    font-size: 0.72rem;
    letter-spacing: 0.035em;
}

.eyebrow-line {
    width: 24px;
    height: 1px;
    flex: none;
    background: currentColor;
}

.home-page .hero-title {
    margin-bottom: 26px;
    font-size: clamp(3.1rem, 5.7vw, 5.15rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.05;
    text-wrap: initial;
}

.home-page .hero-title em,
.home-heading em,
.home-closing h2 em {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: var(--home-lilac);
    letter-spacing: -0.055em;
}

.home-page .hero-subtitle {
    max-width: 420px;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--home-muted);
}

.home-page .cta-group {
    display: flex;
    gap: 14px 24px;
}

.home-page .hero-note {
    margin-top: 18px;
    color: #9b92a4;
    font-size: 0.72rem;
}

.hero-postscript {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    color: #a896b8;
    font: italic 0.95rem/1.4 Georgia, serif;
}

.hero-postscript svg {
    width: 52px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.3;
}

.story-divider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-block: 26px;
    border-top: 1px solid var(--home-rule);
    border-bottom: 1px solid var(--home-rule);
    color: var(--home-muted);
    font-size: 0.74rem;
}

.story-divider a {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    min-height: 44px;
    color: var(--home-paper);
    white-space: nowrap;
}

.story-divider a span { font-size: 1.4rem; }

.home-gallery { padding: 100px 0 90px; }

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.home-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    color: var(--home-lilac);
    font: 0.68rem/1.6 ui-monospace, 'Cascadia Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-kicker > span {
    color: var(--home-muted);
}

.home-heading {
    font-size: clamp(2.4rem, 4vw, 3.65rem);
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -0.045em;
    color: var(--home-paper);
}

.home-lead {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--home-muted);
}

.home-section-head > .home-lead {
    max-width: 335px;
    padding-bottom: 5px;
    font-size: 0.88rem;
}

/* Staggered book covers, using the actual gallery portraits. */
.character-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
}

.character-cover {
    display: block;
    min-width: 0;
}

.character-cover:nth-child(2) { margin-top: 48px; }

.character-art {
    position: relative;
    isolation: isolate;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 3px;
    background: #292133;
}

.character-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.character-art::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(16, 12, 22, 0.22), transparent 40%, rgba(16, 12, 22, 0.92));
    pointer-events: none;
}

.cover-genre,
.cover-arrow,
.cover-title {
    position: absolute;
    z-index: 1;
}

.cover-genre {
    top: 20px;
    left: 20px;
    padding: 5px 10px;
    background: var(--home-paper);
    color: var(--home-ink);
    font: 0.65rem/1.4 ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cover-arrow {
    display: grid;
    place-items: center;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(16, 12, 22, 0.25);
    color: #fff;
    font-size: 1.4rem;
    transition: background 180ms ease, color 180ms ease;
}

.cover-title { bottom: 26px; left: 26px; right: 20px; }
.cover-title > span { color: #e0d3e7; font-size: 0.7rem; letter-spacing: 0.06em; }
.cover-title h3 { margin-top: 7px; color: #fff8f0; font-size: 3.5rem; font-weight: 500; letter-spacing: -0.05em; }

.cover-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-top: 16px;
}

.cover-caption p { color: #c6bdcf; font-size: 0.8rem; }
.cover-caption > span { color: #9e93aa; font-size: 0.67rem; white-space: nowrap; }
.cover-caption i { margin-right: 2px; font-size: 0.6rem; }

.gallery-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--home-rule);
}

.gallery-end p { font-size: 0.75rem; color: #a99fb4; }
.gallery-end p > span + span { display: block; color: #8f8499; margin-top: 3px; }
.gallery-end .home-text-link { font-size: 0.8rem; }

/* A change of paper, not another row of feature cards. */
.memory-section {
    --home-muted: #625769;
    --home-lilac: #6b477e;
    --home-focus: #6b477e;
    background: var(--home-paper);
    color: var(--home-ink);
    padding: 108px 0;
}

.memory-layout,
.writer-layout,
.diary-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 100px;
}

.memory-section .home-heading { color: var(--home-ink); }
.memory-copy .home-lead { margin: 28px 0 18px; font-size: 1.08rem; }
.memory-copy > p:not([class]) { max-width: 440px; color: #6a606d; font-size: 0.9rem; line-height: 1.85; }
.memory-copy .home-text-link { margin-top: 24px; font-size: 0.8rem; }

.memory-fragment {
    position: relative;
    padding: 32px 40px 26px;
    background: #d5c5df;
    color: #392c42;
    box-shadow: 10px 10px 0 rgba(61, 43, 73, 0.07);
}

.fragment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(57, 44, 66, 0.2);
    font: 0.68rem/1.4 ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fragment-top > span:last-child { font-size: 2rem; line-height: 1; }

.memory-moment {
    position: relative;
    margin-left: 4px;
    padding: 0 20px 36px 22px;
    border-left: 1px solid rgba(57, 44, 66, 0.24);
}

.memory-moment::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #735783;
}

.moment-label { display: block; margin-bottom: 14px; color: #685375; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; }
.memory-moment blockquote { max-width: 300px; font: 1.5rem/1.4 var(--font-display); letter-spacing: -0.025em; }
.memory-moment.later { padding-bottom: 8px; }
.memory-moment.later blockquote { font-size: 2rem; }
.memory-moment mark { padding: 0 0 3px; border-bottom: 2px solid #846193; border-radius: 0 0 40% 5%; color: inherit; background: none; }
.memory-fragment figcaption { margin-top: 26px; color: #6c5878; font: italic 0.78rem/1.5 Georgia, serif; }
.memory-thread { position: absolute; right: 6px; top: 125px; width: 56px; height: 240px; stroke: #977a9f; stroke-width: 1.25; pointer-events: none; }

.writer-section { padding: 110px 0; }
.writer-layout { gap: 96px; }
.writing-steps { list-style: none; margin: 34px 0 28px; }
.writing-steps li { display: flex; gap: 22px; padding: 21px 0; border-top: 1px solid var(--home-rule); }
.writing-steps li > span { padding-top: 3px; color: #a391b5; font: 0.7rem/1.4 ui-monospace, monospace; }
.writing-steps h3 { margin-bottom: 9px; font-family: var(--font-body); font-size: 0.96rem; font-weight: 550; letter-spacing: -0.01em; color: #e5dfe9; }
.writing-steps p { max-width: 390px; color: #9e95a7; font-size: 0.85rem; line-height: 1.8; }

.draft-desk { position: relative; min-width: 0; padding: 36px 10px 0; }
.draft-aside { position: relative; z-index: 1; margin-bottom: 20px; padding-left: 8px; color: #b59cc4; font: italic 1rem/1.3 Georgia, serif; transform: rotate(-5deg); }
.character-draft { position: relative; padding: 30px 32px 20px; background: #e7e1d6; color: #352c37; transform: rotate(3deg); box-shadow: 9px 12px 0 #2b2233; }
.draft-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 30px; padding-bottom: 17px; border-bottom: 1px solid #bcb3be; color: #6b5c70; font: 0.64rem/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.draft-label { display: block; margin-bottom: 10px; color: #79697e; font: 0.61rem/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.06em; }
.draft-content h3 { min-height: 98px; margin-bottom: 18px; font-size: 2.4rem; font-weight: 500; line-height: 1.12; letter-spacing: -0.04em; }
.draft-content > p { min-height: 90px; margin-bottom: 22px; color: #65596a; font-size: 0.87rem; line-height: 1.8; }
.draft-content blockquote { min-height: 102px; font: italic 1.5rem/1.5 Georgia, serif; color: #674773; }
.draft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid #bcb3be; color: #746579; font-size: 0.65rem; }
.draft-scribble { font: italic 2rem/1 Georgia, serif; }
.draft-shuffle { display: flex; margin: 32px auto 0; color: #cbb5dc; font-size: 0.77rem; }
.draft-shuffle > span { font-size: 1.5rem; }

.home-diary { padding: 100px 0; background: #211b29; border-block: 1px solid #372d40; }
.diary-layout { gap: 110px; }
.diary-paper { position: relative; padding: 30px 38px 24px; background: #e9e3d6; color: #655d65; box-shadow: -8px 8px 0 #302837; }
.diary-paper-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; font: 0.6rem/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.07em; }
.diary-paper-top > span:last-child { color: #9f7662; font-size: 1.8rem; }
.diary-salutation { margin: 34px 0 26px; font: italic clamp(2.4rem, 3.7vw, 3.4rem)/1.05 Georgia, serif; letter-spacing: -0.05em; color: #745870; }
.diary-paper blockquote { padding-bottom: 8px; font: italic 1.08rem/2.15 Georgia, serif; background-image: repeating-linear-gradient(transparent 0, transparent 35px, #d2c9c2 36px, transparent 37px); }
.diary-paper-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; font: italic 0.82rem/1.6 Georgia, serif; }
.diary-paper-bottom > span { max-width: 170px; }
.diary-paper-bottom svg { width: 66px; height: 98px; flex: none; stroke: #917767; stroke-width: 1.3; }
.diary-paper figcaption { margin-top: 14px; padding-top: 13px; border-top: 1px solid #c9bfbd; font: 0.57rem/1.5 ui-monospace, monospace; color: #756970; }
.diary-copy .home-lead { margin: 26px 0 18px; color: #d4c5df; font-size: 1.08rem; }
.diary-copy > p:not([class]) { color: #b1a4ba; font-size: 0.9rem; line-height: 1.85; }
.diary-details { display: grid; gap: 11px; list-style: none; margin: 26px 0 32px; color: #c5b5d0; font-size: 0.77rem; }
.diary-details span { margin-right: 12px; color: #9782aa; }
.diary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.diary-actions .home-text-link { font-size: 0.78rem; }

.home-faq { padding: 100px 0; }
.faq-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
.faq-layout .home-heading { font-size: clamp(2.2rem, 3.3vw, 3rem); }
.faq-layout > div > .home-text-link { margin-top: 26px; color: #b8a2ca; font-size: 0.78rem; }
.faq-list details { border-top: 1px solid var(--home-rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--home-rule); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px; padding: 20px 0; list-style: none; color: #d9d0df; font-size: 0.88rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { flex: none; color: #ab92be; font-size: 1.4rem; font-weight: 400; transition: transform 160ms ease; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details p { max-width: 470px; padding: 0 32px 24px 0; color: #a99cb4; font-size: 0.87rem; line-height: 1.85; }
.faq-list details p a { text-decoration: underline; text-underline-offset: 3px; color: #d0b9e1; }

.home-closing {
    --home-focus: #574068;
    padding: 88px 0 96px;
    background: #c8b7db;
    color: #2c1e37;
}

.closing-layout { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.home-closing .home-kicker { color: #584264; }
.home-closing h2 { font-size: clamp(3.7rem, 7.6vw, 6.6rem); font-weight: 500; letter-spacing: -0.065em; line-height: 1.02; }
.home-closing h2 em { color: #67487c; }
.closing-actions { padding-bottom: 6px; }
.closing-actions p { margin-bottom: 24px; font-size: 0.92rem; line-height: 1.8; color: #5a4568; }
.closing-actions .home-button { background: #30223c; color: #f2e9f8; }
.closing-actions .home-button:hover { background: #483255; }
.closing-actions > span { display: block; margin-top: 16px; font-size: 0.7rem; color: #604c6b; }

/* A quiet colophon and an oversized wordmark. No animated footer decorations. */
.home-page .page-footer { margin: 0; padding: 64px 28px calc(24px + var(--safe-bottom, 0px)); background: #100e15; border: 0; }
.home-page .footer-inner { max-width: 1144px; gap: 40px 100px; padding-bottom: 40px; }
.home-page .footer-logo { font-size: 1.5rem; font-weight: 550; color: var(--home-paper); }
.home-page .footer-tagline { color: #a297ac; font-size: 0.83rem; }
.home-page .footer-cols { gap: 80px; }
.home-page .footer-col h4 { color: #b9a8c6; font: 0.63rem/1.5 ui-monospace, monospace; letter-spacing: 0.09em; }
.home-page .footer-col a { font-size: 0.77rem; color: #a297ac; }
.home-page .footer-col a:hover { transform: none; color: #ecdfef; }
.home-page .footer-col a::before { display: none; }
.home-page .social-btn { width: 44px; height: 44px; border-radius: 4px; border-color: var(--home-rule); background: none; color: #b9a8c6; }
.home-page .social-btn:hover { transform: none; box-shadow: none; background: #28202f; }
.footer-wordmark { max-width: 1144px; margin: 8px auto 36px; color: #4f3d5e; font: 550 clamp(4rem, 17.4vw, 13.25rem)/1.05 var(--font-display); letter-spacing: -0.075em; }
.footer-wordmark span { color: #a38bb7; }
.home-page .footer-bottom { max-width: 1144px; padding-top: 22px; border-color: var(--home-rule); }
.home-page .copyright,
.home-page .footer-madeby { font-size: 0.66rem; color: #a093ac; }
.home-page .footer-madeby span { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--home-rule); }

/* Content is visible without JS; reveal is an enhancement, never a prerequisite. */
.home-page .reveal { opacity: 1; transform: none; transition: opacity 650ms ease, transform 650ms ease; }
html.has-home-reveal .home-page .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

/* New sections must not leak behind the Android app's auth-only screen. */
html.is-auth-only .home-page #main-content,
html.is-auth-only .home-page .skip-link { display: none; }

@media (hover: hover) and (pointer: fine) {
    .home-button:hover { transform: translateY(-2px); }
    .character-cover:hover .character-art img { transform: scale(1.045); }
    .character-cover:hover .cover-arrow { background: var(--home-paper); color: var(--home-ink); }
}

@media (max-width: 1024px) {
    .home-page .navbar { gap: 16px; }
    .home-page .nav-links { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; gap: 0; padding: 12px 24px; border: 1px solid var(--home-rule); background: #17121e; }
    .home-page .navbar.menu-open .nav-links { display: grid; }
    .home-page .nav-links a { padding: 15px 0; font-size: 0.9rem; }
    .nav-toggle { display: block; }
    .home-section-head { gap: 32px; }
    .home-section-head > .home-lead { max-width: 280px; }
    .memory-layout, .writer-layout, .diary-layout { gap: 48px; }
    .memory-fragment { padding: 28px; }
    .memory-moment { padding-right: 0; }
    .memory-thread { display: none; }
    .character-shelf { gap: 20px; }
    .cover-title { left: 20px; bottom: 20px; }
    .cover-title h3 { font-size: 2.8rem; }
    .draft-content h3 { font-size: 2rem; }
    .character-draft { padding: 26px; }
    .diary-paper { padding: 26px; }
    .faq-layout { gap: 48px; }
}

@media (min-width: 769px) and (max-width: 940px) {
    .home-page .hero-inner { max-width: 660px; }
    .home-page .hero-title { font-size: 4.4rem; }
}

@media (max-width: 768px) {
    .home-wrap { padding-inline: 24px; }
    .home-page .navbar, .home-page .navbar.scrolled { width: calc(100% - 48px - var(--safe-left, 0px) - var(--safe-right, 0px)); }
    .home-page .hero { padding-top: calc(108px + var(--safe-top, 0px)); padding-bottom: 44px; }
    .hero-edition { margin-bottom: 36px; }
    .hero-edition span:last-child { display: none; }
    .home-page .hero-inner { max-width: 580px; gap: 44px; }
    .home-page .hero-title { font-size: clamp(3.4rem, 9.8vw, 4.5rem); }
    .home-page .hero-subtitle { max-width: 470px; }
    .hero-postscript { margin-top: 20px; }
    .story-divider { padding-block: 17px; font-size: 0.68rem; }
    .story-divider > span { max-width: 280px; }
    .home-gallery, .writer-section, .home-faq { padding: 72px 0; }
    .home-section-head { display: block; margin-bottom: 32px; }
    .home-section-head > .home-lead { max-width: 450px; margin-top: 24px; }
    .home-kicker { margin-bottom: 18px; font-size: 0.62rem; }
    .home-heading { font-size: clamp(2.4rem, 6.5vw, 3.1rem); }
    .character-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .cover-genre { top: 12px; left: 12px; font-size: 0.55rem; }
    .cover-arrow { top: 10px; right: 10px; width: 28px; height: 28px; font-size: 1.1rem; }
    .cover-title { left: 16px; bottom: 18px; }
    .cover-title > span { font-size: 0.58rem; }
    .cover-title h3 { font-size: 2.5rem; }
    .cover-caption p { font-size: 0.73rem; }
    .gallery-end { margin-top: 32px; }
    .memory-section, .home-diary { padding: 72px 0; }
    .memory-layout, .writer-layout, .diary-layout, .faq-layout { grid-template-columns: 1fr; gap: 48px; }
    .memory-copy > p:not([class]) { max-width: 540px; }
    .memory-fragment { max-width: 480px; width: calc(100% - 10px); justify-self: center; padding: 30px 36px; }
    .memory-moment blockquote { max-width: 340px; }
    .memory-thread { display: block; right: 10px; }
    .draft-desk { max-width: 450px; width: 100%; justify-self: center; padding: 8px 14px 0; }
    .draft-content h3 { font-size: 2.4rem; }
    .writing-steps p { max-width: 500px; }
    .diary-copy { grid-row: 1; }
    .diary-paper { width: calc(100% - 8px); max-width: 440px; justify-self: center; padding: 30px; }
    .diary-salutation { font-size: 3.4rem; }
    .faq-layout .home-heading { font-size: 2.7rem; }
    .home-closing { padding: 64px 0 72px; }
    .closing-layout { align-items: flex-start; flex-direction: column; gap: 36px; }
    .home-closing h2 { font-size: clamp(3.5rem, 10vw, 5.6rem); }
    .closing-actions p { margin-bottom: 20px; }
    .home-page .page-footer { padding-inline: 24px; padding-top: 48px; }
    .home-page .footer-inner { gap: 32px; }
    .home-page .footer-brand { flex-basis: 220px; }
    .home-page .footer-cols { gap: 44px; }
    .home-page .footer-bottom { justify-content: space-between; text-align: left; }
}

@media (max-width: 480px) {
    .home-wrap { padding-inline: 20px; }
    .home-page .navbar, .home-page .navbar.scrolled { top: calc(8px + var(--safe-top, 0px)); width: calc(100% - 32px - var(--safe-left, 0px) - var(--safe-right, 0px)); padding: 8px 0; gap: 8px; }
    .home-page .logo-text { font-size: 1.2rem; }
    .home-page .nav-actions { gap: 5px; }
    .home-page .nav-start { min-height: 44px; padding: 10px 12px; gap: 10px; }
    .home-page .nav-start .label-full { display: none; }
    .home-page .nav-start .label-short { display: inline; }
    .home-page .login-btn { font-size: 0.72rem; padding: 8px; }
    .nav-toggle { width: 40px; border: none; }
    .nav-toggle span { left: 10px; }
    .home-page .hero { padding-top: calc(96px + var(--safe-top, 0px)); }
    .hero-edition { font-size: 0.58rem; margin-bottom: 30px; }
    .home-eyebrow { font-size: 0.64rem; margin-bottom: 22px; gap: 8px; }
    .eyebrow-line { width: 18px; }
    .home-page .hero-title { font-size: clamp(2.6rem, 11vw, 3.45rem); margin-bottom: 22px; }
    .home-page .hero-subtitle { font-size: 0.9rem; line-height: 1.85; margin-bottom: 24px; }
    .home-page .cta-group { display: flex; gap: 8px 22px; }
    .home-page .cta-group .home-button { padding: 14px 18px; font-size: 0.83rem; }
    .home-page .cta-group .home-text-link { font-size: 0.78rem; }
    .home-page .hero-note { font-size: 0.65rem; margin-top: 15px; }
    .hero-postscript { display: none; }
    .home-page .hero-inner { gap: 28px; }
    .story-divider { display: block; padding-block: 20px; }
    .story-divider > span { display: block; max-width: none; }
    .story-divider a { margin-top: 5px; }
    .home-gallery, .writer-section, .home-faq { padding: 58px 0; }
    .home-heading { font-size: clamp(2.1rem, 8.5vw, 2.55rem); }
    .home-section-head > .home-lead { font-size: 0.82rem; margin-top: 20px; }
    .home-section-head > .home-lead br { display: none; }
    .character-shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 18px; margin-inline: -20px; padding: 6px 20px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: #655073 transparent; }
    .character-cover { scroll-snap-align: start; }
    .character-cover:nth-child(2) { margin-top: 0; }
    .character-art { aspect-ratio: 4 / 5; }
    .cover-genre { top: 16px; left: 16px; font-size: 0.6rem; }
    .cover-arrow { top: 12px; right: 12px; width: 34px; height: 34px; }
    .cover-title { bottom: 20px; left: 20px; }
    .cover-title > span { font-size: 0.66rem; }
    .cover-title h3 { font-size: 3rem; }
    .cover-caption p { font-size: 0.76rem; }
    .gallery-end { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 24px; }
    .memory-section, .home-diary { padding: 58px 0; }
    .memory-copy .home-lead, .diary-copy .home-lead { font-size: 0.97rem; }
    .memory-copy > p:not([class]), .diary-copy > p:not([class]) { font-size: 0.86rem; }
    .memory-layout, .writer-layout, .diary-layout { gap: 38px; }
    .memory-fragment { padding: 24px; }
    .memory-moment { padding-left: 17px; }
    .memory-moment blockquote { font-size: 1.3rem; }
    .memory-moment.later blockquote { font-size: 1.7rem; }
    .memory-thread { display: none; }
    .fragment-top { margin-bottom: 24px; }
    .memory-fragment figcaption { font-size: 0.7rem; }
    .writing-steps { margin-top: 28px; }
    .writing-steps li { gap: 16px; }
    .writing-steps h3 { font-size: 0.88rem; }
    .writing-steps p { font-size: 0.8rem; }
    .draft-desk { padding-inline: 10px; }
    .draft-aside { font-size: 0.88rem; }
    .character-draft { padding: 24px; transform: rotate(2deg); }
    .draft-top { font-size: 0.54rem; }
    .draft-content h3 { font-size: 2rem; }
    .draft-content > p { min-height: 120px; font-size: 0.81rem; }
    .draft-content blockquote { min-height: 120px; font-size: 1.35rem; }
    .diary-paper { padding: 24px; }
    .diary-salutation { font-size: 2.85rem; }
    .diary-paper blockquote { font-size: 0.92rem; }
    .diary-paper-top { font-size: 0.55rem; }
    .diary-details { font-size: 0.73rem; }
    .faq-layout { gap: 32px; }
    .faq-layout .home-heading { font-size: 2.4rem; }
    .faq-list summary { font-size: 0.82rem; min-height: 72px; }
    .faq-list details p { padding-right: 8px; font-size: 0.82rem; }
    .home-closing h2 { font-size: clamp(3rem, 11.5vw, 3.9rem); }
    .home-page .page-footer { padding-inline: 20px; }
    .home-page .footer-brand { flex-basis: 100%; }
    .home-page .footer-cols { gap: 70px; }
    .footer-wordmark { margin-block: 0 26px; font-size: 17vw; }
    .home-page .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 400px) {
    .home-page .logo-text { font-size: 1.1rem; }
    .home-page .nav-start { padding-inline: 10px; }
    .home-page .nav-start > [aria-hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.home-page) { scroll-behavior: auto; }
    .home-page .reveal,
    html.has-home-reveal .home-page .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
    .home-button, .character-art img, .nav-toggle span, .faq-list summary > span { transition: none; }
    .home-button:hover, .character-cover:hover .character-art img { transform: none; }
}
