:root {
  color-scheme: dark;
  --black: #000;
  --ink: #02070b;
  --paper: #e1e7ef;
  --muted: #8492a7;
  --blue: #8ea0c8;
  --gold: #c89a3b;
  --line: rgba(151, 169, 199, .18);
  --header-height: 182px;
}

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .55s;
  animation-timing-function: ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: .01ms; }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: .8rem 1rem;
  background: white;
  color: black;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: var(--header-height);
  background-color: #03070a;
  background-image: url("assets/header-steel-c-hawley.png");
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(174, 188, 211, .16);
  transition: height 1s cubic-bezier(.22, .61, .36, 1),
              box-shadow 1s cubic-bezier(.22, .61, .36, 1),
              background-position 1s cubic-bezier(.22, .61, .36, 1);
}

.site-header.scrolled {
  height: 132px;
  background-position: center top;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .48);
}

.header-inner {
  width: min(1180px, calc(100% - 36px));
  height: 100%;
  margin: auto;
  display: grid;
  grid-template-rows: 50px 1fr;
  justify-items: center;
  transition: grid-template-rows 1s cubic-bezier(.22, .61, .36, 1);
}

.site-header.scrolled .header-inner { grid-template-rows: 40px 1fr; }

.primary-menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-menu a {
  position: relative;
  padding: .75rem .25rem;
  color: #93a1bb;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(.7rem, 1.1vw, .87rem);
  font-weight: 400;
  letter-spacing: .22em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: .35rem;
  height: 1px;
  background: var(--gold);
  transition: left .2s ease, right .2s ease;
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after { left: .25rem; right: .25rem; }

.brand {
  position: relative;
  align-self: center;
  width: min(690px, 72vw);
  display: grid;
  justify-items: center;
  text-decoration: none;
  transform: translateY(-15px);
  transition: width 1s cubic-bezier(.22, .61, .36, 1),
              transform 1s cubic-bezier(.22, .61, .36, 1);
}

.site-header.scrolled .brand { width: min(450px, 54vw); transform: translateY(-10px); }
.brand img { width: 100%; }

.menu-button { display: none; }

main {
  padding-top: var(--header-height);
  background: linear-gradient(#02070b, #000 42%);
}

.opening {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 34px;
}

.painting {
  position: relative;
  width: 100%;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  background-image: url("assets/homepage-bg.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 36%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}

.headliner {
  position: absolute;
  top: 4.5%;
  left: 2.6%;
  width: 43%;
  max-width: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .92));
}

.series-mark {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  margin-top: -5rem;
  scroll-margin-top: 148px;
}

.series-logo-crop {
  position: relative;
  width: min(650px, 76vw);
  aspect-ratio: 6.85 / 1;
  overflow: hidden;
}

.series-logo-crop img {
  position: absolute;
  top: -141%;
  left: 0;
  width: 100%;
  max-width: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .8));
}

.series-mark p {
  margin: .38rem 0 0;
  color: #8595b4;
  font-size: clamp(.72rem, 1.35vw, .95rem);
  letter-spacing: .32em;
  text-transform: uppercase;
}

.story {
  width: min(920px, calc(100% - 42px));
  margin: 2.8rem auto 3.8rem;
  text-align: center;
}

.synopsis {
  margin: 0;
  color: #7f8ea8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.65vw, 1.24rem);
  line-height: 1.42;
}

.closing-line {
  display: block;
  margin-top: .85rem;
  white-space: nowrap;
}
.closing-line span + span::before { content: " "; }

.hook {
  margin: 1.55rem 0 0;
  color: #d9e0e9;
  font-size: clamp(.95rem, 1.65vw, 1.24rem);
  font-weight: 300;
  letter-spacing: .13em;
}

.books {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.2rem);
}

.book-card { margin: 0; min-width: 0; }
.book-card a { position: relative; display: block; text-decoration: none; }
.book-card a::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--gold);
  transition: left .2s ease, right .2s ease;
}
.book-card a:hover::before, .book-card a:focus-visible::before { left: 0; right: 0; }

.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .62), 0 0 0 1px rgba(152, 170, 200, .16);
  transition: box-shadow .3s ease;
}
.book-card:hover img, .book-card:focus-within img { box-shadow: 0 25px 50px rgba(0, 0, 0, .75), 0 0 0 1px rgba(152, 170, 200, .22); }

