/* =========================================================
   Oxana Zaiats — Painter
   Design tokens
   ========================================================= */
:root{
  --canvas:      #F2E8D8;   /* warm ivory linen */
  --canvas-dim:  #E8DAC2;   /* slightly deeper ivory, for alt sections */
  --ink:         #241C16;   /* near-black warm charcoal */
  --ink-soft:    #4a3f36;   /* softened body text */
  --burgundy:    #6E1423;   /* deep wine accent */
  --burgundy-2:  #8c2233;   /* lighter wine for hovers */
  --gold:        #B4863A;   /* aged gold leaf */
  --gold-pale:   #D9C9A3;   /* pale gold hairlines */
  --umber:       #241812;   /* near-black warm brown, dark sections */
  --umber-2:     #34241a;   /* dark section secondary */
  --paper:       #FBF6EC;   /* lightest card background */

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "Newsreader", Georgia, serif;
  --font-utility: "Inter", -apple-system, sans-serif;

  --max-width: 1240px;
  --edge: clamp(20px, 5vw, 72px);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; }

::selection{ background: var(--burgundy); color: var(--paper); }

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2{ font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.7rem); }

p{ margin: 0 0 1.1em; color: var(--ink-soft); }

.eyebrow{
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-block;
  margin-bottom: 0.9em;
}

.italic{ font-style: italic; }

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Header / Nav
   ========================================================= */
/* Note: backdrop-filter is applied via ::before rather than directly on
   .site-header, because filter/backdrop-filter on an ancestor makes it the
   containing block for position:fixed descendants (like the mobile nav
   dropdown below), which would otherwise trap that menu inside the
   header's own height instead of the full viewport. */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(36,28,22,0.1);
}
.site-header::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(242,232,216,0.86);
  backdrop-filter: blur(10px);
  z-index:-1;
}

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

.brand{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand em{ font-style: italic; color: var(--burgundy); }

.main-nav{
  display:flex;
  align-items:center;
  gap: clamp(18px, 3vw, 40px);
  font-family: var(--font-utility);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.main-nav a{
  text-decoration:none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:1px; background: var(--burgundy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after{ transform: scaleX(1); }
.main-nav a[aria-current="page"]{ color: var(--ink); }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width: 34px; height: 26px; position: relative;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:1px; background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span:nth-child(1){ top:2px; }
.nav-toggle span:nth-child(2){ top:12px; }
.nav-toggle span:nth-child(3){ top:22px; }

@media (max-width: 760px){
  .nav-toggle{ display:block; }
  .main-nav{
    position: fixed; inset: 78px 0 0 0;
    background: var(--canvas);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px var(--edge);
    gap: 26px;
    font-size: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.open{ opacity:1; transform: translateY(0); pointer-events:auto; }
}

/* =========================================================
   Buttons / links
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-family: var(--font-utility);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  transition: background .25s ease, color .25s ease;
}
.btn:hover{ background: var(--ink); color: var(--canvas); }
.btn.btn-light{ color: var(--paper); }
.btn.btn-light:hover{ background: var(--paper); color: var(--umber); }
.btn.btn-solid{ background: var(--burgundy); color: var(--paper); border-color: var(--burgundy); }
.btn.btn-solid:hover{ background: var(--burgundy-2); border-color: var(--burgundy-2); }

.text-link{
  font-family: var(--font-utility);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--burgundy);
  padding-bottom: 3px;
  color: var(--ink);
}

/* =========================================================
   HERO — signature seam/split typography
   ========================================================= */
.hero{
  position: relative;
  min-height: 92vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background: var(--umber);
}
.hero-media{
  position:absolute; inset:0;
}
.hero-media img{
  width:100%; height:100%; object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.94) brightness(0.72);
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(36,24,18,0.15) 0%, rgba(36,24,18,0.15) 45%, rgba(20,13,10,0.86) 100%);
}

.hero-content{
  position: relative;
  z-index: 2;
  width:100%;
  padding-bottom: clamp(48px, 8vw, 96px);
  color: var(--paper);
}

.hero-eyebrow{
  font-family: var(--font-utility);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 18px;
  display:block;
}

/* the seam: title rendered as two layered spans, one hairline-offset
   with a gold crack running down the join — echoes the artist's
   underwater / duality paintings rather than a generic glitch effect */
.seam-title{
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 9vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  margin: 0 0 0.3em;
  color: var(--paper);
  isolation: isolate;
}
.seam-title .layer{
  display:block;
}
.seam-title .layer-ghost{
  position:absolute; inset:0;
  color: var(--gold);
  clip-path: polygon(0 0, 52% 0, 47% 100%, 0% 100%);
  transform: translate(6px, -3px);
  opacity: 0.85;
  mix-blend-mode: screen;
}
.seam-title .seam-line{
  position:absolute;
  top:-4%; bottom:-4%;
  left: 49%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: 0.9;
}

.hero-sub{
  max-width: 560px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--gold-pale);
  margin-bottom: 34px;
}

.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* =========================================================
   Sections
   ========================================================= */
section{ padding: clamp(60px, 10vw, 128px) 0; }
.section-alt{ background: var(--canvas-dim); }
.section-dark{ background: var(--umber); color: var(--paper); }
.section-dark p{ color: rgba(251,246,236,0.72); }
.section-dark .eyebrow{ color: var(--gold); }

.section-head{
  max-width: 640px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.hr{
  border:none; height:1px;
  background: linear-gradient(90deg, var(--gold-pale), transparent 70%);
  margin: 0 0 48px;
}

/* =========================================================
   Series teaser grid (Home)
   ========================================================= */
.series-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink);
}
.series-card{
  position:relative;
  aspect-ratio: 3/4;
  overflow:hidden;
  text-decoration:none;
  color: var(--paper);
  display:flex;
  align-items:flex-end;
  background: var(--umber);
}
.series-card img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease;
  filter: saturate(0.92) brightness(0.86);
}
.series-card:hover img{ transform: scale(1.06); filter: saturate(1) brightness(0.72); }
.series-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(20,13,10,0.88) 100%);
}
.series-card-label{
  position:relative; z-index:2;
  padding: 26px;
}
.series-card-label .eyebrow{ color: var(--gold-pale); margin-bottom:6px; }
.series-card-label h3{ margin:0; color: var(--paper); }

