:root {
  --lichen: #293025;
  --lichen-deep: #22281f;
  --lichen-soft: #5f6256;
  --paper: #f2ecdf;
  --paper-light: #f7f2e8;
  --sand: #c7b494;
  --stone: #918a75;
  --clay: #a94f34;
  --ink: #171815;
  --line: #c8bda8;
  --white: #fffdf7;
  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, .75, .24, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .15;
  background-image:
    repeating-linear-gradient(103deg, rgba(48, 40, 30, .07) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(7deg, transparent 0 3px, rgba(255, 255, 255, .14) 3px 4px);
  mix-blend-mode: multiply;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--lichen);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  height: 104px;
  place-items: center;
  border-block-end: 1px solid rgba(114, 90, 62, .46);
  background:
    radial-gradient(circle at 23% 30%, rgba(142, 118, 80, .08) 0 1px, transparent 2px) 0 0 / 10px 9px,
    var(--paper-light);
}

.brand {
  display: block;
  width: 272px;
  border-radius: 4px;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand:focus-visible,
.link-card:focus-visible,
.footer-brand:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  height: 536px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 42%, rgba(255, 255, 255, .04) 0 1px, transparent 1.6px) 0 0 / 8px 8px,
    linear-gradient(128deg, #2d342a, var(--lichen-deep));
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: auto auto -340px -245px;
  width: 730px;
  height: 650px;
  border: 1px solid rgba(242, 236, 223, .2);
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle, rgba(255, 255, 255, .045) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
    rgba(145, 138, 117, .38);
  transform: rotate(-12deg);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: -390px -285px auto auto;
  width: 760px;
  height: 740px;
  border: 1px solid rgba(242, 236, 223, .18);
  border-radius: 50%;
  content: "";
  background: rgba(242, 236, 223, .055);
  transform: rotate(14deg);
}

.hero__copy {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(1280px, calc(100% - 64px));
  align-self: center;
  align-items: center;
  flex-direction: column;
  margin-inline: auto;
  color: var(--white);
  text-align: center;
}

.hero h1 {
  width: 100%;
  max-width: 1240px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(72px, 6.35vw, 98px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.hero__copy p {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 253, 247, .9);
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: .005em;
}

.hero__land {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero__land--back {
  inset-block-start: -455px;
  inset-inline-start: 5%;
  width: 580px;
  height: 660px;
  border: 1px solid rgba(238, 231, 215, .16);
  border-radius: 50%;
  background: transparent;
  transform: rotate(12deg);
}

.hero__land--light {
  z-index: 1;
  inset-inline-end: -210px;
  inset-block-end: -440px;
  width: 790px;
  height: 660px;
  border: 1px solid rgba(242, 236, 223, .13);
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, .025) 0 1px, transparent 1px 5px),
    rgba(199, 180, 148, .2);
  transform: rotate(-8deg);
}

.hero__land--front {
  z-index: 2;
  inset-inline-end: -325px;
  inset-block-end: -405px;
  width: 640px;
  height: 590px;
  border: 1px solid rgba(245, 237, 220, .15);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.04) 0 1px, transparent 1.5px) 0 0 / 8px 7px,
    rgba(169, 79, 52, .3);
  transform: rotate(-15deg);
}

.hero__stamp {
  position: absolute;
  z-index: 6;
  inset-block-start: 56px;
  inset-inline-end: max(calc((100vw - 1280px) / 2), 6.5vw);
  width: 136px;
  color: var(--sand);
  opacity: .7;
  transform: rotate(7deg);
}

.hero__stamp text {
  fill: currentColor;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 4px;
}

.hero__stamp-star {
  fill: currentColor;
}

.links {
  height: 284px;
  min-height: 284px;
  padding: 26px 32px 30px;
  background:
    radial-gradient(circle at 55% 30%, rgba(149, 117, 74, .08) 0 1px, transparent 2px) 0 0 / 11px 10px,
    var(--paper-light);
}

