/* Chester A. Hicks, v3
   Layout idea: an author's house style. Serif display type, generous space, deep bands that frame
   the portrait and the books, and real-looking 3D books on a shelf. Two palettes share one system. */
:root {
  /* Classic: ivory, burgundy, antique gold */
  --bg: #fbf7f0;
  --bg-alt: #f3ece0;
  --ink: #1f1a17;
  --muted: #5d5550;
  --line: #e4d9c6;
  --accent: #7a1f2b;
  --accent-ink: #ffffff;
  --gold: #b08d57;
  --deep: #241619;
  --deep-ink: #f6efe4;
  --deep-muted: #cdbfae;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --measure: 64ch;
  --radius: 2px;
  color-scheme: light;
}
/* Modern: charcoal, white, cardinal red (matches his promo card) */
:root[data-palette="modern"] {
  --bg: #ffffff;
  --bg-alt: #f4f4f2;
  --ink: #121212;
  --muted: #55575c;
  --line: #e3e3e0;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --gold: #c8102e;
  --deep: #141414;
  --deep-ink: #ffffff;
  --deep-muted: #b9b9b9;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.1875rem; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.prose { max-width: var(--measure); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 50; }

.eyebrow { font-family: var(--ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.deep .eyebrow { color: var(--gold); }
.lede { font-size: 1.3rem; color: var(--muted); }
.rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 22px 0; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ui); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 16px 28px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: var(--radius); transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.deep .btn.ghost { color: var(--deep-ink); }
.deep .btn.ghost:hover { background: var(--deep-ink); color: var(--deep); }
.deep .btn:hover { background: var(--deep-ink); border-color: var(--deep-ink); color: var(--deep); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mono { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--accent); background: var(--bg); }
.brand-name { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.brand-name small { display: block; font-family: var(--ui); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { font-family: var(--ui); font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: 0.82rem; color: var(--accent-ink); border-bottom: 1px solid var(--accent); }
.nav .btn:hover { color: #fff; }
.menu-btn { display: none; font-family: var(--ui); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); }

/* Deep bands */
.deep { background: var(--deep); color: var(--deep-ink); }
.deep .lede, .deep .muted { color: var(--deep-muted); }
.deep a:not(.btn) { color: var(--deep-ink); }

/* Hero */
.hero { padding-block: 88px 96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--deep-ink); }
.hero .lede { max-width: 34ch; font-size: 1.35rem; }
.hero-quote { margin-top: 34px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--deep-ink) 18%, transparent); font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--deep-muted); max-width: 44ch; }
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: 0; }
.frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); }

/* Sections */
.section { padding-block: 104px; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }

