/* ==========================================================================
   Anna Bonheur — Official Artist Website
   Clean, Minimalist Contemporary Art Gallery Aesthetic
   ========================================================================== */

:root {
  --bg-color: #ffffff;
  --bg-subtle: #fcfcfc;
  --text-main: #141414;
  --text-muted: #6b6b6b;
  --text-light: #999999;
  --border-color: #eeeeee;
  --border-dark: #cccccc;
  --font-serif: "Cormorant Garamond", "Baskerville", "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: #000000;
}

/* --------------------------------------------------------------------------
   Top Utility Bar (Language Switcher)
   -------------------------------------------------------------------------- */
.top-bar {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}

.lang-switcher a {
  color: var(--text-muted);
  padding: 0.2rem 0.3rem;
  border-bottom: 1px solid transparent;
}

.lang-switcher a:hover {
  color: var(--text-main);
  border-bottom: 1px solid var(--text-main);
}

.lang-switcher .active {
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 1.5px solid var(--text-main);
}

.lang-divider {
  color: var(--border-dark);
  user-select: none;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
  text-align: center;
}

.site-title {
  margin-bottom: 1.75rem;
}

.site-title a {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  display: inline-block;
  line-height: 1.1;
  transition: opacity var(--transition-fast);
}

.site-title a:hover {
  opacity: 0.75;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.main-nav li a {
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
}

.main-nav li a:hover {
  color: var(--text-main);
}

.main-nav li a.active {
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 1px solid var(--text-main);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: 0 auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px auto;
  transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Main Content Layout
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

/* Page Titles */
.page-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.page-title:last-child {
  margin-bottom: 0;
}

.page-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   1. Home Page: Single Featured Artwork in Middle
   -------------------------------------------------------------------------- */
.home-featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 1rem 0 3rem;
}

.featured-artwork-wrapper {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.featured-artwork-link {
  display: inline-block;
  cursor: pointer;
}

.featured-artwork-img {
  max-height: 68vh;
  width: auto;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.featured-artwork-link:hover .featured-artwork-img {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.featured-caption {
  margin-top: 1.5rem;
  text-align: center;
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.featured-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   2. Work Page: Masonry Grid of Artworks
   -------------------------------------------------------------------------- */
.work-masonry {
  column-count: 3;
  column-gap: 2.25rem;
}

.work-card {
  break-inside: avoid;
  margin-bottom: 2.5rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.work-card-inner {
  position: relative;
  background-color: #fafafa;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.work-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition-fast), transform var(--transition-smooth);
}

.work-card:hover img {
  opacity: 0.95;
  transform: scale(1.01);
}

.work-card-info {
  padding: 0.85rem 0.2rem 0;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.3;
}

.work-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   3. Publications Page: Grid with Information Below Cover
   -------------------------------------------------------------------------- */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem 2.25rem;
}

.pub-card {
  display: flex;
  flex-direction: column;
}

.pub-cover-wrapper {
  background-color: #f7f7f7;
  padding: 0.75rem;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.pub-card:hover .pub-cover-wrapper {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pub-cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.pub-info {
  margin-top: 1rem;
  text-align: left;
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.pub-publisher {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pub-year {
  font-weight: 500;
  color: var(--text-main);
}

.pub-edition {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   4. Studio (Atelier) Page
   -------------------------------------------------------------------------- */
.studio-gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.studio-item {
  display: flex;
  flex-direction: column;
}

.studio-img-wrapper {
  cursor: pointer;
  overflow: hidden;
  background-color: #fcfcfc;
  border: 1px solid #f0f0f0;
}

.studio-img-wrapper img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.studio-img-wrapper:hover img {
  opacity: 0.97;
  transform: scale(1.008);
}

.studio-caption {
  margin-top: 1.25rem;
  padding: 0 0.5rem;
}

.studio-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.studio-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. About Page: Editorial Layout
   -------------------------------------------------------------------------- */
.about-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

.about-text {
  max-width: 660px;
  margin: 0.25rem auto 3.5rem;
  padding: 0 0.5rem;
}

.about-lines {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.95;
  color: #1a1a1a;
  margin-bottom: 2.2rem;
  letter-spacing: 0.01em;
}

.about-source {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.about-quote {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-main);
  text-align: center;
  margin: 2rem 0 3rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2b2b2b;
  margin-bottom: 1.75rem;
}

.about-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-main);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: 0.04em;
}

.about-highlights {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  border-left: 2px solid var(--text-main);
  padding-left: 1.25rem;
}

.about-highlights li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.about-highlights li strong {
  color: var(--text-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Contact Page
   -------------------------------------------------------------------------- */
.contact-container {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.contact-card {
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  background-color: #fafafa;
  margin-top: 1.5rem;
}

.contact-section-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.contact-email-link {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--text-main);
  display: inline-block;
  border-bottom: 1px solid var(--text-main);
  padding-bottom: 2px;
  margin-bottom: 2.5rem;
  transition: opacity var(--transition-fast);
}

.contact-email-link:hover {
  opacity: 0.7;
}

.contact-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border-dark);
  margin: 0 auto 2.5rem;
}

.foundation-details {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.foundation-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.contact-note {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: #e0e0e0;
}

.lightbox-caption .title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
}

.lightbox-caption .meta {
  font-size: 0.82rem;
  color: #aaaaaa;
  margin-top: 0.25rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 1rem;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  user-select: none;
  line-height: 1;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  opacity: 0.75;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  opacity: 0.7;
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  opacity: 0.7;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin: auto auto 0;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .work-masonry {
    column-count: 2;
    column-gap: 1.75rem;
  }

  .publications-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5rem 1.75rem;
  }

  .site-title a {
    font-size: 2.3rem;
  }
}

@media (max-width: 680px) {
  .top-bar {
    padding: 1rem 1.25rem 0;
  }

  .site-header {
    padding: 1rem 1.25rem 1.75rem;
  }

  .site-title a {
    font-size: 2rem;
  }

  .menu-toggle {
    display: block;
    margin-top: 0.5rem;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 0;
    margin-top: 1rem;
  }

  .main-nav.open {
    display: flex;
  }

  .work-masonry {
    column-count: 1;
  }

  .publications-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .main-content {
    padding: 0.5rem 1.25rem 3rem;
  }

  .contact-card {
    padding: 2.25rem 1.5rem;
  }

  .contact-email-link {
    font-size: 1.35rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}
