/* =========================
   Base
========================= */

body {
  margin: 0;
  font-family: Georgia, serif;
  letter-spacing: 0.2px;
  background: #f5f5f3;
  color: #111;
  animation: fadeIn 0.6s ease-in-out;
}

h1,
h2 {
  letter-spacing: 0.5px;
}

.hero h1,
.about-page h1,
.collection-header h1,
.contact-page h1 {
  font-size: 42px;
  line-height: 1.2;
}

/* =========================
   Navigation
========================= */

.navbar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 30px;
}

.navbar a {
  font-size: 15px;
  letter-spacing: 1px;
  color: black;
  text-decoration: none;
}

.navbar a:hover {
  opacity: 0.6;
}

/* =========================
   Buttons
========================= */

.button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 40px;
  border: 1px solid black;
  color: black;
  text-decoration: none;
}

.button:hover {
  background: black;
  color: white;
}

.back-link {
  display: inline-block;
  margin-left: 18px;
  padding: 16px 26px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  opacity: 0.7;
  transition: 0.3s ease;
}

.back-link:hover {
  opacity: 1;
  border-color: black;
}

/* =========================
   Home
========================= */

.hero {
  text-align: center;
  padding: 20px 20px 70px;
}

.logo {
  width: 320px;
  max-width: 85%;
  margin-bottom: 10px;
}

.subtitle {
  max-width: 700px;
  margin: auto;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

.about {
  max-width: 800px;
  margin: 100px auto;
  padding: 0 20px;
  font-size: 20px;
  line-height: 1.9;
}

.contact {
  text-align: center;
  padding: 120px 20px;
}

.home-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.home-gallery .artwork,
.home-artwork {
  width: 220px;
}

.home-gallery .artwork img,
.home-artwork img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

/* =========================
   About
========================= */

.about-page {
  max-width: 800px;
  margin: auto;
  padding: 80px 20px;
  text-align: center;
}

.about-page h1 {
  margin-top: 40px;
  margin-bottom: 40px;
  font-weight: normal;
}

.about-page p {
  margin-bottom: 30px;
  font-size: 20px;
  line-height: 1.9;
}

/* =========================
   Collection
========================= */

.collection-header {
  text-align: center;
  padding: 80px 20px 40px;
}

.collection-header h1 {
  margin-bottom: 20px;
  font-weight: normal;
}

.collection-header p {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
  line-height: 1.8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 40px;
}

.artwork {
  transition: transform 0.5s ease;
}

.artwork:hover {
  transform: translateY(-4px);
}

.artwork img {
  display: block;
  width: 100%;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.artwork:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

.artwork h2 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: normal;
  line-height: 1.3;
}

.art-medium {
  margin-bottom: 20px;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.7;
}

.artwork-meta,
.artwork-meta *,
.artwork-details,
.artwork-details *,
.dimensions,
.certificate-id,
.price-status {
  font-family: inherit;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.art-description {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.8;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.view-artwork {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.9);
  color: black;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transition: 0.4s ease;
}

.image-wrapper:hover .view-artwork {
  opacity: 1;
}

/* =========================
   Artwork Pages
========================= */

.artwork-page {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
  padding: 80px 40px;
}

.artwork-main-image {
  display: block;
  width: 100%;
  max-width: 620px;
  max-height: 720px;
  margin: 0 auto;
  object-fit: contain;
}

.artwork-page-info h1 {
  margin-bottom: 20px;
  font-size: 42px;
  font-weight: normal;
}

.artwork-page-info p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.8;
}

.art-status {
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* =========================
   Contact
========================= */

.contact-page {
  text-align: center;
  padding: 80px 20px;
}

.contact-page h1 {
  margin-top: 40px;
  margin-bottom: 30px;
  font-weight: normal;
}

.contact-page p {
  font-size: 20px;
  line-height: 1.8;
}

.email-link {
  display: inline-block;
  margin-top: 30px;
  font-size: 20px;
  letter-spacing: 0.4px;
  color: black;
  text-decoration: none;
}

.email-link:hover {
  opacity: 0.6;
}

.inquiry-selector {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
}

.inquiry-selector label {
  display: block;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.inquiry-selector select {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: transparent;
  font-family: Georgia, serif;
  font-size: 16px;
  color: #111;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.social-links a {
  color: black;
  font-size: 26px;
  text-decoration: none;
  transition: 0.3s;
}

.social-links a:hover {
  opacity: 0.5;
}

.contact-form {
  max-width: 600px;
  margin: 60px auto 0;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 24px;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: transparent;
  font-family: Georgia, serif;
  font-size: 16px;
  color: #111;
}

.contact-form textarea {
  resize: vertical;
}

.hidden-field {
  display: none;
}

.form-status {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

.form-status.success {
  color: #245c38;
}

.form-status.error {
  color: #8d1f1f;
}

button[disabled] {
  cursor: wait;
  opacity: 0.65;
}


/* =========================
   Animation
========================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
  }

  .navbar a {
    font-size: 14px;
  }

  .logo {
    width: 180px;
    max-width: 80%;
  }

  .hero {
    padding: 20px 20px 100px;
  }

  .subtitle {
    padding: 0 10px;
    font-size: 18px;
    line-height: 1.6;
  }

  .about,
  .about-page,
  .contact-page {
    padding: 50px 20px;
  }

  .about-page p,
  .contact-page p,
  .art-description {
    font-size: 17px;
    line-height: 1.7;
  }

  .collection-header {
    padding: 40px 20px 20px;
  }

  .collection-header h1,
  .artwork-page-info h1 {
    font-size: 34px;
  }

  .collection-header p {
    font-size: 16px;
    line-height: 1.6;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 20px;
  }

  .gallery .artwork {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .gallery .artwork img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
  }

  .artwork h2 {
    font-size: 24px;
    text-align: left;
  }

  .art-medium {
    font-size: 14px;
  }

  .art-medium,
  .art-description {
    text-align: left;
  }

  .social-links {
    gap: 20px;
  }

  .social-links a {
    font-size: 22px;
  }

  .inquiry-selector {
    max-width: 100%;
  }

  .artwork-page {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

  .artwork-page-info p {
    font-size: 17px;
    line-height: 1.8;
  }

  .artwork-main-image {
    width: 100%;
  }

  .button,
  .back-link {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 15px auto 0;
    text-align: center;
  }
}