.book-card p {
  margin: 1rem 0 0;
  text-align: center;
  line-height: 1.5;
}
.book-card span {
  display: block;
  color: #7790c6;
  font-size: .78rem;
}
.book-card strong {
  display: block;
  color: #d8dfe8;
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-footer {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.1rem clamp(1.35rem, 4vw, 4rem);
  border-top: 1px solid rgba(126, 145, 176, .08);
  background: #000;
}
.powered-crop {
  position: relative;
  width: min(250px, 42vw);
  aspect-ratio: 7.23 / 1;
  overflow: hidden;
}
.powered-crop img {
  position: absolute;
  width: 128.62%;
  max-width: none;
  left: -14.15%;
  top: -213.95%;
}
.site-footer p {
  margin: 0;
  color: #778194;
  font-size: .74rem;
  letter-spacing: .08em;
  text-align: right;
}

@media (max-width: 760px) {
  :root { --header-height: 112px; }

  .site-header { background-position: center 11px; }
  .site-header.scrolled { background-position: center top; }
  .site-header.scrolled { height: 88px; }
  .header-inner {
    width: calc(100% - 24px);
    grid-template-rows: 1fr;
    justify-items: stretch;
  }
  .site-header.scrolled .header-inner { grid-template-rows: 1fr; }

  .brand {
    width: min(430px, 90vw);
    align-self: center;
    justify-self: center;
    transform: translateY(17px);
  }
  .site-header.scrolled .brand { width: min(280px, 68vw); transform: translateY(5px); }
  .menu-button {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 8px;
    width: 48px;
    height: 44px;
    display: block;
    padding: 9px;
    border: 0;
    background: transparent;
  }
  .menu-button span:not(.visually-hidden) {
    display: block;
    height: 1.5px;
    margin: 5px 0;
    background: #b0bbce;
    transform-origin: right center;
  }

  .primary-menu {
    position: fixed;
    z-index: 1;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .6rem 1.4rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background-color: #03070a;
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, .18), rgba(0, 0, 0, .88)),
      url("assets/header-steel-c-hawley.png");
    background-size: 100% 100%, 100% 100%;
    background-position: center, center top;
    background-repeat: no-repeat;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .55);
  }
  .site-header.scrolled .primary-menu { top: 88px; }
  .primary-menu.open { display: flex; }
  .primary-menu a { padding: .8rem .35rem; font-size: .76rem; }

  .opening { width: 100%; padding-top: 18px; }
  .painting {
    width: min(100%, 540px);
    margin: auto;
    aspect-ratio: 9 / 13;
    background-size: auto 188%;
    background-position: 63% 27%;
    box-shadow: none;
  }
  .headliner {
    top: 5%;
    left: 3%;
    width: 76%;
  }

  .series-mark { margin-top: -.65rem; scroll-margin-top: 104px; }
  .series-logo-crop { width: 90vw; max-width: 650px; }
  .series-mark p { margin-top: .2rem; }

  .story { margin-top: 2.3rem; margin-bottom: 3rem; }
  .synopsis { line-height: 1.5; }
  .closing-line { white-space: normal; }
  .closing-line span { display: block; }
  .closing-line span + span::before { content: none; }
  .desktop-break { display: none; }
  .hook { line-height: 1.65; }

  .books {
    width: 100%;
    grid-template-columns: repeat(3, 76vw);
    gap: 1.25rem;
    padding: 0 12vw 4.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .book-card { scroll-snap-align: center; }
  .book-card span { font-size: .84rem; }
  .book-card strong { font-size: .8rem; }

  .site-footer {
    min-height: 150px;
    padding: 2rem 1.1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  .powered-crop { width: min(190px, 50vw); }
  .site-footer p { width: auto; font-size: .68rem; line-height: 1.5; text-align: center; }
}

@media (max-width: 420px) {
  .brand { width: 88vw; }
  .site-header.scrolled .brand { width: 68vw; }
  .painting { aspect-ratio: 9 / 14; background-size: auto 194%; background-position: 63% 26%; }
  .series-logo-crop { width: 90vw; }
  .synopsis { font-size: 1rem; }
  .site-footer { gap: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-menu a::after,
  .book-card a::before,
  .book-card img { transition-duration: .01ms !important; }
}

.primary-menu .mobile-faq-link{display:none}@media(max-width:760px){.primary-menu .mobile-faq-link{display:block}}
