/* Anthony Palmer Books - redesign */
:root {
  --paper: #faf7f1;
  --paper-deep: #f1ebe0;
  --ink: #211c16;
  --ink-soft: #4a4238;
  --muted: #6f665b;
  --gold: #b3813a;
  --gold-deep: #96682a;
  --clay: #a85438;
  --line: #e3dccd;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }

h1, h2, h3, .brand {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 1.45rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--gold); }
.site-nav a.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 4px;
  border-bottom: none;
}
.site-nav a.nav-cta:hover { background: var(--gold-deep); color: var(--white); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.hero h1 { font-size: 3.3rem; margin-bottom: 20px; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero-covers { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.hero-covers img {
  width: 46%;
  border-radius: 3px;
  box-shadow: 0 18px 40px rgba(33, 28, 22, 0.22);
}
.hero-covers img:nth-child(2) { transform: translateY(14px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold-deep); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: 2.3rem; margin-bottom: 12px; }
.section-head p { color: var(--muted); }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.book-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: start;
}
.book-card img {
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(33, 28, 22, 0.18);
}
.book-card h3 { font-size: 1.55rem; margin-bottom: 4px; }
.book-card .subtitle { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.05rem; margin-bottom: 12px; }
.book-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 16px; }
.book-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; letter-spacing: 0.02em; }
.book-card .btn { font-size: 0.88rem; padding: 11px 20px; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--clay);
  border-radius: 3px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.badge.gold { background: var(--gold); }

