@font-face {
  font-family: "Montserrat";
  src: url("assets/Montserrat-Medium.woff") format("woff");
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/Montserrat-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --green: #245633;
  --grey: #606163;
  --paper: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f2f2ef;
  color: var(--grey);
  font-family: "Montserrat", "Avenir Next", Avenir, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.42;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.35em; }
h1, h2 { margin: 0 0 0.35em; font-size: 1em; line-height: 1.25; }
figure, blockquote { margin: 0; }

.navigation, footer {
  width: min(960px, 100%);
  margin: auto;
  padding: 20px 32px;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  color: var(--green);
  font-size: 15px;
}

.navigation a { text-decoration: none; }
.navigation a:hover, .navigation [aria-current="page"] { text-decoration: underline; }
.page { width: min(960px, 100%); margin: auto; background: var(--paper); }
.hero { position: relative; }
.room { width: 100%; height: auto; }
.hero-logo { position: absolute; left: 5%; top: 6%; width: 50%; height: auto; }

.philosophy {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  gap: 7%;
  padding: 0 7% 48px;
}

.philosophy-aside { position: relative; margin-top: -100px; }
.quote { position: relative; padding: 28px 24px 38px; background: var(--grey); color: white; }
.quote h1 { margin-bottom: 1.1em; }
.quote blockquote { font-size: 0.94em; }
.portrait { width: 100%; height: auto; margin-top: 22px; }
.philosophy-copy { padding-top: 30px; font-size: 1.05em; }
.philosophy-copy p:last-child { margin-bottom: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.gallery img { width: 100%; height: auto; }
.gallery img:nth-child(2) { position: relative; z-index: 1; }
.services-content {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 13%;
  padding: 58px 8% 48px;
}

.services article { margin-bottom: 26px; }
.services article p { margin-bottom: 0; }
.bottom-logo { display: block; width: 90%; margin: 50px auto 0; }
.work-contact { padding-top: 125px; }
.work { padding-bottom: 70px; }
.work h2 { margin-bottom: 0.65em; }
.contact { padding: 24px 20px; background: var(--grey); color: white; }
.contact h2 { margin-bottom: 1.25em; }
.contact address { font-style: normal; }
.contact p:last-child { margin-bottom: 0; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.email { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .navigation, footer { padding: 18px 20px; font-size: 14px; gap: 22px; }
  .philosophy { gap: 6%; padding-inline: 5%; padding-bottom: 30px; }
  .philosophy-aside { margin-top: -48px; }
  .quote { padding: 20px 15px 25px; }
  .philosophy-copy { padding-top: 22px; font-size: 1em; }
  .services-content { gap: 7%; padding: 36px 5%; }
  .work-contact { padding-top: 90px; }
  .contact { padding: 20px 15px; }
}

@media (max-width: 520px) {
  .navigation, footer { justify-content: center; }
  .philosophy { grid-template-columns: 1fr; gap: 28px; padding: 0 6% 34px; }
  .philosophy-aside { margin-top: -24px; }
  .quote { padding: 24px; }
  .quote blockquote { font-size: 1em; }
  .portrait { max-width: 300px; margin: 24px auto 0; }
  .philosophy-copy { padding-top: 0; }
  .services-content { grid-template-columns: 1fr; gap: 38px; padding: 36px 7%; }
  .bottom-logo { width: min(280px, 85%); margin-top: 34px; }
  .work-contact { padding-top: 0; }
  .work { padding-bottom: 20px; }
  .contact { padding: 28px; }
}