:root {
  --ink: #39271a;
  --bark: #5b3a24;
  --brown: #7d4b25;
  --amber: #e8a83f;
  --gold: #ffd66d;
  --cream: #fff5d7;
  --paper: #fbebc1;
  --sage: #506f4b;
  --blue: #3e6e7f;
  --coral: #bc5d3d;
  --shadow: 0 24px 80px rgba(70, 44, 22, .2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f5ddb0;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 19% 28%, rgba(255, 255, 255, .72), transparent 26rem),
    radial-gradient(circle at 82% 24%, rgba(234, 169, 63, .34), transparent 24rem),
    linear-gradient(120deg, #fff3cc, #f1cf85 48%, #e2ad5f);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='72' viewBox='0 0 84 72'%3E%3Cpath d='M21 1h42l20 35-20 35H21L1 36Z' fill='none' stroke='%235b3a24' stroke-width='1.15' stroke-linejoin='round' opacity='.22'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='72' viewBox='0 0 84 72'%3E%3Cpath d='M21 1h42l20 35-20 35H21L1 36Z' fill='none' stroke='%235b3a24' stroke-width='1.15' stroke-linejoin='round' opacity='.16'/%3E%3C/svg%3E");
  background-position: 0 0, 42px 36px;
  background-size: 84px 72px;
  opacity: .14;
  mix-blend-mode: multiply;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(rgba(91, 58, 36, .13) .8px, transparent .8px),
    radial-gradient(rgba(255, 255, 255, .18) .8px, transparent .8px);
  background-position: 0 0, 11px 13px;
  background-size: 23px 23px;
  opacity: .45;
}

a {
  color: inherit;
}

.storybook-frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.storybook-frame::before,
.storybook-frame::after {
  position: absolute;
  left: 0;
  z-index: 2;
  width: 100%;
  pointer-events: none;
  content: "";
}

.storybook-frame::before {
  top: 0;
  display: none;
}

.storybook-frame::after {
  bottom: 0;
  height: clamp(170px, 22vw, 300px);
  background: linear-gradient(
    to top,
    rgba(224, 166, 78, .52) 0%,
    rgba(239, 196, 113, .48) 48%,
    rgba(239, 196, 113, 0) 100%
  );
}

.storybook-frame img {
  position: absolute;
  z-index: 1;
  user-select: none;
}

.frame-top {
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(166px, 23vw, 520px);
  object-fit: cover;
  object-position: top center;
}

.frame-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(108px, 18vw, 260px);
  object-fit: cover;
  object-position: bottom center;
  opacity: .94;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 66%, rgba(0, 0, 0, .7) 82%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 66%, rgba(0, 0, 0, .7) 82%, transparent 100%);
}

.page-shell {
  position: relative;
  z-index: 20;
  width: min(1180px, calc(100% - clamp(36px, 8vw, 126px)));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(42px, 5.4vw, 82px) 0 clamp(150px, 18vw, 245px);
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0 0 clamp(104px, 8vw, 168px);
}

.brand,
.nav-links {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: .54rem;
  padding: .28rem .54rem .28rem .28rem;
  border-radius: 999px;
  background: rgba(255, 245, 215, .9);
  box-shadow: 0 14px 30px rgba(91, 58, 36, .11);
  text-decoration: none;
  font-family: "Iowan Old Style", "Palatino", Georgia, serif;
  font-size: clamp(1.28rem, 1.65vw, 1.72rem);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 2.04rem;
  height: 2.04rem;
  place-items: center;
  border: 2.5px solid var(--bark);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 -5px 0 rgba(125, 75, 37, .14);
  color: var(--bark);
  line-height: 1;
}

.nav-links {
  gap: .35rem;
  padding: .32rem;
  border: 2px solid rgba(91, 58, 36, .24);
  border-radius: 999px;
  background: rgba(255, 245, 215, .92);
  box-shadow: 0 14px 34px rgba(91, 58, 36, .15);
  backdrop-filter: blur(6px);
}

.nav-links a {
  padding: .46rem .72rem;
  border-radius: 999px;
  color: #51351f;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  background: #fff3c4;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  min-height: clamp(660px, 78vh, 840px);
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding-top: 0;
}

.hero-seal {
  width: clamp(62px, 7vw, 92px);
  margin: 0 0 clamp(.8rem, 1.5vw, 1.2rem);
  filter: drop-shadow(0 10px 11px rgba(91, 58, 36, .16));
}

h1 {
  max-width: 9.6em;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino", Georgia, serif;
  font-size: clamp(3.45rem, calc(2.45rem + 4.7vw), 5.9rem);
  line-height: .91;
  letter-spacing: 0;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: #563821;
  font-family: "Charter", "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 1.35rem;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .84rem 1.08rem;
  border: 3px solid var(--bark);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 7px 0 rgba(91, 58, 36, .2);
  color: var(--cream);
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hero-actions a:hover {
  box-shadow: 0 3px 0 rgba(91, 58, 36, .25);
  transform: translateY(4px) rotate(-1deg);
}

.hive-stage {
  position: relative;
  width: min(620px, 66vw);
  min-height: clamp(340px, 40vw, 530px);
  margin: clamp(38px, 5.8vw, 88px) auto 0;
}

.hive-stage::before {
  position: absolute;
  inset: 9% 8% 7%;
  z-index: -1;
  border: 2px solid rgba(91, 58, 36, .16);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(255, 244, 192, .82), rgba(255, 232, 150, .22) 62%, transparent 68%);
  filter: blur(.2px);
}

.hive-image {
  position: absolute;
  inset: -2%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 36px rgba(91, 58, 36, .18));
}

@media (min-width: 1500px) {
  .topbar {
    margin-bottom: clamp(210px, 11vw, 280px);
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(720px, calc(100% - 68px));
  }

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

  .topbar {
    align-items: center;
  }

  .hero {
    min-height: clamp(620px, 78vh, 780px);
  }

  .hive-stage {
    width: min(700px, 96vw);
    min-height: min(112vw, 640px);
  }

}

@media (max-width: 700px) {
  h1 {
    max-width: 7.4em;
  }
}

@media (max-width: 620px) {
  .frame-bottom {
    opacity: .16;
  }

  .page-shell {
    width: min(100% - 32px, 520px);
  }

  .topbar {
    gap: .75rem;
    margin-bottom: 96px;
  }

  .hive-stage {
    width: min(100%, 430px);
    min-height: 390px;
  }
}
