/* StitchedArt — Christine Jenner */

:root {
  --cream: #f6f1e8;
  --cream-dark: #ebe4d6;
  --ink: #1e1a17;
  --ink-soft: #4a433c;
  --teal: #1a5c5c;
  --teal-light: #2a7a7a;
  --copper: #b87333;
  --copper-light: #d4954a;
  --purple: #4a3b6b;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(30, 26, 23, 0.08);
  --shadow-lg: 0 12px 48px rgba(30, 26, 23, 0.12);
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--copper);
}

/* Typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p + p {
  margin-top: 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
}

/* Layout */

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: 5rem;
}

.section--tight {
  padding-block: 3rem;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 26, 23, 0.06);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Navigation */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 26, 23, 0.75) 0%,
    rgba(26, 92, 92, 0.45) 50%,
    rgba(30, 26, 23, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-block: 4rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 22ch;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.75rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--copper);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--copper-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn--dark {
  background: var(--teal);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--teal-light);
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Page header */

.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.page-hero--image {
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 26, 23, 0.85) 0%, rgba(30, 26, 23, 0.3) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero--image h1 {
  color: var(--white);
}

.page-hero--image .lead {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero--simple {
  background: var(--cream-dark);
  text-align: center;
}

.page-hero--simple .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro section */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-image {
  max-width: 360px;
  width: 100%;
  justify-self: start;
}

.intro-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.intro-content h2 {
  margin-bottom: 1.5rem;
}

.intro-content .btn {
  margin-top: 2rem;
}

/* Featured grid */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.featured-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--cream-dark);
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-item:hover img {
  transform: scale(1.06);
}

.featured-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 26, 23, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.featured-item:hover::after {
  opacity: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header .lead {
  margin-inline: auto;
}

/* Gallery */

.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--cream-dark);
}

.gallery-item img {
  width: 100%;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Exhibitions */

.exhibition-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 4rem;
}

.exhibition-feature img {
  border-radius: var(--radius);
}

.exhibition-feature h3 {
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.exhibition-feature .date {
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--copper), var(--teal));
}

.timeline-year {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-year::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--copper);
  transform: translateX(-5px);
}

.timeline-year h3 {
  font-size: 1.75rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.timeline-events {
  list-style: none;
}

.timeline-events li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--ink-soft);
}

.timeline-events li strong {
  color: var(--ink);
  font-weight: 600;
}

.timeline-events li:last-child {
  border-bottom: none;
}

/* About */

.about-content {
  max-width: 70ch;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.highlight-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.highlight-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--copper);
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 26, 23, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 2rem;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close svg {
  width: 32px;
  height: 32px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 1rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 35ch;
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Animations */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA band */

.cta-band {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding-block: 4rem;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 50ch;
  margin-inline: auto;
}

/* Responsive */

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    columns: 2;
  }

  .intro-grid,
  .contact-grid,
  .exhibition-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-image {
    justify-self: center;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(30, 26, 23, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--cream-dark);
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }
}
