@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/oswald-400.woff2") format("woff2");
}

:root {
  --black: #000;
  --white: #fff;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  color-scheme: dark;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 1px solid white;
  outline-offset: 6px;
}

.site-header {
  align-items: center;
  background: var(--black);
  display: flex;
  height: 100px;
  justify-content: space-between;
  padding: 0 max(34px, calc((100vw - var(--content-width)) / 2));
  position: relative;
  z-index: 10;
}

.site-title,
.site-header nav {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
}

.site-title {
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}

.site-header nav {
  align-items: center;
  display: flex;
  font-size: 19px;
  gap: 13px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-header nav a {
  padding: 27px 0 15px;
  position: relative;
  text-decoration: none;
}

.site-header nav a::after {
  background: white;
  bottom: 2px;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transition: transform 150ms ease;
  width: 100%;
}

.site-header nav a:hover::after,
.site-header nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.skip-link {
  background: #c79288;
  color: white;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  left: 0;
  padding: 12px 22px;
  position: absolute;
  text-decoration: none;
  top: -70px;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 0;
}

.home-page {
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 212px 34px 150px;
}

.home-intro {
  align-items: flex-start;
  display: grid;
  gap: 38px;
  grid-template-columns: 1.1fr 0.9fr;
  margin: 0 auto;
}

.standard-map {
  height: auto;
  margin-top: 1px;
  width: 100%;
}

.intro-copy h1,
.home-column h2,
.reading-column h1,
.book-copy h1 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.intro-copy h1 {
  font-size: 30px;
  line-height: 1.65;
  margin: -2px 0 22px;
}

.intro-copy p {
  font-size: 21px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.intro-copy .credit {
  font-size: 18px;
  line-height: 1.8;
  margin-top: 20px;
}

.home-columns {
  display: grid;
  gap: 118px 0;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 278px;
  text-align: center;
}

.home-column {
  margin: 0 auto;
  width: 50%;
}

.home-column h2 {
  font-size: 29px;
  line-height: 1.55;
  margin: 0 auto 52px;
}

.home-column p {
  line-height: 1.8;
  margin: 0 0 55px;
}

.links-column {
  grid-column: 1 / -1;
}

.links-column h2 {
  margin-bottom: 32px;
}

footer {
  min-height: 120px;
}

.about-page {
  min-height: calc(100vh - 100px);
  overflow: hidden;
  position: relative;
}

.smoke-background {
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.55)),
    url("assets/research-smoke.webp") center top / cover no-repeat;
  inset: 0;
  min-height: 100%;
  position: absolute;
}

.reading-column {
  margin: 0 auto;
  max-width: 380px;
  padding: 94px 0 110px;
  position: relative;
}

.reading-column section {
  margin-bottom: 58px;
}

.reading-column section:last-child {
  margin-bottom: 0;
}

.reading-column h1 {
  font-size: 24px;
  line-height: 1.55;
  margin: 0 0 9px;
}

.reading-column p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.cv-page .reading-column {
  max-width: 380px;
  padding-bottom: 100px;
  padding-top: 94px;
}

.cv-page .reading-column section {
  margin-bottom: 58px;
}

.cv-page .reading-column p {
  margin-bottom: 18px;
}

.book-page {
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 118px 34px 150px;
}

.book-feature {
  align-items: center;
  display: grid;
  gap: 76px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.book-marketing {
  height: auto;
  max-width: 540px;
  width: 100%;
}

.book-copy {
  max-width: 480px;
}

.book-eyebrow {
  color: #c792dd;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 17px;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.book-copy h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.book-subtitle {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 24px;
  line-height: 1.45;
  margin: 0 0 34px;
}

.book-description {
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 34px;
}

.book-description cite {
  font-style: italic;
}

.book-link {
  border-bottom: 1px solid currentColor;
  display: inline-block;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 18px;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  text-decoration: none;
  text-transform: uppercase;
}

.book-link:hover {
  border-bottom-color: #c792dd;
  color: #e4b8f4;
}

.redirect-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 34px;
  text-align: center;
}

.not-found-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 100px);
  padding: 80px 34px 140px;
  text-align: center;
}

.not-found-page section {
  max-width: 520px;
}

.not-found-page .error-code,
.not-found-page h1 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.not-found-page .error-code {
  color: #aaa;
  font-size: 18px;
  margin: 0 0 8px;
}

.not-found-page h1 {
  font-size: 38px;
  line-height: 1.3;
  margin: 0 0 24px;
}

.not-found-page p {
  margin: 0 0 22px;
}

.not-found-page .home-link {
  text-underline-offset: 5px;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    height: auto;
    padding: 24px;
  }

  .site-title {
    font-size: 18px;
  }

  .site-header nav {
    font-size: 15px;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
  }

  .site-header nav a {
    padding: 4px 0 13px;
  }

  .home-page {
    padding: 100px 24px;
  }

  .home-intro {
    display: block;
  }

  .standard-map {
    margin-bottom: 48px;
  }

  .intro-copy h1 {
    font-size: 27px;
  }

  .intro-copy p {
    font-size: 18px;
  }

  .home-columns {
    display: block;
    margin-top: 170px;
  }

  .home-column {
    margin-bottom: 120px;
    max-width: 310px;
    width: auto;
  }

  .reading-column,
  .cv-page .reading-column {
    max-width: none;
    padding: 74px 26px 90px;
  }

  .book-page {
    padding: 74px 24px 100px;
  }

  .book-feature {
    display: block;
  }

  .book-marketing {
    display: block;
    margin: 0 auto 56px;
  }

  .book-copy {
    max-width: none;
  }

  .book-copy h1 {
    font-size: 39px;
  }

  .book-subtitle {
    font-size: 21px;
  }

  .smoke-background {
    background-position: 45% top;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
