/* Artist portfolio — mobile-first */

:root {
  --color-bg: #faf9f7;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-accent: #3d4f5f;
  --color-border: #e0ddd8;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 72rem;
  --space: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  padding: var(--space) 0;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: normal;
  text-decoration: none;
  color: var(--color-text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
}

.site-nav a.active {
  font-weight: 600;
}

/* Main sections */

main {
  min-height: 50vh;
}

.section {
  padding: 2.5rem 0;
}

.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
  margin: 0 0 0.5rem;
}

.tagline {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin: 0;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: normal;
}

.section-link {
  margin-top: 1.5rem;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-grid--featured {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid--featured {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  margin: 0;
}

.gallery-item a,
.gallery-trigger {
  display: block;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.gallery-trigger img,
.gallery-item a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-border);
}

.gallery-item figcaption {
  padding-top: 0.5rem;
  font-size: 0.875rem;
}

.gallery-title {
  display: block;
}

.gallery-meta {
  display: block;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

/* Exhibitions */

.exhibition-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.exhibition-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.exhibition-item h2 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.exhibition-venue {
  margin: 0;
  color: var(--color-muted);
}

.exhibition-dates {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.exhibition-description {
  margin: 0.5rem 0 0;
}

/* Prose / biography */

.prose {
  max-width: 42rem;
}

.prose h1 {
  margin-top: 0;
}

.bio-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.bio-content ul {
  padding-left: 1.25rem;
}

.bio-content p {
  margin: 1rem 0;
}

/* Contact */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.contact-list address {
  font-style: normal;
  white-space: pre-line;
}

.social-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-list a {
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.site-footer p {
  margin: 0;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.lightbox-inner {
  margin: 0;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  text-align: center;
}

.lightbox-inner img {
  max-height: 80vh;
  width: auto;
  margin-inline: auto;
}

.lightbox-inner figcaption {
  color: #eee;
  margin-top: 1rem;
  font-size: 0.95rem;
}

body.lightbox-open {
  overflow: hidden;
}
