@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #edf1e9;
  --sage: #dce5d9;
  --ink: #222e25;
  --muted: #4d5a4c;
  --green: #35553c;
  --line: #bfcbbb;
  --display: "Instrument Serif", Georgia, serif;
  --gutter: clamp(18px, 4vw, 58px);
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  line-height: 1.62;
  scroll-padding-top: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
:is(main, section)[tabindex="-1"]:focus { outline: none; }

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), 1140px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 12px auto auto var(--gutter);
  padding: 8px 14px;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header { min-height: 76px; border-bottom: 1px solid var(--line); }
.site-footer { min-height: 80px; color: var(--muted); font-size: .875rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font: 1.9rem/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
}

.leaf {
  width: 15px;
  height: 20px;
  border-radius: 100% 0 100% 0;
  background: var(--green);
  transform: rotate(13deg);
}

.text-link, .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: .89rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.arrow {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
}
.arrow-down { transform: translateY(-2px) rotate(45deg); }
.arrow-up { transform: translateY(2px) rotate(225deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(25px, 5vw, 72px);
  padding-block: clamp(56px, 7.5vw, 106px);
}
.hero h1 {
  font: 400 clamp(4.2rem, 8.5vw, 8rem)/.83 var(--display);
  letter-spacing: -.035em;
}
.hero h1 em { display: block; color: var(--green); }
.hero-copy > p {
  max-width: 34ch;
  margin-block: clamp(22px, 3vw, 34px) 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.13rem);
}
.button {
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 9px 19px;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  transition: background-color 160ms ease-out;
}
.button:hover { background: #243d2a; }

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 56% 52%;
  border-radius: 4px;
  background: var(--sage);
}

.walks {
  padding-block: clamp(48px, 7vw, 92px);
  border-block: 1px solid var(--line);
  background: var(--sage);
}
.walks h2 {
  margin-bottom: clamp(23px, 3.4vw, 44px);
  font: 400 clamp(2.85rem, 5.5vw, 4.8rem)/.98 var(--display);
  letter-spacing: -.02em;
}
.walk-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4.4vw, 52px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.walk-list li { padding-top: 17px; border-top: 1px solid #a0ae9c; }
.duration { margin-bottom: 7px; color: var(--green); font-size: .8rem; font-weight: 650; }
.walk-list h3 { margin-bottom: 8px; font: 400 clamp(1.85rem, 3vw, 2.45rem)/1.06 var(--display); }
.walk-list h3 + p { max-width: 36ch; color: var(--muted); font-size: .95rem; }

@media (max-width: 760px) {
  .site-header { min-height: 63px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 44px; }
  .hero h1 { font-size: clamp(3.85rem, 12.5vw, 6rem); }
  .hero-image { aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
  .walk-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}
