:root {
  --cp-ink: #243a32;
  --cp-ink-soft: #596b63;
  --cp-cream: #fbf7ee;
  --cp-paper: #fffdf8;
  --cp-forest: #26483c;
  --cp-forest-deep: #1e382f;
  --cp-terra: #b85b40;
  --cp-terra-dark: #98452f;
  --cp-peach: #efb49d;
  --cp-butter: #f4d995;
  --cp-sage-pale: #e5ecdf;
  --cp-line: rgba(36, 58, 50, 0.17);
  --cp-shadow: 0 20px 45px rgba(36, 58, 50, 0.09);
  --cp-serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --cp-sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --bg: var(--cp-cream);
  --text: var(--cp-ink);
  --muted: var(--cp-ink-soft);
  --line: var(--cp-line);
  --primary: var(--cp-terra);
  --surface: var(--cp-paper);
  --surface-soft: #f0eadf;
  --gradient: linear-gradient(135deg, var(--cp-terra), var(--cp-terra));
  --gradient-accent: linear-gradient(135deg, var(--cp-terra), var(--cp-terra));
}

body {
  background: var(--cp-cream);
  color: var(--cp-ink);
  font: 17px/1.55 var(--cp-sans);
}

.shell {
  width: min(1180px, calc(100% - 48px));
}

.cp-skip-link {
  position: fixed;
  top: -70px;
  left: 15px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cp-forest);
  color: #fff;
}

.cp-skip-link:focus {
  top: 15px;
}

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--cp-line);
  background: rgba(251, 247, 238, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 88px;
  gap: 30px;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.brand-wordmark-image {
  height: 27px;
}

.nav {
  gap: 27px;
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--cp-ink);
  font-size: 13px;
  font-weight: 650;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--cp-terra);
  transition: right 180ms ease;
}

.nav a:not(.nav-cta):hover::after,
.nav a.is-active:not(.nav-cta)::after {
  right: 0;
}

.nav .partner-nav-login {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 750;
}

.nav-cta {
  min-height: 42px;
  padding: 0 19px !important;
  border-radius: 999px;
  background: var(--cp-terra);
  box-shadow: 0 9px 18px rgba(184, 91, 64, 0.14);
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 750 !important;
}

.nav-cta:hover {
  background: var(--cp-terra-dark);
  box-shadow: 0 12px 24px rgba(184, 91, 64, 0.2);
}

.nav-toggle {
  border-color: var(--cp-line);
  background: var(--cp-paper);
  color: var(--cp-ink);
}

.cp-eyebrow {
  margin: 0;
  color: var(--cp-terra-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cp-eyebrow > span {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 9px 3px 0;
  background: currentColor;
}

.cp-eyebrow--light {
  color: var(--cp-butter);
}

.cp-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid var(--cp-forest);
  border-radius: 999px;
  background: var(--cp-forest);
  box-shadow: 0 9px 18px rgba(38, 72, 60, 0.12);
  color: #fff;
  font: 750 12px/1 var(--cp-sans);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.cp-button:hover {
  transform: translateY(-2px);
  background: var(--cp-forest-deep);
}

.cp-button--light {
  border-color: var(--cp-paper);
  background: var(--cp-paper);
  box-shadow: none;
  color: var(--cp-forest);
}

.cp-button--light:hover {
  background: var(--cp-butter);
}

.cp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--cp-line);
  font-size: 12px;
  font-weight: 750;
}

.cp-button:focus-visible,
.cp-text-link:focus-visible,
.nav a:focus-visible,
.footer-group a:focus-visible {
  outline: 3px solid var(--cp-butter);
  outline-offset: 4px;
}

.site-footer {
  border: 0;
  background: var(--cp-forest-deep);
  color: rgba(255, 255, 255, 0.74);
}

.site-footer__inner {
  padding: 66px 0 22px;
}

.footer-top {
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.4fr);
  gap: 70px;
}

.footer-brand-block {
  gap: 18px;
}

.site-footer .brand-wordmark-image {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.site-footer .brand-mark {
  padding: 4px;
  border-radius: 50%;
  background: var(--cp-paper);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.68);
  font: italic 17px/1.55 var(--cp-serif);
}

.footer-nav-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}

.footer-group {
  gap: 10px;
}

.footer-group__title {
  margin-bottom: 7px;
  color: var(--cp-butter);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.footer-group a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.footer-group a:hover,
.footer-group a.is-active {
  color: #fff;
}

.footer-meta {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding: 18px 0 0;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta b {
  color: var(--cp-peach);
}

@media (max-width: 1080px) {
  .nav {
    gap: 18px;
  }

  .nav .partner-nav-login {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    order: 3;
    align-items: stretch;
    gap: 3px;
    padding: 12px 0 18px;
    border-top: 1px solid var(--cp-line);
    flex-direction: column;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 10px 8px;
    text-align: center;
  }

  .nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav .partner-nav-login {
    display: block;
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header__inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-wordmark-image {
    height: 24px;
  }

  .site-footer__inner {
    padding-top: 54px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 40px;
  }

  .footer-brand-block {
    justify-items: start;
    text-align: left;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer-group:last-child {
    grid-column: 1 / -1;
  }

  .footer-meta {
    min-height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 40px;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .footer-nav-grid {
    gap: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-button,
  .nav a::after {
    transition-duration: 0.01ms !important;
  }
}
