.site-end {
  width: 100%;
  overflow-x: clip;
  font-synthesis: none;
}

.site-end__cta {
  display: flex;
  width: 100%;
  max-width: var(--content-max);
  height: 540px;
  margin-inline: auto;
  padding: 48px 24px 72px;
  overflow: hidden;
  background: var(--green-lighter);
}

.site-end__cta-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 406px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
  padding: 40px 40px 64px;
  overflow: visible;
  border-radius: 6px;
}

.site-end__motif {
  position: absolute;
  top: 0;
  left: 0;
  width: 586.52px;
  height: 801.36px;
  max-width: none;
  object-fit: contain;
  object-position: 100% 50%;
  mix-blend-mode: exclusion;
  transform: translate(1662px, 297px) rotate(129.78deg);
  transform-origin: 0 0;
  pointer-events: none;
}

.site-end__cta-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  gap: 24px;
}

.site-end__cta-copy h2 {
  max-width: 700px;
  margin: 0;
  color: var(--shitake);
  font: 400 48px/58px var(--serif);
  letter-spacing: -2px;
}

.site-end__cta-copy p {
  width: 664px;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font: 300 16px/24px var(--serif);
  letter-spacing: -.64px;
}

.site-end__actions {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 16px;
  color: var(--charcoal);
  font: 300 16px/20px var(--serif);
  letter-spacing: -.64px;
}

.site-end__base nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
}

.site-end__book {
  position: relative;
  display: inline-flex;
  height: 24px;
  align-items: center;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -.8px;
  white-space: nowrap;
}

.site-end__base {
  width: 100%;
  overflow: hidden;
  background: var(--blue-bg);
  color: var(--white);
}

.site-end__base-content {
  display: flex;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 48px 64px 64px;
  flex-direction: column;
  align-items: flex-start;
}

.site-end__wordmark {
  display: block;
  width: 100%;
  overflow: hidden;
  color: inherit;
  font: 400 min(94px, calc((100vw - 128px) / 10))/121% var(--display);
  letter-spacing: 0;
  white-space: nowrap;
}

.site-end__base-content > p {
  width: 100%;
  max-width: 608px;
  margin: 40px 0 0;
  font: 300 16px/24px var(--serif);
  letter-spacing: -.64px;
}

.site-end__base nav {
  display: flex;
  width: 100%;
  max-width: 608px;
  align-items: center;
  gap: 46px;
  margin-top: 40px;
  font: 400 16px/20px var(--serif);
  letter-spacing: -.8px;
}

.site-end__base nav a {
  position: relative;
  display: inline-flex;
  height: 24px;
  align-items: center;
  flex: none;
  color: inherit;
  white-space: nowrap;
  transition: transform 180ms ease-out;
}

.site-end__base nav a::after {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.site-end__cornice {
  width: 100%;
  height: 143px;
  background: url("assets/molding.webp") center top / auto 143px repeat-x;
  filter: grayscale(100%);
  mix-blend-mode: hard-light;
}

@media (hover: hover) {
  .site-end__base nav a:hover { transform: translateY(-3px); }
  .site-end__base nav a:hover::after { opacity: 1; transform: scaleX(1); }
}

.site-end__base nav a:focus-visible::after { opacity: 1; transform: scaleX(1); }

@media (max-width: 800px) {
  .site-end__cta { height: auto; min-height: 0; }
  .site-end__cta-panel { min-height: 0; padding-inline: 0; }
  .site-end__cta-copy h2 { font-size: 38px; line-height: 46px; }
  .site-end__actions { flex-wrap: wrap; }
  .site-end__base-content { padding-inline: 24px; }
  .site-end__wordmark { font-size: calc((100vw - 48px) / 10); }
}

@media (max-width: 520px) {
  .site-end__cta { padding-bottom: 64px; }
  .site-end__cta-panel { gap: 48px; padding-bottom: 0; }
  .site-end__cta-copy h2 { font-size: 34px; line-height: 40px; letter-spacing: -1.5px; }
  .site-end__base nav { flex-direction: column; align-items: flex-start; gap: 18px; }
}
