/* =====================================================
   Portfolio — minimal pink design system
   Palette:  bg #FBF1F4 · surface #F6E1E8 · accent #C9557A
             text #2E2026 · muted #8A6B76 · line #E9C9D3
   Type:     Fraunces (display) · Inter (body/UI)
   ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap");

:root {
    --bg: #fbf1f4;
    --surface: #f6e1e8;
    --accent: #c9557a;
    --accent-soft: #e7a9bc;
    --text: #2e2026;
    --muted: #8a6b76;
    --line: #e9c9d3;

    --font-display: "Fraunces", serif;
    --font-body: "Inter", sans-serif;

    --max-width: 1080px;
    --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* ---------- utility ---------- */

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

/* ---------- signature underline (hover squiggle) ---------- */
/* used on nav links + gallery captions: a hand-drawn pink
   underline that draws itself in on hover, instead of a
   generic straight border-bottom */

.squiggle {
    position: relative;
    display: inline-block;
}

.squiggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q 12 0, 25 5 T 50 5 T 75 5 T 100 5' fill='none' stroke='%23C9557A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: left;
    transition:
        opacity 0.25s ease,
        transform 0.3s ease;
}

.squiggle:hover::after,
.squiggle.active::after {
    opacity: 1;
    transform: scaleX(1);
}

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

header {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

nav ul {
    display: flex;
    gap: 2.25rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
}

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

.hero {
    padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(2.5rem, 8vw, 4.5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: end;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    /*line-height: 1.05;*/
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.hero span {
    font-size: 3.567rem;
}

.hero-note {
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 26ch;
}

.hero-note strong {
    display: block;
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* ---------- section heading ---------- */

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 2.25rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

/* ---------- about ---------- */

.about-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-body p + p {
    margin-top: 1.1rem;
}

.about-body .lede {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
}

/* ---------- work / projects grid ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
}

.card {
    display: block;
}

.card-thumb {
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    font-family: var(--font-display);
    font-style: italic;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
    margin-top: 1rem;
}

.card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.card .tag {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.6rem;
    display: inline-block;
}

/* ---------- contact ---------- */

.contact-block {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
}

.contact-block h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    max-width: 14ch;
}

.btn {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--accent);
}

.socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.socials a {
    font-size: 0.85rem;
    color: var(--muted);
}

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

footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
}

/* ---------- gallery page ---------- */

.filters {
    display: flex;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filters button {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    padding-bottom: 0.2rem;
}

.filters button.active,
.filters button:hover {
    color: var(--text);
}

.filters button.active::after,
.filters button:hover::after {
    content: "";
    display: block;
    height: 5px;
    margin-top: 0.15rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q 12 0, 25 5 T 50 5 T 75 5 T 100 5' fill='none' stroke='%23C9557A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.art-item {
    break-inside: avoid;
    cursor: pointer;
}

.art-item .frame {
    background: var(--surface);
    border: 1px solid var(--line);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    font-family: var(--font-display);
    font-style: italic;
}

.art-item:nth-child(3n + 2) .frame {
    aspect-ratio: 1 / 1;
}
.art-item:nth-child(4n) .frame {
    aspect-ratio: 4 / 5;
}

.art-item .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-item .caption {
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.art-item .caption .medium {
    color: var(--muted);
    font-size: 0.78rem;
}

/* ---------- lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(46, 32, 38, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: var(--pad);
}

.lightbox.open {
    display: flex;
}

.lightbox-inner {
    max-width: 720px;
    width: 100%;
    color: var(--bg);
    text-align: center;
}

.lightbox-frame {
    background: var(--surface);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    font-family: var(--font-display);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.lightbox-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1.75rem;
    right: var(--pad);
    background: none;
    border: none;
    color: var(--bg);
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

/* ---------- responsive ---------- */

@media (max-width: 780px) {
    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
    }
    nav.open {
        display: block;
    }
    header .wrap {
        flex-wrap: wrap;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.25rem;
        width: 100%;
    }

    .hero-grid,
    .about-body,
    .grid,
    .contact-block {
        grid-template-columns: 1fr;
    }

    .hero-note {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 1rem;
    }

    .art-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .squiggle::after {
        transition: none;
    }
}

/* visible keyboard focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
