/*
   Home page only (loaded by Components/Home/HomeDesign.razor). Default design: hero, marquee and
   gentle scroll reveals. Motion is scoped to [data-motion="on"], which js/home.js sets only when
   JS runs and reduced motion is off, so the static page is the baseline.
   A new home design replaces this file. It can restyle .site-header here too (e.g. an overlay
   header), since it only applies on /.
*/

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(circle at 78% 42%, var(--color-surface) 0 12rem, transparent 30rem),
        radial-gradient(circle at 10% 20%, var(--color-accent-dots) 0 1px, transparent 2px),
        linear-gradient(150deg, var(--color-blush-light) 0%, var(--color-blush) 55%, var(--color-blush-dark) 100%);
    background-size: auto, 26px 26px, auto;
    overflow: hidden;
    position: relative;
}
.hero__inner { align-items: center; display: grid; gap: var(--space-7); grid-template-columns: 1.05fr .95fr; min-height: 38rem; padding-bottom: 5rem; padding-top: var(--space-8); }
.hero h1 { font-size: var(--text-h1); margin: 1.1rem 0 1.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: var(--space-6); }
.hero__highlights { border-top: 1px solid var(--color-line-strong); display: flex; flex-wrap: wrap; gap: var(--space-3) 1.75rem; list-style: none; margin-top: 2.5rem; padding-top: var(--space-5); }
.hero__highlights li { align-items: center; display: flex; font-weight: var(--weight-bold); gap: var(--space-2); }
.hero__highlights li::before {
    align-items: center; background: var(--color-ink); border-radius: 50%; color: var(--color-blush-deep); content: "✦";
    display: inline-flex; font-size: var(--text-tiny); height: 1.8rem; justify-content: center; width: 1.8rem;
}
.hero__highlights li:nth-child(3n+2)::before { content: "♥"; }
.hero__highlights li:nth-child(3n)::before { content: "✓"; }

.hero__art { justify-self: center; position: relative; width: min(100%, 30rem); }
.hero__arch {
    align-items: center; aspect-ratio: 4 / 5; background: var(--color-ink); border: var(--border-thick);
    border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
    box-shadow: var(--shadow-hero); display: flex; justify-content: center; overflow: hidden; padding: var(--space-4); position: relative;
}
.hero__arch::before { border: 1.5px dashed var(--color-blush-deep-dash); border-radius: inherit; content: ""; inset: .55rem; position: absolute; }
.hero__arch .logo-disc { aspect-ratio: 1; box-shadow: 0 0 0 8px var(--color-blush-deep-faint); position: relative; width: 86%; }
.hero__sticker {
    align-items: center; background: var(--color-blush-deep); border: var(--border); border-radius: 50%; display: flex;
    font-family: var(--font-gothic); font-size: 1.15rem; height: 7.5rem; justify-content: center; left: -2.2rem;
    line-height: 1.05; padding: var(--space-4); position: absolute; text-align: center; top: 2.5rem; width: 7.5rem;
}
.hero__sticker span { transform: rotate(-12deg); }
.hero__star { color: var(--color-accent); font-size: 2rem; position: absolute; }
.hero__star--a { right: -1.5rem; top: 1rem; }
.hero__star--b { bottom: 5rem; color: var(--color-ink); font-size: 1.4rem; left: -2.5rem; }
.hero__star--c { bottom: -1.25rem; font-size: 1.5rem; right: 3rem; }

/* ---------- Marquee ---------- */
.marquee { background: var(--color-ink); border-bottom: 3px solid var(--color-accent); color: var(--color-on-dark); overflow: hidden; padding: var(--space-4) 0; white-space: nowrap; }
.marquee__track { display: inline-flex; }
.marquee__track span { display: inline-flex; font-family: var(--font-gothic); font-size: 1.7rem; gap: 2.25rem; padding-right: 2.25rem; }
.marquee i { color: var(--color-accent); font-style: normal; }

/* ---------- Motion (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .hero__sticker { animation: home-spin var(--sticker-duration) linear infinite; }
    .marquee__track { animation: home-slide var(--marquee-duration) linear infinite; }

    /* Hiding is instant (no transition) so nothing fades out on load; only the reveal animates. */
    [data-motion="on"] [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(24px); }
    [data-motion="on"] [data-reveal].is-visible { transition: opacity .7s var(--ease), transform .7s var(--ease); }
}
@keyframes home-spin { to { transform: rotate(360deg); } }
@keyframes home-slide { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; padding-top: var(--space-7); }
    .hero__art { max-width: 24rem; order: -1; }
}
@media (max-width: 620px) {
    .hero__inner { gap: var(--space-6); min-height: 0; padding-bottom: var(--space-8); padding-top: var(--space-6); }
    .hero__art { max-width: 15rem; }
    .hero__sticker { font-size: .95rem; height: 6rem; left: -.75rem; width: 6rem; }
    .hero__star--b { left: -.75rem; }
    .hero__star--a { right: -.5rem; }
}
