/* Mariah Gugel - rebuilt site
   Minimal, gallery-focused, self-hostable
   Fonts loaded via <link> in HTML for faster render
*/

:root {
  --bg: #fdfbf7;
  --bg-soft: #f7f3ee;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --border: #e8e2d9;
  --accent: #111;
  --max-width: 1320px;
  --content-width: 760px;
  --header-height: 72px;
  --ease: cubic-bezier(.25, .46, .45, .94);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
}

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

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

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3vw;
}

.narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(253, 251, 247, 0.96);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo span {
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 2px;
  opacity: .8;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  opacity: .9;
  transition: opacity .2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown for About - fix inline alignment */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 1;
}

.nav-item>a {
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-item .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 14px 24px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: all .25s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.dropdown a {
  display: block;
  padding: 8px 0;
  font-size: 11px;
  white-space: nowrap;
}

.dropdown a::after {
  display: none;
}

/* Social */
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 12px;
}

.social-links a {
  opacity: .6;
  transition: .2s;
  display: flex;
}

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

.social-links svg {
  width: 16px;
  height: 16px;
}

/* Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  margin: 5px 0;
  transition: .3s;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  padding: 100px 8vw 40px;
  opacity: 0;
  visibility: hidden;
  transition: .4s var(--ease);
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 28px;
  font-family: 'Cormorant Garamond', serif;
  margin: 12px 0;
  display: block;
}

.mobile-nav .small {
  font-family: 'Poppins';
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: .6;
}

.mobile-nav .sep {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.mobile-social {
  display: flex;
  gap: 20px;
  margin-top: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 120px;
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .7;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

/* Hero slideshow - larger paintings, caption never clipped */
/* Hero slideshow - immersive full viewport */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

.slides {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 32px 2.5vw 96px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide img {
  width: auto;
  height: auto;
  max-width: min(90vw, 1320px);
  max-height: min(72vh, 820px);
  max-height: min(72svh, 820px);
  object-fit: contain;
  object-position: center;
  background: #fff;
  box-shadow: 0 2px 0 var(--border), 0 24px 64px rgba(0, 0, 0, .10), 0 6px 20px rgba(0, 0, 0, .06);
  border: 1px solid var(--border);
  flex-shrink: 1;
}

.slide-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: rgba(253, 251, 247, .96);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border: 1px solid var(--border);
  max-width: min(92vw, 560px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.slide-caption h3 {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.slide-caption p {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* slideshow controls - immersive, in corners */
.hero-controls {
  position: absolute;
  right: 2vw;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(253, 251, 247, .92);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.hero-btn:hover {
  background: #fff;
  transform: scale(1.06);
  border-color: var(--text);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
  background: rgba(253, 251, 247, .9);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.dot {
  width: 24px;
  height: 2px;
  background: var(--border);
  cursor: pointer;
  transition: .35s var(--ease);
  border-radius: 2px;
}

.dot.active {
  background: var(--text);
  width: 34px;
}

/* Intro after immersive hero */
.intro-section {
  padding: 96px 3vw 56px;
  background: var(--bg);
  text-align: left;
}

/* Sections */
.page-hero {
  padding: calc(var(--header-height) + 80px) 0 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
}

.page-hero .sub {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 520px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  padding: 80px 0;
  align-items: start;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.about-text p {
  margin-bottom: 22px;
}

.about-text .lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
}

.artist-statement {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 40px;
  margin-top: 12px;
}

.artist-statement h3 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: .6;
}

.artist-statement p {
  font-size: 14px;
  line-height: 1.75;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
}

.contact-card {
  border: 1px solid var(--border);
  padding: 32px;
  background: var(--bg-soft);
}

.contact-card h3 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: .7;
}

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
}

.contact-links {
  margin-top: 20px;
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--text);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: .25s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--text);
  color: #fff;
}

.btn-outline:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
  opacity: .7;
}

/* Portfolio index */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.portfolio-card {
  background: var(--bg);
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
}

.portfolio-card:hover img {
  transform: scale(1.06);
  filter: brightness(.95);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 22px;
  color: #fff;
}

.portfolio-card h3 {
  font-size: 34px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1;
}

.portfolio-card .count {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .8;
  background: rgba(255, 255, 255, .15);
  padding: 4px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Gallery */
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-toolbar h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
}

.gallery-count {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.masonry {
  column-count: 3;
  column-gap: 18px;
  padding: 36px 0 80px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .8s var(--ease);
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-caption {
  padding: 10px 2px 2px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.masonry-caption .title {
  font-size: 13px;
  font-weight: 400;
}

.masonry-caption .meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* year nav */
.year-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 20px;
}

.year-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.year-nav a:hover {
  opacity: .6;
}

.arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(253, 251, 247, .96);
  backdrop-filter: blur(18px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: .35s var(--ease);
  padding: 4vw;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 86vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

.lightbox-caption {
  margin-top: 18px;
  text-align: center;
}

.lightbox-caption h4 {
  font-weight: 500;
  font-size: 14px;
}

.lightbox-caption p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: 2vw;
  right: 2vw;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-prev {
  left: 2vw;
}

.lightbox-next {
  right: 2vw;
}

/* Utilities */
.muted {
  color: var(--text-muted);
}

.serif {
  font-family: 'Cormorant Garamond', serif;
}

.upper {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 980px) {

  .nav-links,
  .social-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 1;
  }

  .hero {
    height: 100svh;
    min-height: 620px;
  }

  .slides {
    min-height: 0;
  }

  .slide {
    padding: 20px 4vw 100px;
    gap: 14px;
    justify-content: center;
  }

  .slide img {
    max-width: 92vw;
    max-height: 62svh;
  }

  .slide-caption {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    align-items: center;
    padding: 10px 14px;
    max-width: 92vw;
  }

  .slide-caption h3 {
    font-size: 13px;
    white-space: normal;
    line-height: 1.25;
  }

  .slide-caption p {
    font-size: 10px;
  }

  .hero-controls {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }

  .hero-dots {
    bottom: 64px;
    padding: 8px 12px;
  }

  .year-nav {
    flex-direction: column;
    gap: 16px;
  }

  .intro-section {
    padding: 56px 5vw 40px;
  }
}

/* Shop */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-top: 40px;
  padding-bottom: 80px;
}

.shop-card {
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s;
}

.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}

.shop-card-img {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  overflow: hidden;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.shop-card:hover .shop-card-img img {
  transform: scale(1.04);
}

.shop-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.shop-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 400;
}

.shop-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .06em;
  line-height: 1.5;
}

.shop-card-price {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: 4px;
}

.shop-card-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-badge {
  display: inline-flex;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 8px;
}

.shop-badge.sold {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.shop-notice {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

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

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}