:root {
  color-scheme: light;
  font:
    17px/1.55 Inter,
    system-ui,
    sans-serif;
  color: #3f2a21;
  background: #f8f4e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: auto;
  max-width: 76rem;
  padding: 0 clamp(1rem, 4vw, 3.5rem) 2.5rem;
}
header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #b6aa97;
}
header strong {
  font:
    550 1.6rem Georgia,
    serif;
}
nav {
  margin-inline-start: auto;
  display: flex;
  gap: 1rem;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
nav [aria-current] {
  font-weight: 700;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  margin-top: 1.5rem;
  background: #eee4d4;
}
.hero img {
  width: 100%;
  height: 100%;
  min-height: 17rem;
  max-height: 32rem;
  object-fit: cover;
}
.hero div,
.details {
  padding: clamp(1.4rem, 5vw, 4rem);
}
h1,
h2,
p {
  margin: 0 0 0.7em;
  overflow-wrap: anywhere;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}
p {
  max-width: 60ch;
  white-space: pre-line;
}
.portfolio .hero {
  background: #233a33;
  color: #fff;
}
.portfolio .hero img {
  grid-column: 2;
  grid-row: 1;
}
.portfolio .hero div {
  grid-column: 1;
  grid-row: 1;
}
@media (max-width: 680px) {
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero img {
    height: 13rem;
    min-height: 0;
  }
  header nav {
    margin-inline-start: 0;
  }
}

header .brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand-logo {
  object-fit: contain;
  max-width: min(54vw, 16rem);
  height: 3.2rem;
}
header {
  border-bottom: 3px solid var(--brand-accent, #ac795b);
}
.details + .details {
  border-top: 1px solid #d7c6ad;
}
.offer {
  background: #ebe6d9;
}
.contact {
  background: #e4e9dd;
}
.contact > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
address {
  font-style: normal;
  white-space: pre-line;
}
.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.6rem);
}
.photos figure {
  margin: 0;
  min-width: 0;
}
.photos figcaption {
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
}
.photo-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.photo-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.lightbox {
  border: 0;
  padding: 1.2rem;
  border-radius: 0.55rem;
  max-width: 94vw;
  max-height: 92vh;
  color: #271e19;
  background: #fff;
}
.lightbox img {
  display: block;
  max-width: 82vw;
  max-height: 68vh;
  object-fit: contain;
  margin: auto;
}
.lightbox::backdrop {
  background: #15140fe6;
}
.lightbox p {
  margin: 0.5rem 0 0;
}
.close-photo {
  display: block;
  margin: 0 0 0.35rem auto;
  line-height: 1;
  cursor: pointer;
  border: 0;
  background: #f1eae1;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
}
@media (max-width: 680px) {
  .photos {
    grid-template-columns: 1fr;
  }
  .brand-logo {
    height: 2.6rem;
  }
  .details {
    padding: 1.4rem 1rem;
  }
}

nav.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: flex-start;
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid #d1c5b5;
}
.sections a {
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
section[id] {
  scroll-margin-block-start: 1rem;
}

.demo-toolbar {
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  padding: .8rem 0;
  color: #242323;
  font-size: .9rem;
  border-bottom: 1px solid #c9c1b5;
}
.demo-toolbar span {
  margin-inline-end: auto;
  font-weight: 650;
}
.demo-toolbar a {
  padding-block: .2rem;
}
