body {
  color: #20201d;
  font-family: "Nunito", Arial, sans-serif;
  letter-spacing: 0;
  background: #f6f1e8;
}

body,
button,
input,
select,
textarea {
  font-size: 16px;
}

a {
  color: #356f66;
}

a:focus,
a:hover {
  color: #244d47;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.btn {
  border-radius: 4px;
  font-weight: 700;
}

.btn-primary {
  background: #356f66;
  border-color: #356f66;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #244d47 !important;
  border-color: #244d47 !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: #20201d;
}

.eyebrow {
  color: #8b5f28;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

#mainNav {
  min-height: 64px;
  background: rgba(250, 247, 241, 0.96);
  border-bottom: 1px solid rgba(32, 32, 29, 0.08);
}

#mainNav .navbar-brand {
  color: #20201d;
  font-family: "Varela Round", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04rem;
}

#mainNav .navbar-toggler {
  border-color: rgba(32, 32, 29, 0.2);
  color: #356f66;
}

#mainNav .nav-link {
  color: #20201d;
  font-weight: 700;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #356f66;
}

@media (min-width: 992px) {
  #mainNav {
    background: rgba(250, 247, 241, 0.97);
    border-bottom: 1px solid rgba(32, 32, 29, 0.08);
    transition: background-color 0.25s ease, border-color 0.25s ease;
  }

  #mainNav .navbar-brand,
  #mainNav .nav-link {
    color: #20201d;
  }

  #mainNav .nav-link {
    padding: 1.45rem 1rem;
  }

  #mainNav.navbar-shrink {
    background: rgba(250, 247, 241, 0.97);
    border-bottom: 1px solid rgba(32, 32, 29, 0.08);
  }

  body.art-detail-active #mainNav {
    background: rgba(250, 247, 241, 0.97);
    border-bottom: 1px solid rgba(32, 32, 29, 0.08);
  }

  #mainNav.navbar-shrink .navbar-brand,
  #mainNav.navbar-shrink .nav-link,
  body.art-detail-active #mainNav .navbar-brand,
  body.art-detail-active #mainNav .nav-link {
    color: #20201d;
  }

  #mainNav.navbar-shrink .nav-link:hover,
  #mainNav.navbar-shrink .nav-link.active,
  body.art-detail-active #mainNav .nav-link:hover,
  body.art-detail-active #mainNav .nav-link.active {
    color: #356f66;
  }
}

.featured-section {
  padding: 7rem 0 3rem;
  background: #f6f1e8;
}

.featured-heading {
  margin-bottom: 1.75rem;
}

.featured-heading h1 {
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0;
}

.featured-carousel {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1rem 2.5rem rgba(32, 32, 29, 0.2);
}

.featured-carousel .carousel-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-carousel .carousel-caption {
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.8rem;
  text-align: left;
  background: rgba(22, 22, 22, 0.68);
  border-radius: 4px;
}

.featured-carousel .carousel-caption h3 {
  margin: 0;
  color: #fffaf0;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 1.12rem;
}

.gallery-section {
  background: #161616;
  color: #f7f1e5;
  padding: 5rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-heading h2,
.artist-copy h2,
.contact-copy h2 {
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 2.15rem;
  line-height: 1.2;
}

.section-heading p:last-child,
.contact-copy p,
.artist-copy p {
  line-height: 1.75;
}

.art-category {
  margin-top: 3rem;
}

.art-category h3 {
  color: #e4bf78;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.art-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.art-card {
  background: #f7f1e5;
  color: #20201d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
}

.art-image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #2b2b28;
  cursor: pointer;
}

.art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.art-image-link:hover .art-image,
.art-image-link:focus .art-image {
  transform: scale(1.03);
}

.art-view-cue {
  position: absolute;
  left: 0.75rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  color: #fffaf0;
  background: rgba(22, 22, 22, 0.78);
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 800;
}

.art-card-body {
  padding: 1rem;
}

.art-card-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.art-card-body p {
  color: #555148;
  font-size: 0.92rem;
  min-height: 2.6rem;
  margin-bottom: 0.8rem;
}

.art-status-label {
  display: block;
  min-height: 0;
  padding: 0;
  color: #244d47;
  background: transparent;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.art-status-label-sold {
  color: #5d3920;
  background: transparent;
}

.art-detail-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.8rem;
  color: #356f66;
  font-weight: 800;
}

.art-detail-link span {
  min-width: 0;
}

.art-detail-link:hover,
.art-detail-link:focus {
  color: #244d47;
  text-decoration: underline;
}

.artist-section {
  background: #f6f1e8;
  padding: 2.5rem 0;
}

