/* Frank S. Joseph — The Chicago Trilogy
 * Visual port of frankjoseph.com (Avada / Fusion Builder source).
 * Tokens audited from wp-content/uploads/fusion-styles/ + raw fusion shortcodes.
 */

:root {
  /* Avada palette */
  --c1: #ffffff;
  --c2: #f2f2f2;
  --c3: #efefef;
  --c4: #65bd7d;
  --c5: #bd5832;        /* primary brand orange */
  --c6: #434549;
  --c7: #212326;
  --c8: #141617;

  /* Semantic */
  --bg-page: var(--c3);
  --bg-content: var(--c1);
  --bg-header: var(--c5);
  --bg-cta: var(--c5);
  --bg-footer: var(--c7);
  --bg-copyright: var(--c8);

  --color-text: #000000;
  --color-heading: var(--c5);
  --color-link: var(--c8);
  --color-link-hover: #c48c62;
  --color-primary: var(--c5);
  --color-accent-green: var(--c4);
  --color-active-red: #aa1e1e;

  --color-header-text: #faffeb;
  --color-header-nav: #ffffff;

  --color-footer-link: rgba(255,255,255,0.8);
  --color-footer-text: rgba(255,255,255,0.6);

  /* Type */
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --font-button: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --size-body: 18px;
  --size-h1: 50px;
  --size-h2: 38px;
  --size-h3: 30px;
  --size-h4: 24px;
  --size-h5: 20px;
  --size-h6: 16px;

  --weight-body: 400;
  --weight-heading: 600;
  --weight-nav: 500;
  --weight-button: 700;

  --lh-body: 1.52;
  --lh-heading: 1.2;
  --ls-body: 0.015em;
  --ls-heading: -0.015em;

  /* Layout */
  --max-width: 1248px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* Avada default container background — applied per-section so the gradient resets at
   the top of each band (white → light gray, fresh each time). This matches the rendered
   source where every fusion_builder_container without an explicit bg gets
   `--awb-background-image: linear-gradient(180deg, var(--awb-color1) 0%, var(--awb-color2) 100%)`. */
.book-section,
.about-section,
.contact-section,
.character-band,
.reviews-section,
.video-section,
.cert-block,
.book-hero-cover-band,
.trilogy-archive,
.listicle,
.listicle-item-band,
.site-footer {
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--color-link-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--color-heading);
  margin: 0;
  /* Canonical Avada title shadow — extracted verbatim from inline element.style on the source site. */
  text-shadow: 2px 2px 5px rgba(189, 88, 50, 0.35);
}
/* Headings on dark / orange backgrounds: swap the orange shadow for a dark one so it stays visible. */
.hero-overlay h1,
.hero-overlay .h-sub,
.book-hero-pill h1,
.book-title-pill h2 {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
}
h1 { font-size: var(--size-h1); margin: 0.67em 0; }
h2 { font-size: var(--size-h2); margin: 0 0 1.1em; }
h3 { font-size: var(--size-h3); margin: 1em 0; }
h4 { font-size: var(--size-h4); margin: 1.33em 0; }
h5 { font-size: var(--size-h5); margin: 1.67em 0; }
h6 { font-size: var(--size-h6); margin: 2.33em 0; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid #d8d8d8; margin: 1em 0; }
em { font-style: italic; }

/* ----- Container + section grid utility ----- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.fw-section { padding: 0; }   /* fullwidth container (no padding unless specified inline) */
/* fw-row outdents by the column padding so first/last column inner edges align with .container content (both sit 24px from the viewport edge). */
.fw-row { display: flex; flex-wrap: wrap; max-width: var(--max-width); margin: 0 auto; padding: 0 calc(var(--gutter) - 18px); gap: 0; }
.fw-col { padding: 0 18px; }  /* gap between columns */
.col-1-1 { flex: 0 0 100%; max-width: 100%; }
.col-1-2 { flex: 0 0 50%; max-width: 50%; }
.col-1-3 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-2-3 { flex: 0 0 66.667%; max-width: 66.667%; }
.col-1-4 { flex: 0 0 25%; max-width: 25%; }
.col-3-4 { flex: 0 0 75%; max-width: 75%; }
.col-1-5 { flex: 0 0 20%; max-width: 20%; }
.col-2-5 { flex: 0 0 40%; max-width: 40%; }
.col-3-5 { flex: 0 0 60%; max-width: 60%; }
.col-1-6 { flex: 0 0 16.667%; max-width: 16.667%; }

.fw-row.align-center { align-items: center; }
.fw-row.align-stretch { align-items: stretch; }
.fw-row.justify-center { justify-content: center; }
.fw-row.justify-between { justify-content: space-between; }
.fw-row.justify-start { justify-content: flex-start; }

/* ----- Header ----- */
.site-header {
  background: var(--bg-header);
  color: var(--color-header-text);
  padding: 20px 0;
  position: relative;
  z-index: 100;
}
/* Tighter body line-height on every paragraph — matches the canonical body_typography-line-height: 1.52 exactly. */
p, li, blockquote, td, th { line-height: var(--lh-body); }

.site-header .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  color: var(--color-header-text);
  text-decoration: none;
  display: inline-block;
}
.brand-link:hover { color: var(--color-header-text); }
.brand-name {
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}
.brand-role {
  font-size: 16px;
  line-height: 1;
  margin: 5px 0 0;
  letter-spacing: 0.02em;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.main-nav li { position: relative; }
.main-nav a {
  color: var(--color-header-nav);
  text-decoration: none;
  font-size: var(--size-h6);
  font-weight: var(--weight-nav);
  letter-spacing: 0.015em;
  padding: 14px 25px;
  display: inline-block;
  transition: background .2s ease;
}
.main-nav a:hover,
.main-nav li.current > a {
  background: var(--color-active-red);
  color: #fff;
}
.main-nav li.has-children > a::after {
  content: '';
  display: inline-block;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-left: 8px;
  transform: translateY(2px);
}
.main-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-header);
  display: none;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 10;
}
.main-nav .submenu li { display: block; }
.main-nav .submenu a {
  padding: 12px 20px;
  display: block;
  font-size: 15px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.main-nav li.has-children:hover > .submenu,
.main-nav li.has-children:focus-within > .submenu {
  display: flex;
}
.nav-toggle {
  display: none;
  background: #fff;
  border: 2px solid #fff;
  color: var(--bg-header);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--color-active-red);
  border-color: var(--color-active-red);
  color: #fff;
}

