/* Mary Jones Books — site styles */
:root {
  --green: #26483A;
  --green-dark: #1D3A2E;
  --ivory: #F5F1E7;
  --sage-bg: #E5EBE2;
  --sage: #91A28B;
  --sage-text: #5E7058;
  --charcoal: #29322E;
  --brass: #B08A55;
  --brass-text: #85642F;
  --white: #FCFBF7;
  --line: rgba(176, 138, 85, 0.25);
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--green); color: var(--white); padding: 10px 16px; border-radius: 4px;
}
.skip-link:focus { left: 8px; }

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

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  min-height: 116px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; line-height: 0; }
.logo { height: 103px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent; opacity: 0.8;
}
.nav-links a:hover { opacity: 1; color: var(--green); }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--green); border-bottom-color: var(--brass); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 44px; height: 44px; cursor: pointer; color: var(--green);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ── Buttons & forms ── */
.btn, .cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px;
  background: var(--green); color: var(--white);
  border: 1px solid var(--green); border-radius: 5px;
  font: 500 14px/1 var(--sans); letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover, .cta-btn:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

.lead-form, .contact-form { display: flex; flex-direction: column; gap: 10px; }
.lead-form input[type="text"], .lead-form input[type="email"],
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid rgba(94, 112, 88, 0.55); border-radius: 5px;
  background: var(--white); color: var(--charcoal);
  font: 400 15px/1.4 var(--sans);
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.lead-form input::placeholder, .contact-form input::placeholder, .contact-form textarea::placeholder { color: #6F806A; }
.lead-form input:focus, .contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form-note { font-size: 12.5px; color: var(--sage-text); line-height: 1.5; }
.form-note a { color: inherit; }
.form-msg {
  font-size: 14px; padding: 10px 14px; border-radius: 5px;
  background: #F6E3DD; color: #7A2E1D; border: 1px solid #E3B7AA;
}
.form-msg[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Hero ── */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 72px 28px 64px;
  display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-book img { width: 100%; max-width: 320px; filter: drop-shadow(4px 12px 24px rgba(38, 72, 58, 0.20)); }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); font-weight: 600; margin-bottom: 14px; }
.hero-tagline {
  font-family: var(--serif); font-size: 36px; font-weight: 500; font-style: italic;
  color: var(--green); line-height: 1.2; margin-bottom: 14px;
}
.hero h1 { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.4; color: var(--charcoal); margin-bottom: 14px; }
.hero-sub { font-size: 15.5px; line-height: 1.75; color: var(--charcoal); opacity: .85; margin-bottom: 26px; max-width: 520px; }
.hero .lead-form { max-width: 440px; }

/* ── Sections ── */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--sage-bg); }
.section-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); font-weight: 600; margin-bottom: 30px; }
h2.section-title, .bio h2, .prose h2 { font-family: var(--serif); font-weight: 400; color: var(--green); font-size: 28px; line-height: 1.25; margin-bottom: 14px; }
.prose h2 { font-size: 24px; margin-top: 34px; }
.prose p, .prose ul { margin-bottom: 16px; max-width: 70ch; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
}
.stars { color: var(--brass); font-size: 17px; letter-spacing: 3px; line-height: 1; }
.testimonial blockquote { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.65; }
.testimonial figcaption { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-text); margin-top: auto; }

/* ── Bio ── */
.bio { display: grid; grid-template-columns: 130px 1fr; gap: 40px; align-items: start; }
.bio-mark { width: 120px; }
.bio p { margin-bottom: 14px; max-width: 70ch; }
.text-link { display: inline-block; color: var(--green); font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.text-link:hover { color: var(--green-dark); border-bottom-color: var(--green); }

/* ── Book grids ── */
.books-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.books-grid.three { grid-template-columns: repeat(3, 1fr); gap: 34px; }
.book-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.book-thumb {
  width: 100%; aspect-ratio: 2 / 2.85; border-radius: 4px; overflow: hidden;
  box-shadow: 3px 6px 16px rgba(38, 72, 58, 0.20); background: var(--white);
  transition: transform .2s, box-shadow .2s;
}
.book-thumb img { width: 100%; height: 100%; object-fit: cover; }
.book-thumb.mock { box-shadow: none; background: transparent; display: flex; align-items: center; justify-content: center; }
.book-thumb.mock img { object-fit: contain; filter: drop-shadow(3px 8px 12px rgba(38, 72, 58, 0.22)); }
.book-card:hover .book-thumb { transform: translateY(-4px); box-shadow: 5px 12px 24px rgba(38, 72, 58, 0.26); }
.book-card:hover .book-thumb.mock { box-shadow: none; }
.book-title { font-family: var(--serif); font-size: 18px; line-height: 1.3; color: var(--green); }
.book-sub { font-size: 13px; line-height: 1.5; color: var(--sage-text); }

/* ── Book page ── */
.book-detail { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; padding: 64px 0; }
.book-detail .cover img { width: 100%; border-radius: 4px; box-shadow: 6px 12px 30px rgba(38, 72, 58, 0.28); }
.book-detail .cover.mock img { box-shadow: none; border-radius: 0; filter: drop-shadow(4px 12px 24px rgba(38, 72, 58, 0.22)); }
.book-detail h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--green); margin-bottom: 8px; }
.book-detail .subtitle { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; margin-bottom: 18px; }
.book-detail .tagline { font-size: 17px; margin-bottom: 20px; opacity: .9; }
.checklist { list-style: none; margin: 0 0 26px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.note { font-size: 13.5px; color: var(--sage-text); max-width: 60ch; }
.chapter-box { background: var(--sage-bg); border: 1px solid var(--line); border-radius: 8px; padding: 26px; margin-top: 32px; max-width: 480px; }
.chapter-box h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--green); margin-bottom: 6px; }
.chapter-box p { font-size: 14.5px; margin-bottom: 14px; }

