@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #d8cebb;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 56px 16px 0;
  flex-wrap: wrap;
}

.logo {
  display: block;
  width: clamp(478px, 56vw, 743px);
  margin-left: -38px;       /* let the string knot tuck against the left edge */
  transition: transform .25s ease;
}
.logo img {
  width: 100%;
  height: auto;
  display: block;
}
.logo:hover { transform: translateX(2px); }

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-right: 10vw;       /* shift the tape buttons toward the left of the page */
}

@media (max-width: 820px) {
  .site-header {
    justify-content: center;
    padding: 16px 16px 8px;
  }
  .logo {
    width: clamp(280px, 80vw, 460px);
    margin-left: 0;
  }
  .nav { justify-content: center; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-block;
  width: clamp(140px, 15vw, 200px);
  transition: transform .2s ease, filter .2s ease;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.18));
}

/* PORTFOLIO tape uses its own size scale */
.nav a:first-child {
  width: clamp(175px, 19.1vw, 250px);
}
.nav a:nth-child(1) { transform: rotate(-2deg); }
.nav a:nth-child(2) { transform: rotate(1deg); }
.nav a:nth-child(3) { transform: rotate(-1deg); }

.nav a:hover {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.2));
}
.nav a:nth-child(1):hover { transform: rotate(-2deg) translateY(-2px); }
.nav a:nth-child(2):hover { transform: rotate(1deg) translateY(-2px); }
.nav a:nth-child(3):hover { transform: rotate(-1deg) translateY(-2px); }

.nav a img { width: 100%; height: auto; }

/* ---------- Main wrap ---------- */
main {
  padding: 24px 56px 96px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- Portfolio grid (polaroid style) ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 44px;
  margin-top: 24px;
}

@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; }
}
@media (max-width: 620px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 40px; }
  main { padding: 16px 24px 64px; }
}

.polaroid {
  background: #fdfaf4;
  padding: 14px 14px 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.20), 0 2px 6px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.polaroid:nth-child(6n+1) { transform: rotate(-1.4deg); }
.polaroid:nth-child(6n+2) { transform: rotate(0.7deg); }
.polaroid:nth-child(6n+3) { transform: rotate(-0.4deg); }
.polaroid:nth-child(6n+4) { transform: rotate(1.1deg); }
.polaroid:nth-child(6n+5) { transform: rotate(-0.9deg); }
.polaroid:nth-child(6n)   { transform: rotate(0.5deg); }

.polaroid:hover {
  transform: rotate(0) translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0,0,0,.24), 0 4px 8px rgba(0,0,0,.12);
  z-index: 2;
}

.polaroid .frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ddd;
}
.polaroid .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid .meta {
  font-size: 12.5px;
  line-height: 1.5;
  padding: 14px 4px 2px;
  color: #2b2b2b;
}
.polaroid .meta .author {
  font-size: 12px;
  color: #2b2b2b;
  margin-bottom: 2px;
  font-weight: 500;
  display: block;
}
.polaroid .meta .title {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.polaroid .meta em { font-style: italic; color: #555; }

/* ---------- About page ---------- */
.about-top {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .about-top { grid-template-columns: 1fr; }
}

.about-photo {
  width: 100%;
  transform: rotate(-3deg);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.about-photo img { width: 100%; height: auto; }

.about-text {
  padding-top: 32px;
  font-size: 16px;
  line-height: 1.65;
  color: #2b2b2b;
}
.about-text p { margin-bottom: 12px; }
.about-text .contact {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
}
.about-text .contact .label {
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.about-text a {
  color: #3a5a8a;
  border-bottom: 1px dotted rgba(58,90,138,.5);
}
.about-text a:hover { color: #1f3a66; }

/* ---------- Artist statement card ---------- */
.statements {
  position: relative;
  margin: 56px auto 0;
  max-width: 980px;
}

/* Language toggle anchored to top-right of the paper card */
.lang-switch {
  position: absolute;
  top: -34px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  z-index: 3;
}
.lang-btn {
  background: transparent;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  color: #6a5f47;
  font-weight: 500;
  letter-spacing: .12em;
  font-size: 13px;
  transition: color .2s ease;
  font-family: inherit;
}
.lang-btn:hover { color: #2b2b2b; }
.lang-btn.is-active {
  color: #3a5a8a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.lang-divider { color: #8a8270; }

.statement {
  position: relative;
  background: url('artist statement transparent.webp') no-repeat center top;
  background-size: 100% auto;
  padding: 162px 130px 100px;     /* extra top padding pushes text down inside the paper */
  min-height: 520px;
}

/* Show only the active language */
.statements[data-lang="en"] .statement[data-lang="uk"],
.statements[data-lang="uk"] .statement[data-lang="en"] {
  display: none;
}

/* Ukrainian text is a bit longer — bump it up 5% so the layout balances */
.statement[data-lang="uk"] {
  padding-top: 154px;
}
.statement .lede {
  font-style: italic;
  color: #4a4a4a;
  margin-bottom: 18px;
}
.statement p {
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #2b2b2b;
}

@media (max-width: 720px) {
  .statement {
    padding: 80px 28px 50px;
    background-size: 100% 100%;
    min-height: auto;
  }
}

/* ---------- CV page ---------- */
.cv-paper {
  max-width: 980px;
  margin: 32px auto 0;
  background: #fdfaf4;
  padding: 64px 72px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08);
}
@media (max-width: 720px) {
  .cv-paper { padding: 36px 24px; }
}
.cv-paper h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -.01em;
  color: #2b2b2b;
  margin-bottom: 6px;
}
.cv-paper .subtitle {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: #6e6757;
  margin-bottom: 32px;
}
.cv-paper h2 {
  font-size: 20px;
  color: #4a6a4a;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0d6bc;
  letter-spacing: .04em;
}
.cv-paper h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: #5a4a3a;
}
.cv-paper p, .cv-paper li { font-size: 14.5px; line-height: 1.7; }
.cv-paper ul, .cv-paper ol {
  padding-left: 22px;
  margin-bottom: 10px;
}
.cv-paper li { margin-bottom: 6px; }
.cv-paper a {
  color: #3a5a8a;
  border-bottom: 1px dotted rgba(58,90,138,.4);
  word-break: break-word;
}
.cv-paper a:hover { color: #1f3a66; }
.cv-paper .tag {
  display: inline-block;
  font-size: 12px;
  background: #e6dec5;
  color: #4a3e26;
  padding: 2px 8px;
  border-radius: 3px;
  margin: 2px 4px 2px 0;
}

.artworks-list { columns: 1; }
@media (min-width: 720px) {
  .artworks-list { columns: 2; column-gap: 36px; }
}
.artworks-list li { break-inside: avoid; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9999;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  cursor: zoom-out;
  transform: scale(.96);
  transition: transform .25s ease;
  background: #d8cebb;
}
.lightbox.is-open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: transparent;
  color: #f4ead4;
  border: 0;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  transition: transform .15s ease, color .15s ease;
}
.lightbox-close:hover { color: #fff; transform: scale(1.15); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 24px 16px 48px;
  font-size: 12px;
  color: #6e6757;
  letter-spacing: .08em;
}