/* ----- Hero (home + book detail pages, riots background) ----- */
/* Original: linear-gradient(180deg, rgba(20,22,23,0.74) 0%, rgba(250,255,235,0) 100%) over riots_background-scaled.webp */
.fw-hero {
  background:
    linear-gradient(180deg, rgba(20,22,23,0.74) 0%, rgba(250,255,235,0) 100%),
    url('/images/riots_background-scaled.webp') center/cover no-repeat;
  background-color: #1a0c08;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  min-height: 420px;
}
.fw-hero .fw-row {
  width: 100%;
  align-items: center;
  margin: 0 auto;
  max-width: var(--max-width);
}
.hero-overlay {
  background: rgba(189, 88, 50, 0.86);
  padding: 25px 25px;
  color: #fff;
  margin: 40px 0;
}
.hero-overlay h1 {
  color: #fff;
  font-size: var(--size-h1);
  line-height: 1;
  margin: 0 0 10px;
  text-align: left;
}
.hero-overlay h2,
.hero-overlay .h-sub {
  color: #fff;
  font-size: var(--size-h3);
  font-weight: var(--weight-heading);
  line-height: 1.2;
  margin: 0;
  text-align: left;
}
.hero-side {
  background: var(--c3);
  padding: 25px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  margin: 40px 0;
  box-shadow: 1px 1px 20px 11px var(--c2);
}
.hero-side img { max-width: 100%; height: auto; }

/* Book detail page hero — orange title pill + white card */
.book-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image: url('/images/riots_background-scaled.webp');
  background-size: cover;
  background-position: center;
  min-height: 460px;
  padding: 50px 0;
}
/* Plain variant: no background image (To Walk Humbly hero in source has no bg). */
.book-hero--plain {
  background-image: none;
  background-color: transparent;
  min-height: 0;
}

/* When the hero has an embedded video below the card, let the columns top-align
   so the white card stays compact at the top of the row and the cover image can
   overhang downward over the video block. */
.book-hero--with-video .fw-row { align-items: flex-start; }
.book-hero--with-video .book-hero-video {
  margin-top: 18px;
  padding: 0 8px;
}
.book-hero--with-video .book-hero-video .video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0 0 50px 50px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.book-hero--with-video .book-hero-video--4-3 .video-wrap {
  aspect-ratio: 4 / 3;
}
.book-hero--with-video .book-hero-video .video-wrap iframe,
.book-hero--with-video .book-hero-video .video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center center;
}

/* Custom play-button overlay on the HTML5 video poster.
   Hidden once the wrapper picks up .is-playing (added by js/main.js on first play). */
