/* ===== Seam Strategy — The Uncommon PM ===== */
:root {
  --ink:      #0E1729;
  --ink-2:    #16223A;
  --ink-3:    #1F2E4A;
  --paper:    #FBFAF8;
  --paper-2:  #F3F0EA;
  --line:     #E4DFD6;
  --text:     #1A2233;
  --muted:    #5B6576;
  --gold:     #C6A15B;
  --gold-dk:  #A9843F;
  --steel:    #3A6EA5;
  --steel-dk: #2C5580;
  --white:    #ffffff;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -20px rgba(14, 23, 41, 0.28);
  --shadow-sm: 0 6px 20px -10px rgba(14, 23, 41, 0.22);

  --serif: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

section[id] { scroll-margin-top: 84px; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; z-index: 200; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h2, h3, .hero-sub { text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-dk);
  margin: 0 0 0.9rem;
}
.eyebrow.light { color: var(--gold); }

.section-head { max-width: 660px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-3); box-shadow: var(--shadow-sm); }

.btn-accent { background: var(--gold); color: var(--ink); }
.btn-accent:hover { background: var(--gold-dk); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(14,23,41,.22); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(14,23,41,.04); }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,248,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.brand-mark { color: var(--gold); display: inline-flex; }
.brand-thin { font-weight: 400; color: var(--muted); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .2s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 0.4rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-mobile { display: none; flex-direction: column; gap: 0.4rem; padding: 1rem 24px 1.4rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-mobile a { padding: 0.7rem 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile a.btn { border: 1.5px solid transparent; margin-top: 0.6rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 55%; height: 140%;
  background: radial-gradient(closest-side, rgba(198,161,91,.12), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.42rem); font-weight: 500; color: var(--ink); line-height: 1.25; margin-top: 0.9rem; max-width: 26ch; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 42ch; margin-top: 1.2rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 2rem 0 1.8rem; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.4rem; }
.hero-proof strong { color: var(--ink); }

/* Book cover */
.hero-book { display: flex; justify-content: center; }
.book-cover {
  width: min(320px, 78vw); border-radius: 6px 12px 12px 6px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative; transform: rotate(-2.5deg); transition: transform .4s ease;
  border-left: 6px solid rgba(0,0,0,.35); overflow: hidden;
}
.book-cover:hover { transform: rotate(0deg) translateY(-4px); }
.book-cover img { display: block; width: 100%; height: auto; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); color: #C6CEDB; padding: 1.5rem 0; }
.trustbar-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.trustbar-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.trustbar-logos { display: flex; gap: 2rem; flex-wrap: wrap; font-family: var(--serif); font-size: 1.05rem; color: #93A0B4; }

/* ---------- Why ---------- */
.why { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-dk); font-weight: 600; margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Inside ---------- */
.inside { padding: clamp(4rem, 7vw, 6.5rem) 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.part-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dk); margin: 0.5rem 0 0.4rem; }
.part-label + .chapters { margin-bottom: 2.4rem; }
.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2.4rem; }
.chapter { display: flex; gap: 1.1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.chapter-n { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--gold-dk); min-width: 2ch; }
.chapter h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.chapter p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.inside-note { margin-top: 2rem; color: var(--muted); font-style: italic; }

/* ---------- Author ---------- */
.author { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.author-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.photo-frame {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--paper-2), #E7E1D6);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.author-copy h2 { margin-bottom: 1rem; }
.author-copy p { color: var(--muted); max-width: 52ch; }
.author-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Praise ---------- */
.praise { padding: clamp(4rem, 7vw, 6.5rem) 0; background: var(--ink); color: #E6EAF1; }
.praise h2 { color: #fff; }
.praise .eyebrow { color: var(--gold); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { margin: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.9rem; }
.quote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: #F1F0EA; }
.quote footer { color: var(--gold); font-size: 0.9rem; font-weight: 500; }

/* ---------- Blog ---------- */
.blog { padding: clamp(4rem, 7vw, 6.5rem) 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-dk); background: rgba(198,161,91,.14);
  padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem;
}
.post h3 { font-size: 1.16rem; line-height: 1.25; margin-bottom: 0.5rem; }
.post h3 a { color: var(--ink); transition: color .15s ease; }
.post h3 a:hover { color: var(--gold-dk); }
.post-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.7rem; }
.post p { color: var(--muted); font-size: 0.97rem; margin: 0 0 1.2rem; }
.post-link { margin-top: auto; font-weight: 600; font-size: 0.92rem; color: var(--steel-dk); }
.post-link::after { content: " \2192"; transition: margin .15s ease; }
.post-link:hover::after { margin-left: 4px; }
.blog-more { margin-top: 2.2rem; text-align: center; }
.blog-more a { font-weight: 600; color: var(--gold-dk); }

/* ---------- Newsletter ---------- */
.newsletter { padding: clamp(4rem, 7vw, 6rem) 0; }
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: #EEF1F6;
  border-radius: 22px; padding: clamp(2.2rem, 4vw, 3.4rem); box-shadow: var(--shadow);
}
.newsletter-copy h2 { color: #fff; margin-bottom: 0.8rem; }
.newsletter-copy p { color: #B7C0D0; margin: 0; max-width: 42ch; }
.field-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 220px; padding: 0.95rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font-family: var(--sans); font-size: 1rem;
}
.newsletter-form input::placeholder { color: #93A0B4; }
.newsletter-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.1); }
.form-note { margin: 0.9rem 0 0; font-size: 0.82rem; color: #93A0B4; }
.form-note.error { color: #F1A5A5; }
.form-note.success { color: #A7D8A0; }

/* ---------- Buy ---------- */
.buy { padding: clamp(4rem, 7vw, 6.5rem) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.buy-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.buy-note { text-align: center; color: var(--muted); margin-top: 1.6rem; }
.buy-note a { color: var(--gold-dk); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #AEB8C7; padding: 3.5rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; }
.footer .brand-thin { color: #8b97a8; }
.footer-brand p { margin: 0.8rem 0 0; font-size: 0.92rem; max-width: 30ch; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: 0.84rem; color: #7f8b9c; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 2.25rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-copy .lede, .hero-copy .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-proof { justify-content: center; gap: 0.5rem 1.4rem; }
  .hero-book { order: -1; margin-bottom: 0.5rem; }
  .book-cover { width: min(232px, 60vw); }
  .cards-3 { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; text-align: center; }
  .author-copy p { margin-left: auto; margin-right: auto; }
  .author-cta { justify-content: center; }
  .author-photo { max-width: 300px; margin: 0 auto; }
  .quotes { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; text-align: center; }
  .newsletter-copy p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .trustbar-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .trustbar-logos { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0.4rem; font-size: clamp(0.62rem, 3.1vw, 0.9rem); }
  .trustbar-logos span { white-space: nowrap; }
  .buy-buttons { flex-direction: column; align-items: stretch; }
  .buy-buttons .btn { width: 100%; }
  .field-row { flex-direction: column; }
  .field-row input { flex: 0 0 auto; width: 100%; }
  .field-row .btn { width: 100%; }
  .newsletter-inner { padding: 1.8rem 1.4rem; }
  .footer-inner { flex-direction: column; gap: 1.4rem; }
  .footer-base { flex-direction: column; gap: 0.5rem; }
}
/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .book-cover { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
