/* Multi-page layout and the compact mobile hero. */
.nav-current { color: var(--pink-deep) !important; }
.nav-current::after { transform: scaleX(1) !important; }
.subpage-hero { position: relative; overflow: hidden; padding: 68px 0 55px; background: radial-gradient(ellipse at 76% 20%, rgba(248,224,228,.66), transparent 34%), radial-gradient(ellipse at 13% 75%, rgba(255,231,215,.55), transparent 32%), var(--bg); text-align: center; }
.subpage-hero-inner { position: relative; max-width: 850px; }
.subpage-hero .section-kicker { justify-content: center; }
.subpage-hero .section-title { margin-bottom: 13px; font-size: clamp(34px, 5.2vw, 55px); }
.subpage-hero .section-lead { max-width: 620px; margin-inline: auto; }
.subpage-art { display: inline-grid; width: 56px; height: 56px; margin-bottom: 15px; place-items: center; border: 1px solid #efdce4; border-radius: 19px; background: rgba(255,255,255,.78); color: var(--pink-deep); font-size: 27px; box-shadow: var(--shadow-small); }
.home-shortcuts { padding-top: 74px; padding-bottom: 82px; background: var(--bg); }
.home-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.home-link-card { display: flex; min-height: 190px; flex-direction: column; align-items: flex-start; padding: 23px 20px; border: 1px solid #f0e0e2; border-radius: 22px; background: rgba(255,255,255,.76); box-shadow: var(--shadow-small); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.home-link-card:hover { transform: translateY(-5px); border-color: #e8c4d0; box-shadow: var(--shadow); }
.home-link-card > span { display: grid; width: 42px; height: 42px; margin-bottom: 16px; place-items: center; border-radius: 14px; background: #f9e8ed; color: var(--pink-deep); font-size: 22px; }
.home-link-card strong { margin-bottom: 4px; color: var(--ink-strong); font-size: 15px; }
.home-link-card small { color: var(--muted); font-size: 11px; }
.home-link-card b { margin-top: auto; padding-top: 13px; color: var(--pink-deep); font-size: 10px; }
.home-community-strip { padding: 45px 0; background: #f8e8e8; }
.home-community-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.home-community-inner .section-kicker { margin-bottom: 8px; }
.home-community-inner h2 { margin-bottom: 8px; font-size: clamp(23px, 3.3vw, 34px); letter-spacing: -.04em; }
.home-community-inner h2 span { color: var(--pink-deep); }
.home-community-inner p:not(.section-kicker) { margin-bottom: 0; color: #896f7c; font-size: 12px; }
.page-cta { padding: 18px 0 78px; background: var(--bg); }
.page-cta-card { padding: 35px 25px; border: 1px solid #f0dfe2; border-radius: 25px; background: linear-gradient(135deg,#fff1f1,#f4eefb); text-align: center; }
.page-cta-card .section-kicker { justify-content: center; }
.page-cta-card h2 { margin-bottom: 19px; font-size: clamp(24px, 4vw, 36px); }
.community-details { padding-top: 12px; }
.community-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.community-detail-card { padding: 24px; border: 1px solid #f0e1e3; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-small); }
.community-detail-card > span { display: inline-grid; width: 42px; height: 42px; margin-bottom: 12px; place-items: center; border-radius: 14px; background: #fae9ef; color: var(--pink-deep); font-size: 22px; }
.community-detail-card h2 { margin-bottom: 8px; font-size: 17px; }
.community-detail-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.community-detail-card .text-link { display: inline-flex; margin-top: 14px; font-size: 11px; }
.error-page { min-height: min(720px, calc(100svh - 180px)); display: grid; align-items: center; padding: 62px 0; background: radial-gradient(ellipse at 50% 12%, rgba(248,224,228,.7), transparent 50%), var(--bg); }
.error-card { display: flex; max-width: 700px; flex-direction: column; align-items: center; text-align: center; }
.error-number { color: #db9db2; font: 900 clamp(70px, 12vw, 120px)/.9 var(--font-display); letter-spacing: -.08em; }
.error-number span { display: inline-block; color: #b9a3d6; font-size: .62em; transform: rotate(12deg); }
.error-avatar { width: min(42vw, 180px); aspect-ratio: 1; overflow: hidden; margin: 22px 0; border: 6px solid #fff; border-radius: 34% 34% 24px 24px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.error-avatar img { width: 100%; height: 100%; object-fit: cover; }
.error-card .section-kicker { justify-content: center; }
.error-card h1 { margin-bottom: 10px; font-size: clamp(27px, 5vw, 40px); letter-spacing: -.04em; }
.error-card > p:not(.section-kicker) { max-width: 480px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.error-card .hero-actions { justify-content: center; }
html[data-theme="night"] .subpage-hero { background: radial-gradient(ellipse at 76% 20%, rgba(118,81,111,.28), transparent 34%), radial-gradient(ellipse at 13% 75%, rgba(135,91,88,.16), transparent 32%), var(--bg); }
html[data-theme="night"] .subpage-art, html[data-theme="night"] .home-link-card, html[data-theme="night"] .community-detail-card { border-color: #4a3949; background: #332a37; }
html[data-theme="night"] .home-community-strip { background: #382e3b; }
html[data-theme="night"] .home-community-inner p:not(.section-kicker) { color: #c8b2c1; }
html[data-theme="night"] .page-cta-card { border-color: #4a3949; background: linear-gradient(135deg,#382e3b,#302b40); }
html[data-theme="night"] .error-page { background: radial-gradient(ellipse at 50% 12%, rgba(118,81,111,.28), transparent 50%), var(--bg); }
@media (max-width: 900px) { .home-link-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 820px) {
 .hero-section { padding: 40px 0 45px; }
 .hero-grid { gap: 25px; }
 .hero-art-wrap { width: min(70%, 300px); padding: 0 8px 8px 0; }
 .hero-image-frame { border-width: 5px; }
 .hero-image { display: block; width: 100%; height: clamp(320px, 45vw, 360px); aspect-ratio: auto; object-fit: cover; object-position: 50% 42%; }
 .note-top { left: -26px; }
 .note-bottom { right: -22px; }
 .hero-bottom-wave { bottom: -24px; height: 48px; }
 .subpage-hero { padding: 50px 0 40px; }
 .home-community-inner { align-items: flex-start; flex-direction: column; gap: 17px; }
 .community-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
 .hero-section { padding: 34px 0 36px; }
 .hero-grid { gap: 24px; }
 .hero-art-wrap { width: min(67%, 270px); padding: 0 7px 7px 0; }
 .hero-image-frame { border-width: 5px; border-radius: 33% 33% 17px 17px / 25% 25% 17px 17px; }
 .hero-image { width: 100%; height: clamp(300px, 76vw, 340px); aspect-ratio: auto; object-fit: cover; object-position: 50% 42%; }
 .floating-note { max-width: 175px; padding: 8px 9px; }
 .note-top { left: -22px; }
 .note-bottom { right: -16px; }
 .hero-chips { margin-top: 16px; }
 .home-shortcuts { padding: 55px 0; }
 .home-link-grid { gap: 10px; }
 .home-link-card { min-height: 166px; padding: 16px 14px; border-radius: 17px; }
 .home-link-card > span { width: 36px; height: 36px; margin-bottom: 12px; border-radius: 12px; font-size: 19px; }
 .home-link-card strong { font-size: 13px; }
 .home-link-card small { font-size: 9px; }
 .home-link-card b { font-size: 9px; }
 .subpage-hero { padding: 38px 0 34px; }
 .subpage-art { width: 45px; height: 45px; margin-bottom: 10px; border-radius: 15px; font-size: 22px; }
 .page-cta { padding-bottom: 55px; }
 .page-cta-card { padding: 29px 18px; border-radius: 20px; }
 .community-detail-card { padding: 20px; }
 .error-page { min-height: calc(100svh - 150px); padding: 40px 0; }
 .error-avatar { width: min(45vw, 150px); margin: 17px 0; }
 .error-card > p:not(.section-kicker) { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .home-link-card { transition: none; } }

/* Compact About page */
.section-about { padding-block: 35px 45px; }
.section-about .about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: 38px; }
.section-about .about-visual { width: 100%; max-width: 300px; margin: 0 auto; }
.section-about .about-photo-card { width: 100%; max-width: 280px; margin: 0 auto; }
.section-about .about-photo-card img { display: block; width: 100%; height: 340px; object-fit: cover; object-position: center 35%; }
.section-about .about-copy .section-title { margin-bottom: 16px; }
.section-about .about-copy .section-lead { margin-bottom: 14px; }
.section-about .about-detail { margin-bottom: 20px; }
.section-about .personality-grid { gap: 10px; }
.section-about .personality-item { min-width: 0; }

/* Footer spacing */
.site-footer .footer-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 22px; }
.site-footer .footer-links a { display: inline-block; line-height: 1.8; }
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-block: 16px 22px; }
.site-footer .footer-line { margin: 12px 0 0; }
.site-footer .footer-top-link { margin-left: auto; }

@media (max-width: 820px) {
 .section-about { padding-block: 28px 38px; }
 .section-about .about-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
 .section-about .about-visual { max-width: 250px; }
 .section-about .about-photo-card { max-width: 230px; }
 .section-about .about-photo-card img { height: 290px; }
 .section-about .about-copy { width: 100%; }
}
@media (max-width: 560px) {
 .section-about { padding-block: 20px 30px; }
 .section-about .about-grid { gap: 24px; }
 .section-about .about-visual { max-width: 220px; }
 .section-about .about-photo-card { max-width: 205px; }
 .section-about .about-photo-card img { height: 260px; }
 .section-about .about-copy .section-title { font-size: clamp(30px, 8vw, 40px); }
 .site-footer .footer-links { gap: 10px 16px; padding-block: 20px; }
 .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Compact hero image on homepage */
.hero-section .hero-grid {
    align-items: center;
}

.hero-section .hero-art-wrap {
    width: min(100%, 300px);
    max-width: 300px;
    margin-inline: auto;
}

.hero-section .hero-image-frame {
    width: 100%;
}

.hero-section .hero-image {
    display: block;
    width: 100%;
    height: 360px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 42%;
}

@media (max-width: 820px) {
    .hero-section .hero-art-wrap {
        width: min(70%, 250px);
        max-width: 250px;
    }

    .hero-section .hero-image {
        height: 320px;
    }
}

@media (max-width: 560px) {
    .hero-section .hero-art-wrap {
        width: min(67%, 210px);
        max-width: 210px;
    }

    .hero-section .hero-image {
        height: 280px;
    }
}