/* =========================================================
   Izzy Westfall  ·  Personal Showcase
   Pastel-vibe stylesheet — palette shifts as you scroll
   ========================================================= */

/* ---- Reset ---- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    color: #3a2f3a;
    background: linear-gradient(180deg,
        #fde4d3 0%,
        #f5dceb 18%,
        #e8d8f0 36%,
        #d9e7f0 54%,
        #d6ebe1 72%,
        #faf3e7 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Type ---- */
h1, h2, h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #2a2230;
}

h1 em, h2 em, h3 em {
    font-style: italic;
    font-weight: 400;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.6rem; }

p { margin-bottom: 1.1rem; max-width: 64ch; }

a {
    color: #8a5a78;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

a:hover, a:focus {
    color: #5a3a52;
    border-bottom-color: currentColor;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

figcaption {
    font-family: "DM Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a5a78;
    margin-top: 0.85rem;
}

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

/* ============================================================
   Vibe palettes — apply per-section to shift the mood on scroll
   ============================================================ */

.vibe-peach   { --bg: #fde4d3; --bg-2: #fbd6c1; --ink: #5a3a30; --eye: #b86a4a; --line: rgba(90,58,48,0.12); }
.vibe-blush   { --bg: #f7dde4; --bg-2: #f1c9d6; --ink: #5a3041; --eye: #b1547a; --line: rgba(90,48,65,0.12); }
.vibe-lavender{ --bg: #e8d8f0; --bg-2: #dcc7e9; --ink: #432f5a; --eye: #7a5aa5; --line: rgba(67,47,90,0.12); }
.vibe-sky     { --bg: #d9e7f0; --bg-2: #c5d8e8; --ink: #2f435a; --eye: #5078a5; --line: rgba(47,67,90,0.12); }
.vibe-mint    { --bg: #d6ebe1; --bg-2: #bedfd2; --ink: #2e4a3e; --eye: #4f8a6e; --line: rgba(46,74,62,0.12); }
.vibe-cream   { --bg: #faf1e1; --bg-2: #f3e3c8; --ink: #4a3b22; --eye: #a07a3a; --line: rgba(74,59,34,0.12); }
.vibe-dark    { --bg: #1a1620; --bg-2: #2a2030; --ink: #f6e9dd; --eye: #d2a37a; --line: rgba(246,233,221,0.16); }

/* Apply vibe vars to backgrounds + ink */
.vibe-peach, .vibe-blush, .vibe-lavender,
.vibe-sky, .vibe-mint, .vibe-cream, .vibe-dark {
    background-color: var(--bg);
    background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--ink);
    transition: background-color 0.6s ease, color 0.6s ease;
}

.vibe-peach h1, .vibe-peach h2, .vibe-peach h3,
.vibe-blush h1, .vibe-blush h2, .vibe-blush h3,
.vibe-lavender h1, .vibe-lavender h2, .vibe-lavender h3,
.vibe-sky h1, .vibe-sky h2, .vibe-sky h3,
.vibe-mint h1, .vibe-mint h2, .vibe-mint h3,
.vibe-cream h1, .vibe-cream h2, .vibe-cream h3,
.vibe-dark h1, .vibe-dark h2, .vibe-dark h3 {
    color: var(--ink);
}

.vibe-dark p { color: rgba(246,233,221,0.85); }
.vibe-dark a { color: var(--eye); }
.vibe-dark a:hover { color: #fff; }

/* ============================================================
   Header & nav
   ============================================================ */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    border-bottom: 1px solid var(--line, rgba(0,0,0,0.08));
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

/* translucent overlay so blur reveals scrolled color underneath */
header.vibe-peach    { background-color: rgba(253,228,211,0.82); }
header.vibe-blush    { background-color: rgba(247,221,228,0.82); }
header.vibe-lavender { background-color: rgba(232,216,240,0.82); }
header.vibe-sky      { background-color: rgba(217,231,240,0.82); }
header.vibe-mint     { background-color: rgba(214,235,225,0.82); }
header.vibe-cream    { background-color: rgba(250,241,225,0.85); }
header.vibe-dark     { background-color: rgba(26,22,32,0.88); }

header h1.brand {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.7rem;
    letter-spacing: 0.01em;
    margin: 0;
}

header h1.brand a { color: var(--ink); border: none; }

header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    list-style: none;
}

header nav a {
    font-family: "DM Sans", sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    opacity: 0.85;
}

header nav a.active,
header nav a:hover,
header nav a:focus {
    opacity: 1;
    color: var(--eye);
    border-bottom-color: var(--eye);
}

/* ============================================================
   Main + section base
   ============================================================ */
main {
    flex: 1;
    width: 100%;
}

main section,
main aside {
    padding: 6rem 6vw;
    position: relative;
}

.eyebrow {
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--eye, #8a5a78);
    margin-bottom: 1.25rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    border: 1px solid var(--ink, #3a2f3a);
    background-color: transparent;
    color: var(--ink, #3a2f3a);
    font-family: "DM Sans", sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    border-radius: 999px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn:hover, .btn:focus {
    background-color: var(--ink, #3a2f3a);
    color: var(--bg, #fde4d3);
    border-bottom-color: var(--ink, #3a2f3a);
    transform: translateY(-1px);
}

/* ============================================================
   HOME page
   ============================================================ */
#hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    min-height: 84vh;
}

#hero .hero-copy { flex: 1 1 340px; max-width: 540px; }

#hero h1 {
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.02;
    margin-bottom: 1.5rem;
}

#hero h1 em {
    display: inline-block;
    font-style: italic;
}

#hero .hero-lede {
    font-size: 1.08rem;
    margin-bottom: 2rem;
    opacity: 0.92;
}

#hero .hero-figure {
    flex: 1 1 380px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

#hero .hero-figure img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

#hero .hero-figure:hover img { transform: scale(1.03); }

#intro {
    text-align: center;
}

#intro .intro-block p {
    margin-left: auto; margin-right: auto;
    font-size: 1.05rem;
}

#featured h2 { text-align: center; }
#featured .eyebrow { text-align: center; }

.featured-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.featured-grid figure {
    flex: 1 1 280px;
    max-width: 380px;
    text-align: center;
}

.featured-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.7s ease, box-shadow 0.4s ease;
}

.featured-grid figure:hover img {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.featured-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.featured-cta a {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--eye);
    border-bottom: 1px solid var(--eye);
    padding-bottom: 2px;
}

#mini-cta { text-align: center; }
.cta-block {
    max-width: 640px;
    margin: 0 auto;
}
.cta-block p { margin-left: auto; margin-right: auto; }

/* ============================================================
   ABOUT page
   ============================================================ */
#bio { text-align: center; }
#bio .eyebrow { text-align: center; }
#bio h1 { margin-bottom: 3rem; }

.bio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1180px;
    margin: 0 auto;
    text-align: left;
}

.bio-portrait {
    flex: 1 1 280px;
    max-width: 420px;
}

.bio-portrait img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.bio-copy { flex: 2 1 360px; }

.bio-copy h2 {
    font-style: italic;
    margin-bottom: 1.5rem;
}

#philosophy, #studio { text-align: center; }
#philosophy .philosophy-block p,
#studio .studio-block p {
    margin-left: auto; margin-right: auto;
}

#things-i-love { text-align: center; }

.loves-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.love-card {
    flex: 1 1 240px;
    max-width: 320px;
    padding: 2rem 1.75rem;
    background-color: rgba(255,255,255,0.55);
    border: 1px solid var(--line);
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: left;
}

.love-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.love-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ============================================================
   PORTFOLIO page
   ============================================================ */
#portfolio-intro { text-align: center; }
#portfolio-intro .eyebrow { text-align: center; }
.portfolio-lede p {
    margin-left: auto; margin-right: auto;
}

#gallery-portraits, #gallery-weddings,
#gallery-editorial, #gallery-family {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
    text-align: center;
}

.gallery-grid figure {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-grid figure:hover img { transform: scale(1.05); }

.gallery-grid figcaption {
    padding: 0.75rem 0.25rem;
    background-color: rgba(255,255,255,0.45);
}

#prints { text-align: center; }
.prints-block p { margin-left: auto; margin-right: auto; }

/* ============================================================
   FILM page
   ============================================================ */
#film-hero {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#film-hero .eyebrow {
    color: var(--eye);
    text-align: center;
}

#film-hero h1 {
    color: var(--ink);
    font-size: clamp(3rem, 7vw, 6.4rem);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    font-style: normal;
}

#film-hero .film-credit {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(246,233,221,0.75);
    margin-bottom: 3rem;
}

.film-player {
    max-width: 1100px;
    margin: 0 auto;
}

.film-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    display: block;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.film-player figcaption {
    color: rgba(246,233,221,0.6);
    margin-top: 1rem;
    text-align: center;
}

#film-synopsis, #film-themes, #film-credits { text-align: center; }
#film-synopsis .film-copy p,
#film-themes .themes-block p,
#film-credits .credits-block p {
    margin-left: auto; margin-right: auto;
}

/* ============================================================
   CONTACT page
   ============================================================ */
#contact-hero { text-align: center; }
#contact-hero .eyebrow { text-align: center; }
.contact-lede p { margin-left: auto; margin-right: auto; }

#contact-details { text-align: center; }

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1100px;
    margin: 2.5rem auto 0;
}

