/* —— Tokens —— */
:root {
  --bg: #0f0e0d;
  --bg-elevated: #1a1816;
  --text: #e8e4de;
  --text-muted: #9a948c;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.15);
  --border: rgba(232, 228, 222, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Syne", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max-width: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: #dfc07a;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(15, 14, 13, 0.92) 70%,
    transparent 100%
  );
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(15, 14, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.00rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.site-nav a.is-active {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 102;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--bg);
    padding: var(--space-xl) var(--space-md);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    visibility: hidden;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }

  .site-nav a {
    font-size: 1rem;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + var(--space-xl)) var(--space-md)
    var(--space-2xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(
      to bottom,
      rgba(15, 14, 13, 0.35) 0%,
      rgba(15, 14, 13, 0.55) 55%,
      rgba(15, 14, 13, 0.82) 100%
    ),
    url("../paintings/IMG_2955.jpeg"),
    radial-gradient(
      ellipse 80% 60% at 70% 20%,
      rgba(201, 169, 98, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 10% 80%,
      rgba(120, 100, 85, 0.2) 0%,
      transparent 50%
    );
  background-size: cover, cover, auto, auto;
  background-position: center center, center center, center, center;
  pointer-events: none;
}

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

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.33rem, 8vw, 4.2rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  max-width: 14ch;
}

.hero-title-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin: 0 0 var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #dfc07a;
  border-color: #dfc07a;
  color: var(--bg);
}

/* —— Sections —— */
.section {
  padding: var(--space-2xl) var(--space-md);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.section-header h2,
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* —— Gallery —— */
.work {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
  }

  .gallery-item {
    grid-column: span 2;
  }

  .gallery-item--wide {
    grid-column: span 4;
  }

  .gallery-item--fullview {
    grid-column: span 4;
  }
}

.gallery-item figure {
  margin: 0;
}

.gallery-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 25%, var(--bg)) 0%,
    var(--bg) 100%
  );
  border: 1px solid var(--border);
  overflow: hidden;
}

.gallery-item--wide .gallery-frame {
  aspect-ratio: 21 / 9;
}

.gallery-item--fullview .gallery-frame {
  aspect-ratio: 4 / 5;
}

.gallery-item--fullview .gallery-frame img {
  object-fit: contain;
  background: #121110;
}

@supports not (aspect-ratio: 1) {
  .gallery-frame {
    padding-bottom: 125%;
    height: 0;
  }

  .gallery-item--wide .gallery-frame {
    padding-bottom: 42.85%;
  }

  .gallery-item--fullview .gallery-frame {
    padding-bottom: 125%;
  }
}

.gallery-placeholder {
  position: absolute;
  inset: 12%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-item figcaption {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-item figcaption strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.gallery-item figcaption span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Real images: put <img> inside .gallery-frame and hide .gallery-placeholder */
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— About —— */
.about-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr minmax(14rem, 0.35fr);
    align-items: start;
  }
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0 0 var(--space-md);
}

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

.facts {
  margin: 0;
  padding: var(--space-lg);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.facts > div {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.facts > div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.facts dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.facts dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
}

/* —— Timeline —— */
.exhibitions {
  background: var(--bg);
}

.exhibitions-carousel {
  margin: var(--space-md) auto var(--space-lg);
  width: min(100%, 32rem);
  overflow: hidden;
}

.exhibitions-carousel-track {
  position: relative;
  display: flex;
  transition: transform 0.35s var(--ease);
  border: 1px solid var(--border);
  background: #121110;
}

.exhibitions-slide {
  margin: 0;
  flex: 0 0 100%;
}

.exhibitions-slide img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
}

.exhibitions-slide figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.exhibitions-carousel-controls {
  margin-top: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.carousel-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.carousel-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-dot[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.timeline li {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 600px) {
  .timeline li {
    grid-template-columns: 8rem 1fr;
    align-items: baseline;
    gap: var(--space-lg);
  }
}

.timeline time {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* —— Contact —— */
.contact {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
}

.contact-lead {
  color: var(--text-muted);
  max-width: 28ch;
  margin: 0 0 var(--space-sm);
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
}

.contact-email:hover {
  color: var(--accent);
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-lg);
}

.social a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social a:hover {
  color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

.footer-credit {
  opacity: 0.7;
}

/* —— Shop —— */
.page-shop {
  padding-top: var(--header-h);
}

.shop-hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}

.shop-etsy-card {
  max-width: 36rem;
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.shop-etsy-eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.shop-etsy-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.shop-etsy-lead {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn-primary.is-disabled,
#etsy-shop-link.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
