/* ============================================================
   Top eBook Ghostwriters — Concept H design system
   Restyles the existing page-block classes (chapter-head, marginalia,
   ledger, procession, ratecard, pkg-grid, sealed, ms-table, faq-ms …)
   plus site chrome (eb-*). Content HTML is unchanged.
   ============================================================ */
:root{
  --bone:#f4efe6; --paper:#efe9dd; --card:#fbf8f1;
  --ink:#1a150f; --ink2:#2b2320; --wine:#a03d2d; --wine2:#8a3125;
  --gold:#b98a3e; --gold2:#caa04a; --muted:#857a68; --line:#e4dac6;
  --body:#4c4437; --maxw:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Space Grotesk',system-ui,sans-serif;background:var(--bone);color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:Fraunces,Georgia,serif;font-weight:600;letter-spacing:-.01em;line-height:1.08;margin:0}
p{margin:0 0 1rem}
em{font-style:italic;color:var(--wine)}
.eb-serif{font-family:Fraunces,Georgia,serif}
.struck{text-decoration:line-through;text-decoration-color:var(--wine);text-decoration-thickness:2px;color:#b3a894;font-style:normal}
.flourish{font-family:Fraunces;font-style:italic;color:var(--wine)}

/* ---------- NAV ---------- */
.eb-nav{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;
  padding:16px 40px;background:rgba(244,238,230,.9);backdrop-filter:blur(8px);border-bottom:1px solid transparent;transition:.25s}
.eb-nav.scrolled{border-bottom-color:var(--line);box-shadow:0 6px 24px rgba(26,15,8,.06)}
.eb-brand{display:flex;align-items:center;gap:11px;font-family:Fraunces;font-weight:600;font-size:20px;color:var(--ink)}
.eb-brand .nib{width:26px;height:26px;flex:0 0 auto}
.eb-links{display:flex;align-items:center;gap:24px}
.eb-links a{font-size:14px;font-weight:500}
.eb-links .cta{background:var(--ink);color:var(--bone);border-radius:999px;padding:10px 18px;font-weight:600}
.eb-burger{display:none;background:none;border:0;font-size:24px;color:var(--ink);cursor:pointer}

/* ---------- HERO (home split) ---------- */
.eb-hero{display:grid;grid-template-columns:1.04fr .96fr;min-height:88vh;position:relative}
.eb-hero__left{padding:80px 56px 70px;display:flex;flex-direction:column;justify-content:center}
.eb-hero__tag{font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--wine);font-weight:600;margin-bottom:24px}
.eb-hero h1{font-size:clamp(40px,4.6vw,72px)}
.eb-hero__sub{font-size:17px;color:var(--body);max-width:48ch;margin:26px 0 32px}
.eb-hero__cta{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.eb-hero__right{position:relative;background:#241c14 center/cover no-repeat}
.eb-hero__right:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(26,21,15,.12),rgba(26,21,15,.30))}
.eb-sidelabel{position:absolute;right:20px;top:50%;transform:translateY(-50%) rotate(90deg);transform-origin:right center;color:var(--bone);font-size:11px;letter-spacing:.34em;text-transform:uppercase;z-index:3;opacity:.9}
.eb-seal{position:absolute;z-index:5;left:-70px;bottom:64px;background:var(--card);border-radius:16px;padding:20px 22px;box-shadow:0 34px 70px rgba(26,15,8,.30);width:300px;display:flex;gap:16px;align-items:flex-start}
.eb-seal .b{flex:0 0 auto;width:62px;height:62px;border-radius:50%;background:var(--wine);color:#f7efe6;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.eb-seal .b b{font-family:Fraunces;font-size:24px;color:#fff}
.eb-seal .b span{font-size:9px;letter-spacing:1.5px;margin-top:3px;color:#f7efe6;font-weight:600}
.eb-seal p{font-size:13px;color:var(--ink2);line-height:1.4;margin:0}

/* interior hero */
.eb-hero-lite{padding:120px 40px 60px;background:var(--paper);border-bottom:1px solid var(--line)}
.eb-hero-lite .in{max-width:var(--maxw);margin:0 auto}
.eb-hero-lite .tag{font-size:12px;letter-spacing:.26em;text-transform:uppercase;color:var(--wine);font-weight:600;margin-bottom:16px}
.eb-hero-lite h1{font-size:clamp(34px,4vw,58px);max-width:20ch}
.eb-hero-lite p{font-size:17px;color:var(--body);max-width:60ch;margin-top:18px}

/* buttons + inline links */
.btn,.btn-ms{display:inline-flex;align-items:center;gap:9px;border-radius:999px;padding:15px 28px;font-weight:600;font-size:15px;font-family:'Space Grotesk';cursor:pointer;border:0}
.btn-ink,.btn-ms{background:var(--ink);color:var(--bone)}
.btn-ghost{border:1.6px solid var(--ink);color:var(--ink);background:none}
.btn-ms.red{background:var(--wine);color:#f7efe6}
.link-ms{color:var(--wine);font-weight:600;border-bottom:1.6px solid var(--gold);padding-bottom:1px;display:inline-block}
.actionline{margin-top:30px}

/* ---------- MARQUEE ---------- */
.eb-rail{background:var(--ink);color:var(--bone);overflow:hidden;white-space:nowrap;padding:15px 0;font-family:Fraunces;font-size:20px}
.eb-rail .t{display:inline-block;animation:eb-marq 34s linear infinite}
.eb-rail span{margin:0 22px;opacity:.92}.eb-rail .dot{color:var(--gold2)}
@keyframes eb-marq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- SECTIONS ---------- */
.eb-sec{padding:82px 24px}
.eb-sec>*{max-width:var(--maxw);margin-left:auto;margin-right:auto}
.eb-sec+.eb-sec{padding-top:34px}
.chapter-head{margin-bottom:26px}
.chapter-head .chapter-no{display:block;font-family:'Space Grotesk';font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-bottom:12px}
.chapter-head h2{font-size:clamp(28px,3.4vw,46px);max-width:22ch}
.chapter-lede{font-size:17px;color:var(--body);max-width:62ch;margin-bottom:8px}
.annotation{font-family:Fraunces;font-style:italic;color:var(--muted);font-size:16px;max-width:64ch}
.mt-1{margin-top:.6rem}.mt-2{margin-top:1.2rem}

/* marginalia note cards */
.marginalia{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.note{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:28px 26px}
.note h3{font-size:22px;margin-bottom:10px}
.note h3 .nmark{font-size:12px;color:var(--wine);vertical-align:super;margin-left:2px}
.note p{font-size:14.5px;color:#57503f;margin-bottom:.6rem}
.note .glyph{width:44px;height:44px;margin-bottom:14px;stroke:var(--wine)}

/* ledger — dark band */
.eb-sec[data-k="ledger"]{background:var(--ink);color:var(--bone)}
.eb-sec[data-k="ledger"] .chapter-head .chapter-no{color:var(--gold2)}
.eb-sec[data-k="ledger"] .chapter-head h2{color:var(--bone)}
.eb-sec[data-k="ledger"] .chapter-lede{color:#cfc6b5}
.ledger{border-top:1px solid rgba(244,238,230,.16);margin-top:6px}
.ledger .row{display:grid;grid-template-columns:1.15fr 2fr 40px;gap:26px;align-items:start;padding:26px 6px;border-bottom:1px solid rgba(244,238,230,.16);color:var(--bone);transition:.2s}
.ledger .row:hover{background:rgba(202,160,74,.08)}
.ledger .row .n{display:block;font-family:Fraunces;font-size:15px;font-weight:600;color:var(--gold2);margin-bottom:6px}
.ledger .row h3{font-size:24px;font-weight:500;margin:0}
.ledger .row p{font-size:15px;color:#cfc6b5;margin:0}
.ledger .row .go{font-size:24px;color:var(--gold2);text-align:right}
.ledger .row .glyph{display:none}

/* procession — numbered steps */
.procession{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2px;background:var(--line);border:1px solid var(--line);counter-reset:step}
.proc{background:var(--card);padding:26px 22px;counter-increment:step}
.proc:before{content:counter(step,decimal-leading-zero);font-family:Fraunces;font-size:15px;color:var(--wine);font-weight:600;display:block;margin-bottom:10px}
.proc h3{font-size:18px;margin-bottom:8px;line-height:1.15}
.proc p{font-size:13.5px;color:#57503f;margin:0}

/* rate card (home) — horizontal rail */
.eb-sec[data-k="ratecard"]{background:var(--bone)}
.ratecard{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card)}
.ratecard-head{display:flex;justify-content:space-between;align-items:center;padding:20px 26px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.tier-row{display:grid;grid-template-columns:1.1fr 2fr auto auto;gap:24px;align-items:center;padding:26px;border-bottom:1px solid var(--line)}
.tier-row:last-child{border-bottom:0}
.tier-row.tier-featured{background:#fff}
.tier-row h3{font-size:23px}.tier-row h3 small{display:block;font-family:'Space Grotesk';font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-top:4px}
.tier-row .desc ul{margin:0;padding:0;list-style:none}
.tier-row .desc li{font-size:13.5px;color:#57503f;padding:3px 0 3px 18px;position:relative}
.tier-row .desc li:before{content:"";position:absolute;left:0;top:11px;width:7px;height:7px;border-radius:50%;border:1.5px solid var(--wine)}
.tier-price{font-family:Fraunces;font-size:30px;font-weight:600;white-space:nowrap}
.tier-price small{font-family:'Space Grotesk';font-size:12px;color:var(--muted);font-weight:400}
.footnote{font-size:13px;color:var(--muted);line-height:1.6;padding:18px 26px}
.footnote a{color:var(--wine);border-bottom:1px solid var(--line)}

/* pkg-grid (pricing page) — three cards */
.pkg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.pkg{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:32px 28px;position:relative}
.pkg.featured{background:#fff;border-color:var(--wine)}
.pkg.featured:before{content:"Most chosen";position:absolute;top:-11px;left:26px;background:var(--wine);color:#f7efe6;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 12px;border-radius:999px}
.pkg .tier{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);font-weight:600}
.pkg .amount{font-family:Fraunces;font-size:38px;font-weight:600;display:block;margin:6px 0 4px}
.pkg .amount small{font-family:'Space Grotesk';font-size:13px;color:var(--muted);font-weight:400}
.pkg .lede{font-size:14px;color:#57503f}
.pkg .pkg-label{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--wine);font-weight:600;margin:14px 0 6px}
.pkg ul{margin:0;padding:0;list-style:none}
.pkg li{font-size:13.5px;color:#57503f;padding:5px 0 5px 18px;position:relative}
.pkg li:before{content:"";position:absolute;left:0;top:11px;width:7px;height:7px;border-radius:50%;border:1.5px solid var(--wine)}
.pkg li.not{color:#a89c88}.pkg li.not:before{border-color:#c9bda6;border-radius:0}
.pkg .meta{display:block;font-size:12.5px;color:var(--muted);margin:14px 0}
.currency-toggle{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.currency-toggle button{border:0;background:none;padding:8px 16px;font-size:13px;font-weight:600;cursor:pointer;color:var(--muted)}
.currency-toggle button[aria-pressed="true"]{background:var(--ink);color:var(--bone)}

/* sealed — callout with wax-seal illustration */
.eb-sec[data-k="sealed"]{background:var(--paper)}
.sealed{display:grid;grid-template-columns:160px 1fr;gap:36px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:38px}
.sealed .seal-illo{width:140px;height:auto}
.sealed h3{font-size:24px;margin-bottom:10px}
.sealed p{font-size:15.5px;color:var(--body);margin:0}
.sealed p a{color:var(--wine);border-bottom:1.5px solid var(--gold)}

/* tables */
.ms-table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.ms-table th{text-align:left;font-family:Fraunces;font-weight:600;font-size:15px;width:180px;vertical-align:top;padding:16px 20px;background:rgba(160,61,45,.05);border-bottom:1px solid var(--line)}
.ms-table td{padding:16px 20px;font-size:15px;color:var(--body);border-bottom:1px solid var(--line)}
.ms-table tr:last-child th,.ms-table tr:last-child td{border-bottom:0}
.ms-table a{color:var(--wine);border-bottom:1px solid var(--line)}

/* FAQ */
.faq-ms{max-width:860px}
.faq-ms details{border-top:1px solid var(--line)}
.faq-ms summary{font-family:Fraunces;font-size:20px;font-weight:500;padding:20px 40px 20px 0;cursor:pointer;position:relative;list-style:none}
.faq-ms summary::-webkit-details-marker{display:none}
.faq-ms summary:after{content:"+";position:absolute;right:6px;top:16px;font-size:24px;color:var(--wine)}
.faq-ms details[open] summary:after{content:"–"}
.faq-a{padding:0 40px 20px 0}
.faq-a p{font-size:15.5px;color:#57503f;margin:0}
.faq-a a{color:var(--wine);border-bottom:1px solid var(--line)}

/* forms (contact) */
.form-ms{max-width:640px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:32px}
.form-ms .frow{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-ms .field{margin-bottom:16px}
.form-ms label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.form-ms input,.form-ms select,.form-ms textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff}
.form-ms .hint{font-size:12.5px;color:var(--muted)}
.form-ms .hp{position:absolute;left:-9999px}
.form-ok{background:#e7f0e4;border:1px solid #b9d4b0;color:#2f5d2a;padding:14px;border-radius:10px}
.form-err{background:#f6e2dd;border:1px solid #e0b3a8;color:#8a3125;padding:14px;border-radius:10px}
.form-note{font-size:12.5px;color:var(--muted);margin-top:10px}

/* brand band (home) — the embossed book */
.eb-brandband{background:var(--ink);color:var(--bone);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0}
.eb-brandband .txt{padding:70px 56px}
.eb-brandband .txt h2{font-size:clamp(28px,3vw,42px);color:var(--bone);margin-bottom:14px}
.eb-brandband .txt p{color:#cfc6b5;font-size:16px;max-width:44ch}
.eb-brandband .pic{min-height:420px;background:#241c14 center/cover}

/* CLOSE */
.eb-close{background:var(--wine);color:#f7efe6;text-align:center;padding:96px 40px}
.eb-close h2{font-size:clamp(34px,4.2vw,60px);color:#f7efe6}
.eb-close p{margin-top:14px;color:#f0d9cf;font-size:16px}
.eb-close .btn{margin-top:26px;background:var(--bone);color:var(--ink)}

/* FOOTER */
.eb-foot{background:var(--ink);color:#cfc6b5;padding:60px 40px 34px}
.eb-foot .in{max-width:var(--maxw);margin:0 auto}
.eb-foot .grid{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:34px}
.eb-foot h4{color:var(--bone);font-family:Fraunces;font-size:15px;margin:0 0 14px}
.eb-foot a{display:block;color:#cfc6b5;font-size:14px;padding:5px 0}
.eb-foot .bt{font-size:14px;line-height:1.6;max-width:36ch;margin-top:12px;color:#cfc6b5}
.eb-foot .bottom{border-top:1px solid rgba(244,238,230,.14);margin-top:40px;padding-top:20px;display:flex;justify-content:space-between;gap:16px;font-size:13px;flex-wrap:wrap}
.eb-foot .bottom a{display:inline}

/* reveal animation — only hidden when JS is active (html.js), so no-JS never hides content */
html.js .reveal,html.js .reveal-stagger>*{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
html.js .reveal.in,html.js .reveal-stagger.in>*{opacity:1;transform:none}
html.js .reveal-stagger.in>*:nth-child(2){transition-delay:.08s}
html.js .reveal-stagger.in>*:nth-child(3){transition-delay:.16s}
html.js .reveal-stagger.in>*:nth-child(4){transition-delay:.24s}
html.js .reveal-stagger.in>*:nth-child(5){transition-delay:.32s}
@media(prefers-reduced-motion:reduce){html.js .reveal,html.js .reveal-stagger>*{opacity:1;transform:none;transition:none}}

/* ---------- responsive ---------- */
@media(max-width:920px){
  .eb-nav{padding:14px 20px}
  .eb-links{display:none}
  .eb-burger{display:block}
  .eb-hero{grid-template-columns:1fr}
  .eb-hero__left{padding:40px 22px 56px}
  .eb-hero__right{min-height:360px}
  .eb-seal{left:20px;right:20px;bottom:-42px;width:auto}
  .eb-sec{padding:60px 20px}
  .marginalia,.pkg-grid,.eb-brandband,.foot .grid,.eb-foot .grid{grid-template-columns:1fr}
  .eb-brandband .pic{min-height:300px}
  .ledger .row,.tier-row{grid-template-columns:1fr;gap:6px}
  .ledger .row .go{display:none}
  .sealed{grid-template-columns:1fr;text-align:center}
  .sealed .seal-illo{margin:0 auto}
  .form-ms .frow{grid-template-columns:1fr}
}

/* logo lockup (exact original mark) */
.eb-brand .niblogo{width:30px;height:36px;flex:0 0 auto}
.eb-brand .wm{display:flex;flex-direction:column;line-height:1.02}
.eb-brand small{font-family:'Space Grotesk';font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--wine);font-weight:600;margin-top:3px}
.foot-brand .wm{color:var(--bone)}
.foot-brand small{color:var(--gold2)}

.eb-credit{max-width:var(--maxw);margin:18px auto 0;text-align:center;font-size:12.5px;color:#9a8f7c}

/* floating social rail (driven by the CMS 'Follow us' footer column) */
.eb-social{position:fixed;right:16px;top:50%;transform:translateY(-50%);z-index:35;display:flex;flex-direction:column;gap:10px}
.eb-social a{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fbf8f1;border:1px solid #e4dac6;color:#a03d2d;box-shadow:0 8px 20px rgba(26,15,8,.14);transition:.2s}
.eb-social a:hover{background:#a03d2d;color:#fff;transform:translateX(-3px)}
.eb-social svg{width:17px;height:17px}
@media(max-width:920px){.eb-social{display:none}}

/* interior split hero */
.eb-hero2{display:grid;grid-template-columns:1.12fr .88fr;min-height:340px;background:var(--paper);border-bottom:1px solid var(--line)}
.eb-hero2 .in{align-self:center;padding:70px 56px;max-width:680px;margin-left:auto}
.eb-hero2 .tag{font-size:12px;letter-spacing:.26em;text-transform:uppercase;color:var(--wine);font-weight:600;margin-bottom:14px}
.eb-hero2 h1{font-family:Fraunces;font-weight:600;font-size:clamp(32px,3.6vw,52px);line-height:1.03;max-width:18ch}
.eb-hero2 p{font-size:16px;color:var(--body);max-width:54ch;margin-top:16px}
.eb-hero2 .pic{position:relative;background:#241c14 center/cover}
.eb-hero2 .pic:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(239,233,221,.55),rgba(20,17,13,.12) 42%)}
@media(max-width:920px){.eb-hero2{grid-template-columns:1fr}.eb-hero2 .in{padding:44px 22px 30px;margin:0}.eb-hero2 .pic{min-height:220px}}
