@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/work-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --color-ink: #17191a;
  --color-muted: #666760;
  --color-paper: #faf8f3;
  --color-surface: #ffffff;
  --color-line: #e3ded4;
  --color-contact: #151515;
  --color-contact-soft: #24201d;
  --color-accent: #a64f2d;
  --color-accent-strong: #7e2f4c;
  --shadow-soft: 0 18px 50px rgba(23, 25, 26, 0.12);
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--color-paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  line-height: 1.62;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-hero {
  position: relative;
  display: grid;
  min-height: 760px;
  min-height: clamp(680px, 82svh, 860px);
  align-items: end;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 4.5rem);
}

.site-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(250, 248, 243, 0.95) 0%, rgba(250, 248, 243, 0.78) 42%, rgba(250, 248, 243, 0.12) 100%);
}

.site-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.site-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 40rem);
  padding: clamp(1.25rem, 4vw, 2.25rem) 0 clamp(1.25rem, 4vw, 2.25rem) clamp(1rem, 2vw, 1.4rem);
}

.site-hero h1,
.site-hero__lead {
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.86),
    0 8px 24px rgba(250, 248, 243, 0.58);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.4rem;
  font-size: 6rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
}

.site-hero__lead {
  max-width: 32rem;
  margin-bottom: 1rem;
  color: #3f4749;
  font-size: 1.18rem;
  font-weight: 400;
}

.site-hero__lead::before {
  display: block;
  width: 4rem;
  height: 2px;
  margin-bottom: 1.5rem;
  content: "";
  background: var(--color-accent);
}

.site-hero__aside {
  max-width: 28rem;
  margin-bottom: 2rem;
  color: rgba(23, 25, 26, 0.68);
  font-size: 0.95rem;
}

.site-hero__link,
.contact-link {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  background: var(--color-ink);
  color: var(--color-surface);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-hero__link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.section {
  padding: clamp(5rem, 9vw, 8rem) clamp(1rem, 4vw, 4.5rem);
}

.section--contact {
  background: linear-gradient(90deg, var(--color-contact) 0%, var(--color-contact-soft) 100%);
  color: var(--color-surface);
}

.section__inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.section-heading {
  max-width: 38rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.expo {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.expo__poster {
  width: min(100%, 760px);
  margin: 0;
  justify-self: end;
}

.expo__poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 503;
  object-fit: contain;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.gallery-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.gallery-heading > p {
  max-width: 25rem;
  margin-bottom: 0;
  color: var(--color-muted);
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.35rem;
}

.artwork-card {
  margin: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.artwork-card:hover {
  box-shadow: 0 10px 26px rgba(23, 25, 26, 0.08);
}

.artwork-card__link {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  background: #e9e6de;
  text-decoration: none;
}

.artwork-card__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artwork-card__link span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(23, 25, 26, 0.82);
  color: var(--color-surface);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 180ms ease;
}

.artwork-card__link:hover span,
.artwork-card__link:focus-visible span {
  opacity: 1;
}

.artwork-card figcaption {
  display: flex;
  min-height: 4.2rem;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1rem;
  gap: 0.1rem;
}

.artwork-card strong {
  font-size: 0.98rem;
}

.artwork-card small {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.contact__content {
  max-width: 46rem;
}

.contact__content > p {
  max-width: 42rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.15rem;
}

.contact__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 2.4rem 0 0;
  list-style: none;
}

.contact__details li {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact__details span,
.contact__panel-title {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact__details strong {
  color: var(--color-surface);
  font-size: 1.02rem;
  font-weight: 600;
}

.contact__panel {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact__panel-title,
.contact__panel-text {
  margin: 0;
}

.contact__panel-text {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact-link {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  align-items: center;
  justify-content: stretch;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 1rem;
  background: transparent;
  color: var(--color-surface);
}

.contact-link:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.contact-link span,
.contact-link small {
  grid-column: 1;
}

.contact-link small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.contact-link--accent {
  background: rgba(166, 79, 45, 0.16);
  color: var(--color-surface);
}

.contact-link--accent small {
  color: rgba(255, 255, 255, 0.72);
}

.contact-link--accent:hover {
  background: rgba(166, 79, 45, 0.28);
  color: var(--color-surface);
  box-shadow: none;
}

.contact-link--accent:hover small {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 1.2rem clamp(1rem, 4vw, 4.5rem);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  background: var(--color-paper);
  font-size: 0.85rem;
}

.lightbox {
  width: min(92vw, 880px);
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(17, 19, 20, 0.74);
  backdrop-filter: blur(4px);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox__panel {
  position: relative;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  margin: 0 auto;
  object-fit: contain;
  background: #101112;
}

.lightbox__caption {
  padding: 1rem 1.2rem 1.15rem;
}

.lightbox__caption p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(17, 19, 20, 0.72);
  color: var(--color-surface);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

:focus-visible {
  outline: 3px solid rgba(166, 79, 45, 0.55);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .site-hero {
    min-height: 620px;
    min-height: clamp(620px, 76svh, 760px);
    padding: 1.25rem;
  }

  .site-hero::before {
    background: linear-gradient(180deg, rgba(23, 25, 26, 0.12) 0%, rgba(23, 25, 26, 0.16) 34%, rgba(251, 251, 248, 0.98) 100%);
  }

  .site-hero__content {
    border-left: 0;
    padding-left: 0;
  }

  .site-hero__image {
    object-position: 54% center;
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .expo,
  .contact {
    grid-template-columns: 1fr;
  }

  .expo__poster {
    justify-self: start;
  }

  .gallery-heading {
    display: block;
  }

  .gallery-heading > p {
    margin-top: 1rem;
  }

  .contact__panel {
    max-width: 30rem;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3.5rem 1rem;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .artwork-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

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

  .artwork-card figcaption {
    min-height: 4rem;
    padding: 0.75rem;
  }

  .artwork-card__link span {
    opacity: 1;
  }

  .contact-link {
    width: 100%;
  }

  .lightbox {
    width: calc(100vw - 1.5rem);
  }

  .lightbox__image {
    max-height: 62vh;
  }
}

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

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