.contact-card {
    flex: 1 1 260px;
    max-width: 340px;
    padding: 2.25rem 1.75rem;
    background-color: rgba(255,255,255,0.55);
    border: 1px solid var(--line);
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: left;
}

.contact-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.55rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.contact-card .contact-line {
    font-family: "DM Sans", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 0;
}

.contact-card .contact-line a {
    color: var(--eye);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

#follow { text-align: center; }
.follow-block p { margin-left: auto; margin-right: auto; }

/* ============================================================
   Footer (always dark for cohesion)
   ============================================================ */
footer {
    background: linear-gradient(180deg, #1f1828 0%, #14101c 100%);
    color: #f6e9dd;
    padding: 4rem 6vw 2.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-brand {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    font-style: italic;
    color: #f6e9dd;
    margin-bottom: 0;
}

.footer-tag {
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(246,233,221,0.6);
    margin-bottom: 0;
}

footer nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    list-style: none;
    justify-content: center;
}

footer nav a {
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(246,233,221,0.75);
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
}

footer nav a:hover, footer nav a:focus {
    color: #f3c9a6;
    border-bottom-color: #f3c9a6;
}

.footer-contact {
    font-size: 0.85rem;
    color: rgba(246,233,221,0.8);
}

.footer-contact a {
    color: #f3c9a6;
    border-bottom: 1px solid transparent;
}

.footer-contact a:hover { border-bottom-color: currentColor; }

.copyright {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(246,233,221,0.45);
    margin-bottom: 0;
}

/* ============================================================
   Subtle scroll-reveal animation (pure CSS, no JS required)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    main section, main aside {
        animation: gentle-rise 0.9s ease-out both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }
}

@keyframes gentle-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
    header {
        flex-direction: column;
        gap: 0.85rem;
        padding: 1.1rem 5vw;
        position: static;
    }

    header nav ul {
        gap: 1.1rem;
        justify-content: center;
    }

    main section, main aside {
        padding: 4rem 6vw;
    }

    #hero {
        gap: 2.5rem;
        min-height: auto;
        padding-top: 2.5rem;
    }

    .bio-grid { gap: 2.5rem; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    header nav a { font-size: 0.7rem; letter-spacing: 0.16em; }
    .contact-card, .love-card { padding: 1.5rem 1.25rem; }
}
