@font-face {
  font-family: "Dioni Footer Gelica";
  src: url("assets/footer/gelica-regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Dioni Footer Geist";
  src: url("assets/footer/geist-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
  font-style: normal;
}

.page-ending {
  position: relative;
  background: #ff6f1e;
}

/* The FAQ finishes scrolling before the footer covers it, as in the reference. */
.page-ending[data-footer-cover] > .faq {
  position: sticky;
  top: var(--footer-cover-top, 0px);
  z-index: 1;
  min-height: 100vh;
}

.page-footer {
  --copyright-gap: clamp(20px, 2.2vw, 32px);
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 480px;
  overflow: clip;
  border-radius: 40px 40px 0 0;
  background: #ff6f1e;
  color: #fff;
  text-align: left;
}

.page-footer__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 24px;
}

.page-footer__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-top: 40px;
}

.page-footer__title {
  width: 100%;
  max-width: 480px;
  margin: 0;
  color: #fff;
  font-family: "Dioni Footer Gelica", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
}

.page-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  font-family: "Dioni Footer Geist", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.page-footer__hover,
.page-footer__link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-footer__link {
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.page-footer__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 2px;
}

.page-footer__underline {
  display: none;
  width: 100%;
  height: 4px;
  margin-top: -1px;
  overflow: hidden;
}

.page-footer__underline svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.page-footer__link:is(:hover, :focus-visible) .page-footer__underline svg {
  transform: translateX(0);
}

.page-footer__bottom {
  position: relative;
  margin-top: 40px;
}

.page-footer__wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.page-footer__copyright {
  /* The last i ends at x=1293.814718108 in the unchanged 1343-wide SVG. */
  padding-top: var(--copyright-gap);
  padding-inline-end: 3.6623441468354367%;
  padding-bottom: 16px;
  color: #ce500a;
  font-family: "Dioni Footer Geist", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
}

.footer-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  display: block;
  width: 62px;
  height: auto;
  pointer-events: none;
  opacity: 1;
  will-change: transform;
  transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cursor[data-sticker="email"] { width: 80px; }

.footer-cursor[hidden],
.page-footer__status[hidden] {
  display: none;
}

.page-footer__status {
  position: fixed;
  z-index: 99998;
  bottom: 20px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 12px 18px;
  transform: translateX(-50%);
  border: 1px solid #2b1a07;
  border-radius: 8px;
  background: #fdfbf9;
  color: #2b1a07;
  font: 400 15px/1.5 "Dioni Footer Geist", Arial, sans-serif;
  text-align: center;
  pointer-events: none;
}

@media (min-width: 768px) {
  .page-footer { border-radius: 56px 56px 0 0; }
  .page-footer__inner { padding-inline: 48px; }
  .page-footer__top {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 64px;
  }
  .page-footer__title {
    flex-shrink: 0;
    max-width: 420px;
    font-size: 32px;
  }
  .page-footer__nav {
    width: auto;
    max-width: none;
    font-size: 18px;
    white-space: nowrap;
  }
  .page-footer__underline { display: block; }
  .page-footer__bottom { margin-top: 48px; }
  .page-footer__copyright {
    padding-bottom: 32px;
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  /* Add space below the wordmark without shifting it inside the footer. */
  .page-footer { height: calc(700px + var(--copyright-gap)); }
  .page-footer__title { max-width: 524px; font-size: 40px; }
  .page-footer__nav { font-size: 20px; }
  .page-footer__bottom { margin-top: auto; }
  .page-footer__copyright { font-size: 20px; }
  .footer-cursor[data-sticker="email"] { width: 94px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-footer__underline svg { transition: none; }
  .footer-cursor { display: none; }
}
