/* The Plural Marriage Project : shared stylesheet */

:root {
  --ink: #15233b;
  --ink-soft: #33425c;
  --body: #2c3340;
  --muted: #5b6675;
  --gold: #a9772f;
  --gold-soft: #d8b878;
  --link: #7a5618;
  --paper: #f7f5f0;
  --paper-2: #ffffff;
  --line: #e4ddcf;
  --line-strong: #cfc6b2;
  --good: #2f6b4f;
  --warn: #9a5b1f;
  --info: #2b5f8a;
  --bad: #9a3030;
  --shadow: 0 1px 2px rgba(21, 35, 59, .06), 0 8px 24px rgba(21, 35, 59, .06);
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* In-content links are underlined and use the accessible (WCAG AA) link color */
.prose a, .sources a, .card p a, .thesis a, .callout a, .lead a, .verse a {
  text-decoration: underline; text-underline-offset: 2px;
}
.sources li { margin-bottom: 10px; }

strong { color: var(--ink-soft); }

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

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -.01em; white-space: nowrap;
}
.brand span { color: var(--gold); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--paper-2); text-decoration: none; }
.nav a.active { color: var(--gold); background: var(--paper-2); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(169,119,47,.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem;
  font-weight: 700; color: var(--gold); margin-bottom: 18px;
}
.hero p.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 720px; }
.thesis {
  margin-top: 28px; padding: 22px 24px; background: var(--paper-2);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow); max-width: 760px;
}
.thesis p { margin: 0; font-size: 1.1rem; color: var(--ink); }

.cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 9px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; margin-bottom: 14px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem;
  font-family: "Inter", sans-serif;
}
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; font-size: .92rem; }

/* SWOT grid (Other Options page) */
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 2px; }
.swot-cell {
  border-radius: var(--radius); padding: 15px 18px;
  border: 1px solid var(--line); background: var(--paper);
}
.swot-cell h4 {
  font-family: "Inter", sans-serif; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 8px;
}
.swot-cell ul { margin: 0; padding-left: 1.1em; }
.swot-cell li { font-size: .92rem; margin-bottom: 5px; line-height: 1.5; }
.swot-cell li:last-child { margin-bottom: 0; }
.swot-s { border-top: 3px solid var(--good); } .swot-s h4 { color: var(--good); }
.swot-w { border-top: 3px solid var(--warn); } .swot-w h4 { color: var(--warn); }
.swot-o { border-top: 3px solid var(--info); } .swot-o h4 { color: var(--info); }
.swot-t { border-top: 3px solid var(--bad); } .swot-t h4 { color: var(--bad); }

/* solution card (Real Solutions page) */
.sol-card { border-top: 3px solid var(--gold-soft); }
.sol-label {
  display: block; font-family: "Inter", sans-serif; font-size: .7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  margin: 16px 0 3px;
}
.sol-risk { color: var(--warn); }
.sol-fix { color: var(--good); }
.sol-law { color: var(--gold); }
.sol-card p { margin-bottom: 4px; }
.sol-card p:last-child { margin-bottom: 0; }

/* objection card */
.obj { border-top: 3px solid var(--gold-soft); }
.obj .quote {
  font-family: "Playfair Display", Georgia, serif; font-style: italic;
  font-size: 1.12rem; color: var(--ink); margin-bottom: 14px;
}
.fix-label {
  display: inline-block; text-transform: uppercase; letter-spacing: .1em;
  font-size: .72rem; font-weight: 700; color: var(--good); margin-bottom: 6px;
}

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
  border: 1px solid var(--line-strong); background: var(--paper-2);
}
.callout.note { border-left: 4px solid var(--gold); }
.callout.fact { border-left: 4px solid var(--good); }
.callout.honest { border-left: 4px solid var(--warn); background: #fbf6ee; }
.callout h4 { margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--paper-2); min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
th { background: var(--ink); color: #fff; font-weight: 600; font-family: "Inter", sans-serif; }
tr:last-child td { border-bottom: 0; }
td .yes { color: var(--good); font-weight: 600; }
td .no { color: var(--warn); font-weight: 600; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.verse {
  font-family: "Playfair Display", Georgia, serif; font-style: italic;
  color: var(--ink-soft); border-left: 3px solid var(--line-strong);
  padding-left: 16px; margin: 0 0 1em;
}

/* ---------- Model bill ---------- */
.bill {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px clamp(20px, 4vw, 48px); box-shadow: var(--shadow); max-width: 820px; margin: 0 auto;
}
.bill h2 { text-align: center; }
.bill .bill-meta { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.bill h3 { font-family: "Inter", sans-serif; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-top: 1.8em; }
.bill p, .bill li { font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: .9rem;
}
.step div h4 { margin-bottom: .2em; }
.step div p { margin-bottom: 0; color: var(--muted); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.05rem;
  padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 14px 0 6px; color: var(--body); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Band / quote ---------- */
.band {
  background: var(--ink); color: #eaeef5; text-align: center;
  padding: 56px 0;
}
.band h2 { color: #fff; }
.band p { color: #c3cdda; max-width: 680px; margin: 0 auto; }
.band .big {
  font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  color: #fff; max-width: 820px; margin: 0 auto;
}

/* ---------- Footer ---------- */
footer {
  background: var(--paper-2); border-top: 1px solid var(--line);
  padding: 44px 0; color: var(--muted); font-size: .9rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .brand { font-size: 1.05rem; }
footer a { color: var(--ink-soft); }
.disclaimer {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); line-height: 1.55;
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: linear-gradient(180deg, #ffffff, var(--paper));
  border-bottom: 1px solid var(--line); padding: 56px 0 44px;
}
.page-head .eyebrow { margin-bottom: 14px; }
.page-head p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 720px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .swot { grid-template-columns: 1fr; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 9px; font-size: .85rem; }
}
