/* Once Upon A Crime — Variation 1: "Storybook, polished"
   Keeps the warm parchment + whimsical fairy-tale feel, with the
   refined template's polish: glow, dividers, spacing, tagline. */
:root {
  --parchment: #c39c5f;       /* aged map-paper tone */
  --parchment-deep: #b88f52;
  --ink: #3a2a1e;
  --ink-dim: rgba(58, 42, 30, 0.72);
  --rose: #8e1d2d;
  --rose-bright: #b8324a;
  --gold: #c79a3b;
  --gold-bright: #e4bd5e;
  --shadow: 0 12px 30px rgba(80, 50, 25, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--parchment);
  /* Treasure map blended in as a faint, lightened watermark.
     The radial veil sits ON TOP of the map: lighter in the center
     for text legibility, paper-toned toward the edges so the whole
     page reads as the map's aged paper. */
  background-image:
    radial-gradient(circle at 50% 35%, rgba(224, 198, 146, 0.66), rgba(200, 166, 108, 0.82)),
    url('../img/treasure-map.png');
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  /* veil fills the viewport; the map is a centered band with side
     gutters of bare parchment on wider screens, full-width on phones */
  background-size: cover, min(760px, 100%) auto;
  background-attachment: fixed, fixed;
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  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 32px rgba(80, 45, 20, 0.45))
          drop-shadow(0 0 26px rgba(228, 189, 94, 0.40));
}

.hero__title {
  font-family: 'Sacramento', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 5.5rem);
  color: var(--rose);
  text-shadow: 0 3px 14px rgba(142, 29, 45, 0.25);
  margin: 8px 0 0;
  line-height: 1;
}

.hero__byline {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  margin: 12px 0 0;
}

.hero__byline em {
  font-style: normal;
  display: block;
  color: var(--rose-bright);
  font-size: 1.15em;
  margin-top: 2px;
}

.hero__series {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--rose);
  /* light outline so the tag pops off the busy map watermark */
  text-shadow:
     1px 1px 0 rgba(248, 240, 222, 0.9),
    -1px 1px 0 rgba(248, 240, 222, 0.9),
     1px -1px 0 rgba(248, 240, 222, 0.9),
    -1px -1px 0 rgba(248, 240, 222, 0.9),
     0 2px 4px rgba(248, 240, 222, 0.7);
  margin: 12px 0 0;
}

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

.cta {
  display: inline-block;
  padding: 16px 50px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, var(--gold-bright) 0%, var(--rose-bright) 55%, var(--rose) 100%);
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: var(--shadow), 0 0 22px rgba(228, 189, 94, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover, .cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(80, 50, 25, 0.3), 0 0 30px rgba(228, 189, 94, 0.5);
}
.cta:active { transform: translateY(0); }

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

.section__title {
  font-family: 'Sacramento', cursive;
  font-size: clamp(2.4rem, 7vw, 3.25rem);
  color: var(--rose);
  margin: 0 0 18px;
  text-align: center;
  line-height: 1;
}

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

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

/* Book section (treasure map now lives in the page background) */
.about-book { margin: 56px 0; }

/* Parchment text panel so the blurb reads clearly over the map */
.about-book .section__body {
  background: rgba(249, 242, 225, 0.88);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 22px 28px;
  box-shadow: var(--shadow);
}

/* WANTED poster accent */
.scene { text-align: center; margin: 48px 0; }

.scene__img {
  display: inline-block;
  max-width: 320px;
  width: 78%;
  height: auto;
  transform: rotate(2deg);
  filter: drop-shadow(0 10px 22px rgba(80, 50, 25, 0.35));
}

/* Author section — same parchment panel as the book blurb, photo inside */
.about-author { margin: 56px 0; }

.author-panel {
  background: rgba(249, 242, 225, 0.88);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.author-panel .section__body { margin: 0; }

.about-author__photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: var(--shadow), 0 0 18px rgba(228, 189, 94, 0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 36px 16px;
  font-size: 0.95rem;
  color: var(--ink-dim);
  border-top: 1px dashed rgba(142, 29, 45, 0.3);
  margin-top: 48px;
}
footer a { color: var(--rose); }

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