@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/libre-baskerville@latest/latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/libre-baskerville@latest/latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3@latest/latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3@latest/latin-700-normal.woff2") format("woff2");
}

:root {
  --midnight: #10131a;
  --storm: #343b4b;
  --stone: #727582;
  --dawn: #f7f3e9;
  --gold: #c9a85d;
  --white: #fff;
  --black: #050505;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --content: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --focus: #f2cf7c;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--dawn);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1rem;
  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(--gold);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 7vw, 5.2rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

cite {
  font-family: var(--serif);
  font-style: italic;
}

.section-inner,
.header-inner,
.footer-inner,
.closing-inner,
.not-found-inner {
  width: min(100%, calc(var(--content) + (2 * var(--gutter))));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-intro,
.book-kicker {
  margin-bottom: 1rem;
  color: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  color: var(--white);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 6rem;
  gap: 2rem;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.wordmark {
  width: max-content;
  font-family: var(--serif);
  font-size: 1.15rem;
  text-decoration: none;
}

.primary-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}

.primary-nav a,
.site-footer nav a {
  font-size: 0.95rem;
  text-decoration: none;
}

.primary-nav a:hover,
.site-footer nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.header-buy {
  justify-self: end;
  padding: 0.62rem 1rem;
  border: 1px solid rgb(255 255 255 / 55%);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(930px, 100svh);
  overflow: hidden;
  background: var(--midnight);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 76% 34%, rgb(255 244 205 / 24%), transparent 8%),
    radial-gradient(ellipse at 76% 40%, rgb(201 168 93 / 12%), transparent 30%),
    linear-gradient(118deg, transparent 57%, rgb(255 255 255 / 8%) 58%, transparent 73%);
  content: "";
  transform-origin: 76% 34%;
  animation: breathing-light 16s ease-in-out infinite alternate;
}

.hero-sky {
  position: absolute;
  inset: auto -5% 0;
  height: 25%;
  opacity: 0.58;
  background:
    linear-gradient(to bottom, transparent, var(--midnight)),
    repeating-linear-gradient(168deg, transparent 0 46px, rgb(114 117 130 / 20%) 47px 49px);
  transform: skewY(-3deg);
  animation: storm-drift 30s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  width: min(100%, calc(var(--content) + (2 * var(--gutter))));
  min-height: min(930px, 100svh);
  margin-inline: auto;
  padding: 9.5rem var(--gutter) 5rem;
  gap: clamp(3rem, 8vw, 8rem);
}

.hero-copy {
  padding-bottom: 2rem;
}

.book-kicker {
  color: var(--gold);
}

.hero-lede {
  max-width: 39rem;
  margin-bottom: 2rem;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.availability {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: rgb(255 255 255 / 68%);
  font-size: 0.88rem;
}

.availability::before {
  width: 2.5rem;
  height: 1px;
  margin-right: 0.75rem;
  background: var(--gold);
  content: "";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.45rem;
  border: 2px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary {
  background: var(--gold);
  color: var(--midnight);
}

.button-primary:hover {
  background: var(--dawn);
  text-decoration: none;
}

.text-link {
  font-weight: 700;
}

.text-link span {
  display: inline-block;
  margin-left: 0.35rem;
}

.pending-note {
  margin: 0.7rem 0 0;
  color: rgb(255 255 255 / 67%);
  font-size: 0.88rem;
}

.cover-figure {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  margin: 0 auto;
}

.cover-figure::before {
  position: absolute;
  z-index: -1;
  inset: 1.1rem -1rem -1.1rem 1rem;
  border: 1px solid rgb(201 168 93 / 52%);
  content: "";
}

.cover-figure picture {
  display: block;
  transform-origin: 50% 80%;
  animation: cover-arrival 900ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
  transition: transform 450ms ease, filter 450ms ease;
}

.cover-figure:hover picture {
  transform: translateY(-0.35rem) rotate(0.25deg);
  filter: brightness(1.04);
}

.cover-figure img {
  width: 100%;
  box-shadow: 1.5rem 1.75rem 0 rgb(5 5 5 / 25%), 0 2rem 4rem rgb(5 5 5 / 35%);
}

.cover-figure figcaption {
  margin-top: 1rem;
  color: rgb(255 255 255 / 72%);
  font-size: 0.86rem;
}

.cover-figure figcaption span {
  float: right;
}

@keyframes breathing-light {
  from {
    opacity: 0.72;
    transform: scale(0.97) translate3d(-0.5%, 0, 0);
  }

  to {
    opacity: 1;
    transform: scale(1.07) translate3d(0.8%, 1%, 0);
  }
}

@keyframes storm-drift {
  from {
    transform: translate3d(-1.5%, 0, 0) skewY(-3deg);
  }

  to {
    transform: translate3d(1.5%, -2%, 0) skewY(-2deg);
  }
}

@keyframes cover-arrival {
  from {
    opacity: 0.25;
    transform: translate3d(0, 0.75rem, 0) scale(0.985);
    filter: brightness(0.72);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(1);
  }
}

.recognition {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--dawn);
}

.recognition .section-intro,
.book-section .section-intro,
.author-section .section-intro {
  color: #5d4b24;
}

.recognition h2 {
  max-width: 16ch;
}

.recognition-lede {
  max-width: 46rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  color: #3e3e3e;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.55;
}

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone);
}

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

