html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Albert Sans", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: #2c3527;
  background-color: #eeece3;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/texture.jpg);
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2c3527;
}

a:focus-visible {
  outline: 2px solid #8a5f5c;
  outline-offset: 4px;
}

h1,
h2 {
  font-family: "antiquarian-scribe", "Corinthia", cursive;
  font-weight: 400;
  line-height: 0.9;
  color: #3e4a37;
}

h2 {
  font-size: 76px;
  text-align: center;
  margin: 0 0 48px 0;
}

.label,
.logo,
nav a,
.button,
.credit {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 20;
  padding: 10px 16px;
  background-color: #3e4a37;
  color: #ffffff;
}

.skip:focus {
  left: 12px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(238, 236, 227, 0.25);
  transition: transform 0.4s, background-color 0.4s;
}

.topbar.solid {
  background-color: rgba(18, 23, 15, 0.92);
  border-bottom-color: transparent;
}

.topbar.hide {
  transform: translateY(-100%);
}

.topbar .logo {
  color: #eeece3;
  text-decoration: none;
}

nav a {
  margin-left: 12px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #eeece3;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 15px 22px;
  background-color: #3e4a37;
  color: #ffffff;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.3s;
}

.button svg {
  transition: transform 0.3s;
}

.button:hover {
  background-color: #2c3527;
}

.button:hover svg {
  transform: translateY(3px);
}

.hero .button {
  background-color: #eeece3;
  color: #2c3527;
}

.hero .button:hover {
  background-color: #dbe3cc;
}

.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  background-color: #000000;
}

.hero picture {
  display: block;
  height: 100%;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
}

.hero-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 32px;
  z-index: 1;
}

.hero h1 {
  font-size: 112px;
  margin: 0;
  color: #eeece3;
}

.hero-desc {
  max-width: 420px;
  margin: 12px 0 28px 0;
  font-size: 18px;
  line-height: 1.5;
  color: #dbe3cc;
}

.intro {
  padding: 96px 24px;
  text-align: center;
  background-color: #3e4a37;
}

.intro p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 24px;
  line-height: 1.5;
  color: #eeece3;
}

.gallery {
  padding: 96px 24px 40px 24px;
  text-align: center;
}

figure {
  max-width: 640px;
  margin: 0 auto 80px auto;
}

figure img {
  width: 100%;
  border-radius: 2px;
}

figcaption {
  max-width: 440px;
  margin: 16px auto 0 auto;
}

figcaption .label {
  color: #5b6653;
}

figcaption p {
  margin: 6px 0 0 0;
  font-size: 16px;
}

.etymology {
  padding: 96px 24px;
  background-color: #dbe3cc;
}

.etymology ol {
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.etymology li {
  padding: 20px 0;
}

.etymology .label {
  color: #3e4a37;
}

.name {
  margin: 10px 0 0 0;
  font-size: 26px;
  font-style: italic;
  line-height: 1.3;
  color: #3e4a37;
}

.etymology li p {
  margin: 8px 0 0 0;
  font-size: 16px;
}

.note {
  max-width: 560px;
  margin: 40px auto 0 auto;
  text-align: center;
  font-size: 18px;
}

.cycle {
  padding: 96px 24px;
  background-image: linear-gradient(rgba(238, 236, 227, 0.55), rgba(238, 236, 227, 0.55)), url(../images/leaves.jpg);
  background-size: cover;
  background-position: center;
}

.cycle ol {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.cycle li {
  padding: 20px 0;
}

.cycle .label {
  color: #3e4a37;
}

.cycle p {
  margin: 8px 0 0 0;
  font-size: 16px;
}

footer {
  padding: 48px 24px;
  text-align: center;
  background-color: #3e4a37;
}

footer .logo {
  font-family: "antiquarian-scribe", "Corinthia", cursive;
  font-size: 56px;
  letter-spacing: 0;
  text-transform: none;
  color: #ffffff;
  text-decoration: none;
}

.credit {
  margin: 16px 0 0 0;
  color: #dbe3cc;
}

.credit a {
  color: #ffffff;
}

@media (min-width: 800px) {
  .topbar {
    padding: 24px 6%;
  }

  nav a {
    margin-left: 18px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .hero {
    height: 100vh;
  }

  .hero picture img {
    position: absolute;
    top: 0;
    right: 0;
    width: 68%;
    object-fit: contain;
    object-position: right center;
  }

  .hero::after {
    background: linear-gradient(90deg, #000000 30%, rgba(0, 0, 0, 0) 65%);
  }

  .hero-text {
    left: 6%;
    right: 6%;
    bottom: 56px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .hero h1 {
    font-size: 200px;
  }

  .hero-desc {
    margin-bottom: 0;
    font-size: 20px;
  }

  .intro {
    padding: 140px 24px;
  }

  .gallery {
    padding-top: 140px;
  }

  .intro p {
    font-size: 30px;
  }

  h2 {
    font-size: 110px;
  }

  figure {
    margin-bottom: 120px;
  }

  .etymology {
    padding: 140px 6%;
  }

  .etymology ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .cycle {
    padding: 140px 6%;
  }

  .cycle ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}
