/* Base page styling */
body {
  background-color: #fffdf9;
  color: #2f1b12; /* darker brown */
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

/* Links */
a {
  color: #2f1b12;
  text-decoration: none;
}

a:hover {
  color: #1f120c;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #2f1b12;
}

/* Paragraphs */
p {
  color: #2f1b12;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid rgba(47, 27, 18, 0.18);
  display: flex;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
}

.site-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  border-bottom: 1px solid #2f1b12;
}

.home-hero {
  min-height: clamp(360px, 70vh, 720px);
}

.home-hero-image {
  display: block;
  height: clamp(360px, 70vh, 720px);
  object-fit: cover;
  width: 100%;
}

.photo-placeholder {
  align-items: center;
  background: #f4eee5;
  color: rgba(47, 27, 18, 0.65);
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  height: 100%;
  justify-content: center;
  letter-spacing: 0.14em;
  min-height: inherit;
  text-transform: uppercase;
}

.intro-section {
  margin: 0 auto;
  max-width: 780px;
  padding: clamp(48px, 8vw, 96px) 24px;
}

.intro-section h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 24px;
}

.intro-section p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0;
}

.intro-section .eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.page-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.page-intro {
  max-width: 850px;
  padding-bottom: clamp(36px, 6vw, 72px);
}

.eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.back-link {
  border: 1px solid rgba(47, 27, 18, 0.45);
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: clamp(32px, 5vw, 54px);
  padding: 10px 14px;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus {
  background: #2f1b12;
  color: #fffdf9;
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  margin: 0 0 26px;
}

.portrait-section {
  margin-top: clamp(48px, 8vw, 96px);
}

.portrait-placeholder {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: #f4eee5;
  color: rgba(47, 27, 18, 0.65);
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  justify-content: center;
  letter-spacing: 0.14em;
  max-width: 460px;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  border-bottom: 1px solid rgba(47, 27, 18, 0.22);
  display: block;
  padding-bottom: 20px;
}

.gallery-card:hover .card-photo,
.gallery-card:focus .card-photo {
  background: #eee4d7;
}

.card-photo {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f4eee5;
  color: rgba(47, 27, 18, 0.65);
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  justify-content: center;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.card-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.card-details h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 4px;
}

.card-details p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.gallery-page-intro {
  max-width: 780px;
}

.gallery-page-intro p:last-child {
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 22px 0 0;
  max-width: 650px;
}

.photo-grid {
  display: grid;
  gap: clamp(12px, 2vw, 22px);
}

.gallery-image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f4eee5;
  border: 0;
  color: rgba(47, 27, 18, 0.65);
  cursor: pointer;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  justify-content: center;
  letter-spacing: 0.12em;
  padding: 0;
  text-transform: uppercase;
  width: 100%;
}

.gallery-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-image:hover,
.gallery-image:focus {
  background: #eee4d7;
  outline: 1px solid rgba(47, 27, 18, 0.45);
  outline-offset: -1px;
}

.lightbox {
  align-items: center;
  background: rgba(23, 13, 9, 0.94);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 64px clamp(58px, 8vw, 110px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  align-items: center;
  background: transparent;
  color: rgba(47, 27, 18, 0.65);
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  height: min(78vh, 900px);
  justify-content: center;
  letter-spacing: 0.14em;
  max-width: 1200px;
  text-transform: uppercase;
  width: 100%;
}

.lightbox-image img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.lightbox-close,
.lightbox-arrow {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 253, 249, 0.72);
  color: #fffdf9;
  cursor: pointer;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  justify-content: center;
  position: fixed;
}

.lightbox-close {
  font-size: 2rem;
  height: 44px;
  right: 24px;
  top: 24px;
  width: 44px;
}

.lightbox-arrow {
  font-size: clamp(2.5rem, 6vw, 4rem);
  height: 64px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close:hover,
.lightbox-arrow:hover,
.lightbox-close:focus,
.lightbox-arrow:focus {
  background: #fffdf9;
  color: #2f1b12;
  outline: none;
}

.lightbox-open {
  overflow: hidden;
}

.inquire-intro {
  max-width: 760px;
}

.inquire-intro p:last-child {
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 22px 0 0;
  max-width: 620px;
}

.contact-form {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-row label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-row label span {
  letter-spacing: 0.04em;
  text-transform: none;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(47, 27, 18, 0.45);
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 13px 14px;
  width: 100%;
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2f1b12;
  outline: 1px solid #2f1b12;
}

.submit-button {
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  grid-column: 1 / -1;
  justify-self: start;
  letter-spacing: 0.1em;
  padding: 12px 18px;
  text-transform: uppercase;
}

/* Icons */
i,
svg,
.icon,
[class*="icon"] {
  fill: #2f1b12;
  color: #2f1b12;
}

/* Buttons */
button {
  background-color: transparent;
  color: #2f1b12;
  border: 1px solid #2f1b12;
}

button:hover {
  background-color: #2f1b12;
  color: #fbf8f1;
}

/* Inputs */
input, textarea, select {
  color: #2f1b12;
  background-color: #fbf8f1;
  border: 1px solid #2f1b12;
}

/* Smooth transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .contact-form {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 72px 56px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (orientation: landscape) {
  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (orientation: portrait) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
