/* ============================================================
   Naciye — atelier index
   Canvas recedes, the two apps carry their own light.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
    --canvas: #171512;
    --canvas-raised: #211e19;
    --ink: #f3eee6;
    --ink-dim: #9c9488;
    --brass: #c8a15b;
    --line: rgba(243, 238, 230, 0.12);

    /* AiPixLab's own palette, borrowed for its window only */
    --pai-bg: #0a0a0f;
    --pai-bg-card: #14141d;
    --pai-purple: #7c3aed;
    --pai-cyan: #06b6d4;
    --pai-text: #ffffff;
    --pai-text-dim: #a0a0b0;

    /* BabyCollage AI's own palette, borrowed for its window only */
    --bc-bg: #fff7f9;
    --bc-pink: #ffb3c6;
    --bc-pink-dark: #ff8fab;
    --bc-blue: #e3f2fd;
    --bc-text: #3a3230;
    --bc-text-dim: #6b625f;

    --measure: 40rem;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

/* ---------- nav ---------- */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
}

.wordmark {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--ink);
}

.site-nav__links {
    display: flex;
    gap: clamp(1.2rem, 3vw, 2.4rem);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.site-nav__links a {
    text-decoration: none;
    color: var(--ink-dim);
    transition: color 0.2s var(--ease);
}

.site-nav__links a:hover {
    color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
    padding: clamp(4rem, 12vw, 8rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 5rem);
    max-width: var(--measure);
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 1.4rem;
}

.hero p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-dim);
    margin: 0 auto;
    max-width: 32rem;
}

.hero__proof {
    margin-top: 2.2rem;
    display: inline-flex;
    gap: 1.8rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.hero__proof div {
    text-align: left;
}

.hero__proof strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--brass);
}

.hero__proof span {
    font-size: 0.85rem;
    color: var(--ink-dim);
}

/* ---------- gallery of shopfronts ---------- */

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 860px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.shopfront {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateY(10px);
    filter: brightness(0.85);
    animation: light-on 1s var(--ease) forwards;
}

.shopfront:nth-child(2) {
    animation-delay: 0.25s;
}

@keyframes light-on {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shopfront {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.shopfront__frame {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.shopfront__frame img {
    min-width: 0;
    max-width: 100%;
}

.shopfront__plaque {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.shopfront__name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
}

.shopfront__role {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 24rem;
}

.shopfront__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.3rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.shopfront__cta:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* --- AiPixLab window: dark, glass, neon --- */

.shopfront--noir {
    background: var(--pai-bg);
    color: var(--pai-text);
}

.shopfront--noir .shopfront__role {
    color: var(--pai-text-dim);
}

.shopfront--noir .shopfront__frame {
    background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.35), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.25), transparent 55%),
        var(--pai-bg-card);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 0;
    min-height: 320px;
}

.shopfront--noir .shopfront__frame img:first-child {
    align-self: end;
    max-height: 340px;
    width: auto;
    margin-left: clamp(0.5rem, 4vw, 2.5rem);
    justify-self: start;
}

.shopfront--noir .shopfront__frame img:last-child {
    align-self: center;
    max-height: 260px;
    width: auto;
    margin-right: -1rem;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 540px) {
    .shopfront--noir .shopfront__frame {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-top: 1.5rem;
        min-height: 0;
    }
    .shopfront--noir .shopfront__frame img:first-child,
    .shopfront--noir .shopfront__frame img:last-child {
        margin: 0;
    }
}

.shopfront--noir .shopfront__cta {
    background: linear-gradient(135deg, var(--pai-purple), var(--pai-cyan));
    color: #fff;
}

/* --- BabyCollage AI window: soft, paper, pastel --- */

.shopfront--paper {
    background: var(--bc-bg);
    color: var(--bc-text);
}

.shopfront--paper .shopfront__role {
    color: var(--bc-text-dim);
}

.shopfront--paper .shopfront__frame {
    background: linear-gradient(160deg, var(--bc-pink) 0%, var(--bc-blue) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    min-height: 320px;
    padding-top: 1.5rem;
}

.shopfront--paper .shopfront__frame img {
    max-height: 300px;
    width: auto;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 18px 40px rgba(255, 143, 171, 0.35);
}

.shopfront--paper .shopfront__frame img:first-child {
    transform: translateY(14px) rotate(-2deg);
}

.shopfront--paper .shopfront__frame img:last-child {
    transform: translateY(0) rotate(2deg);
}

@media (max-width: 540px) {
    .shopfront--paper .shopfront__frame {
        min-height: 0;
    }
    .shopfront--paper .shopfront__frame img {
        max-height: 220px;
    }
}

.shopfront--paper .shopfront__cta {
    background: var(--bc-pink-dark);
    color: #3a1420;
}

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--ink-dim);
}

.site-footer a {
    text-decoration: none;
    color: var(--ink-dim);
}

.site-footer a:hover {
    color: var(--ink);
}

.site-footer__links {
    display: flex;
    gap: 1.4rem;
}