/* ── Page head ── */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.1; color: var(--green); margin-bottom: 10px; }
.page-head p { font-size: 17px; max-width: 60ch; opacity: .85; }
.page-body { padding: 56px 0 72px; }
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.about-grid .mark { width: 100%; max-width: 240px; }
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.contact-form label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--green); }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; font-size: 14.5px; }
.aside-card h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--green); margin-bottom: 8px; }
.center-box { text-align: center; padding: 96px 0; }
.center-box h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; color: var(--green); margin-bottom: 12px; }
.center-box p { max-width: 52ch; margin: 0 auto 22px; font-size: 17px; }
.center-box .cta-row { justify-content: center; }

/* ── Newsletter band ── */
.nl-band { background: var(--green); padding: 64px 28px; }
.nl-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.nl-rule { width: 44px; height: 2px; background: var(--brass); margin: 0 auto 22px; }
.nl-inner h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--white); margin-bottom: 10px; }
.nl-inner p { font-size: 15.5px; color: rgba(252, 251, 247, .85); margin-bottom: 24px; }
.nl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nl-form input[type="email"] {
  flex: 1 1 260px; max-width: 340px; min-height: 46px; padding: 10px 14px;
  border: 1px solid rgba(252, 251, 247, .45); border-radius: 5px;
  background: rgba(252, 251, 247, .10); color: var(--white); font: 400 15px/1.4 var(--sans);
}
.nl-form input::placeholder { color: rgba(252, 251, 247, .7); }
.nl-form input:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.nl-form button {
  min-height: 46px; padding: 0 24px; background: var(--brass); color: #1B2B24;
  border: none; border-radius: 5px; font: 600 14px/1 var(--sans); cursor: pointer;
}
.nl-form button:hover { background: #C29C66; }
.nl-inner .form-note { color: rgba(252, 251, 247, .75); margin-top: 12px; }
.nl-inner .form-note a { color: var(--white); }
.nl-inner .form-msg { margin-bottom: 14px; text-align: left; }

/* ── Footer ── */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 36px 0 28px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--sage-text); text-decoration: none; }
.footer-links a:hover { color: var(--charcoal); text-decoration: underline; }
.footer-meta { max-width: var(--wrap); margin: 22px auto 0; padding: 18px 28px 0; border-top: 1px solid var(--line); }
.copy { font-size: 13px; color: var(--sage-text); margin-bottom: 6px; }
.disclaimer { font-size: 12px; line-height: 1.6; color: var(--sage-text); max-width: 90ch; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 260px 1fr; gap: 40px; }
  .hero-tagline { font-size: 30px; }
  .book-detail { grid-template-columns: 280px 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .nav-inner { min-height: 84px; }
  .logo { height: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 28px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 48px; text-align: left; }
  .hero-book { max-width: 240px; margin: 0 auto; }
  .hero-tagline { font-size: 28px; }
  .section { padding: 48px 0; }
  .wrap, .footer-inner, .footer-meta, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .bio, .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .bio-mark { width: 88px; }
  .about-grid .mark { max-width: 140px; }
  .books-grid, .books-grid.three { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .book-detail { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .book-detail .cover { max-width: 260px; margin: 0 auto; }
  .book-detail h1 { font-size: 36px; }
  .page-head h1 { font-size: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .logo { height: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book-thumb { transition: none; }
}