.recognition-grid article + article {
  padding-left: clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--stone);
}

.recognition-grid p {
  max-width: 30ch;
  margin-bottom: 0;
  color: #454545;
}

.book-section {
  padding: clamp(5rem, 11vw, 10rem) 0;
  background: var(--white);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 9rem);
}

.book-heading {
  position: sticky;
  top: 3rem;
}

.book-copy .lead,
.author-copy .lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  line-height: 1.5;
}

.book-copy p,
.author-copy p {
  margin-bottom: 1.35rem;
}

.prayer-note {
  margin-top: 2.5rem;
  padding: 1.5rem 0 0 1.5rem;
  border-top: 2px solid var(--gold);
  border-left: 1px solid #c8c8c8;
  color: #464646;
  font-style: italic;
}

.reader-note {
  margin-top: 2.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #c8c8c8;
  color: #464646;
  font-size: 0.92rem;
}

.reader-note p {
  margin-bottom: 0;
}

.journey {
  padding: clamp(5rem, 11vw, 10rem) 0;
  background: var(--storm);
  color: var(--white);
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
  align-items: center;
  gap: clamp(4rem, 10vw, 10rem);
}

.journey-quote blockquote {
  position: relative;
  margin: 0;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 34%);
  border-bottom: 1px solid rgb(255 255 255 / 34%);
}

.journey-quote blockquote::before {
  position: absolute;
  top: -1.6rem;
  left: 0;
  padding-right: 1rem;
  background: var(--storm);
  color: var(--gold);
  content: "“";
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
}

.journey-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.5vw, 2.8rem);
  line-height: 1.45;
}

.journey-quote footer {
  margin-top: 1.5rem;
  color: #f1d68f;
  font-size: 0.95rem;
  font-weight: 700;
}

.journey-copy .section-intro {
  color: #f1d68f;
}

.journey-copy > p:not(.section-intro) {
  color: rgb(255 255 255 / 82%);
}

.plain-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.6rem;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.plain-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "+";
  font-weight: 700;
}

.author-section {
  padding: clamp(5rem, 11vw, 10rem) 0;
  background: var(--dawn);
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
}

.author-portrait {
  margin: 0;
}

.author-portrait img {
  width: 100%;
  border-bottom: 0.5rem solid var(--gold);
}

.author-portrait figcaption {
  padding-top: 0.65rem;
  color: #515151;
  font-size: 0.85rem;
  font-style: italic;
}

.author-copy h2 {
  max-width: 17ch;
}

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 13vw, 11rem) 0;
  background: var(--midnight);
  color: var(--white);
}

.closing-light {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 35%;
  height: 150%;
  transform: skewX(-13deg);
  background: linear-gradient(to bottom, rgb(201 168 93 / 19%), transparent 75%);
}

.closing-inner {
  position: relative;
  text-align: center;
}

.closing .section-intro {
  color: var(--gold);
}

.closing h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.closing-inner > p:not(.section-intro, .pending-note) {
  margin-bottom: 2rem;
  color: rgb(255 255 255 / 78%);
  font-size: 1.15rem;
}

.site-footer {
  padding: 4rem 0;
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
}

.footer-inner > div p {
  max-width: 24rem;
  margin: 0.65rem 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.9rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
  color: rgb(255 255 255 / 52%);
  font-size: 0.82rem;
}

.not-found-page {
  min-height: 100svh;
  background: var(--midnight);
  color: var(--white);
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background:
    radial-gradient(circle at 72% 22%, rgb(201 168 93 / 18%), transparent 18%),
    var(--midnight);
}

.not-found-inner {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

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

.not-found p:not(.section-intro) {
  margin-bottom: 2rem;
  color: rgb(255 255 255 / 75%);
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 9rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .cover-figure {
    width: min(78vw, 360px);
  }

  .recognition-grid,
  .book-layout,
  .journey-layout,
  .author-layout {
    grid-template-columns: 1fr;
  }

  .recognition-grid article,
  .recognition-grid article + article {
    padding: 1.5rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--stone);
  }

  .book-heading {
    position: static;
  }

  .journey-quote {
    max-width: 40rem;
  }

  .author-portrait {
    width: min(82vw, 430px);
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 1.2rem;
  }

  .header-inner {
    min-height: 5rem;
    gap: 1rem;
  }

  .header-buy {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  .hero-inner {
    padding-top: 7.5rem;
    padding-bottom: 4rem;
  }

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

  .cover-figure {
    width: min(86vw, 340px);
  }

  .cover-figure figcaption span {
    display: block;
    float: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .copyright {
    grid-column: auto;
  }
}

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

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

  .hero::before,
  .hero-sky,
  .cover-figure picture {
    animation: none !important;
  }

  .cover-figure:hover picture {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .closing .button,
  .pending-note {
    display: none;
  }

  body,
  .hero,
  .journey,
  .closing {
    background: #fff;
    color: #000;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 2rem;
  }
}
