*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #28361b;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Philosopher, serif;
  margin: 0;
  padding: 0;
  font-weight: 400;
  color: #28361b;
  letter-spacing: 0;
}

h1 {
  font-size: 76px;
  line-height: 1.2;
}

h2 {
  font-size: 48px;
  letter-spacing: 1px;
}

p {
  font-weight: 400;
  font-size: 16px;
  margin: 0 0 25px;
  letter-spacing: 0.5px;
  line-height: 28px;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: #96c11f;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 36px;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.button {
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 2px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  display: inline-block;
  border-radius: 36px;
  padding: 18px 65px;
  background: #96c11f;
  position: relative;
  transition: background-color 1s;
}

.button:hover,
.button:focus-visible {
  background: #80a618;
  color: #ffffff;
}

.button.green {
  background: #3aaa35;
}

.button.green:hover,
.button.green:focus-visible {
  background: #31932d;
}

.button.small {
  font-size: 16px;
  padding: 12px 28px;
  letter-spacing: 1px;
}

/* Header */
#header {
  padding: 35px 140px;
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

#header img.logo {
  width: 235px;
  display: block;
}

#nav ul {
  display: flex;
  align-items: center;
  gap: 45px;
}

#nav ul li a {
  color: #28361b;
  font-size: 18px;
  letter-spacing: 1px;
}

#nav ul li a:hover,
#nav ul li a:focus-visible {
  color: #96c11f;
}

/* Hero */
#home-hero {
  text-align: center;
  color: #ffffff;
  padding: 280px 0 180px;
  background-color: #0d1604;
  background-image: image-set(
    url("../images/home-hero.jpg.webp") type("image/webp"),
    url("../images/home-hero.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center center;
  z-index: 1;
  position: relative;
}

#home-hero::before {
  position: absolute;
  content: "";
  z-index: -1;
  width: 100%;
  height: 100%;
  background: #0d1604;
  opacity: 0.5;
  left: 0;
  top: 0;
}

#home-hero h1 {
  margin-bottom: 10px;
  color: #ffffff;
}

#home-hero p {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
}

/* Intro */
#home-intro {
  background: #ffffff;
  padding: 75px 0 55px;
  text-align: center;
}

#home-intro h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

#home-intro p:last-child {
  margin-bottom: 0;
}

/* Product directory */
#products {
  background: #f8f4f1;
  padding: 80px 0 40px;
}

#products .section-intro {
  text-align: center;
  margin-bottom: 50px;
}

#products .section-intro h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

#products .section-intro p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 50px;
}

.resource-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 34px 28px;
}

.resource-card h3 {
  color: #3aaa35;
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: Philosopher, serif;
}

.resource-card .note {
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 18px;
}

.resource-card ul li {
  border-top: 1px solid #efe7e0;
}

.resource-card ul li:last-child {
  border-bottom: 1px solid #efe7e0;
}

.resource-card a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: #3aaa35;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
}

.resource-card a > span:first-child {
  flex: 1;
  min-width: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.resource-card a::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  align-self: center;
  background-color: #3aaa35;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.resource-card a:hover,
.resource-card a:focus-visible {
  background: #f8f4f1;
  color: #80a618;
}

.resource-card a:hover::after,
.resource-card a:focus-visible::after {
  background-color: #80a618;
}

.resource-card a .source {
  flex-shrink: 0;
  margin-left: auto;
  color: #96c11f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
}

.resource-card.span-2 {
  grid-column: 1 / -1;
}

/* Contact */
#contact {
  background: #ffffff;
  text-align: center;
  padding: 90px 0;
}

#contact h2 {
  font-size: 36px;
  margin-bottom: 30px;
}

#contact p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

#contact .email {
  display: inline-block;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #3aaa35;
  letter-spacing: 0.5px;
  overflow-wrap: anywhere;
  max-width: 100%;
}

#contact .email:hover,
#contact .email:focus-visible {
  color: #96c11f;
}

#contact .button {
  margin-top: 20px;
}

/* Footer */
#footer {
  background: #f2e8e2;
  padding: 50px 90px;
  color: #28361b;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

#footer img.logo {
  width: 200px;
  display: block;
}

#footer p {
  font-size: 20px;
  font-family: Philosopher, serif;
  letter-spacing: 0.5px;
  line-height: 28px;
  margin-bottom: 0;
}

#footer h2.footer-menu-title {
  color: #3aaa35;
  font-size: 28px;
  font-family: Philosopher, serif;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

#footer ul li a {
  font-family: Inter, sans-serif;
  color: #28361b;
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#footer ul li a:hover,
#footer ul li a:focus-visible {
  color: #3aaa35;
}

@media (max-width: 1720px) {
  #header {
    padding: 35px;
  }
}

@media (max-width: 1199px) {
  h1 {
    font-size: 60px;
  }

  #footer {
    padding: 40px 60px;
  }
}

@media (max-width: 991px) {
  #home-hero {
    padding: 140px 20px;
  }

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

  .resource-card.span-2 {
    grid-column: auto;
  }

  #footer {
    text-align: center;
    padding: 40px 30px;
  }

  #footer img.logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 767px) {
  #header {
    padding: 16px 16px 18px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  #header img.logo {
    width: 180px;
  }

  #nav {
    width: 100%;
  }

  #nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  #nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 36px;
    background: #96c11f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
  }

  #nav ul li:last-child a {
    background: #ffffff;
    color: #3aaa35;
    box-shadow: inset 0 0 0 2px #3aaa35;
  }

  #nav ul li a:hover,
  #nav ul li a:focus-visible {
    background: #80a618;
    color: #ffffff;
  }

  #nav ul li:last-child a:hover,
  #nav ul li:last-child a:focus-visible {
    background: #3aaa35;
    color: #ffffff;
    box-shadow: none;
  }

  h1 {
    font-size: 36px;
  }

  h2,
  #products .section-intro h2,
  #contact h2 {
    font-size: 28px;
  }

  .button {
    padding: 16px 32px;
    font-size: 16px;
  }

  #footer {
    padding: 50px 24px;
  }

  #footer ul li a {
    font-size: 16px;
  }
}
