/* Shared visual theme for Home, YouTube and About. */
.home-effects .site-header {
    padding-top: 12px;
    min-height: 86px;
}

.home-effects .site-header .site-navigation {
    width: calc(100% - 24px);
    max-width: 1080px;
    margin: 0 auto;
    height: auto;
    left: 0;
    right: 0;
    top: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 6px 26px rgb(139 86 101 / 12%), inset 0 0 0 1px rgb(234 205 197 / 65%);
}

.home-effects .site-navigation .layout-medium {
    width: auto;
    margin: 0 14px;
    min-height: 62px;
}

.home-effects .site-header .site-title {
    top: 14px;
    left: 52px;
    line-height: 1;
}

.home-effects .site-header .site-title img { max-height: 34px; }
.home-effects .site-header .social-container { top: 16px; }
.home-effects .site-header a.social-link { color: #a36c7f; }

.home-effects .site-header .menu-toggle {
    width: 44px;
    height: 44px;
    top: 9px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #f4e3e4;
    color: #99516b;
}

.home-effects .menu-toggle .lines { width: 18px; left: 13px; }
.home-effects .menu-toggle .lines::before,
.home-effects .menu-toggle .lines::after { background: #99516b; }

.home-effects .nav-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    color: #795661;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.4;
    text-transform: none;
    transition: background-color .2s ease, color .2s ease;
}

.home-effects .nav-menu ul li:first-child a {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f3dce4;
    color: #963d60;
    animation: menu-shop-glow 3.8s ease-in-out infinite;
}

@keyframes menu-shop-glow {
    0%, 100% { box-shadow: 0 3px 10px rgb(197 44 112 / 10%), 0 0 0 0 rgb(217 130 160 / 18%); }
    50% { box-shadow: 0 4px 16px rgb(197 44 112 / 22%), 0 0 0 4px rgb(217 130 160 / 8%); }
}
.home-effects .nav-menu ul li a:hover { opacity: 1; background: #eacdc5; color: #74394e; }
.home-effects .site-header a:focus-visible,
.home-effects .menu-toggle:focus-visible { outline: 2px solid #99516b; outline-offset: 3px; }

@media (max-width: 991px) {
    .home-effects .nav-menu { padding: 22px 0 14px; }
    .home-effects .nav-menu > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .home-effects .nav-menu ul li a { background: rgb(234 205 197 / 22%); }
}

@media (min-width: 992px) {
    .home-effects .site-navigation .layout-medium { display: flex; align-items: center; gap: 24px; }
    .home-effects .site-header .site-title { position: static; flex-shrink: 0; }
    .home-effects .site-header .menu-toggle { display: none; }
    .home-effects .nav-menu { margin-left: auto; }
    .home-effects .nav-menu > ul { display: flex; gap: 6px; }
    .home-effects .nav-menu ul li { margin: 0; line-height: 1.4; }
    .home-effects .site-header .social-container { position: static; flex-shrink: 0; }
}

.home-effects .site-main {
    position: relative;
    isolation: isolate;
}

.home-effects .site-main::before {
    content: "";
    display: block;
    position: absolute;
    inset: -30px 0 -35px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 22% 35%, #f7e4d9 0%, transparent 55%),
        radial-gradient(ellipse at 78% 30%, #dbb5b1 0%, transparent 55%),
        radial-gradient(ellipse at 52% 80%, #f2d8c8 0%, transparent 60%),
        #eacdc5;
    background-size: 160% 160%;
    -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 75%, transparent);
    mask-image: linear-gradient(transparent, #000 15%, #000 75%, transparent);
    animation: home-pastel-drift 12s ease-in-out infinite alternate;
}

/* Translucent curved layers move independently like slow waves. */
.home-sparkles::before,
.home-sparkles::after {
    content: "";
    position: absolute;
    width: 145%;
    height: 85%;
    left: -22%;
    top: 5%;
    border-radius: 44% 56% 62% 38% / 55% 42% 58% 45%;
    background: linear-gradient(125deg, transparent 15%, rgb(255 244 228 / 65%) 48%, rgb(222 177 172 / 35%) 75%, transparent);
    filter: blur(22px);
    animation: home-warm-wave 13s ease-in-out infinite alternate;
}

.home-sparkles::after {
    top: 28%;
    height: 65%;
    background: linear-gradient(55deg, transparent 15%, rgb(213 164 159 / 35%) 45%, rgb(255 237 214 / 60%) 75%, transparent);
    animation-duration: 17s;
    animation-delay: -8s;
    animation-direction: alternate-reverse;
}

.home-effects .hentry {
    background: transparent;
}

.home-effects .profile-image {
    position: relative;
    isolation: isolate;
}

.home-effects .profile-image::before {
    content: "";
    position: absolute;
    width: min(290px, 65vw);
    height: min(290px, 65vw);
    top: 44%;
    left: 50%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, #f6c5de 15%, #d9c8f8 48%, transparent 71%);
    filter: blur(20px);
    transform: translate(-50%, -50%);
    animation: home-halo-breathe 6s ease-in-out infinite;
    pointer-events: none;
}

.home-effects .intro .profile-image img {
    box-shadow: 0 0 0 5px rgb(255 255 255 / 65%), 0 12px 35px rgb(148 111 164 / 15%);
}

.home-effects .intro h2 {
    position: relative;
    z-index: 1;
}

/* The legacy script fixes this to the longest word, leaving shorter text off-center. */
.home-effects .intro h3 .words-wrapper {
    width: auto !important;
}

.home-sparkles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.home-sparkles span {
    position: absolute;
    z-index: 1;
    left: var(--x);
    top: var(--y);
    width: var(--size, 12px);
    height: var(--size, 12px);
    background: #d982a0;
    clip-path: polygon(50% 0%, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0% 50%, 38% 37%);
    opacity: .4;
    animation: home-star-float 7s ease-in-out infinite,
        home-star-twinkle var(--twinkle, 3.6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.home-sparkles span:nth-child(2n) { --twinkle: 4.3s; }
.home-sparkles span:nth-child(3n) { --twinkle: 2.8s; }

.home-sparkles span:nth-child(1) { --x: 16%; --y: 18%; --delay: -1s; }
.home-sparkles span:nth-child(2) { --x: 30%; --y: 60%; --size: 9px; --delay: -4s; }
.home-sparkles span:nth-child(3) { --x: 78%; --y: 21%; --size: 16px; --delay: -2s; }
.home-sparkles span:nth-child(4) { --x: 86%; --y: 67%; --delay: -5s; }
.home-sparkles span:nth-child(5) { --x: 10%; --y: 76%; --size: 8px; --delay: -3s; }
.home-sparkles span:nth-child(6) { --x: 65%; --y: 78%; --size: 10px; --delay: -6s; }
.home-sparkles span:nth-child(7) { --x: 38%; --y: 10%; --size: 8px; --delay: -2s; }
.home-sparkles span:nth-child(8) { --x: 91%; --y: 39%; --size: 7px; --delay: -4s; }

@keyframes home-pastel-drift {
    from { background-position: 0% 20%; }
    to { background-position: 100% 80%; }
}

@keyframes home-warm-wave {
    0% { transform: translate(-7%, -6%) rotate(-8deg) scale(.96); opacity: .45; }
    50% { opacity: .85; }
    100% { transform: translate(7%, 8%) rotate(9deg) scale(1.08); opacity: .6; }
}

@keyframes home-halo-breathe {
    0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.95); }
    50% { opacity: .85; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes home-star-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-14px) rotate(18deg); }
}

@keyframes home-star-twinkle {
    0%, 100% { opacity: .12; }
    45% { opacity: .95; }
    70% { opacity: .28; }
}

.home-effects .site-title .shop-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    padding: 16px 28px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #c52c70;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .02em;
    box-shadow: 0 8px 24px rgb(197 44 112 / 24%);
    animation: shop-cta-glow 3.8s ease-in-out infinite;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.home-effects .shop-cta::after,
.home-effects .nav-menu ul li:first-child a::after {
    content: "";
    position: absolute;
    inset: -50% auto -50% -65%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 38%), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: shop-cta-sheen 5.5s ease-in-out infinite;
}

@keyframes shop-cta-glow {
    0%, 100% { box-shadow: 0 8px 24px rgb(197 44 112 / 24%), 0 0 0 0 rgb(217 130 160 / 20%); }
    50% { box-shadow: 0 10px 34px rgb(197 44 112 / 40%), 0 0 0 8px rgb(217 130 160 / 8%); }
}

@keyframes shop-cta-sheen {
    0%, 55% { left: -65%; }
    85%, 100% { left: 125%; }
}

.home-effects .site-title .shop-cta:hover {
    background: #aa205e;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgb(197 44 112 / 32%);
}

.home-effects .site-title .shop-cta:focus-visible {
    outline: 3px solid #86205d;
    outline-offset: 5px;
}

.home-effects .site-footer .shop-tagline {
    margin: 8px auto 0;
    padding: 0 8px;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Poppins', sans-serif;
}

.shop-tagline-lead {
    display: block;
    color: #99516b;
    font-size: clamp(19px, 3.5vw, 26px);
    font-weight: 600;
    line-height: 1.5;
}

.shop-tagline-lead > span {
    display: inline-block;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .shop-tagline-lead {
        background: linear-gradient(110deg, #99516b 0%, #b76083 38%, #eacdc5 49%, #b76083 60%, #99516b 100%);
        background-size: 250% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: shop-tagline-shine 7s ease-in-out infinite;
    }
}

.shop-tagline-note {
    display: block;
    margin-top: 8px;
    color: #805f66;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
}

.shop-tagline-note::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 15px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #eacdc5, #d982a0);
}

@keyframes shop-tagline-shine {
    0%, 15% { background-position: 100% 50%; }
    75%, 100% { background-position: 0% 50%; }
}

.home-effects .site-footer {
    padding: 30px 0 0;
    border: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgb(217 130 160 / 22%), transparent 60%),
        radial-gradient(ellipse at 90% 85%, rgb(250 225 204 / 65%), transparent 60%),
        linear-gradient(135deg, #f2dfe1, #eacdc5);
    color: #805f66;
    font-family: 'Poppins', sans-serif;
}

.home-effects .footer-shell { max-width: 980px; }

.footer-shop-card {
    position: relative;
    padding: clamp(28px, 5vw, 48px) 20px;
    text-align: center;
    border: 1px solid #efd8d5;
    border-radius: 30px;
    background: radial-gradient(ellipse at 0% 0%, #f2dce4, transparent 65%),
        radial-gradient(ellipse at 100% 100%, #eacdc5, transparent 65%), #fff8f5;
    box-shadow: 0 16px 40px rgb(150 94 109 / 8%);
}

.footer-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #936375;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.home-effects .footer-shop-card .shop-tagline-lead { font-size: clamp(21px, 3.5vw, 32px); }
.home-effects .footer-shop-card .shop-tagline-note::after { display: none; }
.home-effects .footer-shop-card .shop-cta { margin: 24px 0 0; }

.footer-explore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 0 20px;
}

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #805466;
    font-size: 12px;
    transition: background-color .2s ease;
}
.footer-links a:hover { background: #f1dce2; color: #74394e; }
.footer-links a span { color: #b66c86; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #efddda;
    padding: 16px 0 24px;
    font-size: 11px;
}
.footer-heart { color: #c65c85; }
.footer-bottom a { display: inline-block; padding: 12px 0 12px 12px; color: #805466; }
.home-effects .site-footer a:focus-visible { outline: 2px solid #99516b; outline-offset: 4px; }

@media (max-width: 600px) {
    .footer-explore { flex-direction: column; gap: 12px; }
    .footer-shop-card { border-radius: 24px; padding-inline: 14px; }
    .home-sparkles span:nth-child(n+6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-effects .site-title .shop-cta {
        transition: none;
        transform: none;
    }
    /* Keep the requested slow background waves and twinkling stars active. */
    .home-effects .profile-image::before { animation: none; }
}
