/* memberreads.com - editorial stylesheet */
:root {
  --steel: #4675A3;
  --steel-600: #3A6390;
  --steel-100: #E3ECF5;
  --steel-50: #F1F5FA;
  --indigo: #22125A;
  --indigo-800: #2E1E6B;
  --indigo-700: #3D2E7A;
  --indigo-300: #9D93C4;
  --indigo-100: #E7E4F1;
  --yellow: #F2CE3E;
  --yellow-100: #FBF1C8;
  --paper: #FBFAF6;
  --paper-2: #F4F2EA;
  --paper-3: #ECE9DE;
  --ink: #22125A;
  --ink-soft: #4B416F;
  --ink-mute: #6D6590;
  --rule: #DAD5C6;
  --white: #FFFFFF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --measure: 68ch;
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(34, 18, 90, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel-600); text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: var(--indigo); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; border-radius: var(--radius);
  padding: .8em 1.4em; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--indigo); color: var(--paper); }
.btn-ink:hover { background: var(--steel); color: var(--white); }
.btn-paper { background: var(--paper); color: var(--indigo); box-shadow: inset 0 -3px 0 var(--yellow); }
.btn-paper:hover { background: var(--white); color: var(--indigo); }
.btn-steel { background: var(--steel); color: var(--white); }
.btn-steel:hover { background: var(--indigo); color: var(--white); }
.btn-lg { font-size: 1.02rem; padding: 1em 1.7em; }

/* ---------- Topbar + header ---------- */
.topbar {
  background: var(--indigo); color: var(--indigo-100);
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  text-align: center; padding: 7px 16px;
}
.topbar span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin-right: 10px; vertical-align: middle; }
.site-header { position: static; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 50px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: var(--paper); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(34, 18, 90, .94) 0%, rgba(34, 18, 90, .82) 38%, rgba(34, 18, 90, .35) 72%, rgba(34, 18, 90, .15) 100%),
    linear-gradient(0deg, rgba(34, 18, 90, .7) 0%, rgba(34, 18, 90, 0) 45%);
}
.hero-inner { padding-top: 120px; padding-bottom: 88px; }
.hero-copy { max-width: 700px; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--indigo-100); margin-bottom: 22px; }
.hero-kicker .rule { width: 42px; height: 2px; background: var(--yellow); }
.hero-kicker time { color: var(--paper); }
.hero h1 { color: var(--paper); font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 600; line-height: 1.06; margin-bottom: .45em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--yellow-100); }
.hero-dek { font-size: 1.15rem; line-height: 1.6; color: var(--indigo-100); max-width: 58ch; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-meta small { color: var(--indigo-300); font-size: .85rem; }

/* ---------- Article ---------- */
.article { padding: 88px 0 24px; }
.intro { max-width: 820px; margin: 0 auto 72px; }
.intro .eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; display: block; }
.intro .lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--indigo); font-weight: 400; }
.intro .lead::first-letter { float: left; font-size: 4.2em; line-height: .82; padding: .06em .12em 0 0; font-weight: 600; color: var(--steel); }
.intro p { color: var(--ink-soft); }
.term-note { border-left: 3px solid var(--yellow); padding: 4px 0 4px 20px; font-size: .98rem; color: var(--ink-soft); }

.chapter-block { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; padding: 64px 0; border-top: 1px solid var(--rule); }
.chapter-block.flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.chapter-block.flip .chapter-text { order: 2; }
.chapter-block.flip .chapter-side { order: 1; }
.chapter-text { max-width: var(--measure); }
.chapter-text p { color: var(--ink-soft); }
.chapter-text h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.chapter { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.chapter-no { font-family: var(--serif); font-size: 3.4rem; font-weight: 300; font-style: italic; line-height: 1; color: var(--steel); }
.chapter-label { font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute); padding-bottom: 6px; border-bottom: 2px solid var(--yellow); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-3); }
.figure figcaption { font-size: .86rem; line-height: 1.5; color: var(--ink-mute); margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--steel); }
.figure-tall { max-width: 380px; margin-left: auto; }
.figure-tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.figure-wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.flip .figure-tall { margin-left: 0; margin-right: auto; }

