:root {
  --ink: #16110f;
  --ivory: #f8f1e5;
  --parchment: #eadcc6;
  --wine: #7c2334;
  --wine-dark: #43151f;
  --emerald: #143d36;
  --moss: #6f7f5d;
  --gold: #c69a48;
  --shadow: rgba(10, 8, 8, 0.72);
  --line: rgba(248, 241, 229, 0.2);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ivory);
  background: #0e1010;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--ivory);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  border-radius: 0.35rem;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(10, 8, 8, 0.82), rgba(10, 8, 8, 0));
}

.brand,
.nav,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(198, 154, 72, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.nav {
  gap: clamp(0.8rem, 2vw, 1.6rem);
  font-size: 0.92rem;
}

.nav a,
.footer-links a {
  text-decoration: none;
  color: rgba(248, 241, 229, 0.84);
}

.nav a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 7rem clamp(1rem, 5vw, 4rem) 5rem;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 8, 8, 0.84) 0%, rgba(10, 8, 8, 0.46) 48%, rgba(10, 8, 8, 0.68) 100%),
    linear-gradient(0deg, #0e1010 0%, rgba(14, 16, 16, 0.25) 35%, rgba(14, 16, 16, 0.14) 100%);
}

.hero-content {
  width: min(720px, 100%);
  margin: 0 auto 0 max(0px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.04;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4.1rem, 13vw, 8rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-lede {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: rgba(248, 241, 229, 0.9);
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  padding: 0.8rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #20130d;
}

.button.secondary {
  border-color: rgba(248, 241, 229, 0.34);
  background: rgba(22, 17, 15, 0.34);
  color: var(--ivory);
}

.button:hover,
.contact-link:hover {
  filter: brightness(1.08);
}

.section-pad {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.book-section {
  background:
    linear-gradient(180deg, #0e1010, #171313 38%, #251318);
}

.book-layout,
.author-layout,
.contact-layout,
.footer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.book-cover {
  width: min(360px, 100%);
  justify-self: center;
}

.book-cover img {
  width: 100%;
  border: 1px solid rgba(198, 154, 72, 0.5);
  border-radius: 0.45rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.42);
}

.book-copy p,
.author-copy p {
  max-width: 68ch;
  color: rgba(248, 241, 229, 0.82);
  font-size: 1.05rem;
}

.tagline {
  color: var(--parchment);
  font-size: 1.25rem;
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  background: rgba(248, 241, 229, 0.18);
  border: 1px solid rgba(248, 241, 229, 0.18);
  border-radius: 0.45rem;
  overflow: hidden;
}

.facts li {
  display: grid;
  gap: 0.18rem;
  min-height: 5rem;
  padding: 1rem;
  background: rgba(10, 8, 8, 0.34);
}

.facts strong {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts span {
  color: var(--ivory);
}

.series-section {
  background: linear-gradient(180deg, #251318, #121f1d);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.series-item {
  min-height: 230px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(248, 241, 229, 0.16);
  border-radius: 0.45rem;
  background: rgba(248, 241, 229, 0.06);
}

.series-item.active {
  border-color: rgba(198, 154, 72, 0.48);
}

.series-number {
  display: block;
  margin-bottom: 2.2rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.series-item p {
  color: rgba(248, 241, 229, 0.78);
}

.author-section {
  background:
    linear-gradient(120deg, rgba(124, 35, 52, 0.34), transparent 42%),
    #111513;
}

.author-layout {
  align-items: start;
}

.author-intro {
  display: grid;
  gap: 1.25rem;
}

.author-photo {
  width: 148px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(198, 154, 72, 0.58);
  border-radius: 50%;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.26);
}

.author-copy {
  padding-top: 0.4rem;
}

.contact-section {
  background: #24151a;
}

.contact-link {
  justify-self: start;
  color: #1a100b;
  background: var(--parchment);
  border-radius: 0.4rem;
  padding: 1rem 1.1rem;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer {
  background: #0b0d0d;
  border-top: 1px solid rgba(248, 241, 229, 0.12);
  padding: 1.2rem clamp(1rem, 5vw, 4rem);
}

.footer-layout {
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: rgba(248, 241, 229, 0.62);
}

.footer-links {
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 92vh;
    padding-top: 8.5rem;
  }

  .book-layout,
  .author-layout,
  .contact-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .book-cover {
    justify-self: start;
  }

  .series-grid,
  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-header {
    display: grid;
  }

  .nav {
    justify-content: flex-start;
    font-size: 0.86rem;
  }

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

  .button {
    width: 100%;
  }
}
