/* =========================================================
   Leyla Shapiro — static artist site
   Adapted from the live site's stylesheet (stylesheet.css)
   Scope: landing + origin + portfolio, simplified nav/footer
   ========================================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f3efe8;
    color: #1a1a1a;
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ===== VARIABLES ===== */
:root {
    --paper: #f3efe8;
    --paper-dark: #e8e3da;
    --paper-card: #f8f5ef;
    --text: #1a1a1a;
    --text-body: #3a3a3a;
    --text-muted: #7a756c;
    --border: #d4cfc5;
    --border-light: #e2ddd3;
    --charcoal-dark: #1a1a1a;
    --charcoal-mid: #4a4a4a;
    --charcoal-light: #8a857c;
    --accent: #2a2a2a;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --header-height: 78px;
    --max-w: 1280px;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    background: rgba(243, 239, 232, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    height: 100%;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.nav-spacer { flex: 1 1 auto; min-width: 0; }
.nav-logo {
    align-self: flex-end; display: block; text-decoration: none;
    white-space: nowrap; line-height: 0;
    justify-self: start;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo-img { display: block; height: 56px; width: auto; }
@media (max-width: 900px) { .nav-logo-img { height: 40px; } }

/* Nav */
.main-nav {
    display: flex; align-items: center; justify-content: center;
    flex: 0 auto; gap: 32px;
    justify-self: center;
}
.main-nav-list {
    display: flex; align-items: center; list-style: none; gap: 28px;
}
.main-nav-list a {
    font-size: 0.85rem; font-weight: 400; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--charcoal-light);
    transition: color 0.2s; padding: 4px 0;
}
.main-nav-list a:hover { color: var(--charcoal-dark); }

/* Social icons inside navbar (Instagram) */
.social-icons {
    display: flex; align-items: center; gap: 14px;
    justify-self: end;
}
.social-icons a {
    color: var(--charcoal-light); transition: color 0.2s;
    display: flex; align-items: center;
}
.social-icons a:hover { color: var(--charcoal-dark); }
.social-icons svg { width: 14px; height: 14px; fill: currentColor; }

/* Mobile nav toggle */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal-dark); transition: 0.3s; border-radius: 2px; }

