/* ============================================================
   Carson Jackson — Artist Site
   Typography: EB Garamond (headings) + Inter (body)
   ============================================================ */

/* Self-hosted fonts — eliminates external CDN dependency */
@import url('../assets/fonts/fonts.css');

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 13px;
}

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Site-wide Top Navigation ──────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 50px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav__name {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  /* No hover effect — intentionally static */
}

.site-nav__links {
  display: flex;
  gap: 32px;
}

.site-nav__links a {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.site-nav__links a:hover { opacity: 1; }

/* ── Hero Slideshow ────────────────────────────────────────── */
.hero {
  margin-top: 50px;
  position: relative;
  height: 65vh;
  overflow: hidden;
  background: #111;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero__caption {
  position: absolute;
  bottom: 32px;
  left: 48px;
  color: #fff;
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  font-weight: 300;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.hero__nav {
  position: absolute;
  bottom: 28px;
  right: 48px;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  padding: 0;
}

.hero__dot.active { background: #fff; }

/* ── Artist Identity Block ─────────────────────────────────── */
.artist-identity {
  padding: 64px 48px 0;
  border-bottom: 1px solid #e0e0e0;
}

.artist-identity__name {
  font-family: 'EB Garamond', serif;
  font-size: 70px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.artist-identity__tagline {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: #777;
  margin-bottom: 40px;
}

/* ── Section Nav (sticky under identity) ──────────────────── */
.section-nav {
  position: sticky;
  top: 50px;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 0;
  padding: 0 48px;
  overflow-x: auto;
}

.section-nav a {
  display: inline-block;
  padding: 14px 20px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.section-nav a:hover,
.section-nav a.active {
  color: #111;
  border-bottom-color: #111;
}

/* ── Shared Section Layout ─────────────────────────────────── */
.site-section {
  padding: 72px 48px;
  border-bottom: 1px solid #e8e8e8;
  max-width: 1400px;
  margin: 0 auto;
}

.site-section:last-child { border-bottom: none; }

.section-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 32px;
}

/* ── Biography ─────────────────────────────────────────────── */
#biography {
  scroll-margin-top: 70px;
}

.bio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.bio-text p {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: #333;
  margin-bottom: 24px;
}

.bio-text p:last-child { margin-bottom: 0; }

.bio-portrait {
  position: sticky;
  top: 70px;
}

.bio-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ── Selected Works ────────────────────────────────────────── */
#works {
  scroll-margin-top: 70px;
  max-width: 1400px;
  padding: 72px 48px;
  margin: 0 auto;
}

.series-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid #e0e0e0;
}

.series-filter__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 18px 9px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.series-filter__btn:hover,
.series-filter__btn.active {
  color: #111;
  border-bottom-color: #111;
}

.series-group {
  display: none;
}

.series-group.active {
  display: block;
}

.series-header {
  margin-bottom: 32px;
}

.series-header h3 {
  font-family: 'EB Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 10px;
}

.series-header p {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  color: #666;
  line-height: 1.6;
  max-width: 680px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.work-item {
  cursor: pointer;
  background: #fff;
}

.work-item__img-wrap {
  overflow: hidden;
  background: #f5f5f5;
}

.work-item__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.work-item:hover .work-item__img {
  transform: scale(1.02);
}

.work-item__info {
  padding: 14px 0 0;
  text-align: center;
}

.work-item__title {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  display: block;
  color: #333;
  margin-bottom: 3px;
}

.work-item__meta {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.04em;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox__caption {
  color: #ccc;
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  margin-top: 16px;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.5;
  padding: 16px;
  transition: opacity 0.2s;
}

.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ── Exhibitions ───────────────────────────────────────────── */
#exhibitions {
  scroll-margin-top: 70px;
}

.exhibitions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exhibition-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid #eee;
  align-items: baseline;
}

.exhibition-item:first-child { border-top: 1px solid #eee; }

.exhibition-year {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #999;
  padding-top: 3px;
}

.exhibition-detail h4 {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 4px;
}

.exhibition-detail p {
  font-size: 13px;
  color: #777;
}

.exhibition-detail a {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.exhibition-detail a:hover { opacity: 1; }

/* ── Press ─────────────────────────────────────────────────── */
#press {
  scroll-margin-top: 70px;
}

.press-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.press-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid #eee;
}

.press-item:first-child { border-top: 1px solid #eee; }

.press-date {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #999;
  padding-top: 4px;
}

.press-detail blockquote {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #444;
}

.press-detail .press-source {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.press-detail .press-headline {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}

.press-detail .press-byline {
  font-size: 12px;
  color: #777;
}

/* ── Commission ────────────────────────────────────────────── */
#commission {
  scroll-margin-top: 70px;
}

.commission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.commission-intro h3 {
  font-family: 'EB Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 20px;
}

.commission-intro p {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: #555;
  line-height: 1.75;
  margin-bottom: 36px;
}

.commission-cta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
  padding-bottom: 3px;
  transition: opacity 0.2s;
}

.commission-cta:hover { opacity: 0.5; }

.commission-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.commission-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  align-items: start;
}

.commission-step__num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #bbb;
  padding-top: 3px;
}

.commission-step__title {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
}

.commission-step p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

/* ── Contact / Footer ──────────────────────────────────────── */
#contact {
  scroll-margin-top: 70px;
}

.contact-photo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-info h3 {
  font-family: 'EB Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 32px;
}

.contact-info dl {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info dt {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

.contact-info dd {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
}

.contact-info dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-social {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.contact-social a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.contact-social a:hover { opacity: 1; }

.contact-note {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: #666;
  line-height: 1.7;
  align-self: center;
}

/* ── Footer bar ────────────────────────────────────────────── */
.footer-bar {
  border-top: 1px solid #e0e0e0;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.06em;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 0 20px; justify-content: flex-start; }
  .site-nav__name { display: none; }
  .site-nav__links { gap: 10px; font-size: 9.5px; }
  .site-nav__links a[href="#biography"] { font-size: 0; letter-spacing: 0; }
  .site-nav__links a[href="#biography"]::after { content: 'BIO'; font-size: 10px; letter-spacing: 0.12em; }

  .artist-identity { padding: 40px 24px 0; }
  .artist-identity__name { font-size: 42px; }

  .section-nav { padding: 0 24px; }

  .site-section,
  #works { padding: 48px 24px; }

  .bio-layout { grid-template-columns: 1fr; gap: 40px; }
  .bio-portrait { position: static; }
  .commission-layout { grid-template-columns: 1fr; gap: 48px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }

  .exhibition-item,
  .press-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-photo-layout { grid-template-columns: 1fr; gap: 48px; }

  .footer-bar { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 540px) {
  .artist-identity__name { font-size: 32px; }
  .works-grid { grid-template-columns: 1fr; }
  .hero { height: 60vh; }
}
