:root {
  --charcoal: #101113;
  --charcoal-soft: #18191c;
  --navy: #111827;
  --navy-ink: #182033;
  --ivory: #f5efe2;
  --ivory-muted: #d9cfbd;
  --gold: #c4a15a;
  --gold-soft: #ecd8a6;
  --burgundy: #6d1f2a;
  --line: rgba(236, 216, 166, 0.22);
  --shadow: 0 20px 58px rgba(0, 0, 0, 0.34);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 18% 6%, rgba(196, 161, 90, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 18%, rgba(109, 31, 42, 0.2), transparent 32rem),
    linear-gradient(135deg, var(--charcoal) 0%, var(--navy) 52%, #0b0d10 100%);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 0.8rem 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.brand small {
  color: var(--ivory-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--ivory-muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

main {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.section-panel {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(16, 17, 19, 0.62);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(1.75rem, 4vw, 3.75rem);
  align-items: center;
  min-height: min(720px, calc(100vh - 74px));
  margin-top: 0.25rem;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::before,
.cta-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(109, 31, 42, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(196, 161, 90, 0.12), transparent 28%);
  content: "";
}

.hero-copy,
.hero-visual,
.cta-section > *,
.section-heading,
.book-grid,
.author-section > *,
.themes-section > *,
.contact-section > * {
  position: relative;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #fff7e8;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5.8vw, 5.1rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.35rem);
}

p {
  color: var(--ivory-muted);
  font-size: 1rem;
}

.hero-lede {
  max-width: 38rem;
  margin: 1.15rem 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #121214;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.button-secondary {
  color: var(--ivory);
  border-color: rgba(236, 216, 166, 0.45);
  background: rgba(245, 239, 226, 0.06);
}

.hero-visual {
  margin: 0;
  align-self: center;
  justify-self: end;
  width: min(100%, 480px);
  padding: clamp(0.55rem, 1.4vw, 0.9rem);
  border: 1px solid rgba(236, 216, 166, 0.26);
  background:
    linear-gradient(145deg, rgba(236, 216, 166, 0.12), rgba(245, 239, 226, 0.03)),
    rgba(10, 12, 15, 0.42);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.42);
}

.hero-visual img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 600px);
  object-fit: contain;
  border: 1px solid rgba(236, 216, 166, 0.26);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.book-section,
.display-section,
.themes-section,
.cta-section,
.contact-section,
.author-section {
  margin-top: 1rem;
  padding: clamp(1.7rem, 4vw, 3.5rem);
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: clamp(1.6rem, 4vw, 3.25rem);
  align-items: start;
}

.book-copy p {
  max-width: 68ch;
}

.details-card {
  padding: 1.35rem;
  border: 1px solid rgba(236, 216, 166, 0.3);
  background:
    linear-gradient(180deg, rgba(236, 216, 166, 0.08), transparent),
    rgba(24, 25, 28, 0.78);
}

.details-card dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.details-card div {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(236, 216, 166, 0.16);
}

.details-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

dd {
  margin: 0.2rem 0 0;
  color: var(--ivory);
}

.author-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.25rem);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(16, 17, 19, 0.74)),
    rgba(16, 17, 19, 0.62);
}

.author-photo {
  margin: 0;
}

.author-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(236, 216, 166, 0.28);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(240px, 0.36fr);
  gap: 1.6rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-heading p {
  margin: 0;
}

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

.display-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 216, 166, 0.2);
  background: rgba(245, 239, 226, 0.04);
}

.display-feature {
  grid-column: span 3;
  grid-row: span 2;
}

.display-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.display-grid figure:not(.display-feature) {
  grid-column: span 3;
}

.display-grid figcaption {
  padding: 0.75rem 0.85rem;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.theme-list li {
  min-height: 5.25rem;
  padding: 1rem;
  border: 1px solid rgba(236, 216, 166, 0.2);
  color: var(--ivory);
  background: linear-gradient(135deg, rgba(109, 31, 42, 0.22), rgba(245, 239, 226, 0.05));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(109, 31, 42, 0.42), rgba(17, 24, 39, 0.84)),
    rgba(16, 17, 19, 0.72);
}

.contact-section p {
  max-width: 58ch;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  width: min(100% - 32px, var(--max-width));
  margin: 1.5rem auto 0;
  padding: 2rem 0 2.25rem;
  color: var(--ivory-muted);
  font-size: 0.9rem;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 30;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(236, 216, 166, 0.34);
    border-radius: 4px;
    color: var(--ivory);
    background: rgba(16, 17, 19, 0.72);
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: grid;
    place-content: center;
    gap: 1.4rem;
    background: rgba(10, 12, 15, 0.96);
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero,
  .book-grid,
  .author-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  h1 {
    max-width: 13ch;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 420px);
  }

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

  .display-feature,
  .display-grid figure:not(.display-feature) {
    grid-column: auto;
    grid-row: auto;
  }

  .theme-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-section,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-footer p {
    text-align: left;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .brand small {
    display: none;
  }

  .hero,
  .book-section,
  .display-section,
  .themes-section,
  .cta-section,
  .contact-section,
  .author-section {
    padding: 1.25rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .display-grid,
  .theme-list {
    grid-template-columns: 1fr;
  }

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

  .theme-list li {
    min-height: 0;
  }
}
