/* H.R. Boyd — site styles. You rarely need to edit this file;
   change words in content.js instead. */

:root {
  --brand: #E65325;
  --brand-dark: #C2431A;
  --brand-soft: #FBE9DE;
  --cream: #FDF8F1;
  --paper: #FFFFFF;
  --ink: #3B2E26;
  --muted: #8B7B6E;
  --line: #EBDDD0;
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Quicksand', 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(59, 46, 38, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
/* Thicken Bodoni Moda hairlines site-wide for readability (the "Contact Me" header font) */
h1, h2, h3,
.slide blockquote,
.quote-band blockquote,
.cover-soon .big,
.hero .genre {
  -webkit-text-stroke: 0.03em currentColor;
  paint-order: stroke fill;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section.block { padding: 72px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.8rem; font-weight: 600; color: var(--brand);
  margin-bottom: 12px;
}
.center { text-align: center; }
.lede { font-size: 1.12rem; color: #463a30; max-width: 720px; }
.lede.single-line { white-space: nowrap; }
@media (max-width: 900px) { .lede.single-line { white-space: normal; } }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  padding: 14px 34px; border-radius: 999px; font-size: 1rem;
  font-family: var(--sans); transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 241, 0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 44px; width: auto; }
nav.links { display: flex; gap: 28px; }
nav.links a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 1.02rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
nav.links a:hover, nav.links a.active { color: var(--brand); border-bottom-color: var(--brand); }
.burger { display: none; background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  nav.links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line); gap: 6px;
  }
  nav.links.open { display: flex; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
/* Banner : Heidi's photo, top of home page — full-bleed, hands and face kept in frame */
.banner { line-height: 0; }
.banner img {
  display: block;
  width: 100%;
  height: clamp(240px, 36vw, 500px);
  object-fit: cover;
  object-position: center 13%;
}

.hero { padding: 64px 0 80px; overflow: hidden; }.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 6px 0 4px; }
.hero .genre { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); margin-bottom: 18px; }
.hero p.blurb { font-size: 1.1rem; color: #5b4c42; margin-bottom: 28px; }
.hero .bookshot img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .bookshot { max-width: 420px; } }

/* ---------- Reviews carousel ---------- */
.reviews-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.carousel { display: grid; position: relative; max-width: 760px; margin: 28px auto 0; min-height: 150px; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; text-align: center; padding: 0 48px; pointer-events: none; }
.slide.on { opacity: 1; visibility: visible; transition: opacity 0.6s ease; pointer-events: auto; }
.slide blockquote { font-family: var(--serif); font-size: 1.5rem; font-style: italic; font-weight: 700; margin: 0 0 10px; }
.slide cite { font-style: normal; font-weight: 600; color: var(--muted); }
.car-btn {
  position: absolute; top: 30%; background: var(--brand-soft); border: none; color: var(--brand-dark);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.car-btn:hover { background: var(--brand); color: #fff; }
.car-btn.prev { left: 0; } .car-btn.next { right: 0; }
.car-dots { text-align: center; margin-top: 18px; }
.car-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--line); margin: 0 5px; cursor: pointer; padding: 0; }
.car-dots button.on { background: var(--brand); }

/* ---------- Quote band ---------- */
.quote-band {
  position: relative; color: #fff; text-align: center; padding: 96px 24px;
  background-size: cover; background-position: center;
}
.quote-band::before { content: ""; position: absolute; inset: 0; background: rgba(43, 30, 22, 0.62); }
.quote-band .inner { position: relative; max-width: 820px; margin: 0 auto; }
.quote-band blockquote { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin: 0 0 14px; }
.quote-band cite { font-style: normal; font-weight: 600; letter-spacing: 0.08em; }

/* ---------- About ---------- */
.about img.portrait { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .about img.portrait { max-width: 380px; } }

