/* ============================================================================
   M. Eigh — Free Book Giveaway
   Theme: warm rancher ink + cream paper, with per-book accent
   ============================================================================ */

:root {
  --ink: #1a1410;
  --ink-soft: #3d2f24;
  --paper: #f5ecd9;
  --paper-soft: #ece1c8;
  --rule: #2c2018;
  --rust: #8b3a1f;
  --gold: #c89a52;
  --teal: #06b8b1;
  --shadow: 0 6px 24px rgba(15, 12, 8, 0.18);
  --shadow-lg: 0 14px 40px rgba(15, 12, 8, 0.28);
  --accent: var(--gold);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Hero ===== */

.site-header {
  background:
    radial-gradient(ellipse at top, rgba(200,154,82,0.20), transparent 60%),
    linear-gradient(180deg, #1a1410 0%, #221912 100%);
  color: var(--paper);
  padding: 3.5rem 1.5rem 4.5rem;
  border-bottom: 4px double var(--gold);
  position: relative;
}

.site-header::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}

.brand {
  display: inline-block;
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200,154,82,0.4);
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0 0 0.5rem;
  line-height: 1.05;
  color: var(--paper);
  font-weight: 700;
}

.hero-headline em {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(245, 236, 217, 0.85);
  margin: 0.5rem 0 2rem;
  max-width: 620px;
}

.hero-flex {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: center;
}

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

.hero-author img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.hero-author .name {
  margin-top: 0.85rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.hero-author .who {
  font-size: 0.85rem;
  color: rgba(245, 236, 217, 0.7);
  margin-top: 0.15rem;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-cta:hover {
  background: #d9a85a;
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-pill {
  display: inline-block;
  background: rgba(200, 154, 82, 0.18);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ===== Books grid ===== */

main {
  padding: 3rem 0 5rem;
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.section-tag {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

#books {
  display: grid;
  gap: 3rem;
}

.book-card {
  background: #fbf6e8;
  border: 1px solid rgba(28, 22, 18, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.book-card.is-free {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(200, 154, 82, 0.08);
}

.book-card-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2.25rem;
}

.ribbon {
  display: block;
  text-align: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.book-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.book-cover a:hover img {
  transform: translateY(-4px) scale(1.01);
}

.book-body {
  display: flex;
  flex-direction: column;
}

.series-tag {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.book-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.book-subtitle {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.tagline {
  font-size: 1.1rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  margin: 0.5rem 0 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.pitch {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}

.for-readers {
  margin: 1rem 0 1.4rem;
  padding: 0.7rem 1rem;
  background: rgba(28, 22, 18, 0.04);
  border-radius: 4px;
  font-size: 0.95rem;
}

.for-readers-label { color: var(--ink-soft); font-style: italic; }
.for-readers-list { font-weight: 600; color: var(--ink); }

/* Prices */

.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0.8rem 0 1.2rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(28, 22, 18, 0.18);
  border-radius: 4px;
}

.price-current {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.price-where {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.price-block.free {
  background: rgba(200, 154, 82, 0.10);
  border: 1px solid var(--accent);
}

.price-old {
  font-size: 1.25rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-new {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
}

.price-badge {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-left: auto;
}

/* CTA buttons */

.cta {
  display: inline-block;
  padding: 0.95rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  align-self: flex-start;
  box-shadow: var(--shadow);
}

.cta-amazon {
  background: var(--ink);
  color: var(--paper);
}
.cta-amazon:hover {
  background: var(--ink-soft);
  text-decoration: none;
  transform: translateY(-2px);
}

.cta-free {
  background: var(--accent);
  color: var(--ink);
  font-size: 1.05rem;
}
.cta-free:hover {
  filter: brightness(1.08);
  text-decoration: none;
  transform: translateY(-2px);
}

/* A+ collapsible */

.aplus-fold {
  margin: 1.4rem 0 1rem;
  border-top: 1px solid rgba(28, 22, 18, 0.12);
  padding-top: 1rem;
}

.aplus-fold summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
  list-style: none;
  padding: 0.25rem 0;
}

.aplus-fold summary::after {
  content: " ▾";
  font-size: 0.8rem;
}
.aplus-fold[open] summary::after { content: " ▴"; }

.aplus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.aplus-item h4 {
  margin: 0 0 0.3rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
}

.aplus-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Meta */

.book-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 1.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(28, 22, 18, 0.15);
  padding-top: 1rem;
}

.book-meta dt {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--rust);
}

.book-meta dd { margin: 0; }

/* ===== Footer ===== */

.site-footer {
  background: var(--ink);
  color: rgba(245, 236, 217, 0.75);
  padding: 3rem 1.5rem 2rem;
  border-top: 4px double var(--gold);
}

.site-footer h3 {
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
}

.site-footer p { margin: 0 0 0.8rem; }

.footer-rule {
  border: 0;
  border-top: 1px solid rgba(200, 154, 82, 0.25);
  margin: 2rem 0 1.5rem;
}

.footer-tiny {
  font-size: 0.8rem;
  color: rgba(245, 236, 217, 0.5);
  text-align: center;
}

/* ===== Responsive ===== */

@media (max-width: 760px) {
  .hero-flex {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-author { order: -1; }
  .hero-author img { width: 140px; height: 140px; }

  .book-card-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .book-cover {
    max-width: 260px;
    margin: 0 auto;
  }
  .aplus-grid { grid-template-columns: 1fr; }

  .price-block { padding: 0.7rem 0.85rem; }
  .price-badge { margin-left: 0; }
}
