/* Kestrel Press — Publisher Website */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --bg: #f5f0e8;
  --bg-card: #ffffff;
  --bg-section: #ede8df;
  --text: #2c2c2c;
  --muted: #6b6560;
  --gold: #c9a866;
  --gold-light: #e5c98a;
  --border: #e0d8ce;
  --taylor: #7a1515;
  --devon: #1a4024;
  --victoria: #5a2040;
}

body { font-family: 'Lato', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* ── HEADER ── */
header { background: #080808; border-bottom: 1px solid var(--gold); padding: 0 2rem; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 0; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; letter-spacing: 0.2em; color: var(--gold); text-decoration: none; text-transform: uppercase; }
.logo span { display: block; font-size: 0.55rem; letter-spacing: 0.45em; color: #7a7068; font-family: 'Lato', sans-serif; font-weight: 300; margin-top: 3px; }
nav a { color: #7a7068; text-decoration: none; margin-left: 1.8rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--gold); }

/* ── HERO ── */
.hero { padding: 6rem 2rem 4rem; text-align: center; background: #080808; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--gold); letter-spacing: 0.12em; margin-bottom: 1rem; }
.hero p { color: #7a7068; font-size: 1.05rem; max-width: 560px; margin: 0 auto 2.5rem; font-weight: 300; }

/* ── PEN NAME CARDS ── */
.pen-names { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; }
.pen-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px; padding: 2.5rem 2rem; text-align: center; text-decoration: none; transition: border-color 0.2s, transform 0.2s; display: block; }
.pen-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.pen-card.taylor { border-top: 3px solid var(--taylor); }
.pen-card.devon { border-top: 3px solid var(--devon); }
.pen-card.victoria { border-top: 3px solid var(--victoria); }
.pen-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; display: block; border: 2px solid var(--border); }
.pen-card h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text); margin-bottom: 0.4rem; }
.pen-card .genre { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.pen-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.5rem; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 0.6rem 1.5rem; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; border-radius: 2px; font-weight: 700; transition: all 0.2s; cursor: pointer; border: none; font-family: 'Lato', sans-serif; }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.7rem; display: block; width: 100%; text-align: center; margin-top: 0.5rem; }

/* ── AUTHOR HERO ── */
.author-hero { padding: 4rem 2rem 3rem; background: #080808; border-bottom: 1px solid var(--gold); }
.author-hero-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 3rem; }
.author-hero img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.author-hero-text h1 { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--gold); margin-bottom: 0.4rem; }
.author-hero-text .genre { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.author-hero-text p { color: var(--muted); font-size: 0.92rem; line-height: 1.75; }

/* ── SERIES SECTIONS ── */
.series-section { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem; border-bottom: 1px solid var(--border); }
.series-section:last-of-type { border-bottom: none; }
.series-label { font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.series-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text); margin-bottom: 2rem; }

/* ── BOOK GRID ── */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1.8rem; }
.book-card { text-align: center; }
.book-cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; display: block; margin-bottom: 0.8rem; border: 1px solid var(--border); }
.cover-placeholder { width: 100%; aspect-ratio: 2/3; background: #ede8df; border: 1px dashed var(--border); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.75rem; padding: 1rem; margin-bottom: 0.8rem; }
.book-num { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem; }
.book-title { font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--text); margin-bottom: 0.6rem; }
.badge { display: inline-block; font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.18rem 0.5rem; border-radius: 2px; font-weight: 700; margin-bottom: 0.6rem; }
.badge-ku { background: #f90; color: #000; }
.badge-preorder { background: var(--gold); color: #000; }
.badge-soon { background: var(--border); color: var(--muted); }

/* ── OPT-IN ── */
.optin { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3.5rem 2rem; text-align: center; }
.optin h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--gold); margin-bottom: 0.5rem; }
.optin p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.optin-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; }
.optin-form input { flex: 1; padding: 0.7rem 1rem; background: #ffffff; border: 1px solid var(--border); color: var(--text); font-family: 'Lato', sans-serif; font-size: 0.88rem; border-radius: 2px; outline: none; }
.optin-form input:focus { border-color: var(--gold); }
.optin-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.8rem; }

/* ── FOOTER ── */
footer { background: #080808; border-top: 1px solid #1a1a1a; padding: 2rem; text-align: center; }
footer p { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.05em; }
footer a { color: var(--gold); text-decoration: none; }
.footer-nav { margin-bottom: 1rem; }
.footer-nav a { margin: 0 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .author-hero-inner { flex-direction: column; text-align: center; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  nav { display: none; }
  .optin-form { flex-direction: column; }
  .header-inner { justify-content: center; }
}
