:root {
  color: #242722;
  background: #f7f7f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: #f7f7f3;
  color: #242722;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #d9d9d1;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

nav a {
  padding-block: 8px;
  color: #565b52;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #242722;
  border-color: #9b3f3f;
}

.hero {
  position: relative;
  min-height: 560px;
  height: min(66vh, 680px);
  margin-top: 28px;
  overflow: hidden;
  background: #d9ddd4;
}

.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(16, 18, 15, 0.72));
}

.hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 5vw, 64px);
  bottom: clamp(26px, 5vw, 58px);
  max-width: 620px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8b3b3b;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
}

.hero-copy > p:last-child {
  max-width: 540px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.routes {
  padding: 72px 0 36px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.note h2 {
  max-width: 720px;
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.routes article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid #d9d9d1;
}

.routes article:last-child {
  border-bottom: 1px solid #d9d9d1;
}

.routes article > span {
  color: #71776d;
  font-variant-numeric: tabular-nums;
}

.routes h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.routes p {
  max-width: 660px;
  margin: 0;
  color: #5f645c;
  line-height: 1.5;
}

.routes strong {
  color: #315f58;
  font-size: 13px;
  white-space: nowrap;
}

.note {
  margin: 64px auto 88px;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  border-top: 4px solid #315f58;
  border-bottom: 1px solid #d9d9d1;
}

.note .eyebrow {
  grid-column: 1 / -1;
}

.note p:last-child {
  margin: 4px 0 0;
  color: #50564d;
  font-size: 17px;
  line-height: 1.7;
}

.text-page {
  min-height: calc(100vh - 156px);
  padding: 88px 0;
}

.text-page h1 {
  max-width: 820px;
  margin-bottom: 34px;
  font-size: clamp(42px, 6vw, 68px);
}

.text-page > p:not(.eyebrow) {
  max-width: 740px;
  color: #50564d;
  font-size: 18px;
  line-height: 1.75;
}

.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-link {
  width: fit-content;
  margin-top: 16px;
  color: #315f58;
  font-weight: 700;
}

footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #686d65;
  font-size: 13px;
  border-top: 1px solid #d9d9d1;
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 62px;
  }

  .brand {
    font-size: 17px;
  }

  nav {
    gap: 12px;
    font-size: 12px;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 500px;
    height: 67vh;
    margin-top: 16px;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-copy > p:last-child {
    font-size: 16px;
  }

  .routes {
    padding-top: 52px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2,
  .note h2 {
    font-size: 31px;
  }

  .routes article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
  }

  .routes strong {
    grid-column: 2;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 48px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
}