.book-hero--with-video .book-hero-video .video-wrap.has-poster {
  cursor: pointer;
}
.book-hero--with-video .book-hero-video .video-wrap.has-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 2;
  pointer-events: none;
  transition: background .25s ease;
}
.book-hero--with-video .book-hero-video .video-wrap.has-poster::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background:
    /* play triangle */
    linear-gradient(135deg, transparent 36%, #fff 36% 64%, transparent 64%) center/24px 24px no-repeat,
    rgba(189, 88, 50, 0.92);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 3;
  pointer-events: none;
  transition: transform .2s ease, background-color .2s ease;
}
/* Cleaner play triangle via clip-path */
.book-hero--with-video .book-hero-video .video-wrap.has-poster::after {
  background: rgba(189, 88, 50, 0.92);
}
.book-hero--with-video .book-hero-video .video-wrap.has-poster .play-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -10px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
  z-index: 4;
  pointer-events: none;
}
.book-hero--with-video .book-hero-video .video-wrap.has-poster:hover::before { background: rgba(0,0,0,0.32); }
.book-hero--with-video .book-hero-video .video-wrap.has-poster:hover::after { transform: scale(1.08); }
.book-hero--with-video .book-hero-video .video-wrap.is-playing::before,
.book-hero--with-video .book-hero-video .video-wrap.is-playing::after,
.book-hero--with-video .book-hero-video .video-wrap.is-playing .play-glyph {
  display: none;
}
.book-hero .fw-row { width: 100%; align-items: center; }
.book-hero-card {
  background: var(--c1);
  padding: 20px 20px 5px 20px;
}
.book-hero-pill {
  background: #bd5832;
  padding: 12px 10px 15px 10px;
  text-align: center;
}
.book-hero-pill h1 {
  color: #fff;
  margin: 0;
  font-size: 42px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.book-hero-pill .pill-sub {
  margin: 8px 0 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
}
.book-hero-pill .pill-sub p { margin: 0.3em 0; }
.book-hero-pill .pill-sub ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.book-hero-buy {
  padding: 16px 0;
  text-align: center;
}
.book-hero-buy .btn { width: 100%; max-width: 280px; }
.book-hero-retailers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  padding: 22px 8px;
  align-items: center;
  justify-items: center;
}
.book-hero-retailers a {
  display: inline-block;
  transition: opacity .2s ease, transform .15s ease;
}
.book-hero-retailers a:hover { opacity: 0.85; transform: translateY(-1px); }
.book-hero-retailers img { max-height: 56px; width: auto; }

/* To Do Justice cover — canonical Avada glow: light-gray halo around the cover. */
.tdj-cover {
  padding: 0;
  background: transparent;
}
.tdj-cover img {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 1px 1px 20px 11px var(--c2);
}
.book-hero-cover {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-hero-cover.is-gray { background: var(--c2); }
.book-hero-cover img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
}

/* ----- Book card (home page) — inherits body gradient -----
   Source default per --container_padding_default_top/bottom: 75px / 75px. */