@media (max-width: 900px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .nav-logo { justify-self: start; }
    .main-nav { justify-self: end; }
    .nav-spacer { display: none; }
    .main-nav-list { display: none; }
    .social-icons { display: none; }
    .nav-right .nav-toggle { display: flex; }
    .nav-toggle { display: flex; }
    .main-nav-list.open {
        display: flex; flex-direction: column; position: fixed;
        top: var(--header-height); left: 0; right: 0; bottom: 0;
        background: rgba(243,239,232,0.98); padding: 40px 24px;
        gap: 12px; align-items: flex-start; z-index: 999;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-top: var(--header-height);
}
.hero-image { padding-bottom: 80px; }
.the-hero-img {
    height: calc(100vh - var(--header-height)); width: auto;
    max-width: 100vw; object-fit: contain;
    margin: var(--header-height) auto 0; display: block;
}
.hero-image .hero-cta:hover { background: #f3efe8 !important; color: #1a1a1a !important; }
.hero-stage { position: relative; display: inline-block; }
.hero-content {
    position: absolute; top: 75%; left: 50%;
    transform: translate(-50%, -50%); z-index: 2;
    text-align: center; width: max-content;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 21px 60px; border: 1px solid var(--charcoal-dark);
    color: var(--charcoal-dark); font-size: 1.125rem; font-weight: 400;
    letter-spacing: 3px; text-transform: uppercase;
    background: rgba(26,26,26,0.35);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background 0.3s, color 0.3s, transform 0.3s; border-radius: 0;
}
.hero-cta:hover { background: var(--charcoal-dark); color: var(--paper); }
/* parallelogram button */
.skew-btn { transform: skewX(-45deg); }
.skew-btn .skew-label { display: inline-block; transform: skewX(45deg); }

/* ===== SECTION COMMON ===== */
.section-full { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
    font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--charcoal-light); margin-bottom: 8px; font-weight: 400;
}
.section-title {
    font-family: var(--font-sans); font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300; color: var(--text); letter-spacing: 1px;
}
.divider-line { width: 40px; height: 1px; background: var(--charcoal-mid); margin: 16px auto; }

/* ===== MASONRY GRID (left-to-right, row-by-row) ===== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    padding: 0;
}
.masonry-grid .masonry-item {
    break-inside: auto; width: 100%; overflow: hidden;
    display: flex; align-items: center; transition: transform 0.3s;
}
.masonry-grid .masonry-item:hover { transform: translateY(-3px); }
.masonry-grid .masonry-item img { width: 100%; height: auto; display: block; }
@media (max-width: 1200px) { .masonry-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .masonry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .masonry-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== ORIGIN — EDITORIAL BODY (uncropped figures) ===== */
.origin-editorial {
    max-width: 760px; margin: 0 auto;
    padding: 8px 24px 80px;
    color: var(--text-body); font-size: 1.02rem; line-height: 1.85;
}
.origin-editorial .kicker {
    text-align: center; font-size: 0.68rem; letter-spacing: 4px;
    text-transform: uppercase; color: var(--charcoal-light); margin-bottom: 10px;
}
.origin-editorial .rule {
    width: 44px; height: 1px; background: var(--charcoal-mid); margin: 20px auto 44px;
}
.origin-editorial .lede {
    font-size: 1.12rem; color: var(--charcoal-dark); font-weight: 400;
    line-height: 1.7; margin: 0 0 28px; padding: 0 8px;
}
.origin-editorial p { margin: 0 0 24px; }
.origin-editorial .dropcap::first-letter {
    float: left; font-size: 4.4rem; line-height: 0.85;
    padding: 6px 12px 0 0; font-weight: 200; color: var(--charcoal-dark);
}
/* Floated editorial figures — NO crop on images (no oval/organic shape) */
.fig-left  { float: left;  margin: 8px 32px 18px 0; }
.fig-right { float: right; margin: 8px 0 18px 32px; }
.fig-left  img, .fig-right img {
    display: block; width: 100%; height: auto;
}
.fig-left .fig-cap, .fig-right .fig-cap {
    font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--charcoal-light); margin-top: 8px;
}
.fig-left  { width: 42%; }
.fig-right { width: 44%; }
/* Pull quote */
.pullquote {
    margin: 36px 0 36px 0; padding: 8px 32px;
    border-left: 2px solid var(--charcoal-mid);
    font-size: 1.35rem; font-weight: 300; line-height: 1.5;
    color: var(--charcoal-dark); letter-spacing: 0.3px;
}
.pullquote .pq-source {
    display: block; margin-top: 12px; font-size: 0.68rem;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--charcoal-light); font-weight: 400;
}
.origin-editorial .clearfix::after { content: ''; display: table; clear: both; }
@media (max-width: 560px) {
    .fig-left, .fig-right { float: none; width: 100%; margin: 24px 0; }
}

/* ===== FOOTER (contact only) ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--paper); }
.footer-contact {
    max-width: var(--max-w); margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}
.footer-contact .footer-logo {
    font-family: var(--font-sans); font-size: 1rem;
    font-weight: 400; letter-spacing: 2px; color: var(--text);
    margin-bottom: 12px;
}
.footer-contact .footer-email {
    font-family: var(--font-sans); font-size: 1rem;
    font-weight: 400; letter-spacing: 2px; color: var(--charcoal-light);
}
.footer-contact .footer-email:hover { color: var(--charcoal-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section-full { padding: 48px 0; }
}

/* =========================================================
   LIGHTBOX — click any artwork image to view it large
   over a blurred backdrop, retaining aspect ratio.
   ========================================================= */
.lightbox {
    position: fixed; inset: 0; z-index: 5000;
    display: none; align-items: center; justify-content: center;
    background: rgba(26, 26, 26, 0.55);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 92vw; max-height: 92vh; width: auto; height: auto;
    object-fit: contain; display: block;
    cursor: default;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute; top: 18px; right: 24px;
    font-size: 2rem; line-height: 1; color: var(--paper);
    opacity: 0.7; cursor: pointer; background: none; border: none;
    transition: opacity 0.2s; z-index: 2;
}
.lightbox-close:hover { opacity: 1; }