.side-note { background: var(--steel-50); border: 1px solid var(--steel-100); border-radius: var(--radius); padding: 28px; position: relative; }
.side-note::before { content: ""; position: absolute; top: -1px; left: 28px; width: 56px; height: 3px; background: var(--yellow); }
.side-note h3 { font-size: 1.2rem; margin-bottom: 14px; }
.side-note ul { list-style: none; margin: 0; padding: 0; }
.side-note li { padding: 10px 0 10px 28px; border-top: 1px solid var(--steel-100); position: relative; color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.side-note li:first-child { border-top: 0; }
.side-note li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 2px; background: var(--steel); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.compare > div { padding: 24px; }
.compare > div + div { border-left: 1px solid var(--rule); background: var(--steel-50); }
.compare h3 { font-size: 1.1rem; margin-bottom: 10px; }
.compare ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.compare li { margin-bottom: 8px; }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.inline-cta small { color: var(--ink-mute); font-size: .86rem; }

/* Pull-quote band */
.quote-band { background: var(--indigo); color: var(--paper); padding: 84px 0; position: relative; overflow: hidden; margin: 24px 0; }
.quote-band::before { content: "\201C"; position: absolute; font-family: var(--serif); font-size: 26rem; line-height: 1; color: var(--indigo-800); top: -60px; left: 2%; pointer-events: none; }
.quote-band blockquote { position: relative; margin: 0 auto; max-width: 900px; font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 400; line-height: 1.3; font-style: italic; }
.quote-band cite { display: block; margin-top: 26px; font-family: var(--sans); font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--indigo-300); }
.quote-band cite::before { content: ""; display: inline-block; width: 36px; height: 2px; background: var(--yellow); vertical-align: middle; margin-right: 12px; }

/* ---------- Section headings ---------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--yellow); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .35em; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Features (masonry) ---------- */
.features { padding: 96px 0; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.feature-masonry { columns: 3 300px; column-gap: 24px; }
.feature { break-inside: avoid; margin: 0 0 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px 28px 28px; position: relative; overflow: hidden; }
.feature:nth-child(2) { background: var(--indigo); border-color: var(--indigo); }
.feature:nth-child(2) h3, .feature:nth-child(2) p { color: var(--paper); }
.feature:nth-child(2) p { color: var(--indigo-100); }
.feature:nth-child(2) .feat-mark { color: var(--indigo-700); }
.feature:nth-child(2) .feat-icon { background: var(--paper); color: var(--indigo); }
.feature:nth-child(4) { background: var(--steel-50); border-color: var(--steel-100); }
.feat-mark { position: absolute; right: -26px; top: -18px; width: 150px; height: 150px; color: var(--paper-3); pointer-events: none; }
.feat-icon { position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--indigo); color: var(--paper); margin-bottom: 22px; box-shadow: 0 0 0 5px var(--yellow-100); }
.feat-icon svg { width: 24px; height: 24px; }
.feature h3 { position: relative; font-size: 1.3rem; margin-bottom: .45em; }
.feature p { position: relative; color: var(--ink-soft); margin: 0; font-size: .98rem; line-height: 1.6; }
.feature .feat-tag { position: relative; display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.feature:nth-child(2) .feat-tag { color: var(--yellow); }

/* ---------- Steps ---------- */
.steps { padding: 104px 0 96px; }
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step:nth-child(even) { margin-top: 40px; }
.step-num { position: absolute; top: 0; left: 18px; font-family: var(--serif); font-size: 6.2rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--steel); z-index: 0; }
.step-card { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px 24px 26px; box-shadow: var(--shadow); height: 100%; }
.step-card::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--yellow) 0 30%, transparent 30%); }
.step-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--steel-50); color: var(--steel); border: 1px solid var(--steel-100); margin-bottom: 16px; }
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 1.18rem; margin-bottom: .4em; }
.step p { color: var(--ink-soft); font-size: .96rem; line-height: 1.6; margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; background: var(--paper-2); border-top: 1px solid var(--rule); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--indigo); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:nth-child(even) { margin-left: 48px; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--indigo); line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; }
.faq-q { display: flex; gap: 16px; }
.faq-q small { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--steel); letter-spacing: .08em; padding-top: 5px; }
.faq-toggle { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--steel); display: grid; place-items: center; color: var(--steel); transition: transform .25s, background .25s, color .25s; }
.faq-toggle svg { width: 14px; height: 14px; }
.faq-list details[open] .faq-toggle { transform: rotate(45deg); background: var(--indigo); border-color: var(--indigo); color: var(--yellow); }
.faq-answer { padding: 0 48px 24px 36px; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* ---------- Bottom CTA ---------- */
.cta-final { padding: 96px 0 72px; }
.cta-panel { max-width: 880px; margin: 0 auto; border: 1px solid var(--steel); border-radius: var(--radius); padding: 60px 48px 52px; text-align: center; position: relative; background: var(--white); }
.cta-panel::before { content: ""; position: absolute; top: 12px; left: 12px; right: 12px; bottom: 12px; border: 1px solid var(--steel-100); border-radius: 2px; pointer-events: none; }
.cta-panel::after { content: ""; position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 96px; height: 4px; background: var(--yellow); }
.cta-panel .eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.cta-panel h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 18ch; margin: 0 auto .4em; }
.cta-panel p { color: var(--ink-soft); max-width: 54ch; margin: 0 auto 28px; }
.cta-panel .btn { position: relative; z-index: 1; }
.disclaimer { max-width: 880px; margin: 28px auto 0; font-size: .82rem; line-height: 1.65; color: var(--ink-mute); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 3px solid var(--indigo); padding: 56px 0 32px; color: var(--ink-soft); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.footer-logo { height: 48px; width: auto; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 36px; }
.footer-links a { color: var(--indigo); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--steel); text-decoration: underline; }
.footer-identity p { margin: 0 0 6px; line-height: 1.5; }
.footer-identity strong { color: var(--indigo); }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 22px; margin: 8px 0 0; font-size: .84rem; color: var(--ink-mute); }