.book-section {
  /* gradient set by the multi-selector rule above */
  padding: 75px 0;
}
.book-section + .book-section { border-top: 1px solid #ececec; }
.book-section .fw-row { align-items: flex-start; }
.book-title-pill {
  background: var(--c5);
  padding: 10px 30px;
  margin-bottom: 18px;
}
.book-title-pill h2 {
  color: #fff;
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.01em;
}
.book-card-body { padding-top: 0; }
.book-card-body h3 {
  font-size: var(--size-h3);
  color: var(--c5);
  margin: 0 0 0.6em;
}
.book-card-body h3 em { font-style: italic; font-weight: 500; }
.book-card-body p { margin: 0 0 1em; }
/* Home-page review lists (To Walk Humbly, To Do Justice book sections).
   Source pattern: <ul><li><em>"quote"</em> – Reviewer</li></ul>. No bullets — a clean
   spaced-out review list with italic quotes and a regular-weight attribution. */
.book-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.book-card-body ul li {
  position: relative;
  margin: 0 0 0.9em;
  padding: 0 0 0.9em 0;
  line-height: 1.45;
  border-bottom: 1px solid rgba(189, 88, 50, 0.18);
}
.book-card-body ul li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.book-card-body ul li em {
  font-style: italic;
}
.book-card-body .citation {
  text-align: right;
  font-size: 15px;
  color: var(--c6);
  font-style: italic;
  margin: 0.2em 0 1em;
}
.book-card-body .publishing-note {
  color: var(--c5);
  font-style: italic;
}
.book-card-body .availability {
  color: var(--c5);
  font-style: italic;
}
.book-card-cover {
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.book-card-cover img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  box-shadow: 0 16px 38px rgba(0,0,0,0.22);
}
.book-card-cover-wrap { position: relative; width: 100%; }
.book-card-cover-wrap .gold-overlap {
  margin: -28px auto 0;
  width: 92%;
  background: linear-gradient(180deg, #f5d97a 0%, #c9a13d 100%);
  border: 1px solid #b48a1f;
  padding: 14px 15px;
  font-size: 0.95em;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.book-card-cover-wrap .gold-overlap p {
  margin: 0;
  font-weight: 700;
  color: #4a3208;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* Remove the row gutters around the cover column so the image is flush */
.book-section .fw-row > .fw-col.book-card-cover-col { padding: 0; }

hr.fusion-separator {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

/* ----- Generic CTA button (replaces fusion_button) ----- */
.btn,
.fusion-button,
button.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-weight: var(--weight-button);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(to top, var(--c1), var(--c2));
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 12px 28px;
  border-radius: 35px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .15s ease;
  text-align: center;
}
.btn:hover { background: #fff; color: var(--color-primary); transform: translateY(-1px); }
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover { background: #a44a28; color: #fff; }

/* ----- Character meets (book detail pages) ----- */
/* Source rows have varying column ratios per character (1/6, 1/5, 1/4, 1/3, 2/5).
   Container default padding per Fusion theme: 75px top/bottom.
   Some source rows override top with ~35px (Steve, Sass). */
.character-band {
  /* gradient set by the multi-selector rule above */
  padding: 35px 0;
}
/* Default character-band layout: text and image both vertically centered. */
.character-band .fw-row { align-items: center; }
.character-band .fw-col { display: flex; flex-direction: column; justify-content: center; }
.character-band .img-col { align-items: center; }
.character-band .img-col img { display: block; }

/* Portrait variant (1/6 or 1/5 img cols — Steve, Sass, Pinkie, Mollie): image runs to the
   bottom edge of the section, overlapping into the next band. Text remains centered. */
.character-band.is-portrait .fw-row { align-items: stretch; }
.character-band.is-portrait .img-col {
  justify-content: flex-end;
}
.character-band.is-portrait .img-col img {
  margin-bottom: -35px;
}
.character-band h3 {
  font-size: var(--size-h3);
  margin: 0 0 0.5em;
  color: var(--c5);
}
.character-band p { margin: 0; line-height: var(--lh-body); color: #1a1a1a; }
.character-band .img-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- Rave Reviews grid (book detail pages) ----- */
/* Each card is the source's 1_2 column with bg awb-color5 (orange), white italic body,
   light-gray right-aligned attribution. Spacing matches the source padding (22px all sides). */
/* ----- Rave Reviews grid (book detail pages) -----
   Source defaults: 75px container padding, 22px card padding, asymmetric border-radius
   (0 0 50px 0 — only bottom-right corner is curved), 20px bottom margin per row,
   ~7.68% horizontal gap between cards (calc-derived). */
.reviews-section {
  /* gradient set by the multi-selector rule above */
  padding: 75px 0;
}
.reviews-section > .container > h2 {
  text-align: left;
  margin: 0 0 1em;
  font-size: var(--size-h2);
  color: var(--c5);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4%;
  row-gap: 20px;
}
.review-card {
  background: var(--c5);
  color: #fff;
  padding: 22px;
  border-radius: 0 0 50px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-card .quote { flex: 1; }
.review-card .quote p {
  margin: 0 0 0.6em;
  color: #fff;
  line-height: 1.3;
  font-style: italic;
}
.review-card .quote p:last-child { margin-bottom: 0; }
.review-card .cite {
  text-align: right;
  font-size: 15px;
  color: var(--c3);
  margin-top: 14px;
  font-style: normal;
}
.review-card .cite p {
  color: var(--c3);
  margin: 0;
  font-style: normal;
  line-height: 1.4;
}
.review-card a { color: #fff; text-decoration: underline; }
.review-card i,
.review-card em { font-style: italic; }

/* Goodreads widget card fallback */
.goodreads-widget {
  background: var(--c5);
  color: #fff;
  padding: 22px;
  text-align: center;
  font-style: italic;
}

/* ----- Video / YouTube section ----- */
.video-section {
  /* gradient set by the multi-selector rule above */
  padding: 75px 0;
}
.video-section .video-wrap {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
}
.video-section .video-wrap iframe,
.video-section .video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cert-block {
  padding: 0 16px;
  text-align: center;
}
.cert-block img { margin: 0 auto 12px; max-width: 100%; height: auto; }

/* ----- Subscribe band (white-to-orange gradient, orange heading) ----- */
/* Original: bg awb-color5 with linear-gradient(180deg, var(--awb-color1) 0%, rgba(255,255,255,0) 100%) */
.subscribe-band {
  background:
    linear-gradient(180deg, var(--c1) 0%, rgba(255,255,255,0) 100%),
    var(--bg-cta);
  text-align: center;
  padding: 50px 24px 70px;
}
.subscribe-band h2 {
  color: var(--c5);
  margin: 0 0 28px;
  font-size: var(--size-h2);
  font-weight: 700;
}
.subscribe-band form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.subscribe-band input[type="text"],
.subscribe-band input[type="email"] {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  background: #fff;
  color: var(--c8);
  width: 100%;
}
.subscribe-band input::placeholder { color: var(--c7); opacity: 1; }
.subscribe-band input:focus { outline: 2px solid var(--c5); outline-offset: 2px; }
.subscribe-band button {
  font-family: var(--font-button);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #fff;
  color: var(--c5);
  border: 1px solid #fff;
  padding: 14px 44px;
  border-radius: 35px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .15s ease;
  text-transform: none;
  font-size: 17px;
  margin-top: 8px;
}
.subscribe-band button:hover { background: var(--c8); color: #fff; transform: translateY(-1px); }
.subscribe-band .form-msg {
  display: none;
  width: 100%;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  background: rgba(0,0,0,0.18);
  padding: 8px 12px;
  border-radius: 4px;
}
.subscribe-band .form-msg.ok,
.subscribe-band .form-msg.err { display: block; }
.subscribe-band .form-msg.ok { background: rgba(255,255,255,0.95); color: #1b5e20; }
.subscribe-band .form-msg.err { background: rgba(0,0,0,0.32); color: #ffeae0; }

/* ----- Footer ----- */
/* Source: dark text on light gradient, all links inherit body text color (no orange,
   no underline), publisher line bold, address stacked tight, social icons plain
   monochrome glyphs in a row (no colored circles), generous vertical rhythm between
   paragraph blocks. */
.site-footer {
  color: var(--c8);
  padding: 75px 0 40px;
  text-align: center;
  font-size: var(--size-body);
}
.site-footer .container { max-width: 820px; }
.site-footer p { margin: 0 0 24px; line-height: 1.4; }
.site-footer p:last-of-type { margin-bottom: 0; }
.site-footer p.publisher { font-weight: 700; }
.site-footer p.address { margin-bottom: 24px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--c5); }
.site-footer p.footer-links {
  margin: 24px 0 12px;
  font-size: 15px;
}
.site-footer p.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(20, 22, 23, 0.3);
}
.site-footer p.footer-links a:hover { color: var(--c5); text-decoration-color: currentColor; }

.footer-socials {
  display: inline-flex;
  gap: 22px;
  margin: 8px 0 0;
  align-items: center;
  justify-content: center;
}
.footer-socials a {
  display: inline-grid;
  place-items: center;
  color: #6b7077;
  background: transparent;
  transition: color .2s ease, transform .15s ease;
  padding: 4px;
}
.footer-socials a:hover { color: var(--c8); transform: translateY(-1px); }
.footer-socials svg { width: 22px; height: 22px; display: block; }

/* ----- About + Contact + Books pages ----- */
.about-section {
  /* gradient set by the multi-selector rule above */
  padding: 75px 0;
}
.about-section .fw-row { align-items: center; }
.about-section h1 { font-size: var(--size-h1); margin: 0 0 0.2em; color: var(--c5); }
.about-section h2 { font-size: var(--size-h2); margin: 0 0 0.6em; color: var(--c5); }
.about-section p { line-height: var(--lh-body); }
.about-section .author-photo-col img { width: 100%; height: auto; }
.about-section .photo-credit { text-align: center; font-size: 14px; color: #777; margin-top: 8px; }

.contact-section {
  /* gradient set by the multi-selector rule above */
  padding: 75px 0;
}
.contact-section h1 { color: var(--c5); margin: 0 0 0.4em; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { font-size: 14px; font-weight: 600; color: #333; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fafafa;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
/* Honeypot field — hidden globally, never visible to humans */
.hp,
input[name="leit_hp"],
input[name="leit_company_url"] {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.contact-form .form-msg { display: none; }
.contact-form .form-msg.ok,
.contact-form .form-msg.err { display: block; padding: 10px 14px; border-radius: 4px; }
.contact-form .form-msg.ok { background: #e8f5e9; color: #1b5e20; }
.contact-form .form-msg.err { background: #ffebee; color: #b71c1c; }
.podmatch-card {
  display: block;
  margin-top: 20px;
  max-width: 350px;
  text-decoration: none;
  color: inherit;
}
.podmatch-card .pm-row {
  display: flex;
  align-items: center;
  padding: 15px;
  border: solid 1px #ccc;
  border-radius: 10px;
  background: #fff;
}
.podmatch-card .pm-photo {
  flex-shrink: 0;
  margin-right: 15px;
  padding: 2px;
  background: linear-gradient(225deg, #00C2CB 0%, #329ADC 50%, #6F69F2 100%);
}
.podmatch-card .pm-photo img { height: 85px; box-shadow: 0 0 16px 0 #0091FF; }
.podmatch-card .pm-text { text-align: left; white-space: nowrap; overflow: hidden; }
.podmatch-card .pm-logo { width: 80px; height: auto; display: block; margin-bottom: 3px; }
.podmatch-card .pm-name { font-size: 16px; font-weight: 600; display: block; }
.podmatch-card .pm-cta { font-size: 12px; display: block; }

/* ----- Page title bar (about/contact intro chrome) ----- */
.page-title-bar { display: none; } /* original site has no chrome — page H1 sits inline */

/* ----- Listicle hero (Best Books About Chicago) -----
   Source post_88:
   - Container: background_image=chicago_skyline.webp, padding_bottom=200px (default top=75)
   - Column 3_4 (75% width), padding 35 all sides
   - Column bg: linear-gradient(270deg, rgba(255,255,255,0.86) 0%, #ffffff 100%)  -- semi-transparent on the left, fully white on the right
   - H1 orange, H2 italic orange, body dark
*/
.listicle-hero {
  background-image: url('/images/chicago_skyline.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 75px 0 200px;
}
.listicle-hero .fw-row { width: 100%; max-width: var(--max-width); margin: 0 auto; }
.listicle-hero-card {
  background: linear-gradient(270deg, rgba(255,255,255,0.86) 0%, #ffffff 100%);
  padding: 35px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}
.listicle-hero h1 {
  color: var(--c5);
  margin: 0 0 0.3em;
  font-size: var(--size-h1);
  line-height: 1;
}
.listicle-hero h2 {
  color: var(--c5);
  margin: 0 0 0.8em;
  font-size: var(--size-h2);
  font-weight: 500;
}
.listicle-hero h2 em { font-style: italic; }
.listicle-hero p {
  color: var(--c8);
  line-height: 1.3;
  font-size: 18px;
  margin: 0;
}

.listicle {
  /* gradient set by the multi-selector rule above */
  padding: 75px 0;
}
.listicle .container { max-width: var(--max-width); }
.listicle .item { margin: 0 0 50px; }
.listicle .item h2 {
  font-size: 30px;
  margin: 0 0 0.6em;
  color: var(--c5);
}
.listicle .item h2 em { font-style: italic; font-weight: 500; }
.listicle .item p { line-height: var(--lh-body); color: #1a1a1a; }
.listicle .item a { color: var(--c5); text-decoration: underline; }

/* Chicago essay — each item is its own band (matches Fusion's one-container-per-item structure) */
.listicle-item-band {
  /* gradient set by the multi-selector rule above */
  padding: 75px 0;
}
.listicle-item-band .container { max-width: var(--max-width); }
.listicle-item-band h2 {
  font-size: 30px;
  margin: 0 0 0.6em;
  color: var(--c5);
  line-height: 1.2;
}
.listicle-item-band h2 em { font-style: italic; font-weight: 500; }
.listicle-item-band p { line-height: var(--lh-body); color: #1a1a1a; margin: 0 0 1em; }
.listicle-item-band a { color: var(--c5); text-decoration: underline; }

/* ----- Trilogy archive (/books/) ----- */
.trilogy-archive {
  /* gradient set by the multi-selector rule above */
  padding: 75px 0;
  text-align: center;
}
.trilogy-archive h2 {
  color: var(--c5);
  margin: 0;
  font-size: var(--size-h2);
}
.trilogy-archive .by-line { font-size: 24px; font-weight: 400; color: #333; margin: 8px 0 1em; }
.trilogy-archive .intro { max-width: 760px; margin: 0 auto 2em; color: #222; line-height: var(--lh-body); }
.trilogy-archive .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 30px;
}
.trilogy-archive .card a { text-decoration: none; color: var(--c5); display: block; }
.trilogy-archive .card img {
  max-width: 275px;
  margin: 0 auto 18px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.2);
  transition: transform .35s ease;
}
.trilogy-archive .card a:hover img { transform: translateY(-6px); }
.trilogy-archive .card h3 {
  font-size: 26px;
  color: var(--c5);
  margin: 0;
}

/* ----- Go to top button ----- */
.totop {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c5);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .25s ease;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: #a44a28; }
.totop svg { width: 18px; height: 18px; }

/* ----- Animations (visibility-gated) ----- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="200"] { transition-delay: .2s; }
.fade-in[data-delay="400"] { transition-delay: .4s; }
.fade-in[data-delay="600"] { transition-delay: .6s; }
.slide-right { opacity: 0; transform: translateX(30px); transition: opacity .8s ease, transform .8s ease; }
.slide-right.is-visible { opacity: 1; transform: translateX(0); }
.slide-left { opacity: 0; transform: translateX(-30px); transition: opacity .8s ease, transform .8s ease; }
.slide-left.is-visible { opacity: 1; transform: translateX(0); }
.slide-up { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.slide-up.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .slide-right, .slide-left, .slide-up {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .totop { transition: opacity .15s ease, visibility .15s ease; }
}

/* ===== Responsive =====
   Breakpoints:
   - 1024px : large tablet / small laptop
   - 800px  : mobile-nav switchover (matches Avada custom_breakpoint)
   - 768px  : single-column stack for most content rows
   - 480px  : tighter spacing + smaller type for phones
*/

@media (max-width: 1024px) {
  :root { --size-h1: 42px; --size-h2: 32px; --size-h3: 26px; }
  .book-hero-pill h1 { font-size: 34px; }
  /* trilogy archive: keep 3-col but tighten gap */
  .trilogy-archive .grid { gap: 28px; }
  /* TDJ cover halo can clip on tablet edges */
  .tdj-cover img { box-shadow: 1px 1px 16px 8px var(--c2); }
  /* book hero card slightly smaller padding */
  .book-hero-card { padding: 18px 18px 5px 18px; }
  .book-hero-pill { padding: 10px 12px 12px 12px; }
  /* video and cover both shrink */
  .book-hero-retailers img { max-height: 48px; }
  /* contact + about: keep 2 col on tablet but tighter */
  .about-section .fw-row, .contact-section .fw-row { gap: 0; }
}

/* Mobile-nav switchover. Avada's nav has data-breakpoint="640" with custom_breakpoint="800"
   so the hamburger appears under 800px. */
@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-header);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
  }
  .main-nav.is-open {
    max-height: 80vh;
    opacity: 1;
    transform: translateY(0);
  }
  .main-nav ul { flex-direction: column; }
  .main-nav a {
    display: block;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav li.has-children > a::after {
    float: right;
    margin-top: 8px;
    transition: transform .25s ease;
  }
  .main-nav li.has-children.is-expanded > a::after { transform: translateY(2px) rotate(180deg); }
  .main-nav .submenu {
    position: static;
    display: flex;
    box-shadow: none;
    background: rgba(0,0,0,0.18);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .main-nav li.has-children.is-expanded > .submenu {
    max-height: 50vh;
    opacity: 1;
  }
  .main-nav .submenu a { padding-left: 40px; font-size: 14px; }
  .site-header .container { align-items: center; }
}

@media (max-width: 768px) {
  :root { --size-h1: 34px; --size-h2: 26px; --size-h3: 22px; --size-body: 17px; }

  /* All multi-column rows stack vertically. */
  .col-1-2, .col-1-3, .col-2-3, .col-1-4, .col-3-4, .col-1-5, .col-2-5, .col-3-5, .col-1-6 {
    flex: 0 0 100%; max-width: 100%;
  }
  .fw-row > .fw-col { padding: 10px 16px; }
  .fw-row { padding: 0 16px; }

  /* Section padding scales down — 75px is too tall on phones */
  .book-section,
  .about-section,
  .contact-section,
  .character-band,
  .reviews-section,
  .video-section,
  .trilogy-archive,
  .listicle,
  .listicle-item-band,
  .site-footer { padding-top: 48px; padding-bottom: 48px; }

  /* Home hero: stack overlay above the chicago_trilogy graphic */
  .fw-hero { min-height: auto; padding: 30px 0; }
  .hero-side, .hero-overlay { margin: 0; }
  .hero-overlay { padding: 22px; }
  .hero-side { padding: 30px 24px; box-shadow: none; }

  /* Homepage book sections: hoist cover image up so it sits right after the h2 pill,
     and stretch Explore Book CTA to full width. */
  .book-section .fw-col { display: contents; }
  .book-section .book-title-pill { order: 1; }
  .book-section .book-card-cover { order: 2; margin: 18px 0; }
  .book-section .book-card-body { order: 3; }
  .book-section .book-card-body .btn { display: block; width: 100%; text-align: center; }

  /* Reviews: single column */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Book detail retailers: stay 2 cols, but the buy buttons get full width */
  .book-hero-retailers { grid-template-columns: 1fr 1fr; padding: 16px 0; }
  .book-hero-retailers img { max-height: 40px; }

  /* Trilogy archive: single column */
  .trilogy-archive .grid { grid-template-columns: 1fr; gap: 40px; }

  /* Hero stacks: cover should come AFTER the text content (visual hierarchy) */
  .book-hero { padding: 30px 0; min-height: auto; background-image: none; }
  .book-hero--with-video .fw-row { align-items: stretch; }
  .book-hero--with-video .book-hero-video { padding: 0; }
  /* On mobile, cover slides UNDER the title card, video sits between */
  .book-hero-cover { padding: 16px 24px; }
  .book-hero-cover img { max-width: 320px; margin: 0 auto; }
  .tdj-cover img { box-shadow: 1px 1px 12px 6px var(--c2); max-width: 320px; margin: 0 auto; }

  /* Listicle hero — shorter background hero on small viewports */
  .listicle-hero { padding: 50px 0 80px; }
  .listicle-hero p { font-size: 17px; }

  /* Character bands: image stacks above text, restore breathing room */
  .character-band .fw-row { align-items: stretch; }
  .character-band .img-col { padding: 0 16px 12px; }
  .character-band .img-col img { max-width: 320px; margin: 0 auto; }
  .character-band.is-portrait .img-col img { margin-bottom: 0; }
  .character-band.is-portrait .img-col { justify-content: center; }

  /* About: image above text */
  .about-section .fw-row { align-items: stretch; }
  .about-section .author-photo-col { padding-bottom: 24px; }

  /* Contact: PodMatch card centered, form below */
  .contact-page .row, .contact-section .fw-row { gap: 24px; }
  .podmatch-card { margin-left: auto; margin-right: auto; }

  /* TDJ video + cert row stacks */
  .video-section .fw-row { align-items: stretch; }
  .cert-block { padding-top: 24px; text-align: center; }

  /* Site header — tighter brand + nav button */
  .site-header { padding: 14px 0; }
  .brand-name { font-size: 22px; }
  .brand-role { font-size: 13px; }

  /* Subscribe form — single column already styled below 640px in earlier rule, mirror at 768 */
  .subscribe-band { padding: 40px 18px 50px; }
  .subscribe-band form { gap: 12px; }
  .subscribe-band button { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  :root { --size-h1: 28px; --size-h2: 22px; --size-h3: 20px; }

  /* Tighter sections on phones */
  .book-section,
  .about-section,
  .contact-section,
  .character-band,
  .reviews-section,
  .video-section,
  .trilogy-archive,
  .listicle,
  .listicle-item-band,
  .site-footer { padding-top: 36px; padding-bottom: 36px; }

  /* Single-column retailer logos on tiny screens */
  .book-hero-retailers { grid-template-columns: 1fr; padding: 12px 0; }
  .book-hero-retailers img { max-height: 44px; }

  /* Smaller play button on small video */
  .book-hero--with-video .book-hero-video .video-wrap.has-poster::after { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .book-hero--with-video .book-hero-video .video-wrap.has-poster .play-glyph { border-width: 10px 0 10px 16px; margin: -10px 0 0 -7px; }

  /* Trim trilogy cover halo */
  .trilogy-archive .card img { max-width: 240px; }

  /* Footer */
  .site-footer { padding-bottom: 30px; font-size: 16px; }
  .footer-socials { gap: 18px; }

  /* Contact form padding */
  .contact-form input, .contact-form textarea { font-size: 16px; padding: 11px 12px; }
}

/* Touch-target enforcement: any tap area at least 44x44 (WCAG 2.2 AA) */
@media (pointer: coarse) {
  .main-nav a, .footer-socials a, .totop, .nav-toggle, .btn, .book-hero-retailers a {
    min-height: 44px;
  }
  .totop { width: 48px; height: 48px; }
}
