/* Blütenpoesie / Kirschblüten bei Nacht: one reading layout, two atmospheres.
   Homepage scope keeps the archive and device integration layouts independent. */
.home-page {
    --text-main: #3e192d;
    --text-soft: #583b49;
    --text-muted: #70545f;
    --ring: rgba(99, 47, 64, 0.24);
    --surface: #fff8f3;
    --surface-soft: rgba(255, 248, 243, 0.88);
    --btn-a: #9e4d60;
    --btn-b: #9e4d60;
    --home-bg: #fbf2ed;
    --home-image: url('../images/blossom-light-desktop.webp');
    --quote-style: italic;
    background: var(--home-bg);
    position: relative;
    font-family: var(--font-quote);
    isolation: isolate;
    color-scheme: light;
}

.dark .home-page {
    --text-main: #fff0e1;
    --text-soft: #f0d9cb;
    --text-muted: #d9c3bd;
    --ring: rgba(241, 193, 172, 0.3);
    --surface: #102235;
    --surface-soft: rgba(12, 28, 44, 0.94);
    --btn-a: #efb392;
    --btn-b: #efb392;
    --home-bg: #071725;
    --home-image: url('../images/blossom-dark-desktop.webp');
    --quote-style: normal;
    color-scheme: dark;
}

.home-page .dream-bg {
    position: absolute;
    z-index: -1;
    background: var(--home-image) center / cover no-repeat;
}

.home-page .dream-bg::before,
.home-page .dream-bg::after {
    content: none;
}

.home-page .hero-main {
    width: min(1240px, 100%);
    min-height: 100svh;
    margin: auto;
    padding: 30px 40px 18px;
    gap: 0;
}

.home-page .hero-top {
    width: 100%;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.home-page .brand-title {
    margin-right: auto;
    color: var(--text-main);
}

.home-page .brand-name {
    white-space: nowrap;
    font-size: 42px;
    line-height: 1.05;
}

.home-page .brand-by {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
}

.home-page .language-switch { gap: 0; }

.home-page .language-switch a {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
    background: transparent;
    color: var(--text-soft);
    box-shadow: none;
}

.home-page .language-switch .is-active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 19px;
    height: 1px;
    background: var(--btn-a);
}

.home-page .theme-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--btn-a);
    font-size: 25px;
}

.home-page .quote-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 420px;
    padding: 58px 0 44px;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    animation: none;
}

.home-page .quote-shell > * {
    opacity: 1;
    transform: none;
    animation: none;
}

.home-page .date-ribbon {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.home-page .quote-block {
    width: min(900px, 100%);
    margin: 36px auto 30px;
    text-align: center;
}

.home-page .quote-text {
    font-size: clamp(2.2rem, 4.5vw, 3.65rem);
    font-weight: 400;
    font-style: var(--quote-style);
    line-height: 1.32;
    letter-spacing: -0.025em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.home-page [data-quote-size='medium'] .quote-text {
    font-size: clamp(1.8rem, 3.35vw, 2.7rem);
    line-height: 1.42;
}

.home-page [data-quote-size='long'] .quote-text {
    font-size: clamp(1.5rem, 2.55vw, 2rem);
    line-height: 1.52;
    letter-spacing: -0.01em;
}

.home-page .quote-author {
    margin-top: 22px;
    font-family: var(--font-quote);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.home-page .action-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
}

.home-page .chip-button {
    width: auto;
    min-height: 44px;
    padding: 8px;
    gap: 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-family: var(--font-quote);
    font-size: 12px;
    font-weight: 400;
}

.home-page .chip-icon { color: var(--btn-a); }
.home-page .chip-button:hover { background: var(--surface-soft); }

.home-page .subscribe-panel {
    width: min(480px, 100%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    animation: none;
}

.home-page .subscribe-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: fit-content;
    max-width: 100%;
    min-height: 48px;
    margin: auto;
    padding: 14px 8px;
    border-top: 1px solid var(--ring);
    list-style: none;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-soft);
    cursor: pointer;
}

.home-page .subscribe-toggle::-webkit-details-marker { display: none; }
.home-page .subscribe-toggle-icon { font-size: 22px; color: var(--btn-a); }
.home-page details[open] .subscribe-toggle-icon { transform: rotate(45deg); }

.home-page .subscribe-content {
    margin: 12px 0 22px;
    padding: 24px;
    border: 1px solid var(--ring);
    border-radius: 12px;
    background: var(--surface-soft);
}

.home-page .subscribe-form input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
}

.home-page .subscribe-form button,
.home-page .push-button {
    min-height: 44px;
    font-family: var(--font-quote);
    font-weight: 400;
    box-shadow: none;
}

.dark .home-page .subscribe-form button { color: #102235; }
.home-page .form-response.success { color: #28603d; }
.home-page .form-response.error { color: #9f2545; }
.dark .home-page .form-response.success { color: #b0e9c4; }
.dark .home-page .form-response.error { color: #ffc0ce; }

.home-page .disclaimer-panel {
    margin-top: 12px;
    animation: none;
}

.home-page .disclaimer-toggle {
    min-height: 44px;
    border: 0;
    font-family: var(--font-quote);
    font-size: 11px;
}

.home-page .disclaimer-copy {
    background: var(--surface-soft);
    color: var(--text-soft);
}

.home-page .site-footer {
    width: 100%;
    padding: 4px 0 0;
    font-size: 11px;
    line-height: 1.6;
}

.home-page .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    justify-content: center;
}

.home-page .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-soft);
}

.home-page .footer-links a + a::before { display: none; }
.home-page .site-footer p { margin: 0; font-size: 10px; }
.home-page :focus-visible { outline: 2px solid var(--btn-a); outline-offset: 4px; }

@media (max-width: 600px) {
    .home-page { --home-image: url('../images/blossom-light-mobile.webp'); }
    .dark .home-page { --home-image: url('../images/blossom-dark-mobile.webp'); }
    .home-page .hero-main { padding: 22px 22px 16px; }
    .home-page .hero-top { gap: 6px; }
    .home-page .brand-name { font-size: 32px; }
    .home-page .brand-by { font-size: 10px; margin-top: 2px; }
    .home-page .quote-shell { min-height: 420px; padding: 48px 0 30px; }
    .home-page .date-ribbon { font-size: 12px; }
    .home-page .quote-block { margin: 28px auto 26px; }
    .home-page .quote-text { font-size: clamp(1.85rem, 7.7vw, 2.5rem); line-height: 1.38; }
    .home-page [data-quote-size='medium'] .quote-text { font-size: clamp(1.5rem, 6.2vw, 1.95rem); }
    .home-page [data-quote-size='long'] .quote-text { font-size: 1.3rem; line-height: 1.5; }
    .home-page [data-quote-size='long'] { padding-top: 38px; }
    .home-page .quote-author { margin-top: 20px; font-size: 14px; }
    .home-page .action-row { gap: 0 6px; }
    .home-page .chip-button { gap: 6px; padding: 8px 5px; font-size: 11px; }
    .home-page .subscribe-toggle { font-size: 13px; }
    .home-page .subscribe-content { padding: 20px 16px; }
}

@media (max-width: 360px) {
    .home-page .hero-main { padding-inline: 18px; }
    .home-page .brand-name { font-size: 26px; }
}

@media print {
    .home-page, .dark .home-page { --text-main: #111; --text-soft: #333; background: #fff; }
    .home-page .hero-main { min-height: auto; }
    .home-page .hero-top { display: flex !important; }
    .home-page .language-switch, .home-page .theme-toggle { display: none; }
    .home-page .brand-title { margin: auto; }
    .home-page .quote-shell { min-height: auto; }
}