/* ---------- Doc pages ---------- */
.doc-hero { background: var(--indigo); color: var(--paper); padding: 72px 0 60px; position: relative; }
.doc-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 4px; background: var(--yellow); }
.doc-hero .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--indigo-300); display: block; margin-bottom: 12px; }
.doc-hero h1 { color: var(--paper); font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0 0 .3em; }
.doc-hero p { color: var(--indigo-100); margin: 0; max-width: 60ch; }
.doc { padding: 64px 0 88px; }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: 1.55rem; margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--rule); }
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body p, .doc-body li { color: var(--ink-soft); }
.doc-body ul { padding-left: 20px; margin: 0 0 1.1em; }
.doc-body li { margin-bottom: 6px; }
.contact-card { background: var(--white); border: 1px solid var(--steel); border-radius: var(--radius); padding: 28px; margin: 8px 0 28px; position: relative; }
.contact-card::before { content: ""; position: absolute; top: -2px; left: 28px; width: 64px; height: 4px; background: var(--yellow); }
.contact-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.contact-card dt { font-weight: 700; color: var(--indigo); }
.contact-card dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq-toggle { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(even) { margin-top: 0; }
  .chapter-block, .chapter-block.flip { gap: 40px; }
}
@media (max-width: 860px) {
  .chapter-block, .chapter-block.flip { grid-template-columns: 1fr; padding: 48px 0; }
  .chapter-block.flip .chapter-text { order: 1; }
  .chapter-block.flip .chapter-side { order: 2; }
  .figure-tall, .flip .figure-tall { max-width: 340px; margin: 0 auto; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 560px; }
  .hero::before { background: linear-gradient(0deg, rgba(34, 18, 90, .95) 0%, rgba(34, 18, 90, .82) 55%, rgba(34, 18, 90, .55) 100%); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .brand img { height: 42px; }
  .header-inner .btn { padding: .65em 1em; font-size: .85rem; }
  .hero-inner { padding-top: 80px; padding-bottom: 56px; }
  .hero-dek { font-size: 1.02rem; }
  .article { padding-top: 56px; }
  .intro { margin-bottom: 40px; }
  .compare { grid-template-columns: 1fr; }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .quote-band { padding: 60px 0; }
  .quote-band::before { font-size: 14rem; top: -30px; }
  .features, .steps, .faq { padding: 64px 0; }
  .step-grid { grid-template-columns: 1fr; }
  .step-num { font-size: 5rem; }
  .faq-list details:nth-child(even) { margin-left: 0; }
  .faq-list summary { font-size: 1.08rem; }
  .faq-answer { padding: 0 0 22px 0; }
  .cta-final { padding: 64px 0 56px; }
  .cta-panel { padding: 44px 22px 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .contact-card dl { grid-template-columns: 1fr; gap: 4px; }
  .contact-card dd { margin-bottom: 10px; }
}
@media (max-width: 380px) {
  .brand img { height: 38px; }
  .header-inner .btn { padding: .6em .85em; font-size: .8rem; }
  .hero h1 { font-size: 1.95rem; }
  .chapter-no { font-size: 2.8rem; }
}