.links__inner {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.links h2 {
  position: relative;
  width: fit-content;
  margin: 0 0 15px;
  padding-block-end: 9px;
  font-family: var(--display);
  font-size: clamp(30px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.links h2::after {
  position: absolute;
  inset: auto auto 0 0;
  width: 56px;
  height: 2px;
  content: "";
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s .18s var(--ease);
}

.links h2.is-visible::after {
  transform: scaleX(1);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.link-card {
  display: grid;
  min-height: 75px;
  grid-template-columns: 104px 1fr 58px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(247, 242, 232, .55);
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease), background-color .25s ease;
}

.link-card__icon {
  display: grid;
  align-self: stretch;
  place-items: center;
  color: var(--white);
}

.link-card__icon--green {
  background: var(--lichen);
}

.link-card__icon--clay {
  background: var(--clay);
}

.link-card__icon--ink {
  background: #343632;
}

.link-card__icon--sand {
  background: var(--sand);
}

.link-card__icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card__icon .icon-dot {
  fill: currentColor;
  stroke: none;
}

.link-card__label {
  padding-inline: 30px 12px;
  font-size: 22px;
  line-height: 1.2;
}

.link-card__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #6e5a3a;
}

.link-card__arrow svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .28s var(--ease);
}

.link-card:hover {
  border-color: rgba(105, 78, 49, .56);
  background: rgba(255, 252, 245, .78);
  box-shadow: 0 9px 24px rgba(51, 43, 31, .1);
  transform: translateY(-3px);
}

.link-card:hover .link-card__arrow svg {
  transform: translateX(7px);
}

.site-footer {
  display: grid;
  min-height: 100px;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255,255,255,.035) 0 1px, transparent 1.5px) 0 0 / 8px 8px,
    var(--lichen-deep);
}

.footer-brand {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 13px;
  border-radius: 5px;
  color: var(--paper-light);
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: .055em;
  text-decoration: none;
}

.footer-brand__mascot {
  display: block;
  width: 48px;
  aspect-ratio: 210 / 245;
  overflow: hidden;
}

.footer-brand__mascot img {
  width: auto;
  max-width: none;
  height: 100%;
}

.toast {
  position: fixed;
  z-index: 200;
  inset: auto 24px 24px 50%;
  padding: 13px 19px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
  background: rgba(34, 40, 31, .96);
  box-shadow: 0 15px 45px rgba(22, 24, 20, .28);
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .25s ease, transform .25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.link-card:nth-child(2) {
  transition-delay: .05s;
}

.link-card:nth-child(3) {
  transition-delay: .1s;
}

.link-card:nth-child(4) {
  transition-delay: .15s;
}

@media (max-width: 1100px) {
  .hero__copy {
    width: calc(100% - 56px);
  }

  .hero h1 {
    font-size: clamp(66px, 8vw, 88px);
  }

  .hero__stamp {
    inset-inline-end: 4vw;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 88px;
  }

  .brand {
    width: 236px;
  }

  .hero {
    height: auto;
    min-height: 500px;
  }

  .hero__copy {
    width: calc(100% - 48px);
  }

  .hero h1 {
    font-size: clamp(54px, 8.4vw, 68px);
  }

  .hero__copy p {
    margin-block-start: 19px;
    font-size: 19px;
  }

  .hero__stamp {
    inset-block-start: 28px;
    inset-inline-end: 24px;
    width: 88px;
    opacity: .56;
  }

  .hero__land--back {
    inset-block-start: -390px;
    inset-inline-start: -16%;
    width: 520px;
    height: 590px;
  }

  .hero__land--light {
    inset-inline-end: -290px;
    inset-block-end: -410px;
    width: 690px;
    height: 590px;
  }

  .hero__land--front {
    inset-inline-end: -235px;
    inset-block-end: -245px;
  }

  .links {
    height: auto;
    padding: 32px 24px 38px;
  }

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

  .site-footer {
    min-height: 92px;
  }
}

@media (max-width: 520px) {
  .site-header {
    height: 78px;
  }

  .brand {
    width: 205px;
  }

  .hero {
    min-height: 430px;
  }

  .hero::before {
    inset-inline-start: -275px;
    inset-block-end: -265px;
    width: 520px;
    height: 450px;
  }

  .hero__copy {
    width: calc(100% - 36px);
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 56px);
    line-height: 1;
  }

  .hero__copy p {
    max-width: 330px;
    margin-block-start: 20px;
    font-size: 17px;
  }

  .hero__stamp {
    inset-block-start: 18px;
    inset-inline: auto 12px;
    width: 70px;
    opacity: .42;
  }

  .hero__land--back {
    inset-block-start: -325px;
    inset-inline-start: -62%;
  }

  .hero__land--light {
    inset-inline-end: -420px;
    inset-block-end: -420px;
  }

  .links {
    padding: 28px 16px 32px;
  }

  .links h2 {
    max-width: 310px;
    margin-block-end: 21px;
    font-size: 30px;
  }

  .link-card {
    min-height: 68px;
    grid-template-columns: 72px 1fr 44px;
  }

  .link-card__icon svg {
    width: 36px;
    height: 36px;
  }

  .link-card__label {
    padding-inline: 18px 8px;
    font-size: 18px;
  }

  .link-card__arrow {
    width: 36px;
  }

  .link-card__arrow svg {
    width: 25px;
  }

  .footer-brand {
    gap: 10px;
    font-size: 23px;
  }

  .footer-brand__mascot {
    width: 42px;
  }

  .toast {
    inset-inline: 16px;
    width: calc(100% - 32px);
    text-align: center;
    transform: translateY(18px);
  }

  .toast.is-visible {
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
