:root {
  --paper: #f3f0e8;
  --ink: #171717;
  --muted: #62605a;
  --line: #d3c7b6;
  --white: #fffaf1;
  --sage: #536b55;
  --clay: #c65332;
  --blue: #255f7a;
  --gold: #d6a13b;
  --shadow: 0 28px 70px rgba(23, 23, 23, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #fff8ea 0%, var(--paper) 46%, #e8e2d6 100%);
  background-size: 56px 56px, auto;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 10px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 241, 0.82);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: linear-gradient(135deg, var(--ink), #4f2b25);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--white);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

main {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: auto;
  padding: 34px 0 42px;
}

.hero-copy,
.page-intro {
  max-width: 680px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
}

h1 {
  max-width: 8ch;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

.artist-title {
  max-width: none;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
}

.artist-title span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.hero-copy p:not(.kicker),
.page-intro p,
.contact-layout p,
.artist-text p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 8px 8px 0 var(--gold);
}

.button.secondary {
  background: rgba(255, 250, 241, 0.72);
}

.carousel-frame {
  position: relative;
  overflow: hidden;
  height: 500px;
  min-height: 500px;
  background: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.carousel-frame.wide {
  height: 480px;
  min-height: 480px;
}

.carousel-stage {
  height: 100%;
}

.carousel-slide {
  position: relative;
  height: 100%;
  min-height: inherit;
}

.carousel-image-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.wide .carousel-slide img {
  min-height: 480px;
}

.carousel-copy {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 18px;
  background: rgba(23, 23, 23, 0.84);
  color: var(--white);
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.carousel-copy span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.carousel-copy strong {
  display: block;
  margin-top: 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.05;
}

.carousel-copy p {
  margin: 8px 0 0;
  color: rgba(255, 250, 241, 0.78);
}

.carousel-button,
.lightbox-arrow,
.lightbox-close {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.carousel-button:hover {
  background: var(--clay);
  transform: translateY(-50%) scale(1.04);
}

.lightbox-arrow:hover,
.lightbox-close:hover {
  background: var(--clay);
  transform: scale(1.04);
}

.carousel-button {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
}

.carousel-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.carousel-button.previous {
  left: 16px;
}

.carousel-button.previous::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.carousel-button.next {
  right: 16px;
}

.carousel-button.next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

.carousel-dots {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--ink);
}

.artist-section,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 58px 0;
  border-top: 2px solid rgba(23, 23, 23, 0.14);
}

.artist-portrait {
  overflow: hidden;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(23, 23, 23, 0.12);
}

.artist-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

.preview-section,
.exhibitions-section {
  padding: 54px 0;
  border-top: 2px solid rgba(23, 23, 23, 0.14);
}

.exhibitions-section {
  padding: 34px 0;
}

.exhibitions-section .section-heading {
  margin-bottom: 14px;
}

.exhibitions-section h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
}

.exhibition-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.exhibition-card {
  position: relative;
  display: block;
  min-height: 150px;
  padding: 16px 16px 14px;
  background: rgba(255, 250, 241, 0.86);
  color: var(--ink);
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-left: 5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.12);
}

.exhibition-date {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  width: 86px;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 6px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--gold);
}

.exhibition-date span {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.exhibition-date strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.exhibition-content {
  padding-right: 98px;
}

.exhibition-content .kicker {
  margin-bottom: 8px;
  font-size: 0.68rem;
}

.exhibition-content h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.04;
}

.exhibition-content p:not(.kicker) {
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.exhibition-content small {
  display: block;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-intro {
  padding: 72px 0 34px;
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 48px 0 34px;
  border-bottom: 2px solid rgba(23, 23, 23, 0.14);
}

.gallery-hero .page-intro {
  padding: 0;
}

.gallery-hero-carousel {
  height: 300px;
  min-height: 300px;
}

.gallery-hero-carousel .carousel-slide img {
  min-height: 300px;
}

.gallery-hero-carousel .carousel-copy {
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px;
}

.gallery-hero-carousel .carousel-copy strong {
  font-size: 1.25rem;
}

.gallery-hero-carousel .carousel-copy p {
  font-size: 0.82rem;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 32px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.filter-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.title-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  padding-bottom: 72px;
}

.art-grid.compact {
  padding-bottom: 0;
}

.art-card {
  overflow: hidden;
  background: rgba(255, 250, 241, 0.84);
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 23, 23, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(23, 23, 23, 0.16);
}

.art-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.art-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 180ms ease;
}

.art-card button:hover img {
  transform: scale(1.025);
}

.art-caption {
  display: grid;
  gap: 2px;
  padding: 16px;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
}

.art-caption strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.art-caption small {
  color: var(--muted);
  font-weight: 700;
}

.hide-titles .art-caption {
  display: none;
}

.contact-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  max-width: none;
  min-height: calc(100svh - 126px);
  padding: 56px 0;
  border-top: 0;
}

.contact-visual {
  overflow: hidden;
  align-self: stretch;
  min-height: 540px;
  background: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-content {
  max-width: 620px;
}

.contact-content h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.contact-content p {
  max-width: 560px;
}

.contact-panel {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-left: 5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 23, 23, 0.12);
  font-style: normal;
}

.contact-panel a,
.contact-panel span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.14);
  font-weight: 700;
}

.contact-panel :last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: rgba(10, 10, 10, 0.91);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-top: 16px;
  color: var(--white);
  text-align: center;
}

.lightbox figcaption span {
  color: #d8d0c3;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
}

.lightbox-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 2.3rem;
}

.no-scroll {
  overflow: hidden;
}

.notice {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .home-hero,
  .gallery-hero,
  .artist-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    padding: 42px 0;
  }

  .contact-visual {
    min-height: 360px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .carousel-frame,
  .carousel-frame.wide {
    height: 400px;
    min-height: 400px;
  }

  .carousel-slide img,
  .wide .carousel-slide img {
    min-height: 400px;
  }

  .gallery-hero-carousel {
    height: 360px;
    min-height: 360px;
  }

  .gallery-hero-carousel .carousel-slide img {
    min-height: 360px;
  }

  .gallery-toolbar,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .exhibition-list {
    grid-template-columns: 1fr;
  }

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

  .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-arrow.previous {
    left: 14px;
  }

  .lightbox-arrow.next {
    right: 14px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 3rem;
  }

  .contact-content h1 {
    max-width: 12ch;
    font-size: 3.35rem;
  }

  .contact-visual {
    min-height: 300px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .exhibition-card {
    min-height: 0;
  }

  .exhibition-date {
    position: static;
    width: fit-content;
    min-width: 92px;
    margin-bottom: 12px;
  }

  .exhibition-content {
    padding-right: 0;
  }

  .carousel-frame,
  .carousel-frame.wide {
    height: 360px;
    min-height: 360px;
  }

  .carousel-slide img,
  .wide .carousel-slide img {
    min-height: 360px;
  }

  .artist-title {
    font-size: clamp(3rem, 16vw, 3.8rem);
  }

  .carousel-copy {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}