/* ---------- Third-book strip ---------- */
.strip-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 36px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
}
.strip-card img { border-radius: 3px; box-shadow: 0 10px 24px rgba(33, 28, 22, 0.18); }
.strip-card h3 { font-size: 1.7rem; margin-bottom: 4px; }
.strip-card .subtitle { font-family: var(--serif); font-style: italic; color: var(--gold-deep); margin-bottom: 10px; }
.strip-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 8px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--paper);
}
.newsletter .section-head h2 { color: var(--paper); }
.newsletter .section-head p { color: #c9c0b2; }
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.signup-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--sans);
  border: 1px solid #4a4238;
  border-radius: 4px;
  background: #2c261f;
  color: var(--paper);
}
.signup-form input[type="email"]::placeholder { color: #9a9081; }
.form-note { margin-top: 14px; font-size: 0.9rem; min-height: 1.4em; }
.form-note.success { color: #8fc98f; }
.form-note.error { color: #e08f7a; }
.form-note.demo { color: #cdb274; }
.newsletter .form-note { text-align: center; }

/* ---------- Author ---------- */
.author-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.author-photo {
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(33, 28, 22, 0.2);
}
.author-grid h2 { font-size: 2.2rem; margin-bottom: 16px; }
.author-grid p { color: var(--ink-soft); margin-bottom: 16px; }
.theme-list { list-style: none; margin: 22px 0 30px; }
.theme-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  position: relative;
}
.theme-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 64px 0 52px;
}
.page-hero h1 { font-size: 2.8rem; margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 40em; }

/* ---------- Books page ---------- */
.book-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.book-row:last-of-type { border-bottom: none; }
.book-row img { border-radius: 4px; box-shadow: 0 14px 32px rgba(33, 28, 22, 0.2); }
.book-row h2 { font-size: 2rem; margin-bottom: 4px; }
.book-row .subtitle { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.15rem; margin-bottom: 16px; }
.book-row p { color: var(--ink-soft); margin-bottom: 14px; }
.format-list { list-style: none; margin: 18px 0 22px; }
.format-list li {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.format-list li span:last-child { font-weight: 600; }
.coming-soon {
  background: var(--paper-deep);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.coming-soon h3 { font-size: 1.4rem; margin-bottom: 6px; }
.coming-soon p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-detail h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-detail p { color: var(--ink-soft); margin-bottom: 14px; }
.contact-detail .direct { font-size: 1.05rem; }
.support-box {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
}
.support-box h3 { font-size: 1.2rem; margin-bottom: 8px; }
.support-box p { font-size: 0.95rem; }
.support-box .cashtag { font-weight: 700; color: var(--gold-deep); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--sans);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 18px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9c0b2;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 40px;
}
.site-footer h3, .site-footer h4 { color: var(--paper); font-size: 1.3rem; margin-bottom: 12px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer p, .site-footer a { font-size: 0.92rem; color: #c9c0b2; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-signup input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  border: 1px solid #4a4238;
  border-radius: 4px;
  background: #2c261f;
  color: var(--paper);
  margin-bottom: 10px;
}
.footer-signup .btn { width: 100%; text-align: center; }
.footer-bottom {
  border-top: 1px solid #3a332a;
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px; gap: 40px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-covers { max-width: 420px; margin: 0 auto; }
  .book-grid { grid-template-columns: 1fr; }
  .strip-card { grid-template-columns: 130px 1fr; }
  .strip-card .btn-row { grid-column: 1 / -1; }
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 340px; }
  .book-row { grid-template-columns: 160px 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 20px;
    gap: 16px;
  }
  .site-nav.open { display: flex; }
  .book-card { grid-template-columns: 110px 1fr; padding: 24px; }
  .book-row { grid-template-columns: 1fr; }
  .book-row img { max-width: 220px; }
  .signup-form { flex-direction: column; }
  .hero h1 { font-size: 2.1rem; }
  .section { padding: 56px 0; }
}

/* ---------- New-release sticker (The Relationship Recession) ---------- */
.cover-wrap { position: relative; width: 100%; border-radius: 4px; overflow: hidden;
  box-shadow: 0 14px 32px rgba(33, 28, 22, 0.2); }
.strip-card .cover-wrap { box-shadow: 0 10px 24px rgba(33, 28, 22, 0.18); border-radius: 3px; }
.cover-wrap img { width: 100%; display: block; border-radius: 4px; box-shadow: none !important; }
.ribbon { position: absolute; top: 30px; left: -50px; transform: rotate(-45deg);
  background: var(--gold); color: var(--white); padding: 8px 56px;
  font: 700 0.8rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(33, 28, 22, 0.35); }
@media (max-width: 640px) { .book-row .cover-wrap { max-width: 220px; } }

.strip-card .ribbon { top: 22px; left: -48px; padding: 7px 50px; font-size: 0.7rem; }
@media (max-width: 640px) { .strip-card .ribbon { top: 14px; left: -40px; padding: 4px 42px; font-size: 0.58rem; letter-spacing: 0.12em; } }

/* Blog */
.article-hero { background: linear-gradient(135deg, #13243b 0%, #1d3555 100%); color: #fff; padding: 86px 24px 78px; text-align: center; }
.article-hero-inner { width: min(860px, 100%); margin: 0 auto; }
.article-hero .eyebrow { color: #d8ae69; }
.article-hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 5.7rem); line-height: .95; margin: 16px auto 22px; max-width: 800px; }
.article-byline { color: #d9e1ea; font-size: .88rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.article-wrap { width: min(730px, calc(100% - 40px)); margin: 0 auto; padding: 74px 0 84px; }
.article-wrap p { color: #27384e; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.26rem, 2.1vw, 1.48rem); line-height: 1.65; margin: 0 0 1.12em; }
.article-wrap p:first-child { font-size: 1.65rem; font-weight: 600; }
.article-wrap p:last-child { margin-top: 2.4rem; font-style: italic; }
.article-end { background: #f4f0e8; border-top: 1px solid #e3d9c8; padding: 72px 24px; }
.article-actions { justify-content: center; }
.blog-grid { max-width: 850px; }
.blog-card { background: #fff; border: 1px solid #e1d7c6; border-radius: 8px; box-shadow: 0 16px 40px rgba(21,37,57,.08); padding: clamp(30px, 6vw, 58px); }
.blog-card h2 { margin: 8px 0 14px; }
.blog-card h2 a { color: #152a45; text-decoration: none; }
.blog-card h2 a:hover { color: #a56d25; }
.blog-card > p:not(.eyebrow) { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; }
.blog-read { color: #8b5c20; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) {
  .article-hero { padding: 62px 20px 58px; }
  .article-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .article-wrap { width: min(100% - 34px, 730px); padding: 52px 0 62px; }
  .article-wrap p { font-size: 1.23rem; line-height: 1.6; }
}
.article-signature { display: inline-block; margin-top: .55rem; color: #152a45; font-style: normal; font-weight: 700; }

.article-author{margin-top:2.4rem!important;color:#152a45!important;font-style:normal!important;font-weight:700}.blog-grid{display:grid;gap:28px}
