/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


	    @font-face {
  font-family: 'HelveticaNeue';
  src: url('fonts/HelveticaNeueCyr-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HelveticaNeue';
  src: url('fonts/HelveticaNeueCyr-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HelveticaNeue';
  src: url('fonts/HelveticaNeueCyr-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   VARIABLES — edit colours here
   ============================================================ 
   #f5f4f0;
   */
:root {
  --bg:     #f5f4f0;
  --text:   #1a1a18;
  --muted:  #888880;
  --border: #d8d7d2;
  --font: 'HelveticaNeue', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
html {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-weight: 400;
  min-height: 100vh;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   INDEX PAGE
   ============================================================ */
body.index {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.container {
  max-width: 520px;
  width: 100%;
}

.site-icon {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.0rem;
  display: block;
}

.footer-icon {
  width:60px;
  height:60px;
  object-fit: contain;
  margin-top: 1.0rem;
  margin-bottom: 1.0rem;
  display: block;
}

.name {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.bio {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 3rem;
}

.bio p + p {
  margin-top: 1.2em;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.links a {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.links a::before {
  content: '\2192'; /* → */
  transition: transform 0.2s;
}

.links a:hover { color: var(--muted); }
.links a:hover::before { transform: translateX(3px); }

.footer {
  margin-top: 5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================================================
   PAINTINGS PAGE — shared layout
   ============================================================ */
body.paintings {
  padding: 3rem 2rem 6rem;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Header ── */
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

header a.home {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

header a.home:hover { color: var(--text); }

header h1 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Section label ── */
.label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── Hero ── */
.hero {
  margin-top: 3rem;  
  /* margin-bottom: 5rem; */
}

.hero img {
  width: 100%;
  display: block;
}

.hero-desc {
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  /*max-width: 640px;*/
  margin-left: auto;
  margin-right: auto;
}

.hero-desc h2 {
  font-size: clamp(2.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.hero-desc p {
  
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
/*
.hero p {
	/*
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  
  .hero p {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
}
}
*/

/* ── Video ── */
.video-section {
  margin-bottom: 5rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e0dfd9;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Paintings grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 5rem;
}

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

.tile {
  cursor: pointer;
  background: #dddcd7;
}

.tile-inner {
  aspect-ratio: 2 / 5;
  position: relative;
  overflow: hidden;
}

.tile-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tile:hover .tile-inner img { transform: scale(1.03); }

.tile-meta {
  padding: 0.9rem 0.75rem;
  border-top: 1px solid var(--border);
}

.tile-title {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.tile-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Merch / stickers ── */
.merch-section {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-bottom: 5rem;
}

.merch-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.merch-header h3 {
  font-size: 1.2rem;
  font-weight: 400;
}

.merch-header p {
  font-size: 0.75rem;
  color: var(--muted);
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

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

.sticker-tile {
  cursor: pointer;
  background: #e8e7e2;
}

.sticker-tile-inner {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0%;
  overflow: hidden;
}

.sticker-tile-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.sticker-tile:hover .sticker-tile-inner img { transform: scale(1.07); }

.sticker-tile-meta {
  padding: 0.7rem 0.65rem;
  border-top: 1px solid var(--border);
}

.sticker-name {
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

.sticker-price {
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── Contact/purchase ── */
.purchase {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.purchase p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.7;
}

.purchase a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.purchase a:hover { opacity: 0.5; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(245, 244, 240, 0.97);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 2rem 6rem;
}
.lightbox.open { display: block; }

.lb-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 4rem;
}
.lb-inner {
  display: flex;
  flex-direction: column;
}
@media (min-width: 700px) {
  .lb-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}


.lb-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--muted);
  font-family: var(--font);
  transition: color 0.2s;
  z-index: 101;
}

.lb-close:hover { color: var(--text); }

/* painting lightbox */
.lb-image-col {
	width: 100%;
  /*position: sticky;
  top: 2rem;
  */
}

.lb-image-col img { width: 100%; display: block; }

.lb-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 0.5rem;
}

.lb-detail-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #dddcd7;
}

.lb-detail-img img { width: 100%; height: 100%; object-fit: cover; }

/* sticker lightbox */
.lb-sticker-image-col {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

.lb-sticker-image-col img { width: 85%; display: block; }

/* info col */
.lb-info { padding-top: 0.5rem; }

.lb-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.lb-title {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.lb-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2rem;
}

.lb-specs {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  margin-bottom: 2rem;
}

.lb-spec {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.lb-spec-label { color: var(--muted); }

.lb-buy {
  display: block;
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  text-align: center;
  transition: opacity 0.2s;
}

.lb-buy:hover { opacity: 0.65; }
