@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond&display=swap');

/* Reserve scrollbar space to prevent horizontal layout shift between pages */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

body,
ul,
li,
h1,
h2,
a {
  margin: 0;
  padding: 0;
  font-family: Garamond, serif;
}

p {
  font-size: 18px;
}

header {
  background-color: #362925;
  padding: 24px 30px;
  text-align: left;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.banner {
  position: relative;
}

.banner img {
  max-width: 100%;
}

.banner .welcome {
  color: #ebe1d5;
  font-size: 60px;
  text-shadow: 0.1em 0 #362925;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

nav {
  position: initial;
  top: 50px;
  z-index: 1;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  white-space: nowrap;
  max-width: 1300px;
  margin: 0px auto;
}

nav li {
  display: block;
  font-size: 30px;
}

/* Push logo to the far left */
nav li:first-child {
  margin-right: auto;
}

/* Remove hard offsets in favor of flex */
nav li a.logo,
nav li a.blog {
  position: static;
}

nav li a {
  text-decoration: none;
  color: #ebe1d5;
}

nav li a:hover {
  text-decoration: underline;
}

nav li a.logo:hover {
  text-decoration: none;
}

/* Active link for Home page */
nav li a.home { text-decoration: underline; }

body {
  background: #e5dbcd;
}

main {
  max-width: 100%;
  width: 1200px;
  margin: 80px auto;
  padding: 0 40px;
  box-sizing: border-box;
}

article h2 {
  color: #492d18;
  font-size: 48px;
}

article p {
  line-height: 2em;
  color: #492d18;
}

article p::first-line {
  font-weight: bold;
  font-size: 1em;
}

footer {
  background: #362925;
  color: #ebe1d5;
  padding: 13px;
  text-align: center;
}

footer p.copyright {
  font-size: 20px;
}

/* responsive styles */

@media screen and (max-width: 1400px) {
  .banner .welcome {
    font-size: 40px;
  }
}

@media screen and (max-width: 960px) {
  .banner .welcome {
    font-size: 28px;
  }
  nav li {
    font-size: 18px;
  }
  article h2 {
    font-size: 30px;
  }
}

@media screen and (max-width: 700px) {
  .banner .welcome {
    font-size: 20px;
    position: absolute;
    text-align: center;
  }
  .banner .welcome br {
    display: none;
  }
  nav li {
    font-size: 18px;
  }
}

@media screen and (max-width: 560px) {
  nav ul { flex-direction: column; align-items: center; gap: 12px; }
  .banner .welcome {
    font-size: 20px;
    position: absolute;
    text-align: center;
  }
  .banner .welcome br {
    display: none;
  }
  nav li { display: block; width: 100%; margin: 12px 0; }
  article h2 {
    font-size: 30px;
  }
  header,
  nav {
    position: relative;
    top: 0;
  }
}
