:root {
  color-scheme: light;
  --red: #ce1922;
  --ink: #323643;
  --blue: #607fb2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 175px;
}

body {
  margin: 0;
  color: #585858;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.3;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 20px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  box-shadow: 0 1px 5px #00000014;
}

.header-inner,
.content-width {
  width: min(1100px, calc(100% - 80px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 18px;
}

.logo {
  flex: 0 0 220px;
}

nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: block;
  padding-block: 8px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--red);
}

.archive-label {
  font-size: 0.72em;
  white-space: nowrap;
}

nav .archive-label {
  display: block;
  color: #696969;
  line-height: 1;
}

.hero {
  display: grid;
  min-height: 400px;
  place-items: center;
  padding: 60px 30px;
  background: linear-gradient(#00000020, #00000020), url("assets/hero.jpg") center 48% / cover;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 25px;
  padding: 15px 22px;
  color: #fff;
  background: #0009;
  font-size: 40px;
  line-height: 1.2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 28px;
  border-radius: 25px;
  color: #fff;
  background: var(--red);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: #a7131b;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

.introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
  padding-block: 75px 100px;
}

blockquote {
  margin: 0;
  padding-right: 30px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 2;
}

blockquote p {
  margin-bottom: 0;
}

.about h2 {
  margin-bottom: 10px;
  color: #333;
  font-size: 24px;
}

.divider {
  margin-bottom: 25px;
}

.about p {
  margin-bottom: 20px;
}

.about p:last-child {
  margin-bottom: 0;
}

.dropcap {
  float: left;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 6px 10px 0 0;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 28px;
  line-height: 1;
}

.page-heading {
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 32px;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 65px;
  padding-block: 50px 100px;
}

.product-cover {
  display: block;
  width: min(400px, 100%);
  margin-inline: auto;
}

.book-author,
.product-sku,
.email-note {
  color: #666;
  font-size: 13px;
}

.product-price {
  color: var(--ink);
  font-size: 26px;
}

.product-price span {
  display: block;
  color: #666;
  font-size: 13px;
}

.purchase-placeholder {
  margin-block: 30px;
  padding: 25px;
  background: #f5f5f5;
}

.button:disabled {
  width: 100%;
  border: 0;
  color: #fff;
  background: #666;
  cursor: not-allowed;
}

.purchase-placeholder p {
  margin: 15px 0 0;
  font-size: 13px;
}

.contact-page {
  min-height: 55vh;
  padding-block: 50px 80px;
}

.contact-page > p {
  max-width: 750px;
}

.contact-page h2 {
  margin-top: 35px;
  color: var(--ink);
  font-size: 24px;
}

.contact-email {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.author-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 65px;
  padding-block: 50px 100px;
}

.author-portrait {
  justify-self: end;
}

.media-section {
  padding-block: 50px 100px;
}

.media-link-note {
  color: #666;
  font-size: 13px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px;
  margin-top: 45px;
}

.media-item {
  padding-block: 20px;
  border-bottom: 1px solid #e0dede;
}

.media-item:first-child {
  padding-top: 0;
}

.media-item p {
  margin-bottom: 8px;
}

.media-item h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.media-item a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.media-item a:hover {
  color: var(--red);
}

.media-item time {
  font-style: italic;
}

.book-section {
  padding: 85px 0;
  color: #fff;
  background: linear-gradient(#323643e6, #323643e6), url("assets/cromwell.jpg") center / cover;
  text-align: center;
}

.book-section h2 {
  margin-bottom: 24px;
  font-size: 50px;
}

.book-section .divider {
  margin-inline: auto;
}

.book {
  width: min(280px, 100%);
  margin: 55px auto 28px;
}

.book-cover {
  display: block;
  box-shadow: 0 12px 28px #0006;
}

.book-cover:hover {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.book h3 {
  margin: 20px 0 7px;
  font-size: 18px;
}

.price {
  margin-bottom: 0;
  font-size: 20px;
}

.price span {
  display: block;
  color: #e0e2e8;
  font-size: 12px;
}

.ordering-note {
  margin: 20px 0 0;
  color: #e0e2e8;
  font-size: 13px;
}

/* The contact background photograph was not recoverable from the archive. */
.contact-section {
  padding: 65px 30px;
  color: #fff;
  background: #323643;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.button-light {
  color: #1f1f27;
  background: #fff;
}

.button-light:hover {
  color: #fff;
  background: #405f92;
}

.site-footer {
  position: relative;
  padding: 35px 60px;
  color: #c2c2c2;
  background: #252830;
  font-size: 12px;
  text-align: center;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-separator {
  margin-inline: 12px;
}

.restoration-note {
  color: #b9bbc4;
}

.back-to-top {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 35px;
  border-radius: 3px;
  background: #414550;
  font-size: 22px;
  text-decoration: none;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 20px;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    flex-direction: column;
    gap: 18px;
    padding-block: 22px;
  }

  .logo {
    flex-basis: auto;
    width: 190px;
  }

  nav ul {
    justify-content: center;
    gap: 8px 24px;
  }

  .introduction {
    gap: 35px;
  }

  .product-section,
  .author-section,
  .media-grid {
    gap: 30px;
  }

  blockquote {
    padding-right: 0;
    line-height: 1.6;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .content-width {
    width: calc(100% - 40px);
  }

  nav ul {
    gap: 6px 18px;
  }

  .hero {
    min-height: 380px;
    padding: 45px 20px;
  }

  .hero h1 {
    padding: 18px 15px;
    font-size: 30px;
  }

  .introduction {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 50px 60px;
  }

  .product-section,
  .author-section,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .product-section,
  .contact-page,
  .author-section,
  .media-section {
    padding-block: 40px 60px;
  }

  .author-portrait {
    justify-self: center;
  }

  blockquote {
    font-size: 27px;
  }

  .book-section {
    padding-block: 60px;
  }

  .book-section h2 {
    font-size: 38px;
  }

  .site-footer {
    padding: 30px 45px;
  }

  .footer-separator {
    margin-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
