/* ============================================
   KATARZYNA SCHWENK — Artysta · Malarka · Rysownik
   Elegant gallery aesthetic
   ============================================ */

:root {
    --ink: #1a1a1a;
    --charcoal: #2d2d2d;
    --paper: #f7f3ec;
    --paper-warm: #ede5d6;
    --cream: #faf6ee;
    --rose: #b58a7a;
    --rose-deep: #8d5e4f;
    --sand: #d4c5a9;
    --line: #d8cdb8;
    --muted: #6b6258;

    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --max: 1280px;
    --gutter: 2rem;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--rose-deep); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }

p { color: var(--muted); }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--rose-deep);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* ── NAV ─────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(250, 246, 238, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    padding: 1.25rem 0;
}
.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.brand span { color: var(--rose-deep); font-style: italic; }
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--charcoal);
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--rose-deep);
    transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative;
}
.nav-toggle span {
    position: absolute; left: 0; right: 0; height: 1px;
    background: var(--ink); transition: var(--transition);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 2rem var(--gutter);
        gap: 1.5rem;
        border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .nav-links.open { max-height: 400px; }
}

/* ── HERO ─────────────────────────────── */
.hero {
    padding: 12rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.hero-text h1 {
    margin-bottom: 1.75rem;
    font-style: italic;
}
.hero-text h1 em { font-style: normal; color: var(--rose-deep); }
.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 520px;
}
.hero-figure {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--paper-warm);
    border: 1px solid var(--line);
}
.hero-figure::before {
    content: '';
    position: absolute;
    inset: -20px -20px 20px 20px;
    background: var(--rose);
    opacity: 0.15;
    z-index: -1;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
    .hero { padding: 8rem 0 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── BUTTONS ─────────────────────────── */
.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--cream);
    transition: var(--transition);
    cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn + .btn { margin-left: 1rem; }

/* ── SECTIONS ─────────────────────────── */
section { padding: 7rem 0; }
.section-head { text-align: center; margin-bottom: 5rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-style: italic; margin-bottom: 1rem; }
.section-head h2 em { font-style: normal; color: var(--rose-deep); }
.section-head p { font-size: 1.1rem; }

.divider {
    width: 60px;
    height: 1px;
    background: var(--rose);
    margin: 0 auto 2rem;
}

/* ── INTRO STRIP ──────────────────────── */
.intro {
    background: var(--paper);
    text-align: center;
}
.intro blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.4;
    color: var(--ink);
    max-width: 880px;
    margin: 0 auto 2rem;
}
.intro cite {
    font-style: normal;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rose-deep);
}

/* ── GALLERY GRID ─────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}
.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--paper-warm);
    overflow: hidden;
    cursor: pointer;
}
.gallery-item.tall { aspect-ratio: 3/5; }
.gallery-item.wide { aspect-ratio: 4/3; grid-column: span 2; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26,26,26,0.85) 100%);
    display: flex; align-items: flex-end;
    padding: 1.75rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay h3 {
    color: var(--cream); font-style: italic; font-size: 1.4rem;
}
.gallery-item-overlay p {
    color: var(--paper-warm); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-top: 0.5rem;
}
.gallery-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--rose-deep);
    background: linear-gradient(135deg, var(--paper-warm), var(--sand));
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 720px) {
    .gallery-item.wide { grid-column: span 1; aspect-ratio: 3/4; }
}

/* ── ABOUT / BIO ──────────────────────── */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}
.bio-figure {
    position: sticky;
    top: 7rem;
    aspect-ratio: 3/4;
    background: var(--paper-warm);
    border: 1px solid var(--line);
}
.bio-figure img { width: 100%; height: 100%; object-fit: cover; }
.bio-text h2 { margin-bottom: 2rem; font-style: italic; }
.bio-text p { font-size: 1.05rem; margin-bottom: 1.5rem; }
.bio-text p:first-letter {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin: 0.1em 0.15em 0 0;
    color: var(--rose-deep);
}
.bio-text p ~ p:first-letter {
    font-size: 1em; float: none; margin: 0; color: inherit;
}

@media (max-width: 820px) {
    .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
    .bio-figure { position: static; }
}

/* ── TIMELINE / CV ────────────────────── */
.timeline { max-width: 760px; margin: 0 auto; }
.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--rose-deep);
    font-style: italic;
}
.timeline-content h4 {
    font-size: 1.2rem; margin-bottom: 0.4rem;
}
.timeline-content p { font-size: 0.95rem; }

/* ── CONTACT ──────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.contact-info h2 { font-style: italic; margin-bottom: 1.5rem; }
.contact-info p { font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 460px; }

.contact-detail {
    display: flex; gap: 1rem; padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rose-deep);
    min-width: 110px;
}
.contact-detail-value { color: var(--ink); font-size: 1rem; }

.contact-form { display: grid; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}
.form-field input,
.form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--ink);
    transition: var(--transition);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--rose-deep);
}

@media (max-width: 820px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── INSTAGRAM PLACEHOLDER ───────────── */
.ig-strip {
    background: var(--paper);
    text-align: center;
    padding: 5rem 0;
}
.ig-strip h2 { font-style: italic; margin-bottom: 1rem; }
.ig-strip p { margin-bottom: 2rem; }
.ig-handle {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--rose-deep);
    font-style: italic;
}

/* ── FOOTER ───────────────────────────── */
footer {
    background: var(--ink);
    color: var(--paper-warm);
    padding: 4rem 0 2rem;
    text-align: center;
}
footer .brand { color: var(--cream); display: block; margin-bottom: 1rem; }
footer p { color: var(--paper-warm); margin-bottom: 1.5rem; }
.footer-meta {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--sand);
}
.footer-meta a { color: var(--rose); }
.footer-meta a:hover { color: var(--cream); }

/* ── PORTFOLIO BANNER (Dekada72H notice) ─ */
.portfolio-banner {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    background: var(--ink);
    color: var(--cream);
    padding: 0.75rem 1.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 100;
    border-left: 2px solid var(--rose);
}
.portfolio-banner a { color: var(--rose); margin-left: 0.5rem; }
.portfolio-banner a:hover { color: var(--cream); }

@media (max-width: 720px) {
    .portfolio-banner { bottom: 0; right: 0; left: 0; text-align: center; border-left: none; border-top: 2px solid var(--rose); }
}

/* ── ANIMATIONS ───────────────────────── */
.fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
