* {
  box-sizing: border-box;
}

:root {
  --bg: #080908;
  --bg-soft: #11120f;
  --panel: #171711;
  --text: #f3ead2;
  --muted: #c7b994;
  --gold: #d6b56d;
  --gold-dark: #9b7533;
  --line: rgba(214, 181, 109, 0.28);
  --shadow: rgba(0, 0, 0, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold);
  color: #171007;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
audio:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

.cover-card img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.book-card .book-cover img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 9, 8, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 180ms ease;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 5px 10px;
  font-size: 1.3rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.menu-toggle:hover {
  color: var(--gold);
  border-color: rgba(214, 181, 109, 0.55);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,9,8,0.96) 0%, rgba(8,9,8,0.84) 48%, rgba(8,9,8,0.60) 100%),
    url('../img/forward-of-the-line-cover-social.jpg') center/cover no-repeat;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(214, 181, 109, 0.20), transparent 38%),
    linear-gradient(180deg, transparent, rgba(8,9,8,1));
}

.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 22px;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 800;
}

h1, h2, h3 {
  line-height: 1.05;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.55rem;
}

.tagline {
  color: var(--gold);
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.intro,
.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.18rem;
}

.lead {
  color: var(--text);
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--gold);
  color: #171007;
}

.btn.secondary {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.cover-card {
  max-width: 390px;
  justify-self: end;
  padding: 12px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px var(--shadow);
  transform: rotate(1deg);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 22px;
}

.breadcrumbs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs li + li::before {
  content: ">";
  margin-right: 10px;
  color: var(--gold);
}

.book-subtitle {
  margin-top: -4px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.status-pill {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.related-books {
  border-top: 1px solid var(--line);
}

.not-found-links {
  margin: 20px 0 0;
  padding-left: 20px;
}

.not-found-links li + li {
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 42px;
  align-items: start;
}

.feature-box {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px var(--shadow);
}

.feature-box ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.coming-section {
  max-width: none;
  background:
    radial-gradient(circle at 70% 40%, rgba(214, 181, 109, 0.13), transparent 36%),
    linear-gradient(135deg, #11120f, #070706);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.coming-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 54px;
  align-items: center;
}

.coming-cover {
  justify-self: start;
  max-width: 340px;
  transform: rotate(-1deg);
}

.future-release-section .coming-cover {
  transform: rotate(1deg);
}

.strong-line {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coming-audio-link {
  margin-top: 20px;
}

.btn-small {
  padding: 10px 16px;
  font-size: 0.74rem;
}

.dark {
  max-width: none;
  background:
    linear-gradient(rgba(8,9,8,0.92), rgba(8,9,8,0.92)),
    url('../img/forward-of-the-line-cover-web.jpg') center/cover fixed no-repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.narrow {
  max-width: 820px;
  margin: 0 auto;
}

blockquote {
  margin: 24px 0;
  padding: 28px;
  border-left: 5px solid var(--gold);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1.35rem;
  font-style: italic;
}

.buy-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.buy-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  align-items: center;
}

.mini-cover {
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  box-shadow: 0 20px 45px var(--shadow);
}

.contact {
  text-align: center;
}

.email-link {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
}

.footer {
  padding: 28px 22px;
  text-align: center;
  background: #050505;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 6px 0;
}

@keyframes mobileFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileGlowIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 45px var(--shadow);
  }
}

@media (max-width: 930px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(8, 9, 8, 0.96);
  }

  .js-enabled .nav-links {
    display: none;
  }

  .js-enabled .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 8px 4px;
    font-size: 1rem;
  }

  .hero-copy > * {
    animation: mobileFadeUp 520ms ease both;
  }

  .hero-copy > :nth-child(1) { animation-delay: 70ms; }
  .hero-copy > :nth-child(2) { animation-delay: 120ms; }
  .hero-copy > :nth-child(3) { animation-delay: 170ms; }
  .hero-copy > :nth-child(4) { animation-delay: 220ms; }
  .hero-copy > :nth-child(5) { animation-delay: 270ms; }

  .hero-content,
  .split,
  .buy-grid,
  .coming-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 44px;
    min-height: 0;
  }

  .hero {
    min-height: 0;
  }

  .cover-card,
  .coming-cover {
    justify-self: start;
    max-width: 310px;
    transform: none;
  }

  .section,
  .coming-section,
  .breadcrumbs {
    padding: 60px 20px;
  }

  .split > div > * + *,
  .coming-grid > div > * + *,
  .narrow > * + *,
  .buy-grid > div > * + * {
    margin-top: 14px;
  }

  .cover-card,
  .coming-cover,
  .feature-box,
  .mini-cover {
    animation: mobileGlowIn 460ms ease both;
  }

  .button-row {
    width: 100%;
    gap: 10px;
    margin-top: 20px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-small {
    width: auto;
  }

  .dark {
    background:
      linear-gradient(rgba(8,9,8,0.92), rgba(8,9,8,0.92)),
      url('../img/forward-of-the-line-cover-web.jpg') center/cover no-repeat;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
    letter-spacing: 0.03em;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .tagline {
    font-size: clamp(1.02rem, 5vw, 1.3rem);
    line-height: 1.32;
  }

  .intro,
  .lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .eyebrow {
    margin-bottom: 8px;
    letter-spacing: 0.18em;
  }

  .section,
  .coming-section,
  .breadcrumbs {
    padding: 48px 16px;
  }

  .section p {
    margin-top: 0;
    margin-bottom: 0.9rem;
  }

  .feature-box {
    padding: 20px;
  }

  blockquote {
    padding: 20px;
    font-size: 1.1rem;
  }

  .email-link {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }

  .hero-content {
    padding: 34px 16px;
    gap: 28px;
  }

  h1 {
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .cover-card,
  .coming-cover,
  .mini-cover {
    max-width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
