:root {
  --background: #0e0a07;
  --background-soft: #18110c;
  --panel: #21170f;
  --text: #f1e6d6;
  --text-soft: #cbbba8;
  --accent: #c78a4a;
  --accent-light: #e0b47c;
  --border: #4c3422;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(199, 138, 74, 0.25);
  background: rgba(14, 10, 7, 0.95);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-name {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent-light);
}

.nav-coming-soon {
  color: var(--text-soft);
  cursor: default;
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 90px 0;
  background:
    radial-gradient(
      circle at 75% 35%,
      rgba(199, 138, 74, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, #120d09, #080604);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.1;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-intro {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-weight: 650;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #160d06;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-light);
}

.button-secondary {
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(199, 138, 74, 0.12);
}

.button-disabled {
  opacity: 0.75;
  cursor: default;
  user-select: none;
}

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

.hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(199, 138, 74, 0.08);
}

.book-section,
.about-section,
.newsletter-section {
  padding: 100px 0;
}

.book-section {
  background: var(--background-soft);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 80px;
}

.tagline {
  color: var(--accent-light);
  font-size: 1.25rem;
  font-weight: 650;
}

.book-section p,
.about-section p,
.newsletter-section p {
  color: var(--text-soft);
  font-size: 1.08rem;
}

.book-copy {
  max-width: 760px;
}

.home-feature {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.book-button {
  margin-top: 18px;
}

.series-title {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* About page — Larry / Index inspiration */
.about-cat-block {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin: 40px 0;
}

.about-cat-photo {
  width: min(100%, 280px);
  margin: 0;
}

.about-cat-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.about-cat-photo figcaption {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.about-cat-copy p {
  margin-top: 0;
}

@media (min-width: 900px) {
  .series-title {
    white-space: nowrap;
  }
}

.story-card {
  align-self: start;
  padding: 32px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(199, 138, 74, 0.08), rgba(199, 138, 74, 0.02)),
    var(--panel);
}

.story-card-heading {
  margin: 0 0 18px;
  color: var(--accent-light) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-card li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.story-card li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "◆";
  font-size: 0.55rem;
  top: 18px;
}

.story-card li:last-child {
  border-bottom: 0;
}

.text-link {
  color: var(--accent-light);
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.about-section {
  background: var(--background);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 80px;
}

.about-copy {
  max-width: 720px;
}

.about-lead {
  margin-bottom: 24px;
  color: var(--accent-light) !important;
  font-size: 1.3rem !important;
  font-weight: 650;
}

.about-card {
  padding: 38px 34px;
  border-left: 2px solid var(--accent);
  background: rgba(199, 138, 74, 0.05);
}

.about-card-heading {
  margin: 0 0 20px;
  color: var(--accent-light) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.about-card p {
  margin-top: 0;
}

.about-card-accent {
  margin-bottom: 0;
  color: var(--text) !important;
  font-weight: 650;
}

.newsletter-section {
  background: var(--background-soft);
}

.newsletter-box {
  padding: 50px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-align: center;
}

.newsletter-box .sender-form-field {
  display: flex;
  justify-content: center;
  width: 100%;
}

.newsletter-note {
  color: var(--accent-light) !important;
  font-style: italic;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #080604;
}

.footer-inner {
  display: flex;
  min-height: auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 16px 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-meta p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-nav {
  display: flex;
  align-items: center;
}

.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent-light);
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.social-nav a:hover,
.social-nav a:focus-visible {
  background: rgba(199, 138, 74, 0.14);
  outline: none;
}

.social-nav img {
  display: block;
  width: 22px;
  height: 22px;
}

.placeholder-page {
  min-height: calc(100vh - 172px);
  display: flex;
  align-items: center;
  padding: 100px 0;
  background:
    radial-gradient(
      circle at 75% 35%,
      rgba(199, 138, 74, 0.1),
      transparent 30%
    ),
    var(--background);
}

.placeholder-page h1 {
  margin-bottom: 24px;
}

.placeholder-lead {
  margin-bottom: 28px;
  color: var(--accent-light);
  font-size: 1.3rem;
  font-weight: 650;
}

.placeholder-page .button {
  margin-top: 20px;
}

.placeholder-book-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 80px;
}

.placeholder-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.placeholder-book-copy {
  max-width: 680px;
}

.series-page-copy {
  max-width: 900px;
}

.series-page-title {
  max-width: 900px;
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1.05;
}

.series-page-copy > p,
.series-page-copy .series-order {
  max-width: 720px;
}

@media (max-width: 800px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
  }

  .main-nav {
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0;
  }

  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-intro {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-cover {
    width: min(80%, 340px);
  }

  .book-section,
  .about-section,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-card {
    max-width: 600px;
  }

  .newsletter-section {
    padding: 70px 0;
  }

  .newsletter-box {
    padding: 35px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 25px 0;
    text-align: center;
  }

  .placeholder-page {
    min-height: auto;
    padding: 70px 0;
  }

  .placeholder-book-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .placeholder-book-cover {
    width: min(80%, 340px);
    justify-self: center;
  }

  .placeholder-book-copy {
    text-align: center;
  }

  .about-cat-block {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-cat-photo {
    width: min(100%, 280px);
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 55px 0 65px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.11em;
  }

  h1 {
    font-size: clamp(2.65rem, 11.5vw, 3.15rem);
  }

  .hero-intro {
    font-size: 1.1rem;
  }

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

  .button {
    width: min(100%, 290px);
    text-align: center;
  }

  .series-page-title {
    font-size: clamp(2.75rem, 11vw, 3.1rem);
    line-height: 1.05;
  }
}

/* Release dates on book detail pages. */
.release-note {
  color: var(--text-soft);
  font-weight: 650;
}
