:root {
  color-scheme: dark;
  --ink: #08080a;
  --coal: #101115;
  --charcoal: #191b20;
  --smoke: #a8a7a0;
  --bone: #ede7d8;
  --paper: #f6f0df;
  --steel: #6f9fb0;
  --brass: #b99a60;
  --wine: #6d263b;
  --focus: #d9bd78;
  --max: 1160px;
  --step--1: clamp(0.88rem, 0.84rem + 0.18vw, 1rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.65vw, 1.62rem);
  --step-2: clamp(1.65rem, 1.32rem + 1.36vw, 2.45rem);
  --step-3: clamp(2.3rem, 1.6rem + 2.9vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0.58), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 44px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand-mark {
  width: 0.82rem;
  height: 0.82rem;
  border: 1px solid var(--brass);
  rotate: 45deg;
  box-shadow: 0 0 0 5px rgba(185, 154, 96, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.5rem);
  color: var(--smoke);
  font-size: var(--step--1);
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--paper);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 7rem clamp(1.2rem, 6vw, 5rem) clamp(4rem, 12vh, 7rem);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.97), rgba(8, 8, 10, 0.54) 48%, rgba(8, 8, 10, 0.25)),
    linear-gradient(0deg, rgba(8, 8, 10, 0.96), rgba(8, 8, 10, 0.12) 48%, rgba(8, 8, 10, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: var(--step-3);
}

h2 {
  max-width: 14ch;
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-1);
}

p {
  margin: 1rem 0 0;
  color: var(--smoke);
}

.hero-copy {
  max-width: 540px;
  color: var(--paper);
  font-size: var(--step-1);
}

.hero-actions,
.bio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(237, 231, 216, 0.24);
  text-decoration: none;
  font-weight: 750;
}

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

.button-secondary {
  background: rgba(237, 231, 216, 0.06);
  color: var(--paper);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid rgba(237, 231, 216, 0.12);
  background: #0d0e12;
}

.signal-strip p {
  margin: 0;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-right: 1px solid rgba(237, 231, 216, 0.1);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

.section {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 4vw, 2rem);
}

.section-dark {
  background:
    radial-gradient(circle at 14% 18%, rgba(111, 159, 176, 0.14), transparent 28rem),
    linear-gradient(135deg, #08080a, #121318 68%, #08080a);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2.3rem;
}

.book-grid {
  display: grid;
  gap: 1.3rem;
}

.book-feature {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: clamp(1.3rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(237, 231, 216, 0.14);
  background: linear-gradient(135deg, rgba(237, 231, 216, 0.055), rgba(111, 159, 176, 0.045));
}

.book-feature-alt {
  background: linear-gradient(135deg, rgba(109, 38, 59, 0.12), rgba(111, 159, 176, 0.04));
}

.book-title-panel,
.author-portrait {
  display: grid;
  place-items: center;
  min-height: 460px;
  border: 1px solid rgba(185, 154, 96, 0.36);
  background:
    linear-gradient(145deg, rgba(109, 38, 59, 0.28), rgba(8, 8, 10, 0.28)),
    repeating-linear-gradient(90deg, rgba(237, 231, 216, 0.04) 0 1px, transparent 1px 28px),
    #111217;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

.book-title-panel span {
  max-width: 11ch;
  color: var(--paper);
  font-size: var(--step-1);
  line-height: 1.15;
}

.book-title-panel-echoes {
  background:
    linear-gradient(145deg, rgba(109, 38, 59, 0.36), rgba(8, 8, 10, 0.32)),
    repeating-linear-gradient(135deg, rgba(237, 231, 216, 0.045) 0 1px, transparent 1px 32px),
    radial-gradient(circle at 50% 24%, rgba(185, 154, 96, 0.16), transparent 9rem),
    #111217;
}

.metadata-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}

.metadata-list div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid rgba(237, 231, 216, 0.12);
}

dt {
  color: var(--brass);
  font-weight: 750;
}

dd {
  margin: 0;
  color: var(--smoke);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.1rem;
  color: var(--paper);
  font-weight: 750;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.28em;
}

.contact-panel {
  border-top: 1px solid rgba(237, 231, 216, 0.16);
  padding-top: 1.1rem;
}

.section-about,
.section-contact {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 660px);
  justify-content: center;
  gap: clamp(1.4rem, 6vw, 4.2rem);
  padding-inline: clamp(1.2rem, 4vw, 2rem);
}

.author-portrait {
  min-height: 0;
  margin: 0;
  align-self: start;
  overflow: hidden;
  background: #111217;
}

.author-portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 430px);
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  padding: clamp(4rem, 9vw, 6rem) clamp(1.2rem, 4vw, 2rem);
  border-block: 1px solid rgba(237, 231, 216, 0.12);
}

.newsletter-form {
  align-self: center;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--paper);
  font-weight: 750;
}

.form-row {
  display: flex;
  gap: 0.65rem;
}

.social-contact {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.social-contact .button {
  justify-self: start;
}

.section-contact {
  grid-template-columns: minmax(0, 580px) minmax(260px, 420px);
}

.contact-aside {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--step-1);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.2rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(237, 231, 216, 0.12);
  background: #070708;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--smoke);
}

@media (max-width: 850px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(237, 231, 216, 0.22);
    background: rgba(8, 8, 10, 0.65);
    color: var(--paper);
  }

  .nav-toggle span[aria-hidden="true"],
  .nav-toggle span[aria-hidden="true"]::before,
  .nav-toggle span[aria-hidden="true"]::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .nav-toggle span[aria-hidden="true"]::before {
    transform: translateY(-7px);
  }

  .nav-toggle span[aria-hidden="true"]::after {
    transform: translateY(5px);
  }

  .site-nav {
    position: absolute;
    inset: 100% 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid rgba(237, 231, 216, 0.14);
    background: rgba(8, 8, 10, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding-inline: 0.75rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 8, 10, 0.98), rgba(8, 8, 10, 0.32) 54%, rgba(8, 8, 10, 0.72)),
      linear-gradient(90deg, rgba(8, 8, 10, 0.82), rgba(8, 8, 10, 0.28));
  }

  .signal-strip,
  .book-feature,
  .section-about,
  .newsletter,
  .section-contact {
    grid-template-columns: 1fr;
  }

  .book-title-panel,
  .author-portrait {
    min-height: 360px;
  }

  .site-footer,
  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 1rem;
  }

  .brand {
    max-width: 72vw;
  }

  .metadata-list div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .signal-strip p {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
