:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --ink: #17201b;
  --muted: #657068;
  --line: #d5d7cf;
  --moss: #2f5d45;
  --rust: #a2452d;
  --white: #ffffff;
  --page: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #f2bd55;
  outline-offset: 4px;
}

.site-header {
  align-items: center;
  background: rgba(245, 243, 238, 0.96);
  border-bottom: 1px solid rgba(23, 32, 27, 0.12);
  display: flex;
  height: 68px;
  justify-content: space-between;
  left: 0;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.wordmark {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 720;
  gap: 10px;
}

.wordmark-mark {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  height: 31px;
  justify-content: center;
  width: 31px;
}

nav {
  display: flex;
  font-size: 14px;
  font-weight: 650;
  gap: 28px;
}

nav a:hover,
footer a:hover {
  color: var(--rust);
}

.hero {
  align-items: flex-end;
  background: url("/assets/field-notes.jpg") center 62% / cover no-repeat;
  color: var(--white);
  display: flex;
  min-height: min(790px, 82svh);
  padding: 128px max(24px, calc((100% - 1120px) / 2)) 76px;
  position: relative;
}

.hero-shade {
  background: rgba(9, 14, 11, 0.47);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.kicker {
  font-size: 12px;
  font-weight: 760;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--moss);
}

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

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

h1 {
  font-size: clamp(46px, 7.5rem, 96px);
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 780px;
}

.hero-copy {
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 30px;
  max-width: 610px;
}

.text-link {
  align-items: center;
  color: var(--moss);
  display: inline-flex;
  font-size: 14px;
  font-weight: 740;
  gap: 9px;
}

.text-link:hover {
  color: var(--rust);
}

.text-link.light {
  color: var(--white);
}

.notes,
.essay,
.about,
footer {
  margin-inline: auto;
  width: var(--page);
}

.notes {
  padding: 94px 0 112px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  margin-bottom: 54px;
}

.section-heading .kicker {
  grid-column: 1 / -1;
}

.section-heading h2,
.essay h2,
.about h2 {
  font-size: 45px;
  line-height: 1.12;
  margin-bottom: 0;
}

.section-heading > p:last-child {
  align-self: end;
  color: var(--muted);
  margin-bottom: 4px;
}

.note-list {
  border-top: 1px solid var(--line);
}

.note {
  display: grid;
  gap: 16px 40px;
  grid-template-columns: 180px minmax(0, 1fr) 120px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.note-meta {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 2px;
}

.note h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  grid-column: 2;
  line-height: 1.22;
  margin-bottom: 0;
}

.note p {
  color: #4f5a52;
  grid-column: 2;
  margin-bottom: 0;
  max-width: 640px;
}

.note .text-link {
  align-self: start;
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
}

.essay {
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 20px 72px;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  padding: 80px 0 110px;
}

.essay .kicker {
  grid-column: 1 / -1;
}

.essay-copy {
  color: #465149;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.about {
  background: var(--moss);
  color: var(--white);
  display: grid;
  gap: 18px 64px;
  grid-template-columns: 0.8fr 1.2fr;
  margin-bottom: 72px;
  padding: 62px 64px 66px;
}

.about .kicker {
  color: #d9dfd4;
  grid-column: 1 / -1;
}

.about p:last-child {
  align-self: end;
  color: #d9dfd4;
  margin-bottom: 2px;
  max-width: 560px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 27px 0 34px;
}

@media (max-width: 760px) {
  :root {
    --page: calc(100% - 32px);
  }

  .site-header {
    height: 62px;
    padding-inline: 16px;
  }

  .wordmark {
    font-size: 13px;
  }

  nav {
    gap: 18px;
  }

  .hero {
    min-height: 78svh;
    padding: 112px 16px 48px;
  }

  h1 {
    font-size: 50px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .notes {
    padding: 70px 0 84px;
  }

  .section-heading,
  .essay,
  .about {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .essay h2,
  .about h2 {
    font-size: 36px;
  }

  .section-heading > p:last-child {
    margin-top: 18px;
  }

  .note {
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 28px 0 31px;
  }

  .note h3,
  .note p,
  .note .text-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .note-meta {
    flex-direction: row;
    gap: 12px;
  }

  .essay {
    padding: 64px 0 82px;
  }

  .about {
    margin-bottom: 48px;
    padding: 42px 28px 46px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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