@font-face {
  font-family: "Libre Caslon Text";
  src: local("Libre Caslon Text"), url("/assets/fonts/libre-caslon-text-regular.0a4d8e.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Caslon Text";
  src: local("Libre Caslon Text Italic"), url("/assets/fonts/libre-caslon-text-italic.d201f4.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: local("Source Sans 3"), url("/assets/fonts/source-sans-3.54c77a.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --paper: #fffcf7;
  --ink: #202839;
  --violet: #ddd6e0;
  --plum: #69445b;
  --honey: #c58a28;
  --brass: #72551e;
  --white: #ffffff;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --content: 90rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-color: var(--honey);
}

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.story-section,
.journey-section,
.legacy-section,
.author-section,
.books-section,
.closing-section,
.site-footer {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 7rem;
  padding: 1.5rem var(--gutter);
}

.author-mark {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.15;
  text-decoration: none;
}

.author-mark small {
  margin-top: 0.25rem;
  color: var(--plum);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem clamp(1rem, 2.5vw, 2.4rem);
}

nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: capitalize;
  text-decoration: none;
}

nav a:hover {
  color: var(--plum);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.68fr);
  grid-template-areas: "copy cover" "route route";
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: calc(100vh - 7rem);
  min-height: calc(100svh - 7rem);
  padding: clamp(3rem, 8vh, 7rem) var(--gutter) 2.5rem;
  background: var(--violet);
}

.hero::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 0;
  width: clamp(0.35rem, 1vw, 0.8rem);
  height: 60%;
  background: var(--honey);
}

.hero-copy {
  grid-area: copy;
  max-width: 48rem;
}

.opening-line,
.section-context,
.journey-heading > p,
.legacy-copy > p:first-child {
  margin: 0 0 1rem;
  color: var(--plum);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--plum);
  font-size: clamp(2.9rem, 7.7vw, 7.3rem);
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: var(--ink);
  font-size: 1.06em;
}

