/* The Dead Man's Guide to Estate Planning — site styles
   Palette drawn from the cover: charcoal slate, parchment cream, brass gold. */

@font-face {
  font-family: 'Cinzel';
  src: url('/assets/fonts/cinzel.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/ebgaramond.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/ebgaramond-italic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #1b1c1f;
  --bg-deep: #141518;
  --panel: #232529;
  --panel-edge: #33353a;
  --ink: #e9e2d0;
  --ink-dim: #b0a790;
  --ink-faint: #8a8272;
  --gold: #cfa96a;
  --gold-bright: #e0bd7e;
  --gold-deep: #9a7c47;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration-color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.18; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.9rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 0.6em; }
h3 { font-size: 1.12rem; letter-spacing: 0.04em; margin-bottom: 0.4em; color: var(--gold); }
p + p { margin-top: 0.9em; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

/* gold rule with diamond, echoing the cover ornament */
.rule {
  border: 0; height: 1px; background: var(--gold-deep);
  margin: 2.4em auto; max-width: 340px; position: relative; overflow: visible;
}
.rule::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--panel-edge);
  background: rgba(20, 21, 24, 0.96);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px; flex-wrap: wrap; }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.brand .amp { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-dim);
}
.nav-links a:hover { color: var(--gold-bright); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 3px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-gold { background: var(--gold); color: #141518; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); color: #141518; }
.btn-ghost { background: transparent; color: var(--gold-bright); border-color: var(--gold-deep); }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 1.6em 0 0.8em; }
.cta-note { font-size: 1rem; color: var(--ink-faint); font-style: italic; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; background:
  radial-gradient(1100px 520px at 78% -10%, rgba(207, 169, 106, 0.07), transparent 60%),
  linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 56px; align-items: center; }
.hero-cover img {
  border: 1px solid var(--panel-edge); border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.hero-sub {
  font-family: var(--display); font-weight: 400; color: var(--gold);
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 1rem;
  margin: 0.9em 0 1.1em;
}
.hero-hook { font-size: 1.32rem; }
.hero-hook strong { color: var(--gold-bright); font-weight: 600; }
.hero-meta { margin-top: 1.4em; font-size: 1rem; color: var(--ink-faint); }

/* ---------- bands & sections ---------- */
section { padding: 64px 0; }
.band-quote { background: var(--bg-deep); text-align: center; padding: 56px 22px; border-top: 1px solid var(--panel-edge); border-bottom: 1px solid var(--panel-edge); }
.band-quote blockquote {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 2rem); color: var(--ink);
  max-width: 820px; margin: 0 auto; line-height: 1.4;
}
.band-quote blockquote em { color: var(--gold-bright); font-style: normal; }
.band-quote cite { display: block; margin-top: 0.9em; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-faint); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 1.8em; }
.card {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: 4px; padding: 26px 24px; font-size: 1.08rem;
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--ink-dim); }

.checklist { list-style: none; margin-top: 1.4em; font-size: 1.15rem; }
.checklist li { padding: 0.55em 0 0.55em 2em; position: relative; border-bottom: 1px solid rgba(51, 53, 58, 0.6); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ''; position: absolute; left: 0.35em; top: 1.15em;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}

/* ---------- TOC ---------- */
.toc-section { margin-top: 2.2em; }
.toc-section h3 { font-size: 1.05rem; letter-spacing: 0.08em; }
.toc-section p.blurb { color: var(--ink-dim); font-size: 1.08rem; margin-bottom: 0.7em; }
.toc-section ol { margin-left: 1.4em; color: var(--ink); }
.toc-section li { padding: 0.28em 0; }

/* ---------- author ---------- */
.author-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; align-items: start; }
.author-photo img { border: 1px solid var(--panel-edge); border-radius: 4px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.cred-list { list-style: none; margin-top: 1.2em; font-size: 1.05rem; color: var(--ink-dim); }
.cred-list li { padding: 0.35em 0 0.35em 1.6em; position: relative; }
.cred-list li::before { content: ''; position: absolute; left: 0.2em; top: 0.95em; width: 7px; height: 7px; background: var(--gold-deep); transform: rotate(45deg); }

/* ---------- signup ---------- */
.signup-band { background: linear-gradient(180deg, var(--bg-deep), #17181b); border-top: 1px solid var(--panel-edge); border-bottom: 1px solid var(--panel-edge); }
.signup-box { max-width: 660px; margin: 0 auto; text-align: center; }
.signup { display: flex; gap: 12px; margin-top: 1.6em; flex-wrap: wrap; justify-content: center; }
.signup input[type='email'] {
  flex: 1 1 300px; padding: 15px 16px; font-size: 1.05rem;
  font-family: var(--serif); color: var(--ink);
  background: #101114; border: 1px solid var(--panel-edge); border-radius: 3px;
}
.signup input[type='email']:focus { outline: 2px solid var(--gold-deep); border-color: var(--gold-deep); }
.signup .hp { position: absolute; left: -5000px; opacity: 0; height: 0; width: 0; }
.fine { font-size: 0.95rem; color: var(--ink-faint); margin-top: 1em; font-style: italic; }
.form-msg { margin-top: 1em; font-size: 1.02rem; min-height: 1.4em; }
.form-msg.err { color: #d98f7a; }
.form-msg.ok { color: var(--gold-bright); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--panel-edge); padding: 1.6em 0; }
.faq-item:first-of-type { border-top: 1px solid var(--panel-edge); margin-top: 1.4em; }
.faq-item h2, .faq-item h3 { font-size: 1.22rem; color: var(--ink); margin-bottom: 0.5em; }
.faq-item p { color: var(--ink-dim); font-size: 1.12rem; }
.faq-item p strong { color: var(--ink); }

/* ---------- long-form chapter/excerpt ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-family: var(--serif); font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: 0; }
.prose .qline { font-style: italic; color: var(--gold-bright); }
.chapter-head { text-align: center; padding: 56px 0 8px; }
.chapter-head .eyebrow { margin-bottom: 1.6em; }

.welcome-note {
  display: none; background: var(--panel); border: 1px solid var(--gold-deep);
  border-radius: 4px; padding: 18px 22px; margin: 0 0 2em; font-size: 1.08rem;
}
.welcome-note.show { display: block; }

/* ---------- footer ---------- */
.site-foot { background: var(--bg-deep); border-top: 1px solid var(--panel-edge); padding: 52px 0 40px; margin-top: 0; font-size: 1rem; color: var(--ink-dim); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.foot-grid h3 { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; }
.foot-grid ul { list-style: none; }
.foot-grid li { padding: 0.22em 0; }
.brand-foot { font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: 0.06em; margin-bottom: 0.6em; }
.legal { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid rgba(51, 53, 58, 0.6); font-size: 0.92rem; color: var(--ink-faint); }
.legal p + p { margin-top: 0.6em; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 40px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-cover { max-width: 300px; margin: 0 auto; }
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 280px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  section { padding: 48px 0; }
  body { font-size: 1.13rem; }
}
