@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Caslon+Display&display=swap");

:root {
  --ranger-cream: #f2eadc;
  --ranger-paper: #faf6ee;
  --ranger-ink: #28160f;
  --ranger-green: #24362c;
  --ranger-rust: #b95832;
  --ranger-gold: #d6a75f;
  --ranger-line: rgb(40 22 15 / 22%);
  --ranger-serif: "Libre Caslon Display", Georgia, serif;
  --ranger-sans: "DM Sans", Arial, sans-serif;
  --ranger-page-padding: clamp(1.5rem, 5vw, 5rem);
  --ranger-tree-mark: url("../images/ranger-tree-9185.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ranger-cream);
  color: var(--ranger-ink);
  font-family: var(--ranger-sans);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ranger-rust);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  background: var(--ranger-paper);
  color: var(--ranger-ink);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem var(--ranger-page-padding);
  border-bottom: 1px solid var(--ranger-line);
}

.wordmark {
  width: 9.75rem;
  display: block;
}

.wordmark img {
  width: 100%;
  height: auto;
  display: block;
}

.header-link,
.text-link,
.site-footer a {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-underline-offset: .3rem;
}

.header-link {
  text-decoration: none;
}

.header-link span {
  margin-left: .65rem;
}

.eyebrow {
  position: relative;
  width: fit-content;
  display: block;
  margin: 0 0 1.7rem;
  color: var(--ranger-rust);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow::before,
.footer-brand-lockup::before {
  content: "";
  flex: 0 0 auto;
  display: block;
  background: currentColor;
  -webkit-mask: var(--ranger-tree-mark) center / contain no-repeat;
  mask: var(--ranger-tree-mark) center / contain no-repeat;
}

.eyebrow::before {
  position: absolute;
  top: 50%;
  right: calc(100% + .72rem);
  width: .78rem;
  height: 2.25rem;
  transform: translateY(-50%);
}

.origin-lockup {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  white-space: nowrap;
}

.origin-tree {
  width: .3rem;
  height: .82rem;
  flex: 0 0 auto;
  display: block;
  background: currentColor;
  -webkit-mask: var(--ranger-tree-mark) center / contain no-repeat;
  mask: var(--ranger-tree-mark) center / contain no-repeat;
}

.button {
  width: fit-content;
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.25rem;
  padding: .9rem 1.15rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  font-size: 1rem;
}

.button-primary {
  background: var(--ranger-green);
  color: var(--ranger-paper);
}

.button-primary:hover {
  background: var(--ranger-ink);
}

.site-footer {
  padding: 0 var(--ranger-page-padding);
  background: var(--ranger-ink);
  color: var(--ranger-paper);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(15rem, 1.5fr) repeat(3, minmax(8.5rem, 1fr));
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.site-footer p,
.site-footer address {
  margin: 0;
  color: rgb(250 246 238 / 68%);
}

.footer-brand-lockup {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--ranger-serif);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  letter-spacing: -.025em;
  text-decoration: none;
}

.footer-brand-lockup::before {
  width: .78rem;
  height: 2.25rem;
  opacity: .9;
}

.footer-brand p {
  max-width: 20rem;
  margin-top: 1.5rem;
  font-size: .92rem;
  line-height: 1.65;
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
}

.footer-group h2 {
  margin: 0 0 .45rem;
  color: var(--ranger-gold);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.footer-group a,
.footer-legal a {
  font-size: .7rem;
  line-height: 1.55;
}

.footer-group address {
  margin-bottom: .5rem;
  font-style: normal;
}

.footer-group address a {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.footer-legal {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgb(250 246 238 / 18%);
}

.footer-legal p,
.footer-legal a {
  font-size: .61rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 4.75rem;
  }

  .eyebrow::before {
    right: calc(100% + .45rem);
    width: .48rem;
    height: 1.4rem;
  }

  .wordmark {
    width: 8rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.4rem;
    gap: .65rem;
  }
}

@media (max-width: 430px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