/* 3D books */
.book3d { perspective: 1400px; display: block; }
.book3d .b { position: relative; transform-style: preserve-3d; transform: rotateY(-22deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); box-shadow: 24px 26px 40px -10px rgb(0 0 0 / 0.45); }
.book3d .b::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 12px; background: linear-gradient(90deg, rgb(0 0 0 / .35), rgb(255 255 255 / .15) 60%, rgb(0 0 0 / .1)); z-index: 2; }
.book3d .b::after { content: ""; position: absolute; top: 3px; bottom: 3px; right: -16px; width: 16px; transform: rotateY(90deg); transform-origin: left; background: repeating-linear-gradient(0deg, #f7f2e8 0 2px, #e7dfcf 2px 3px); }
.book3d img, .book3d .tcover { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.book3d .tcover { display: flex; }
a.book3d:hover .b, .book3d:focus-visible .b { transform: rotateY(-6deg) translateY(-8px); }
.tcover { background: #10203f; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 16% 12%; text-align: center; border: 1px solid #d8b45a; outline: 1px solid #d8b45a; outline-offset: -10px; }
.tcover .t { font-family: "Cinzel", Georgia, serif; font-weight: 700; color: #d8b45a; font-size: clamp(1.1rem, 2.6vw, 2rem); line-height: 1.15; }
.tcover .a { font-family: "Cinzel", Georgia, serif; letter-spacing: .08em; font-size: .8rem; }
.tcover .n { font-family: var(--body); font-size: .72rem; opacity: .7; font-style: italic; margin-top: 4px; }

/* Featured book */
.feature { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 88px; align-items: center; }
.questions { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 4px; counter-reset: q; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.7rem; line-height: 1.2; }
.questions li::before { content: counter(q, decimal-leading-zero); font-family: var(--ui); font-weight: 700; font-size: .85rem; letter-spacing: .12em; color: var(--gold); }

/* Shelf */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; align-items: end; padding-bottom: 34px; position: relative; }
.shelf::after { content: ""; position: absolute; left: -24px; right: -24px; bottom: 0; height: 14px; background: linear-gradient(var(--line), color-mix(in srgb, var(--line) 50%, var(--ink))); box-shadow: 0 14px 24px -12px rgb(0 0 0 / .35); }
.shelf-item { display: grid; gap: 18px; text-decoration: none; color: var(--ink); }
.shelf-cap { padding-bottom: 28px; }
.shelf-cap h3 { font-size: 1.3rem; margin: 0 0 4px; }
.shelf-cap span { font-family: var(--ui); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Quote band */
.quote { padding-block: 110px; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.25; font-style: italic; }
.quote .mark { font-family: var(--display); font-size: 6rem; line-height: .5; color: var(--gold); display: block; margin-bottom: 18px; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-family: var(--ui); font-weight: 700; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

/* Speaking */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.topic { background: var(--bg); border: 1px solid var(--line); padding: 36px 32px; display: grid; gap: 10px; align-content: start; transition: transform .25s, box-shadow .25s; }
.topic:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgb(0 0 0 / .35); }
.topic .num { font-family: var(--ui); font-weight: 700; font-size: .8rem; letter-spacing: .18em; color: var(--gold); }
.topic h3 { margin: 0; }
.topic p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.speak-cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 32px; }
.speak-cta p { margin: 0; font-family: var(--display); font-size: 1.6rem; }

/* About teaser */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0 8px; }
.stat { border-top: 2px solid var(--gold); padding-top: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--ui); font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Newsletter */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signup { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.signup input { border-right: 0; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); font-size: 1rem; }

/* Forms */
form.contact { display: grid; gap: 20px; max-width: 680px; }
label { display: block; font-family: var(--ui); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1.1rem; padding: 15px 16px; border: 1px solid var(--line); background: #fff; color: #1f1a17; border-radius: var(--radius); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); }
textarea { min-height: 180px; }
.deep input { border-color: transparent; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 72px; align-items: start; }
.contact-card { background: var(--bg-alt); padding: 34px; border-top: 3px solid var(--gold); display: grid; gap: 18px; }
.contact-card h3 { margin: 0; }
.contact-card p { margin: 0; font-size: 1.05rem; }
.contact-card .k { font-family: var(--ui); font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; }

/* Page hero (inner pages) */
.page-hero { padding-block: 84px 72px; }
.page-hero h1 { color: var(--deep-ink); margin-bottom: 10px; }

/* Bio */
.bio { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 72px; align-items: start; }
.bio aside { position: sticky; top: 110px; display: grid; gap: 24px; }
.bio .prose p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 4.6rem; line-height: .82; padding: 8px 10px 0 0; color: var(--accent); }
.visit { background: var(--bg-alt); border-left: 3px solid var(--gold); padding: 24px 26px; font-size: 1.05rem; }
.visit h3 { font-size: 1.35rem; margin-bottom: 6px; }

/* Books index */
.books-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 72px; }
.book-row { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; text-decoration: none; color: var(--ink); }
.book-row h3 { margin: 0 0 8px; }
.book-row p { margin: 0 0 12px; color: var(--muted); font-size: 1.05rem; }

/* Footer */
.site-foot { background: var(--deep); color: var(--deep-muted); padding-block: 80px 36px; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.site-foot h4 { font-family: var(--ui); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot a { color: var(--deep-ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--deep-ink); }
.site-foot .brand-name { color: var(--deep-ink); }
.site-foot .mono { background: transparent; color: var(--gold); }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--deep-ink) 14%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--ui); font-size: .85rem; }

/* Per-book pages keep their cover colors */
.theme-fq     { --b-bg: #10203f; --b-ink: #ffffff; --b-head: #d8b45a; --b-acc: #d8b45a; --b-font: "Cinzel", Georgia, serif; }
.theme-sunday { --b-bg: #111111; --b-ink: #ffffff; --b-head: #ffffff; --b-acc: #c8101b; --b-font: "Anton", Impact, sans-serif; }
.theme-why    { --b-bg: #1f2c6b; --b-ink: #ffffff; --b-head: #ffffff; --b-acc: #e0353f; --b-font: "Oswald", "Arial Narrow", sans-serif; }
.theme-sweet  { --b-bg: #a81e17; --b-ink: #ffffff; --b-head: #f5c518; --b-acc: #fbe68a; --b-font: "Abril Fatface", Georgia, serif; }
.book-hero { background: var(--b-bg); color: var(--b-ink); padding-block: 88px; position: relative; overflow: hidden; }
.theme-why .book-hero { border-top: 18px solid #e0353f; box-shadow: inset 0 -18px 0 #ffffff; }
.theme-sunday .book-hero { background: linear-gradient(90deg, #111 0 50%, #1b1b1b 50%); }
.book-hero .wrap { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 80px; align-items: center; }
.book-hero .crumb { font-family: var(--ui); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--b-acc); text-decoration: none; }
.book-hero h1 { font-family: var(--b-font); color: var(--b-head); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin: 14px 0 22px; }
.theme-fq .book-hero h1 { font-weight: 700; }
.theme-sunday .book-hero h1, .theme-why .book-hero h1 { text-transform: uppercase; }
.book-hero .pull { font-family: var(--display); font-style: italic; font-size: 1.55rem; line-height: 1.35; border-left: 2px solid var(--b-acc); padding-left: 20px; margin: 0 0 16px; max-width: 40ch; }
.book-hero .questions li { border-color: rgb(255 255 255 / .18); font-size: 1.45rem; padding: 10px 0; }
.book-hero .questions li::before { color: var(--b-acc); }
.buy { margin-top: 28px; display: inline-grid; gap: 6px; padding: 22px 26px; background: #fff; color: #1f1a17; min-width: 300px; border-top: 4px solid var(--b-acc); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .5); }
.buy h2 { font-family: var(--ui); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 6px; color: #5d5550; }
.buy p { margin: 0; font-size: 1.05rem; }
.buy a { color: #7a1f2b; font-weight: 600; }
.buy .dets { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e4d9c6; font-size: .9rem; color: #5d5550; }
.book-body { padding-block: 88px; }
.book-body h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.excerpt { background: var(--bg-alt); padding: 44px 48px; border-left: 3px solid var(--gold); margin-top: 8px; }
.excerpt h3 { font-family: var(--ui); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.excerpt p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 4.2rem; line-height: .82; padding: 8px 10px 0 0; color: var(--accent); }
.toc { columns: 2 280px; column-gap: 48px; padding-left: 1.4em; font-size: 1.02rem; }
.toc li { break-inside: avoid; margin-bottom: 8px; }
.note { font-size: 1rem; color: var(--muted); font-style: italic; }

/* Preview-only palette switch */
.palette-switch { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; gap: 0; background: #fff; border: 1px solid #ccc; border-radius: 999px; padding: 4px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); font-family: var(--ui); }
.palette-switch button { font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border: 0; background: none; padding: 10px 16px; border-radius: 999px; cursor: pointer; color: #333; }
.palette-switch button[aria-pressed="true"] { background: #1f1a17; color: #fff; }

@media (max-width: 980px) {
  .hero .wrap, .feature, .about, .news, .contact-grid, .bio, .book-hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero .frame, .about .frame { max-width: 380px; }
  .shelf { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .shelf::after { display: none; }
  .topics { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .books-index { grid-template-columns: 1fr; }
  .bio aside { position: static; max-width: 420px; }
  .feature .book3d, .book-hero .book3d { max-width: 300px; }
  .section { padding-block: 76px; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .brand-name small { display: none; }
  .brand-name { font-size: 1.3rem; }
}
@media (max-width: 520px) {
  .shelf { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stat b { font-size: 2rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; }
  .signup input { border-right: 1px solid var(--line); }
  .book-row { grid-template-columns: 120px 1fr; gap: 22px; }
  .buy { min-width: 0; width: 100%; }
  .excerpt { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