/* ---------- Favorites ---------- */
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.fav-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.fav-card h3 { color: var(--brand-dark); font-size: 1.15rem; }
.fav-card p { margin: 0; color: #5b4c42; font-size: 0.98rem; }
@media (max-width: 900px) { .fav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fav-grid { grid-template-columns: 1fr; } }

/* ---------- Books ---------- */
.series { margin-bottom: 64px; }
.series:last-child { margin-bottom: 0; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.book-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.book-card .cover { aspect-ratio: 2/3; overflow: hidden; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.book-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.book-card .body h3 { margin-bottom: 2px; }
.book-card .bookno { color: #6b5d4f; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.book-card .body .btn { margin-top: auto; align-self: flex-start; }
.cover-soon { text-align: center; padding: 40px 20px; color: var(--brand-dark); }
.cover-soon .big { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; display: block; margin-bottom: 6px; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand); color: #fff; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #ffe9dc; }
.news-form { display: flex; gap: 12px; max-width: 520px; margin: 26px auto 0; }
.news-form input {
  flex: 1; padding: 14px 20px; border-radius: 999px; border: none; font-size: 1rem; font-family: var(--sans);
}
.news-form .btn { background: #fff; color: var(--brand-dark); }
.news-form .btn:hover { background: var(--brand-soft); }
.news-yes { font-family: var(--serif); font-size: 2rem; font-weight: 700; margin: 22px 0 4px; }
@media (max-width: 560px) { .news-form { flex-direction: column; } }

/* ---------- Book detail ---------- */
.crumb { font-size: 0.92rem; color: var(--muted); margin: 28px 0 8px; }
.crumb a { color: var(--muted); text-decoration: none; } .crumb a:hover { color: var(--brand); }
.book-detail .wrap { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; padding-bottom: 72px; }
.book-detail .cover img { border-radius: var(--radius); box-shadow: var(--shadow); }
.book-detail .tagline { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.25rem; color: var(--brand-dark); }
.bookclub { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; font-size: 0.98rem; }
.buyrow { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 28px; }
.nextbook { border-top: 1px solid var(--line); padding-top: 20px; color: #5b4c42; }
@media (max-width: 860px) { .book-detail .wrap { grid-template-columns: 1fr; } .book-detail .cover { max-width: 360px; } }

/* ---------- Reviews list ---------- */
.rev-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.rev { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.rev p { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.08rem; margin: 0 0 6px; }
.rev span { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.rev.featured { border-color: var(--brand); background: var(--brand-soft); }
.rev.hidden { display: none; }
.rev-toggle { margin-top: 24px; }
.no-reviews { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px; text-align: center; color: var(--muted); margin-top: 28px; }
@media (max-width: 700px) { .rev-list { grid-template-columns: 1fr; } }

/* ---------- Media kit ---------- */
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.photo-grid a { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 0.3s; }
.photo-grid a:hover img { transform: scale(1.04); }
.awards { list-style: none; padding: 0; margin: 20px 0 0; }
.awards li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; }
.awards li::before { content: "★"; color: var(--brand); position: absolute; left: 4px; }
.press-list { margin: 20px 0 0; padding: 0; list-style: none; }
.press-list li { margin-bottom: 12px; }
.press-list a { font-weight: 600; }
@media (max-width: 860px) { .mk-grid { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.event-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 24px; box-shadow: var(--shadow);
}
.event-date {
  background: var(--brand); color: #fff; border-radius: var(--radius); text-align: center;
  padding: 18px 8px; font-weight: 700; font-size: 1.25rem; align-self: start; line-height: 1.3;
}
.event-card h3 { margin-bottom: 2px; }
.event-meta { color: var(--muted); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
@media (max-width: 600px) { .event-card { grid-template-columns: 1fr; } .event-date { max-width: 140px; } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.gallery a { border-radius: 10px; overflow: hidden; display: block; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(30, 20, 14, 0.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox .close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2.2rem; cursor: pointer; background: none; border: none; }

/* ---------- Contact ---------- */
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; max-width: 720px; margin: 36px auto 0; }
.contact-card label { display: block; font-weight: 600; margin: 18px 0 6px; }
.contact-card input, .contact-card textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; background: var(--cream);
}
.contact-card textarea { min-height: 150px; resize: vertical; }
.form-note { text-align: center; color: #6b5d4f; margin-top: 22px; font-weight: 500; }

/* ---------- Footer ---------- */
footer.site { background: #2E211A; color: #E8D9CB; margin-top: 0; }
footer.site .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.foot-grid.foot-2col { grid-template-columns: 1fr 2fr; align-items: center; }
.foot-social { text-align: center; }
.foot-grid h4 { color: #fff; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; margin: 0 0 14px; }
.foot-grid .foot-social h4 { color: #E45225; font-size: 1.05rem; }
.foot-grid a { color: #E8D9CB; text-decoration: none; display: block; margin-bottom: 8px; font-weight: 500; }
.foot-grid a:hover { color: var(--brand); }
.social-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.social-row a {
  border: 1px solid #5a463a; border-radius: 999px; padding: 8px 18px; font-size: 0.92rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0;
}
.social-row a svg { width: 18px; height: 18px; flex: none; }
.foot-bottom { border-top: 1px solid #4a382c; margin-top: 40px; padding-top: 22px; font-size: 0.9rem; color: #d3bda6; text-align: center; font-weight: 500; }
.foot-bottom p { margin: 6px 0; }
.foot-logo { max-width: 150px; margin-bottom: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
#toTop {
  position: fixed; bottom: 26px; right: 26px; z-index: 60; display: none;
  background: var(--brand); color: #fff; border: none; border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow);
}
#toTop.show { display: block; }
#toTop:hover { background: var(--brand-dark); }

/* ---------- Header brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { height: 44px; width: 44px; border-radius: 50%; }

/* ---------- Homepage book color blocks ---------- */
.book-block { padding: 84px 0; }
.bb-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; }
.bb-cover { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.28); transition: transform .25s; }
.bb-cover:hover { transform: translateY(-4px); }
.bb-cover img { width: 100%; }
.bb-text h2 { margin-bottom: 14px; }
.bb-blurb { font-size: 1.12rem; line-height: 1.7; max-width: 640px; margin: 0; }

/* Paint the Town — night-sky teal (continues the home-top gradient seamlessly) */
.bb-town { background: linear-gradient(to bottom, #155049 0%, #1a5a52 100%); color: #f8f1e2; }
.bb-town .eyebrow { color: #eec25e; }
.bb-town .bb-blurb { color: #efe6d2; }

/* Paint the Grass — bright sunset gold sampled from the cover */
.bb-grass { background: linear-gradient(140deg, #f8d06e 0%, #f0b94f 60%, #e3a437 100%); color: #3a2a17; }
.bb-grass .eyebrow { color: #7a4a12; }
.bb-grass .bb-blurb { color: #4a351d; }

/* If True Love Wasn't Fiction — coral orange sampled from the woman's dress on the cover */
.bb-love { background: linear-gradient(140deg, #f2734f 0%, #ec6639 60%, #e05a30 100%); color: #3d2113; }
.bb-love .bb-blurb { color: #59371f; }

.news-inner { max-width: 660px; margin: 0 auto; }

@media (max-width: 860px) {
  .bb-grid { grid-template-columns: 1fr; gap: 36px; }
  .bb-cover { max-width: 260px; }
  .book-block { padding: 60px 0; }
}

/* ---------- Announcement bar ---------- */
.announce { background: var(--brand); color: #fff; position: relative; }
.announce p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 52px 10px 16px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.announce .pill { background: #fff; color: var(--brand-dark); border-radius: 999px; padding: 7px 22px; text-decoration: none; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.announce .pill:hover { background: var(--brand-soft); color: var(--brand-dark); }
.announce-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0.85; padding: 4px 8px; }
.announce-close:hover { opacity: 1; }

/* ---------- Homepage giant name ---------- */
.home-top { text-align: center; padding: 56px 24px 48px; background: linear-gradient(to bottom, #0c332f 0%, #155049 100%); }
.giant-name { font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: 1.05; margin: 0; color: #eec25e; -webkit-text-stroke: 0.02em #eec25e; }
