/* ============================================================
   Portfolio — coquette style
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&family=Parisienne&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --cream: #fdf5ef;
    --cream-2: #fbebe3;
    --blush: #f6c9d6;
    --blush-2: #f2b3c6;
    --rose: #e18aa3;
    --deep: #c15c78;
    --text: #4a2e35;
    --text-soft: #7a5560;
    --gold-2: #cba35c;
    --white: #fffdfb;

    --font-display: 'Playfair Display', serif;
    --font-script: 'Parisienne', cursive;
    --font-body: 'Poppins', sans-serif;

    --radius: 22px;
    --shadow-soft: 0 10px 30px rgba(193, 92, 120, 0.14);
    --shadow-lift: 0 16px 40px rgba(193, 92, 120, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 10% -10%, var(--cream-2), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, #fceef2, transparent 55%),
        var(--cream);
    min-height: 100vh;
    line-height: 1.6;
}

.gingham {
    background-image:
        repeating-linear-gradient(0deg, rgba(225, 138, 163, 0.10) 0 2px, transparent 2px 22px),
        repeating-linear-gradient(90deg, rgba(225, 138, 163, 0.10) 0 2px, transparent 2px 22px);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 28px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
    background: rgba(253, 245, 239, 0.85);
    border-bottom: 1px solid rgba(193, 92, 120, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-script);
    font-size: 1.9rem;
    color: var(--deep);
}

.brand .bow-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
    border-radius: 999px;
    transition: color .25s ease, background .25s ease;
}

.nav-links a:hover {
    color: var(--deep);
    background: var(--blush);
}

.nav-links a.active {
    color: var(--white);
    background: var(--rose);
    box-shadow: var(--shadow-soft);
}

.nav-toggle {
    display: none;
}

.hero {
    padding: 76px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--deep);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--rose);
    display: inline-block;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin: 0 0 6px;
    color: var(--text);
}

.hero h1 .script {
    font-family: var(--font-script);
    color: var(--deep);
    font-size: 1.15em;
    font-weight: 400;
}

.hero .subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-soft);
    margin: 0 0 22px;
}

.about-text {
    font-size: 1.02rem;
    color: var(--text-soft);
    max-width: 46ch;
    margin: 0 0 26px;
}

.editable {
    outline: none;
    border-radius: 10px;
    transition: background .2s ease, box-shadow .2s ease;
}

.editable:hover {
    background: rgba(242, 179, 198, 0.18);
}

.editable:focus {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--blush-2);
    padding: 4px 8px;
    margin: -4px -8px;
}

.edit-hint {
    font-size: 0.78rem;
    color: var(--rose);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.tag {
    font-size: 0.8rem;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--blush-2);
    color: var(--deep);
}

.portrait-wrap {
    position: relative;
    justify-self: center;
}

.ribbon-frame {
    position: relative;
    width: 300px;
    height: 360px;
    border-radius: 200px 200px 20px 20px;
    background: var(--white);
    padding: 14px;
    box-shadow: var(--shadow-lift);
    border: 1px solid rgba(193, 92, 120, 0.15);
}

.portrait {
    width: 100%;
    height: 100%;
    border-radius: 190px 190px 10px 10px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--blush), var(--cream-2));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait .placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--deep);
    text-align: center;
    padding: 20px;
}

.portrait .placeholder svg {
    width: 46px;
    height: 46px;
}

.portrait .placeholder span {
    font-size: 0.82rem;
    max-width: 16ch;
}

.portrait input[type="file"] {
    display: none;
}

.big-bow {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 76px;
    filter: drop-shadow(0 6px 10px rgba(193, 92, 120, 0.35));
}

.portrait-caption {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 14px;
}

.portrait-caption button {
    border: none;
    background: none;
    color: var(--deep);
    font-size: 0.78rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-body);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0 42px;
    color: var(--rose);
}

.divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blush-2), transparent);
}

.divider svg {
    width: 22px;
    height: 22px;
}

.page-hero {
    padding: 56px 0 20px;
    text-align: center;
}

.page-hero .eyebrow {
    justify-content: center;
}

.page-hero .eyebrow::before {
    display: none;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin: 0 0 10px;
}

.page-hero p {
    color: var(--text-soft);
    max-width: 52ch;
    margin: 0 auto;
}

.uploader-section {
    padding-bottom: 90px;
}

.dropzone {
    border: 2px dashed var(--blush-2);
    border-radius: var(--radius);
    background: var(--white);
    padding: 46px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
    position: relative;
}

.dropzone:hover {
    border-color: var(--rose);
    background: #fff9fb;
}

.dropzone.drag-over {
    border-color: var(--deep);
    background: var(--blush);
    transform: scale(1.005);
}

.dropzone svg {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    color: var(--rose);
}

.dropzone h3 {
    font-family: var(--font-display);
    font-style: italic;
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.dropzone p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.dropzone input[type="file"] {
    display: none;
}

.dz-browse {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 26px;
    border-radius: 999px;
    background: var(--rose);
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-soft);
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 34px 0 16px;
}

.gallery-meta h4 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    margin: 0;
    color: var(--text-soft);
}

.gallery-meta .count {
    font-size: 0.8rem;
    color: var(--rose);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 10px;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-style: italic;
    font-family: var(--font-display);
}

.card {
    background: var(--white);
    border-radius: 14px;
    padding: 12px 12px 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transform: rotate(var(--tilt, 0deg));
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.card .pin {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--rose) 70%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.card .thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream-2);
}

.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .cap {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.card .cap input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-soft);
    width: 100%;
    outline: none;
}

.card .remove {
    border: none;
    background: none;
    color: var(--rose);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 2px 4px;
    flex-shrink: 0;
}

.card .remove:hover {
    color: var(--deep);
}

.site-footer {
    padding: 26px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-soft);
    border-top: 1px solid rgba(193, 92, 120, 0.18);
}

.site-footer .script {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--rose);
}

@media (max-width: 760px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .portrait-wrap {
        order: -1;
    }

    .nav-links {
        position: fixed;
        inset: 62px 16px auto 16px;
        background: var(--white);
        border-radius: 18px;
        flex-direction: column;
        padding: 10px;
        box-shadow: var(--shadow-lift);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        text-align: center;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--blush-2);
        background: var(--white);
        cursor: pointer;
    }

    .nav-toggle svg {
        width: 18px;
        height: 18px;
        color: var(--deep);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}