:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --text: #8a8a8a;
  --muted: #6f6860;
  --accent: #0D6EB7;
  --accent-dark: #0d69af;
  --border: #e5ded4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size:16px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Index page */
/* Site Header */
.site-header {
  width: 100%;
  padding: 0;
  background-color: #0D6EB7;
  color: white;
  font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-style: italic;
    font-size: 5rem;
    letter-spacing: 5px;
}

.site-banner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 3rem;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 40px;
  color: whtie;
  font-size: 2rem;
}

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



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

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  max-width: 900px;
}

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

h3 {
  font-size: 1.2rem;
  margin-top: 16px;
}

.hero-text p:not(.eyebrow),
.section > p,
.contact-section p,
.split-section p {
  color: var(--muted);
  max-width: 620px;
}
.hero-text, .hero-image, .art-card, .art-image {
  min-width: 0;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button.primary {
  background: var(--text);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.button.secondary:hover {
  border-color: var(--text);
}


/* About artist and Featured piece */
.hero-image,
.art-image {
  background:
    linear-gradient(135deg, rgba(155, 111, 78, 0.2), rgba(255, 255, 255, 0.8)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.hero-image {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.hero-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    display: block;
}

.section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

/* Featured work cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
}

.art-card p {
  margin: 8px 0 4px;
  color: var(--muted);
}

.art-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.art-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.fair-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px;
  margin: 48px 0;
}

.fair-details {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}

.fair-details p {
  margin: 0;
}

/* Contact form */
.contact-section {
  text-align: center;
}

.contact-section > p:not(.eyebrow) {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  width: 100%;
  max-width: 650px;
  margin: 30px auto 0;
  padding: 20px;
  border-radius: 5px;
  box-sizing: border-box;
  text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

.contact-form label {
  display: block;
}


.hidden {
  display: none;
}

.contact-form textarea {
  min-height: 200px;
}

.contact-form button[type="submit"] {
  display: block;
  margin: 0 auto;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  background-color: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
}

.contact-form button[type="submit"]:hover {
  background-color: var(--accent-dark);
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* portfolio page */
.page-hero {
  padding: 72px 0 40px;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  max-width: 620px;
}

.gallery-page {
  padding: 72px 0;
}

.gallery-intro {
  margin-bottom: 40px;
}

.gallery-intro p:not(.eyebrow) {
  color: var(--muted);
  max-width: 620px;
}

.gallery-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  border: none;
  background: transparent;
  display: block;
  cursor: pointer;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.85);
  display: none;
  place-items: center;
  padding: 32px;
  z-index: 100;
}

.lightbox.active {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 95vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  border: none;
  background: transparent;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(155, 111, 78, 0.28);
}

.gallery-caption {
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    font-size: 1.25rem;
    color: var(--text);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.9);
  display: none;
  place-items: center;
  padding: 32px;
  z-index: 1000;
}

.lightbox.active {
  display: grid;
}

.lightbox-content {
  max-width: min(1100px, 90vw);
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  color: white;
  margin-top: 18px;
}

.lightbox-caption h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.lightbox-caption p {
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.78);
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close {
  top: 24px;
  right: 28px;
  font-size: 2.5rem;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 20px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Thank you page */
.thank-you {
 align-items: center;
}

.thank-you h1 {
  width: 100%;
  padding: 50px 0px 50px 0px;
}

.thank-you h2 {
  padding: 30px 0px 30px 0px;
}

.thank-you h3 {
  padding: 15px 0px 15px 0px;
}


@media (max-width: 800px) {
    .lightbox-arrow {
      font-size: 2rem;
      padding: 12px;
    }
    
    .lightbox-prev {
      left: 4px;
    }
    
    .lightbox-next {
      right: 4px;
    }
  .site-banner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }

  .logo {
    font-size: 2.5rem;
    text-align: center;
  }

  .site-banner nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 1.5rem;
  }

  .site-banner nav a {
    white-space: nowrap;
  }

  .lightbox-arrow {
    font-size: 2rem;
    padding: 12px;
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-image {
    min-height: 360px;
  }

  .gallery-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .fair-card {
    padding: 32px 24px;
  }
}