.categories-section {
  background: #161616;
  color: #f7f1e5;
  padding: 4.75rem 0;
}

.categories-section .section-heading {
  margin-bottom: 2rem;
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing-contact-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.landing-contact-cta .btn {
  min-width: 220px;
}

.category-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22, 22, 22, 0.76), rgba(22, 22, 22, 0.25));
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.category-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #fffaf0;
  text-align: center;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.03rem;
}

.category-tile:hover .category-image,
.category-tile:focus .category-image {
  transform: scale(1.04);
}

.artist-layout,
.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.artist-copy,
.contact-copy {
  max-width: 660px;
}

.artist-photo {
  width: 100%;
  max-width: 360px;
  justify-self: start;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1rem 2.5rem rgba(32, 32, 29, 0.18);
}

.contact-section {
  background: #d9c7a4;
  padding: 5rem 0;
}

.purchase-notes {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.purchase-notes div {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.55;
}

.purchase-notes i {
  color: #356f66;
  margin-top: 0.25rem;
}

.contact-form-panel {
  background: #fffaf0;
  border: 1px solid rgba(32, 32, 29, 0.12);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 0 1rem 2.5rem rgba(32, 32, 29, 0.12);
}

.contact-form-panel label {
  font-weight: 800;
}

.contact-form-panel .form-control {
  border-color: rgba(32, 32, 29, 0.2);
  border-radius: 4px;
}

.contact-form-panel .form-control[readonly] {
  color: #3b3328;
  background: #efe5d2;
  border-color: rgba(32, 32, 29, 0.16);
  cursor: default;
}

.form-label-text {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.interest-options {
  display: grid;
  gap: 0.65rem;
}

.interest-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.interest-option input {
  margin-top: 0.25rem;
}

.contact-guidance {
  margin: 0 0 1rem;
  padding: 0.9rem;
  color: #3b3328;
  background: #efe5d2;
  border-left: 4px solid #356f66;
  border-radius: 4px;
  line-height: 1.6;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-weight: 700;
}

.contact-status-error {
  color: #8d2d24;
}

.contact-status-success {
  color: #244d47;
}

.contact-status-pending {
  color: #5d3920;
}

.art-detail-page {
  min-height: 100vh;
  padding: 5.5rem 0 4rem;
  background: #f6f1e8;
}

.detail-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  color: #244d47;
  font-weight: 800;
  text-decoration: none;
  background: rgba(53, 111, 102, 0.1);
  border-radius: 4px;
}

.detail-back-button:hover,
.detail-back-button:focus {
  color: #20201d;
  text-decoration: none;
  background: rgba(53, 111, 102, 0.17);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.detail-image-panel {
  position: relative;
  background: #161616;
  border-radius: 6px;
  overflow: hidden;
}

.detail-art-image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.detail-copy-panel {
  background: #fffaf0;
  border: 1px solid rgba(32, 32, 29, 0.12);
  border-radius: 6px;
  padding: 1.5rem;
}

.detail-copy-panel h1,
.detail-contact-intro h2 {
  font-family: "Varela Round", Arial, sans-serif;
}

.detail-copy-panel h1 {
  font-size: 2rem;
  margin: 0.85rem 0 0.25rem;
}

.modal-location {
  color: #6b5b44;
  font-weight: 800;
}

.art-meta {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.art-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(32, 32, 29, 0.1);
  padding-bottom: 0.45rem;
}

.art-meta-label {
  color: #6b5b44;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.detail-contact-panel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(32, 32, 29, 0.12);
}

.detail-contact-intro h2 {
  font-size: 1.35rem;
}

.painting-context {
  color: #5d3920;
  font-weight: 800;
}

.site-footer {
  padding: 2rem 0;
  background: #161616;
  color: rgba(255, 250, 240, 0.72);
  text-align: center;
}

@media (min-width: 768px) {
  .featured-heading h1 {
    font-size: 3rem;
  }

  .category-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .artist-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  }

  .artist-photo {
    justify-self: end;
  }
}

@media (min-width: 992px) {
  .featured-heading h1 {
    font-size: 3.5rem;
  }

  .category-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .category-tile {
    flex: 1 1 0;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }

  .detail-art-image {
    min-height: 540px;
  }
}

@media (max-width: 575.98px) {
  .detail-actions .btn {
    width: 100%;
  }

  .featured-section {
    padding-top: 5.4rem;
  }

  .featured-heading h1 {
    font-size: 2.25rem;
  }

  .art-detail-page {
    padding-top: 4.75rem;
  }

  .categories-section,
  .gallery-section,
  .contact-section {
    padding: 3.5rem 0;
  }

  .contact-form-panel {
    padding: 1rem;
  }
}
