:root {
  --ember: #160a08;
  --ember-light: #2a1410;
  --paper: #f6e9d2;
  --paper-dim: rgba(246, 233, 210, 0.78);
  --gold: #e8b04b;
  --gold-bright: #f7cf73;
  --crimson: #c0392b;
  --crimson-deep: #8a1f17;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--ember);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(232, 110, 40, 0.30), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(192, 57, 43, 0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(232, 176, 75, 0.12), transparent 45%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  line-height: 1.65;
  min-height: 100vh;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero__cover {
  display: block;
  max-width: 340px;
  width: 82%;
  height: auto;
  margin: 0 auto 24px;
  border-radius: 6px;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 28px rgba(232, 140, 50, 0.28));
}

.hero__title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(1.9rem, 8vw, 4rem);
  color: var(--gold-bright);
  text-shadow: 0 2px 14px rgba(232, 140, 50, 0.45);
  margin: 8px 0 0;
  line-height: 1.05;
  white-space: normal;
  overflow-wrap: break-word;
}

.hero__byline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 14px 0 0;
}

.hero__byline em {
  font-style: normal;
  display: block;
  color: var(--gold);
  margin-top: 4px;
}

.hero__series {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--crimson);
  margin: 10px 0 0;
}

/* CTA */
.cta-wrap {
  text-align: center;
  margin: 32px 0 48px;
}

.cta {
  display: inline-block;
  padding: 18px 52px;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2a1404;
  text-decoration: none;
  background: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 45%, var(--crimson) 100%);
  border-radius: 999px;
  border: 2px solid rgba(247, 207, 115, 0.7);
  box-shadow: var(--shadow), 0 0 24px rgba(232, 140, 50, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover,
.cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 34px rgba(247, 207, 115, 0.55);
}

.cta:active {
  transform: translateY(0);
}

/* Sections */
.section {
  margin: 56px 0;
}

.section__title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  color: var(--gold-bright);
  margin: 0 0 20px;
  text-align: center;
}

.section__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section__body {
  font-size: 1.18rem;
  margin: 0;
}

/* Book section with mockup accent */
.about-book {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.about-book__mockup {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
}

/* Author section */
.about-author {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
}

.about-author__photo {
  width: 240px;
  aspect-ratio: 3072 / 4080;
  background-image: url('../img/author-leonidas.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border-radius: 22px;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow), 0 0 20px rgba(232, 140, 50, 0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 36px 16px;
  font-size: 0.95rem;
  color: rgba(246, 233, 210, 0.55);
  border-top: 1px solid rgba(232, 176, 75, 0.2);
  margin-top: 48px;
}

footer a {
  color: var(--gold);
}

/* Desktop tweaks */
@media (min-width: 720px) {
  .about-author {
    grid-template-columns: 240px 1fr;
    text-align: left;
    align-items: center;
  }

  .about-author .section__title {
    grid-column: 1 / -1;
    text-align: center;
  }
}
