/* -----------------------------
   VARIABLES
------------------------------ */
:root{
  --heroW: 950px;     /* largeur commune menu + image */
  --pad: clamp(14px, 3vw, 20px);
  --text: #111;
  --muted: #666;
}

/* -----------------------------
   BASE
------------------------------ */
*{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
}

a{
  color: inherit;
  text-decoration: none;
}

a:hover{
  opacity: 0.6;
}

/* -----------------------------
   HEADER
------------------------------ */
.site-header{
  padding: clamp(14px, 3vw, 18px) var(--pad);
}

.header-inner--hero{
  position: relative;
  width: 100%;
  max-width: var(--heroW);
  margin: 0 auto;
}

.header-inner--hero:has(.menu-arrow){
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  column-gap: 8px;
  align-items: start;
}

/* Centered menu */
.site-nav--center{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;              /* reduced spacing */
  justify-content: center;
  align-items: center;
  font-size: 14px;
  line-height: 1.35;
}

.header-inner--hero:has(.menu-arrow) .site-nav--center{
  grid-column: 2;
}

.site-nav a[aria-current="page"]{
  font-weight: 500;
}

/* Back arrow (top-left) */
.menu-arrow{
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  padding: 4px;
}

.header-inner--hero:has(.menu-arrow) .menu-arrow{
  position: static;
  grid-column: 1;
  grid-row: 1;
}

.menu-arrow img{
  height: 20px;
  width: auto;
  display: block;
}

.menu-arrow:hover{
  opacity: 0.7;
}

/* -----------------------------
   FOOTER
------------------------------ */
.site-footer{
  padding: 40px var(--pad);
  font-size: 13px;
  color: var(--muted);
}

/* -----------------------------
   PAGE LAYOUT
------------------------------ */
.page{
  max-width: var(--heroW);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 40px) var(--pad);
}

.page-title{
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 30px 0;
}

/* -----------------------------
   TEXT PAGES (Bio & Contact)
------------------------------ */
.page--text{
  max-width: 760px;
  padding-top: 48px;
}

.bio-list{
  display: grid;
  gap: 52px;
}

.bio-language h2{
  margin: 0 0 18px 0;
  font-size: 15px;
  font-weight: 500;
}

.bio-language p,
.contact-block p{
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.62;
}

.bio-language p:last-child,
.contact-block p:last-child{
  margin-bottom: 0;
}

.contact-block{
  padding-top: 6px;
}

.contact-block--bio{
  margin-bottom: 52px;
}

.contact-block a{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* -----------------------------
   WHAT I LIKE
------------------------------ */
.page--random{
  max-width: 760px;
}

.random-art{
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.random-art__intro{
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.random-art__button{
  position: relative;
  min-width: 148px;
  padding: 12px 20px;
  border: 2px solid var(--text);
  background: #ffe95b;
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 6px 6px 0 #111;
  transform: translate(-3px, -3px);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.random-art__button:hover{
  opacity: 1;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #111;
}

.random-art__button:active{
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #111;
}

.random-art__figure{
  width: 100%;
  margin: 6px 0 0 0;
  display: flex;
  justify-content: center;
}

.random-art__image{
  max-width: 100%;
  max-height: min(520px, 62vh);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* -----------------------------
   HOME IMAGE + HOTSPOTS
------------------------------ */
.home{
  padding: clamp(20px, 5vw, 30px) var(--pad) clamp(36px, 8vw, 50px) var(--pad);
  display: flex;
  justify-content: center;
}

.hero-wrapper{
  position: relative;
  width: 100%;
  max-width: var(--heroW);
  margin: 0 auto;
}

.hero__img{
  width: 100%;
  height: auto;
  display: block;
}

.hotspot{
  position: absolute;
  display: block;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* -----------------------------
   CAROUSEL (Paintings & Drawings)
------------------------------ */
.carousel{
  display: grid;
  gap: 9px;
}

.carousel__track{
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-items: center;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel__track::-webkit-scrollbar{
  display: none;
}

.slide{
  margin: 0;
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

/* All images same height */
.slide img{
  height: min(380px, 58vh);
  max-width: calc(100vw - (var(--pad) * 2));
  width: auto;
  object-fit: contain;
  display: block;
}

/* Remove captions */
.slide figcaption{
  display: none;
}

/* Year navigation */
.year-strip{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.year-chip{
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
}

.year-chip:hover{
  color: var(--text);
}

.year-chip.is-active{
  color: var(--text);
  font-weight: 500;
}

/* Enlarged gallery view */
.gallery-lightbox{
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: #fff;
}

.gallery-lightbox__img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-lightbox__close{
  position: fixed;
  top: 18px;
  right: 20px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 28px;
  cursor: pointer;
}

.gallery-lightbox__close:hover{
  opacity: 0.6;
}

/* -----------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 900px){
  .page-title{
    margin-bottom: 24px;
  }

  .slide img{
    height: min(300px, 52vh);
  }
}

@media (max-width: 600px){
  .slide img{
    height: min(230px, 48vh);
  }

  .gallery-lightbox{
    padding: 38px 18px 24px 18px;
  }

  .site-header{
    padding-top: 12px;
  }

  .site-nav--center{
    gap: 8px 10px;
    justify-content: center;
    font-size: 12px;
  }

  .page-title{
    font-size: 18px;
    margin-bottom: 20px;
  }

  .page--text{
    padding-top: 32px;
  }

  .random-art{
    gap: 20px;
  }

  .random-art__intro{
    font-size: 15px;
  }

  .random-art__image{
    max-height: min(380px, 56vh);
  }

  .bio-language h2,
  .bio-language p,
  .contact-block p{
    font-size: 14px;
  }

  .bio-list{
    gap: 40px;
  }

  .contact-block--bio{
    margin-bottom: 40px;
  }
}