@media (max-width: 860px){
  .series-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .series-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   About-teaser / split layout
   ========================================================= */
.split{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items:center;
}
.split.reverse{ grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-media{ order:2; }
.split-media img{ width:100%; }
.split-media.framed{
  border: 1px solid var(--gold-pale);
  padding: 14px;
}
@media (max-width: 860px){
  .split, .split.reverse{ grid-template-columns: 1fr; }
  .split.reverse .split-media{ order: 0; }
}

/* =========================================================
   Gallery grid + lightbox
   ========================================================= */
.filters{
  display:flex; flex-wrap:wrap; gap: 10px 28px;
  margin-bottom: 40px;
  font-family: var(--font-utility);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.filters button{
  background:none; border:none; cursor:pointer;
  padding: 6px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.filters button.active,
.filters button:hover{ color: var(--burgundy); border-color: var(--burgundy); }

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 30px);
}
.gallery-item{
  cursor:pointer;
  border:none; background:none; padding:0; text-align:left;
  font-family:inherit;
}
.gallery-figure{
  overflow:hidden;
  background: var(--canvas-dim);
  aspect-ratio: 4/5;
}
.gallery-figure img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.gallery-item:hover .gallery-figure img{ transform: scale(1.05); }
.gallery-caption{
  padding-top: 14px;
}
.gallery-caption .work-title{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}
.gallery-caption .work-meta{
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.gallery-set-title{
  margin-top: 84px;
}
.gallery-set-title:first-of-type{ margin-top:0; }

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* Lightbox */
/* Lightbox: uses natural top-down flow (not flex-centering) so that
   long content — like a multi-stanza poem — can be scrolled into view.
   Flex-centering an overflowing container clips its top with no way
   to scroll to it in most browsers, which is what caused the "frozen"
   feeling on longer poems. */
.lightbox{
  position: fixed; inset:0; z-index: 100;
  background: rgba(20,13,10,0.94);
  display:none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--edge);
}
.lightbox.open{ display:block; }
.lightbox-inner{
  max-width: 1100px; width:100%;
  margin: 0 auto;
  display:grid; grid-template-columns: 1fr;
  gap: 18px;
}
.lightbox-inner img{
  max-height: 74vh; width:auto; margin:0 auto; object-fit:contain;
}
.lightbox-caption{
  text-align:center; color: var(--paper);
}
.lightbox-caption .work-title{
  font-family: var(--font-display); font-style:italic; font-size:1.3rem;
}
.lightbox-caption .work-meta{
  font-family: var(--font-utility); font-size:0.75rem; letter-spacing:0.1em;
  text-transform:uppercase; color: var(--gold);
}
.lightbox-poem{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(217,201,163,0.35);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(251,246,236,0.82);
  white-space: pre-line;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.lightbox-poem:empty{ display:none; }
.lightbox-close{
  position: fixed; top: 24px; right: var(--edge);
  background:none; border:1px solid var(--gold-pale); color:var(--paper);
  width:44px; height:44px; cursor:pointer; font-size:1.2rem;
  z-index: 101;
}
.lightbox-close:hover{ background: var(--gold-pale); color: var(--umber); }

/* =========================================================
   Bio / Recognition (About)
   ========================================================= */
.bio-copy p:first-of-type::first-letter{
  font-family: var(--font-display);
  font-size: 3.6em;
  float:left;
  line-height: 0.8;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--burgundy);
}

.recognition-list{
  list-style:none; margin:0; padding:0;
  border-top: 1px solid var(--gold-pale);
}
.recognition-list li{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gold-pale);
  align-items:baseline;
}
.recognition-list .r-year{
  font-family: var(--font-utility);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--burgundy);
}
.recognition-list .r-desc{
  font-family: var(--font-body);
  font-size: 1.05rem;
}
@media (max-width: 560px){
  .recognition-list li{ grid-template-columns: 1fr; gap:6px; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
}
@media (max-width: 800px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.field{
  margin-bottom: 26px;
}
.field label{
  display:block;
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.field input, .field textarea{
  width:100%;
  background: transparent;
  border:none;
  border-bottom: 1px solid rgba(251,246,236,0.35);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 10px 2px;
}
.field input:focus, .field textarea:focus{
  outline:none;
  border-bottom-color: var(--gold);
}
.field textarea{ resize: vertical; min-height: 120px; }

.contact-info dt{
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 28px;
}
.contact-info dt:first-child{ margin-top:0; }
.contact-info dd{
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--umber);
  color: rgba(251,246,236,0.6);
  padding: 48px 0;
  font-family: var(--font-utility);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.site-footer .wrap{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
}
.site-footer a{ text-decoration:none; color: var(--gold-pale); }

/* =========================================================
   Reveal-on-scroll (subtle, restrained)
   ========================================================= */
/* Only hide .reveal elements when JS has confirmed it can un-hide them —
   keeps the page fully visible if JavaScript fails to load. */
.has-js .reveal{
  opacity:0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform:none; }
