:root {
  --ink: #30291f;
  --ink-soft: #665a47;
  --paper: #d8bf8b;
  --paper-light: #efe1b8;
  --rust: #963f27;
  --green: #405c42;
  --line: rgb(76 54 30 / .25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgb(255 247 215 / .52), transparent 30%),
    radial-gradient(circle at 88% 36%, rgb(110 68 31 / .13), transparent 30%),
    repeating-linear-gradient(3deg, rgb(62 45 25 / .025) 0 1px, transparent 1px 5px),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgb(80 66 42 / .13) 1px, transparent 1px),
    linear-gradient(90deg, rgb(80 66 42 / .13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

a { color: inherit; }

main {
  overflow: hidden;
  padding-top: var(--header-height);
}

.expedition-log {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.chapter {
  position: relative;
  padding: clamp(72px, 8vw, 118px) 0;
  border-top: 1px solid var(--line);
}

.chapter:first-child { border-top: 0; }

.chapter::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--rust);
}

.chapter-copy {
  width: min(820px, 100%);
  margin-inline: auto;
}

.chapter-first {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
  margin-top: clamp(22px, 4vw, 54px);
  margin-bottom: clamp(45px, 6vw, 80px);
  padding: clamp(55px, 7vw, 92px) clamp(34px, 6vw, 78px);
  overflow: hidden;
  background:
    linear-gradient(108deg, rgb(246 234 197 / .82) 0 56%, rgb(216 196 146 / .58) 56.2% 100%),
    repeating-linear-gradient(4deg, rgb(71 51 29 / .035) 0 1px, transparent 1px 5px);
  border: 1px solid rgb(91 66 36 / .23);
  border-radius: 34px;
  box-shadow: 0 24px 55px rgb(71 45 18 / .12);
}

.chapter-first .chapter-copy {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.compass-art {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 470px);
  justify-self: end;
  opacity: .88;
}

.compass-art svg {
  display: block;
  width: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  filter: drop-shadow(12px 16px 18px rgb(69 43 17 / .12));
  transform: rotate(4deg);
}

.compass-art svg circle:nth-child(2) {
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
}

.compass-art .needle-north {
  fill: var(--rust);
  stroke-width: 2;
}

.compass-art .needle-south {
  fill: var(--paper-light);
  stroke-width: 2;
}

.compass-art .hub {
  fill: var(--ink);
  stroke: none;
}

.kicker {
  margin-bottom: 1.25rem !important;
  color: var(--rust);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(.82rem, 1.2vw, .95rem);
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.55;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 {
  max-width: 820px;
  margin-bottom: .72em;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.1rem);
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.05rem);
}

.chapter-copy p {
  margin-bottom: 1.25em;
}

.chapter-copy ul {
  margin: -.2em 0 1.45em;
  padding-left: 1.35em;
}

.chapter-copy li {
  margin-bottom: .38em;
  padding-left: .3em;
}

.chapter-copy li::marker {
  color: var(--rust);
}

.text-link {
  display: inline-block;
  color: var(--rust);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.chapter-map .chapter-copy {
  padding-left: clamp(22px, 4vw, 50px);
  border-left: 3px solid rgb(64 92 66 / .5);
}

.map-introduction strong {
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: .95em;
}

.map-link-row {
  margin: 1.7em 0 2.4em !important;
}

.map-link {
  display: inline-block;
  padding: 17px 23px;
  color: #f7eac9;
  background: var(--rust);
  border: 2px solid var(--rust);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 7px 8px 0 rgb(75 50 25 / .16);
  transition: color .2s, background .2s, transform .2s;
}

.map-link:hover,
.map-link:focus-visible {
  color: var(--ink);
  background: var(--paper-light);
  transform: translateY(-2px);
}

.installation-photo {
  margin: clamp(38px, 6vw, 65px) 0 0;
  padding: 12px;
  background: var(--paper-light);
  box-shadow: 10px 14px 30px rgb(68 43 17 / .2);
  transform: rotate(-.7deg);
}

.installation-photo img {
  display: block;
  width: 100%;
  max-height: 920px;
  object-fit: cover;
  object-position: center;
  filter: sepia(.1) contrast(.98) saturate(.92);
}

.site-footer {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px clamp(24px, 7vw, 120px);
  color: #eadcb8c7;
  background: #211d18;
  font-family: Arial, sans-serif;
  font-size: .88rem;
}

.site-footer strong {
  color: #f4e7c5;
  font-size: 1.1rem;
  letter-spacing: .12em;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
}

@media (max-width: 850px) {
  .chapter-first {
    min-height: auto;
    grid-template-columns: 1fr;
    display: block;
    margin-top: 18px;
    padding: clamp(48px, 10vw, 76px) clamp(24px, 6vw, 42px);
    background:
      linear-gradient(112deg, rgb(246 234 197 / .9), rgb(222 201 151 / .72)),
      repeating-linear-gradient(4deg, rgb(71 51 29 / .035) 0 1px, transparent 1px 5px);
  }

  .chapter-first .chapter-copy,
  .compass-art {
    grid-column: 1;
  }

  .chapter-first .chapter-copy { grid-row: 1; }

  .compass-art {
    position: absolute;
    z-index: 0;
    top: 145px;
    right: -155px;
    width: min(90vw, 440px);
    opacity: .11;
    pointer-events: none;
  }

  .chapter-first .chapter-copy {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }

  .expedition-log {
    width: min(100% - 28px, 620px);
  }

  .chapter-first {
    margin-inline: -2px;
    border-radius: 25px;
  }

  .kicker {
    font-size: .84rem;
    letter-spacing: .1em;
  }

  .chapter {
    padding: 65px 0;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  h2 {
    font-size: clamp(2rem, 9.5vw, 2.65rem);
  }

  .chapter-map .chapter-copy {
    padding-left: 17px;
  }

  .map-link {
    width: 100%;
    padding: 16px 18px;
    text-align: center;
  }

  .installation-photo {
    margin-inline: -3px;
    padding: 7px;
  }

  .installation-photo img {
    max-height: 720px;
  }

  .site-footer {
    min-height: 160px;
    align-items: flex-start;
    flex-direction: column;
    padding: 42px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
