@font-face {
  font-family: "Jubilant Display";
  src: url("assets/fonts/dejavu-serif-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Jubilant Sans";
  src: url("assets/fonts/dejavu-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Jubilant Sans";
  src: url("assets/fonts/dejavu-sans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ivory: #f5e8cd;
  --cream: #fff7e7;
  --green: #173f35;
  --green-soft: #245448;
  --honey: #d39a34;
  --line-dark: rgb(23 63 53 / 24%);
  --line-light: rgb(245 232 205 / 24%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--ivory);
}

body {
  margin: 0;
  color: var(--green);
  background: var(--ivory);
  font-family: "Jubilant Sans", "DejaVu Sans", Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: currentcolor;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 0.3rem;
}

.hero {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(22rem, 0.95fr) minmax(26rem, 1.05fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(2rem, 5vw, 4.5rem) max(1.5rem, calc((100vw - 84rem) / 2));
  color: var(--ivory);
  background: var(--green);
}

.hero-identity {
  display: grid;
  align-content: center;
  justify-items: center;
  padding-block: 3rem;
  text-align: center;
}

.place,
.eyebrow,
.hero-summary,
.ingredient,
.primary-link,
.text-link,
footer {
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.place {
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
  font-size: 0.68rem;
  font-weight: 700;
}

h1 {
  display: grid;
  justify-items: center;
  margin: 0;
  font-family: "Jubilant Display", "DejaVu Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1;
  text-transform: uppercase;
}

.jubilant {
  padding-left: 0.13em;
  letter-spacing: 0.13em;
}

.bee-farm {
  padding-left: 0.16em;
  letter-spacing: 0.16em;
}

.bee-medallion {
  display: grid;
  width: clamp(5.6rem, 9vw, 7.6rem);
  aspect-ratio: 1;
  margin: clamp(1.2rem, 3vh, 2rem) 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ivory);
  place-items: center;
}

.bee-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-summary {
  position: relative;
  margin: clamp(3rem, 7vh, 5rem) 0 0;
  padding-top: 1.6rem;
  font-size: 0.68rem;
}

.hero-summary::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4rem;
  border-top: 1px solid var(--line-light);
  content: "";
  transform: translateX(-50%);
}

.hero-image {
  min-height: 42rem;
  margin: 0;
  overflow: hidden;
  border-radius: 22rem 22rem 1.4rem 1.4rem;
  background: var(--green-soft);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work,
.community {
  display: grid;
  grid-template-columns: minmax(22rem, 1.12fr) minmax(20rem, 0.88fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.work-image {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-radius: 0.8rem 14rem 0.8rem 0.8rem;
  box-shadow: 0 1.6rem 4rem rgb(74 48 16 / 10%);
}

.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-number {
  margin: 0 0 1rem;
  color: rgb(23 63 53 / 48%);
  font-family: "Jubilant Display", "DejaVu Serif", Georgia, serif;
  font-size: 0.72rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.65rem;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-family: "Jubilant Display", "DejaVu Serif", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.work-copy > p:last-child,
.community-copy > p {
  max-width: 34rem;
  margin: 2rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.honey-feature {
  display: grid;
  grid-template-columns: minmax(20rem, 0.8fr) minmax(22rem, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(4rem, 8vw, 7rem) max(1.5rem, calc((100vw - 72rem) / 2));
  color: var(--ivory);
  background: var(--green-soft);
}

.jar-image {
  max-height: 44rem;
  margin: 0;
  overflow: hidden;
  border-radius: 16rem 16rem 0.9rem 0.9rem;
}

.jar-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.honey-feature .section-number {
  color: rgb(245 232 205 / 48%);
}

.ingredient {
  margin: 2rem 0 0;
  font-family: "Jubilant Display", "DejaVu Serif", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.06em;
}

.honey-copy > p:not(.eyebrow, .section-number, .ingredient) {
  max-width: 34rem;
  margin: 1.25rem 0 0;
}

.primary-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line-light);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration-line: none;
}

.primary-link:hover {
  color: var(--green);
  background: var(--ivory);
}

.community {
  grid-template-columns: minmax(15rem, 0.7fr) minmax(22rem, 1.3fr);
}

.community-mark {
  display: grid;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  place-items: center;
}

.community-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.63rem;
  font-weight: 700;
}

footer {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 3rem 1.5rem;
  color: var(--ivory);
  background: var(--green);
  font-size: 0.6rem;
  text-align: center;
}

footer p {
  margin: 0;
}

.footer-name {
  margin-bottom: 0.5rem;
  font-family: "Jubilant Display", "DejaVu Serif", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 3rem 1rem;
  color: var(--ivory);
  background: var(--green);
  text-align: center;
}

.error-page h1 {
  font-size: clamp(2rem, 7vw, 4rem);
}

.error-message {
  max-width: 32rem;
  margin: 3rem auto 0;
}

.return-link {
  margin: 1rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 56rem) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 3rem 1rem 1rem;
  }

  .hero-image {
    max-height: 48rem;
    min-height: 34rem;
  }

  .work,
  .community,
  .honey-feature {
    grid-template-columns: 1fr;
  }

  .work,
  .community {
    width: min(100% - 2rem, 40rem);
  }

  .jar-image {
    width: min(100%, 32rem);
    margin-inline: auto;
  }
}

@media (max-width: 32rem) {
  h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-image {
    min-height: 28rem;
    border-radius: 12rem 12rem 1rem 1rem;
  }

  .work-image {
    border-radius: 0.7rem 7rem 0.7rem 0.7rem;
  }

  .community-mark {
    width: min(70vw, 16rem);
    margin-inline: auto;
  }
}