.hero-summary {
  max-width: 36rem;
  margin: clamp(1.5rem, 3vw, 2.4rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.7rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.78rem 1.4rem;
  border: 2px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

[data-pending="true"] {
  cursor: not-allowed;
}

.text-link,
.email-link {
  color: var(--plum);
  font-weight: 700;
}

.pending-note {
  margin: 0.8rem 0 0;
  color: #514b52;
  font-size: 0.82rem;
}

.cover-figure {
  grid-area: cover;
  perspective: 90rem;
  width: min(100%, 27rem);
  margin: 0 auto;
}

.cover-art {
  position: relative;
  isolation: isolate;
  transform-origin: left center;
  animation: cover-settle 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.cover-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0.8%;
  right: 99.2%;
  width: 2.8%;
  height: 98.4%;
  background: #171e2b;
  transform: skewY(-20deg);
  transform-origin: right center;
}

.cover-art picture,
.cover-art img {
  display: block;
}

.cover-art img {
  width: 100%;
  box-shadow: 1.1rem 1.1rem 0 rgb(105 68 91 / 18%);
}

.cover-route {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cover-route > path {
  fill: none;
  stroke: var(--honey);
  stroke-width: 7;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-route 1.45s 180ms cubic-bezier(0.55, 0, 0.2, 1) forwards;
}

.route-stop {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: mark-route 280ms cubic-bezier(0.2, 0.8, 0.2, 1.35) forwards;
}

.route-stop circle {
  fill: var(--honey);
}

.route-stop text {
  fill: var(--violet);
  font-family: Arial, sans-serif;
  font-size: 19px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.route-stop-one {
  animation-delay: 420ms;
}

.route-stop-two {
  animation-delay: 930ms;
}

.route-stop-three {
  animation-delay: 1.42s;
}

@keyframes draw-route {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes mark-route {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cover-settle {
  from {
    transform: rotateY(-4deg) translateX(-0.45rem);
  }

  to {
    transform: rotateY(0) translateX(0);
  }
}

.cover-figure figcaption {
  margin-top: 1.1rem;
  color: #514b52;
  font-size: 0.78rem;
  text-align: right;
}

.route-line {
  grid-area: route;
  display: grid;
  grid-template-columns: auto minmax(1rem, 1fr) auto minmax(1rem, 1fr) auto;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  align-items: center;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
}

.route-line i {
  display: block;
  height: 1px;
  background: rgb(105 68 91 / 45%);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 9vw, 9rem);
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
}

.section-intro h2,
.journey-heading h2,
.legacy-copy h2,
.author-copy h2,
.books-section h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  letter-spacing: -0.035em;
}

.story-copy {
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.story-copy p:first-child {
  margin-top: 0;
}

.memory-note {
  grid-column: 2;
  position: relative;
  max-width: 34rem;
  margin: 1rem 0 0 clamp(0rem, 7vw, 7rem);
  padding: 1.7rem 0 0 3rem;
  border-top: 3px solid var(--honey);
}

.memory-note span {
  position: absolute;
  top: 0.85rem;
  left: 0;
  color: var(--honey);
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
}

.memory-note p {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-style: italic;
  line-height: 1.4;
}

.journey-section {
  padding: clamp(4rem, 8vw, 8rem) var(--gutter) clamp(5rem, 10vw, 9rem);
  background: var(--ink);
  color: var(--white);
}

.journey-heading {
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) 1.55fr;
  gap: 2rem;
  align-items: end;
}

.journey-heading > p {
  color: #e0c995;
}

.journey-heading h2 {
  max-width: 15ch;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgb(255 255 255 / 35%);
}

.journey-grid article {
  padding: 2rem clamp(1rem, 3vw, 3rem) 0 0;
}

.journey-grid article + article {
  padding-left: clamp(1rem, 3vw, 3rem);
  border-left: 1px solid rgb(255 255 255 / 35%);
}

.journey-grid .place {
  margin: 0 0 3rem;
  color: #e0c995;
  font-size: 0.88rem;
  font-weight: 700;
}

.journey-grid h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.journey-grid article p:last-child {
  max-width: 28ch;
  color: #edeaf0;
}

.legacy-section {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
}

.legacy-number {
  color: var(--brass);
  font-family: var(--serif);
  font-size: clamp(8rem, 23vw, 22rem);
  letter-spacing: -0.1em;
  line-height: 0.68;
}

.legacy-copy {
  max-width: 46rem;
}

.legacy-copy > p:last-child {
  max-width: 42rem;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.author-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
  padding: clamp(5rem, 9vw, 9rem) var(--gutter);
  background: var(--violet);
}

.author-monogram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 30rem);
  aspect-ratio: 1;
  border: 1px solid rgb(105 68 91 / 40%);
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.author-monogram span {
  display: grid;
  place-items: center;
}

.author-monogram span:nth-child(2) {
  border-right: 1px solid rgb(105 68 91 / 40%);
  border-left: 1px solid rgb(105 68 91 / 40%);
  transform: translateY(12%);
  background: var(--paper);
}

.author-alias {
  margin: 0.5rem 0 2rem;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}

.author-copy > p:not(.section-context):not(.author-alias) {
  max-width: 43rem;
}

.email-link {
  display: inline-block;
  margin-top: 1rem;
  overflow-wrap: anywhere;
}

.books-section {
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
}

.books-section header {
  display: grid;
  grid-template-columns: minmax(11rem, 0.45fr) 1.55fr;
  gap: 2rem;
  align-items: start;
}

.books-section h2 {
  max-width: 15ch;
}

.book-list {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 2px solid var(--ink);
}

.book-list article {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.8fr);
  gap: 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgb(32 40 57 / 30%);
}

.book-list h3 {
  margin: 0;
  color: var(--plum);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.book-list p,
.catalogue-note {
  margin: 0;
}

.catalogue-note {
  margin-top: 1.5rem;
  color: #514b52;
  font-size: 0.88rem;
}

.closing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  background: var(--plum);
  color: var(--white);
}

.closing-section h2 {
  max-width: 16ch;
}

.closing-section p {
  max-width: 46rem;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}

.button-light:hover {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: end;
  padding: 3rem var(--gutter);
  background: var(--ink);
  color: #edeaf0;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.not-found {
  min-height: calc(100vh - 18rem);
  min-height: calc(100svh - 18rem);
  max-width: var(--content);
  margin-inline: auto;
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  background: var(--violet);
}

.not-found h1 {
  max-width: 11ch;
}

.not-found > p:not(.opening-line) {
  max-width: 34rem;
  margin: 2rem 0;
  font-size: 1.15rem;
}

@media (max-width: 50rem) {
  .site-header {
    align-items: flex-start;
    min-height: auto;
  }

  nav {
    max-width: 16rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.46fr);
    min-height: auto;
  }

  .story-section {
    grid-template-columns: 1fr;
  }

  .memory-note {
    grid-column: 1;
  }

  .legacy-section {
    grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1.45fr);
  }

  .author-section {
    grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1.45fr);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  .site-header {
    display: block;
    padding-block: 1.25rem;
  }

  nav {
    justify-content: flex-start;
    max-width: none;
    margin-top: 1.2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "cover" "route";
    padding-top: 3.5rem;
  }

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

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  .cover-figure {
    width: min(78vw, 19rem);
    margin-top: 1rem;
  }

  .route-line {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding-left: 1rem;
    border-left: 1px solid rgb(105 68 91 / 45%);
  }

  .route-line i {
    width: 1px;
    height: 0.65rem;
  }

  .journey-heading,
  .books-section header,
  .legacy-section,
  .author-section,
  .closing-section {
    grid-template-columns: 1fr;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .journey-grid article,
  .journey-grid article + article {
    padding: 2rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 35%);
    border-left: 0;
  }

  .journey-grid .place {
    margin-bottom: 1rem;
  }

  .legacy-number {
    font-size: clamp(8rem, 49vw, 14rem);
  }

  .author-monogram {
    width: min(100%, 22rem);
  }

  .book-list article {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .closing-section {
    align-items: start;
  }

  .button-light {
    justify-self: start;
  }
}

@media (max-width: 24rem) {
  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p:last-child {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .cover-art {
    animation: none;
  }

  .cover-route > path {
    stroke-dashoffset: 0;
    animation: none;
  }

  .route-stop {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media print {
  .site-header nav,
  .hero-actions,
  .closing-section,
  .site-footer {
    display: none;
  }

  body,
  .hero,
  .journey-section,
  .author-section {
    background: #fff;
    color: #000;
  }
}
