/**
 * Flemming House Press edition: design + motion layer (1.4.0).
 *
 * Loaded after style.css. The identity pairs midnight navy with
 * antique gold: near-black cloth tones, serif display caps,
 * italic serif kickers, hairline gold rules, and gold diamond
 * dividers in a title-plate composition.
 *
 * Type: Instrument Serif (display, regular + italic accents) set over
 * Manrope (200-800) for text, UI, navigation, and buttons.
 *
 * Fail-safe: nothing in this file hides content. Animation start
 * states are applied by flemming.js at runtime only (gsap.from).
 *
 * Contrast: small gold text on light backgrounds always uses
 * --ap-gold-text (#7D5F2B), the gold that meets WCAG AA at body size;
 * the brighter golds are reserved for dark backgrounds, large
 * display type, borders, and rules.
 */

/* ---------------------------------------------------------------- tokens */
:root {
  --ap-navy: #081426;
  --ap-navy-panel: #0B1D33;
  --ap-navy-raised: #10283F;
  --ap-navy-deep: #050D18;
  --ap-navy-ink: #04090F;
  --ap-cloth: #121317;
  --ap-gold: #C6A15B;
  --ap-gold-antique: #D8B878;
  --ap-gold-bright: #E3C878;
  --ap-gold-deep: #9A7B3F;
  --ap-gold-text: #7D5F2B;
  --ap-gold-grad: linear-gradient(90deg, transparent, #9A7B3F 18%, #E3C878 50%, #9A7B3F 82%, transparent);
  --ap-ivory: #F7F2E7;
  --ap-paper: #FBF8F1;
  --ap-ivory-dim: #E9DFCA;
  --ap-red-deep: #5F0D13;
  --ap-space-1: 8px;
  --ap-space-2: 16px;
  --ap-space-3: 24px;
  --ap-space-4: 40px;
  --ap-space-5: 64px;
  --ap-space-6: 96px;
  --ap-space-7: 128px;
}

::selection { background: var(--ap-gold); color: var(--ap-navy-ink); }

:focus-visible {
  outline: 2px solid var(--ap-gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible,
.pillars :focus-visible, .featured-book :focus-visible, .newsletter :focus-visible,
.ap-mobile-menu :focus-visible, .error-hero :focus-visible, .band-navy :focus-visible,
.film-band :focus-visible, .events-strip :focus-visible {
  outline-color: var(--ap-gold-bright);
}

/* ------------------------------------------------------------- scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--ap-gold) var(--ap-navy-deep);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ap-navy-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--ap-gold-antique), var(--ap-gold));
  border: 2px solid var(--ap-navy-deep);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ap-gold-bright); }

/* Lenis recommended base styles (active only when Lenis runs) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.ap-menu-open { overflow: hidden; }

/* ------------------------------------------------------------ typography */
body { font-family: 'Manrope', sans-serif; }
h1, h2, h3, h4, .site-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  /* Instrument Serif never carries letter-spacing; declared
     explicitly so no inherited value can reintroduce it. Manrope
     kickers and labels set their own spacing on their own rules. */
  letter-spacing: normal;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
/* Kickers sit on light bands by default: deep gold text (AA at 4.9:1). */
.section-head .kicker, .kicker { color: var(--ap-gold-text); }
.hero .kicker { color: var(--ap-gold-antique); }
.journal-hero .kicker a { color: var(--ap-gold-text); }
.journal-hero .kicker a:hover { color: var(--ap-navy); }

/* Italic accent words inside headings: an <em> in a heading renders
   Instrument Serif italic, in deep gold on light bands and antique
   gold on dark ones. Kickers and labels stay Manrope throughout. */
.section-head h2 em { font-style: italic; color: var(--ap-gold-text); }
.band-navy .section-head h2 em, .film-band .section-head h2 em,
.newsletter h2 em, .post-newsletter h2 em { color: var(--ap-gold-antique); }
.pillars .section-head h2 em {
  font-style: italic; text-transform: none; color: var(--ap-gold-antique);
}
.featured-plate h2 em { font-style: italic; color: var(--ap-gold-antique); }
.page-hero h1 em { font-style: italic; color: var(--ap-gold-antique); }
.restoration-hero h1 em { font-style: italic; color: var(--ap-gold-antique); }
.book-card h3 em, .edition-body h3 em, .bio-card h3 em { font-style: italic; }

/* Gold rule + diamond divider (drawn in by GSAP; fully drawn without JS) */
.ap-rule-wrap {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 26px auto;
}
.ap-gold-rule {
  height: 1px; width: 120px; max-width: 34vw;
  background: var(--ap-gold-grad);
  transform-origin: center;
}
.ap-diamond {
  width: 9px; height: 9px; flex: 0 0 auto;
  background: var(--ap-gold);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------- socials */
.ap-socials { display: flex; align-items: center; gap: 6px; }
.ap-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--ap-gold-antique);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.ap-social-link:hover {
  color: var(--ap-gold-bright);
  background: rgba(198, 161, 91, 0.14);
  transform: translateY(-2px);
  text-decoration: none;
}
.ap-social-link svg { display: block; }

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--ap-navy);
  border-bottom: 1px solid rgba(198, 161, 91, 0.35);
  padding: 20px 0;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  z-index: 300;
}
.site-header .wrap { gap: 26px; }
.site-header.is-scrolled {
  padding: 11px 0;
  box-shadow: 0 10px 34px rgba(4, 9, 15, 0.35);
}
.site-header .site-brand {
  color: var(--ap-ivory);
  letter-spacing: normal;
  text-transform: uppercase;
  font-size: 1.3rem;
}
/* Logo-first: an uploaded emblem lockup leads at a sensible height. */
.site-header .custom-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-header .custom-logo {
  max-height: 54px; width: auto; height: auto;
  transition: max-height 0.35s ease;
}
.site-header.is-scrolled .custom-logo { max-height: 42px; }
.main-nav ul { align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  color: var(--ap-ivory-dim);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ap-gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s ease;
}
.main-nav a:hover { color: var(--ap-gold-bright); text-decoration: none; }
.main-nav a:hover::after, .main-nav li:focus-within > a::after { transform: scaleX(1); transform-origin: left; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--ap-gold-bright); }

/* Dropdowns: premium navy panel, gold hairline, gentle fade + slide.
   Pure CSS (hover + focus-within), so they work with no JavaScript.
   The panel keeps a visual offset from the bar, and its ::before
   bridge covers that offset: the bridge is part of the panel (and
   therefore of the parent li's hover area), so the pointer can travel
   from the parent item down into the panel without the hover state
   ever dropping. The bridge spans the offset plus the slide distance
   with room to spare. */
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 6px);
  min-width: 250px;
  display: flex; flex-direction: column; gap: 0;
  background: var(--ap-navy-panel);
  border: 1px solid rgba(198, 161, 91, 0.45);
  border-top: 2px solid var(--ap-gold);
  box-shadow: 0 24px 50px rgba(4, 9, 15, 0.5);
  padding: 10px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 320;
}
.main-nav .sub-menu::before {
  content: ''; position: absolute; left: 0; right: 0;
  top: -28px; height: 28px;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a {
  display: block; padding: 10px 22px;
  font-size: 0.76rem; letter-spacing: 0.14em;
  color: var(--ap-ivory-dim);
}
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover { background: var(--ap-navy-raised); color: var(--ap-gold-bright); }
.main-nav .menu-item-has-children > a { padding-right: 14px; }
.main-nav .menu-item-has-children > a::before {
  content: ''; position: absolute; right: 0; top: 42%;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--ap-gold); border-bottom: 1.5px solid var(--ap-gold);
  transform: rotate(45deg) translateY(-2px);
}

.header-socials { margin-left: auto; }
.main-nav { margin-left: auto; }
.header-socials + .header-cta { margin-left: 8px; }
.site-header .header-cta {
  background: var(--ap-gold); color: var(--ap-navy-ink);
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem;
  padding: 11px 24px; margin-left: 18px;
}
.site-header .header-cta:hover { background: var(--ap-gold-bright); color: var(--ap-navy-ink); }

/* Variant: transparent over hero -> solid navy on scroll */
.header-transparent {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.header-transparent.is-scrolled {
  background: var(--ap-navy);
  border-bottom-color: rgba(198, 161, 91, 0.35);
}
body.has-hero .site-main { padding-top: 0; }
.header-transparent:not(.is-scrolled) .site-brand { color: var(--ap-ivory); }
/* Keep the fixed transparent header clear of the admin bar. */
body.admin-bar .header-transparent { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .header-transparent { top: 46px; }
}

/* Variant: centered logo, split navigation */
.header-centered .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header-centered .nav-split-left { margin-left: 0; justify-self: end; }
.header-centered .nav-split-right { margin-left: 0; justify-self: start; }
.header-centered .nav-split-left ul { justify-content: flex-end; }
.header-centered .nav-split-right ul { justify-content: flex-start; }
.header-centered .site-brand,
.header-centered .custom-logo-link { text-align: center; justify-self: center; }
.header-centered .header-socials { display: none; }
.header-centered .header-cta { justify-self: end; }

/* Mobile menu button + full-screen overlay */
.ap-menu-toggle {
  display: none;
  background: none; border: 1px solid rgba(198, 161, 91, 0.55);
  border-radius: 3px; padding: 10px 12px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.ap-menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ap-gold-antique);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.ap-mobile-menu {
  position: fixed; inset: 0; z-index: 400;
  background: linear-gradient(160deg, var(--ap-navy) 0%, var(--ap-navy-ink) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 90px 28px 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
  overflow-y: auto;
}
.ap-mobile-menu.is-open { opacity: 1; visibility: visible; }
.ap-mobile-menu .custom-logo { max-height: 64px; width: auto; margin-bottom: 18px; }
.ap-mobile-menu ul { list-style: none; text-align: center; }
.ap-mobile-menu li { margin: 10px 0; }
.ap-mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: var(--ap-ivory); letter-spacing: normal;
}
.ap-mobile-menu a:hover { color: var(--ap-gold-bright); text-decoration: none; }
.ap-mobile-menu .sub-menu { margin: 2px 0 6px; }
.ap-mobile-menu .sub-menu li { margin: 4px 0; }
.ap-mobile-menu .sub-menu a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ap-gold-antique);
}
.ap-mobile-menu-close {
  position: absolute; top: 22px; right: 24px;
  background: none; border: none; color: var(--ap-gold-antique);
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 8px;
}
.ap-mobile-menu .ap-rule-wrap { margin-top: 22px; }
/* Socials pinned to the bottom of the full-screen menu. */
.ap-mobile-menu .mobile-socials { margin-top: auto; padding-top: 26px; }
.ap-mobile-menu .mobile-socials .ap-social-link { width: 44px; height: 44px; }
.ap-mobile-menu .mobile-socials svg { width: 21px; height: 21px; }

@media (max-width: 1100px) {
  .site-header .header-socials { display: none; }
}
@media (max-width: 900px) {
  .site-header .main-nav, .site-header .header-cta { display: none; }
  .ap-menu-toggle { display: flex; margin-left: auto; }
  .header-centered .wrap { display: flex; justify-content: space-between; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(198, 161, 91, 0.22), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 4px),
    linear-gradient(175deg, var(--ap-navy) 0%, var(--ap-navy-deep) 78%, var(--ap-navy-deep) 100%);
  padding: 168px 0 148px;
  overflow: hidden;
  position: relative;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--ap-gold-antique);
  font-weight: 600;
}
.hero .kicker::before, .hero .kicker::after {
  content: ''; height: 1px; width: 52px;
  background: linear-gradient(90deg, transparent, var(--ap-gold));
}
.hero .kicker::after { background: linear-gradient(90deg, var(--ap-gold), transparent); }
.hero-display {
  font-size: clamp(3.2rem, 9.5vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ap-ivory);
  margin-bottom: 26px;
}
.hero-display em {
  font-style: italic; text-transform: none;
  color: var(--ap-gold-antique);
}
.hero p.lead { color: var(--ap-ivory-dim); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero .btn { background: var(--ap-gold); color: var(--ap-navy-ink); text-transform: uppercase; letter-spacing: 0.1em; }
.hero .btn:hover { background: var(--ap-gold-bright); color: var(--ap-navy-ink); }
.hero .btn-outline { color: var(--ap-ivory); border-color: rgba(198, 161, 91, 0.7); background: transparent; }
.hero .btn-outline:hover { background: rgba(198, 161, 91, 0.14); color: var(--ap-ivory); }

/* Optional hero background photograph (dashboard Settings > Homepage
   or Customizer > Homepage Hero). The image sits on the section as a
   CSS background, under a navy overlay strong enough to keep the
   ivory and gold text at AA contrast; with no image set, the hero
   keeps the plain gradient above. */
.hero-has-image { background-size: cover; background-position: center; }
.hero-has-image::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(198, 161, 91, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(8, 20, 38, 0.72) 0%, rgba(8, 20, 38, 0.62) 45%, rgba(4, 9, 15, 0.86) 100%);
}
.hero-has-image .wrap { position: relative; z-index: 1; }

/* Desktop hero layout: the call to action straddles the horizon
   line of the hero background photograph, which sits at about 76%
   of the hero height at desktop widths. The button is taken out of
   flow and centered on that line exactly: its top edge starts at
   76% of the hero height and translateY(-50%) lifts it by half of
   its own height, so the line passes through the button's vertical
   middle whatever the hero height. The wrap drops back to static so
   the percentage resolves against the hero itself; its children
   carry their own stacking so the text stays above the photo scrim.
   Below desktop width the button keeps its normal place in flow. */
@media (min-width: 1024px) {
  .hero .wrap { position: static; padding-bottom: 30px; }
  .hero .wrap > * { position: relative; z-index: 1; }
  .hero p.lead { margin-bottom: 96px; }
  .hero .wrap > .hero-cta {
    position: absolute; left: 50%; top: 76%;
    transform: translate(-50%, -50%);
    z-index: 2; margin: 0;
  }
}

/* ------------------------------------------------------- page title band */
/* Inner pages open with a designed navy band: gold kicker (section
   context or the press name), the title in Instrument Serif, and the
   gold-rule + diamond separator. Used by page.php, single book,
   single event, and the book / event archives. */
.page-hero {
  background:
    radial-gradient(ellipse 65% 55% at 50% -5%, rgba(198, 161, 91, 0.18), transparent 60%),
    linear-gradient(175deg, var(--ap-navy) 0%, var(--ap-navy-deep) 80%, var(--ap-navy-ink) 100%);
  color: var(--ap-ivory);
  text-align: center;
  padding: 92px 0 78px;
}
.page-hero .kicker {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ap-gold-antique);
}
.page-hero .kicker::before, .page-hero .kicker::after {
  content: ''; height: 1px; width: 44px;
  background: linear-gradient(90deg, transparent, var(--ap-gold));
}
.page-hero .kicker::after { background: linear-gradient(90deg, var(--ap-gold), transparent); }
.page-hero h1 {
  color: var(--ap-ivory);
  font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.1;
  max-width: 900px; margin: 16px auto 0;
}
.page-hero .ap-rule-wrap { margin-bottom: 0; }
.events-archive-body { padding: 56px 24px 84px; }
.event-single { padding: 54px 0 76px; margin: 0 auto; }

/* ------------------------------------------------------- pillar ecosystem */
.pillars {
  background: linear-gradient(180deg, var(--ap-navy-deep), var(--ap-navy-panel) 55%, var(--ap-navy-deep));
  color: var(--ap-ivory);
  padding: var(--ap-space-6) 0;
}
.pillars .section-head h2 { color: var(--ap-ivory); letter-spacing: normal; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.pillars .section-head .kicker { color: var(--ap-gold-antique); margin-bottom: 10px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
}
.pillar {
  text-align: center;
  padding: 12px 22px 4px;
  border-left: 1px solid rgba(216, 184, 120, 0.22);
}
.pillar:first-child { border-left: none; }
.pillar-icon {
  width: 92px; height: 92px; margin: 0 auto 20px;
  border: 1px solid var(--ap-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.35s ease, transform 0.35s ease;
}
.pillar-icon svg { width: 40px; height: 40px; stroke: var(--ap-gold-antique); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pillar:hover .pillar-icon { background: rgba(198, 161, 91, 0.12); transform: translateY(-4px); }
.pillar h3 {
  color: var(--ap-gold-antique);
  font-family: 'Manrope', sans-serif;
  font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1.6; margin-bottom: 0;
}
.pillar a { color: inherit; display: block; }
.pillar a:hover { text-decoration: none; }
@media (max-width: 1000px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .pillar { border-left: none; }
}
@media (max-width: 520px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- featured book */
.featured-book {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 4px),
    var(--ap-cloth);
  color: var(--ap-ivory);
  padding: var(--ap-space-6) 0;
}
.featured-book .wrap {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: var(--ap-space-5); align-items: center;
}
.featured-cover { position: relative; width: 100%; max-width: 360px; justify-self: center; }
/* Single book page: the cover column is capped the same way. */
.book-single .book-cover { max-width: 320px; }
.featured-cover::before {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid rgba(198, 161, 91, 0.5); pointer-events: none;
}
.featured-cover img {
  display: block; width: 100%; height: auto; position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.featured-plate { text-align: left; }
.featured-plate .plate-kicker {
  font-family: 'Instrument Serif', serif; font-style: italic;
  color: var(--ap-gold-antique); font-size: 1.25rem; margin-bottom: 14px;
}
.featured-plate h2 {
  color: var(--ap-ivory); text-transform: uppercase;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: normal; line-height: 1.05;
  margin-bottom: 10px;
}
.featured-plate .plate-sub {
  color: var(--ap-gold-antique); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.85rem; margin: 16px 0 22px;
}
.featured-plate .plate-text { color: var(--ap-ivory-dim); max-width: 560px; }
.featured-plate .plate-launch {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.5rem; line-height: 1.3; color: var(--ap-gold-bright);
  margin: 20px 0 8px;
}
.featured-plate .plate-follow { color: var(--ap-ivory-dim); max-width: 560px; margin: 0 0 28px; }
.featured-plate .ap-rule-wrap { justify-content: flex-start; margin: 6px 0; }
.featured-plate .ap-rule-wrap .ap-gold-rule { margin: 0; }
@media (max-width: 860px) {
  .featured-book .wrap { grid-template-columns: 1fr; }
  .featured-cover { max-width: 320px; margin: 0 auto; }
  .featured-plate { text-align: center; }
  .featured-plate .ap-rule-wrap { justify-content: center; }
  .featured-plate .plate-text { margin-inline: auto; }
}

/* ------------------------------------------------------------------ film */
/* Full-bleed deep-navy band (homepage) + the shared framed player.
   The frame follows the biography hero treatment: a gold hairline
   border with inner padding over near-black. The player is a native
   <video>; nothing here hides or moves it, so it works without JS. */
.film-band {
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(198, 161, 91, 0.13), transparent 60%),
    var(--ap-navy-deep);
  color: var(--ap-ivory);
  padding: var(--ap-space-6) 0;
}
.film-band .section-head { margin-bottom: 40px; }
.film-band .section-head h2 { color: var(--ap-ivory); }
.film-block .section-head { margin-bottom: 40px; }
.film-frame {
  position: relative;
  border: 1px solid rgba(198, 161, 91, 0.5);
  padding: 10px;
  background: var(--ap-navy-ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.film-player {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border: 0;
}
/* Poster facade (enhancement, layered by flemming.js only): the poster
   fills the frame behind a large circular gold play button. Activating
   it dismisses the facade and plays the native video. The button is
   hidden in the markup, so without JS nothing covers the player. */
.film-facade {
  position: absolute; inset: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; cursor: pointer;
  background: var(--ap-navy-deep);
  transition: opacity 0.45s ease, visibility 0.45s;
}
.film-facade[hidden] { display: none; }
/* The poster is letterboxed (contain) over the navy facade ground,
   so no part of it, text included, is ever cropped. */
.film-facade-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.film-facade::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.12), rgba(5, 13, 24, 0.42));
}
.film-play {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(8, 20, 38, 0.72);
  border: 1.5px solid var(--ap-gold);
  color: var(--ap-gold-bright);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.film-play svg { margin-left: 0; }
.film-facade:hover .film-play, .film-facade:focus-visible .film-play {
  transform: scale(1.07);
  background: rgba(8, 20, 38, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(198, 161, 91, 0.18), 0 0 34px rgba(227, 200, 120, 0.35);
}
.film-facade.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 640px) {
  .film-facade { inset: 6px; }
  .film-play { width: 72px; height: 72px; }
}
.restoration-dark .film-wrap { max-width: 980px; margin-bottom: 10px; }
@media (max-width: 640px) {
  .film-frame { padding: 6px; }
}

/* -------------------------------------------------------------- editions */
.editions-band {
  background: var(--ap-ivory);
  padding: var(--ap-space-6) 0;
}
.editions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
/* No box behind the cards: covers rest directly on the section
   ground and the text takes the ground's ink. On the dark
   Restoration page the same cards switch to ivory text (below). */
.edition-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: transparent;
  border: none;
  padding: 10px 16px 0;
  color: var(--ap-ink);
  transition: transform 0.35s ease;
}
.edition-card:hover { transform: translateY(-5px); }
.edition-cover { display: block; width: 150px; margin-bottom: 20px; }
.edition-cover img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 14px 30px rgba(8, 20, 38, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.edition-card:hover .edition-cover img, .edition-card:focus-within .edition-cover img {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(227, 200, 120, 0.65), 0 0 22px rgba(198, 161, 91, 0.4);
}
.edition-body { text-align: center; }
.edition-body h3 { font-size: 1.55rem; margin-bottom: 4px; }
.edition-body h3 a { color: var(--ap-navy); }
.edition-body h3 a:hover { color: var(--ap-gold-text); text-decoration: none; }
.edition-sub { color: var(--ap-gold-text); font-style: italic; font-family: 'Instrument Serif', serif; font-size: 1.05rem; }
.edition-price { color: var(--ap-navy); font-weight: 700; margin-top: 10px; letter-spacing: 0.04em; }
.edition-link { margin: 18px 0 0; }
.edition-btn {
  padding: 10px 24px; margin-left: 0;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ap-navy); border-color: var(--ap-navy); background: transparent;
}
.edition-btn:hover { background: var(--ap-navy); color: var(--ap-ivory); text-decoration: none; }
/* The same cards on the dark Restoration page. */
.restoration-dark .section-head .kicker { color: var(--ap-gold-antique); }
.restoration-dark .section-head h2 { color: var(--ap-ivory); }
.restoration-dark .section-head h2 em { color: var(--ap-gold-antique); }
.restoration-dark .edition-body h3 a { color: var(--ap-ivory); }
.restoration-dark .edition-body h3 a:hover { color: var(--ap-gold-bright); }
.restoration-dark .edition-sub { color: var(--ap-gold-antique); }
.restoration-dark .edition-price { color: var(--ap-gold-bright); }
.restoration-dark .edition-btn { color: var(--ap-gold-bright); border-color: rgba(198, 161, 91, 0.7); }
.restoration-dark .edition-btn:hover { background: rgba(198, 161, 91, 0.16); color: var(--ap-ivory); }

/* Book covers in the Books grid: gentle lift, deeper shadow, and a
   gold hairline glow on hover / focus-within. */
.book-card .book-cover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.book-card:hover .book-cover, .book-card:focus-within .book-cover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(8, 20, 38, 0.24), 0 0 0 1px rgba(154, 123, 63, 0.8), 0 0 24px rgba(198, 161, 91, 0.35);
}
/* ----------------------------------------------------------------- bands */
.band-paper { background: var(--ap-paper); }
.band-navy {
  background: linear-gradient(175deg, var(--ap-navy-panel), var(--ap-navy-deep));
  color: var(--ap-ivory);
}
.band-navy .section-head h2 { color: var(--ap-ivory); }
.band-navy .section-head .kicker { color: var(--ap-gold-antique); }
/* Biography cards restyled for the dark band. */
.band-navy .bio-card {
  background: var(--ap-navy-raised);
  border-color: rgba(198, 161, 91, 0.35);
}
.band-navy .bio-card h3 a { color: var(--ap-ivory); }
.band-navy .bio-card h3 a:hover { color: var(--ap-gold-bright); }
.band-navy .bio-dates { color: var(--ap-gold-antique); }
.band-navy .bio-excerpt { color: var(--ap-ivory-dim); }
.band-navy .bio-class { color: var(--ap-gold-bright); border-color: rgba(227, 200, 120, 0.6); }

/* ------------------------------------------------------------ about split */
.about-split {
  background: var(--ap-paper);
  padding: var(--ap-space-6) 0;
}
.about-split .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--ap-space-5); align-items: center;
}
.about-split-media { position: relative; aspect-ratio: 4 / 5; }
.about-split-media::before {
  content: ''; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid var(--ap-gold); pointer-events: none; z-index: 1;
}
.about-split-media img {
  display: block; width: 100%; height: 100%; position: relative;
  object-fit: cover; object-position: center top;
  box-shadow: 0 24px 54px rgba(8, 20, 38, 0.22);
}
.about-split-body .kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; margin-bottom: 12px;
}
.about-split-body h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 10px; }
.about-pull {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35;
  color: var(--ap-navy);
  border-left: 3px solid var(--ap-gold);
  padding-left: 22px; margin: 22px 0;
}
.about-split-text { color: var(--ap-muted); max-width: 560px; }
.about-split-cta { margin: 30px 0 0; }
@media (max-width: 860px) {
  .about-split .wrap { grid-template-columns: 1fr; }
  .about-split-media { max-width: 360px; }
}

/* ------------------------------------------------------------ events strip */
.events-strip {
  background: var(--ap-navy-ink);
  color: var(--ap-ivory);
  border-top: 1px solid rgba(198, 161, 91, 0.4);
  border-bottom: 1px solid rgba(198, 161, 91, 0.4);
  padding: 42px 0;
}
.events-strip .wrap { display: flex; align-items: center; gap: 30px; }
.events-strip-date {
  flex: 0 0 auto; text-align: center;
  border: 1px solid var(--ap-gold); padding: 10px 16px; min-width: 86px;
}
.events-strip-day {
  display: block; font-family: 'Instrument Serif', serif;
  font-size: 2rem; line-height: 1; color: var(--ap-gold-bright);
}
.events-strip-month {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ap-gold-antique); margin-top: 4px;
}
.events-strip-body { flex: 1 1 auto; min-width: 0; }
.events-strip-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ap-gold-antique); margin-bottom: 4px;
}
.events-strip-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2;
}
.events-strip-title a { color: var(--ap-ivory); }
.events-strip-title a:hover { color: var(--ap-gold-bright); text-decoration: none; }
.events-strip-where { color: var(--ap-ivory-dim); font-size: 0.92rem; }
.events-strip-link {
  flex: 0 0 auto; color: var(--ap-gold-bright);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 11px 24px; margin-left: 0;
}
.events-strip-link:hover { color: var(--ap-ivory); background: rgba(198, 161, 91, 0.14); text-decoration: none; }
@media (max-width: 700px) {
  .events-strip .wrap { flex-wrap: wrap; }
}

/* ------------------------------------------------------------- biography */
.bio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px; }
.bio-card {
  background: #FFFDF8; border: 1px solid var(--ap-line);
  border-radius: 4px; overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.bio-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(6, 18, 34, 0.16); }
.bio-card .bio-media { aspect-ratio: 4/4.6; overflow: hidden; background: var(--ap-navy-deep); }
.bio-card .bio-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-card .bio-body { padding: 22px 24px 26px; }
.bio-class {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ap-gold-text); border: 1px solid var(--ap-gold-deep);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.bio-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.bio-card h3 a { color: var(--ap-ink); }
.bio-dates { font-size: 0.88rem; color: var(--ap-muted); letter-spacing: 0.05em; }
.bio-excerpt { font-size: 0.95rem; color: var(--ap-muted); margin-top: 10px; }

/* ------------------------------------------------------- library toolbar */
.library-section { background: var(--ap-paper); }
.library-toolbar {
  background: var(--ap-ivory);
  border: 1px solid var(--ap-line);
  padding: 26px 28px 20px;
  margin-bottom: 46px;
  box-shadow: 0 16px 38px rgba(8, 20, 38, 0.07);
}
.library-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.library-search-field {
  flex: 1 1 320px; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--ap-line); border-radius: 3px;
  padding: 0 16px; color: var(--ap-gold-text);
}
.library-search-field:focus-within { border-color: var(--ap-gold-deep); box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.22); }
.library-search-field input[type="search"] {
  flex: 1; border: none; background: transparent; font: inherit;
  font-size: 1.02rem; padding: 14px 0; color: var(--ap-ink); min-width: 0;
}
.library-search-field input[type="search"]:focus { outline: none; }
.library-sort select {
  height: 100%; padding: 12px 14px; border: 1px solid var(--ap-line);
  border-radius: 3px; font: inherit; font-size: 0.95rem; background: #fff; color: var(--ap-ink);
}
.library-search .btn { padding: 12px 30px; }
.library-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.library-chip {
  display: inline-block; padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--ap-gold-deep);
  color: var(--ap-gold-text); background: transparent;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.library-chip:hover { border-color: var(--ap-gold); color: var(--ap-navy); text-decoration: none; background: rgba(198, 161, 91, 0.12); }
.library-chip.is-active {
  background: var(--ap-navy); border-color: var(--ap-navy); color: var(--ap-ivory);
}
.library-chip.is-active:hover { color: var(--ap-gold-bright); }
.library-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--ap-line);
}
.library-count {
  margin: 0; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ap-muted);
}
.library-clear { font-size: 0.9rem; color: var(--ap-gold-text); font-weight: 600; }
.library-clear:hover { color: var(--ap-navy); }
.library-empty { font-size: 1.05rem; color: var(--ap-muted); }
.library-section .page-numbers {
  display: inline-block; margin-top: 42px; padding: 9px 15px;
  border: 1px solid var(--ap-line); color: var(--ap-navy); background: #fff;
  font-weight: 600; font-size: 0.92rem;
}
.library-section .page-numbers.current { background: var(--ap-navy); color: var(--ap-ivory); border-color: var(--ap-navy); }
.library-section a.page-numbers:hover { border-color: var(--ap-gold-deep); color: var(--ap-gold-text); text-decoration: none; }

.bio-single { max-width: 820px; margin: 0 auto; }
.bio-single .bio-hero-img { border: 1px solid rgba(198, 161, 91, 0.5); padding: 10px; background: var(--ap-navy-deep); }
.bio-single .bio-hero-img img { display: block; width: 100%; height: auto; }
.bio-meta-block { border-top: 1px solid var(--ap-line); margin-top: 40px; padding-top: 28px; }
.bio-meta-block h3 { font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ap-gold-text); font-family: 'Manrope', sans-serif; font-weight: 700; }
.bio-citations { font-size: 0.95rem; color: var(--ap-muted); padding-left: 1.2em; }
.bio-video { aspect-ratio: 16/9; margin: 36px 0; }
.bio-video iframe { width: 100%; height: 100%; border: 0; }
.bio-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; margin-top: 20px; }

/* ------------------------------------------------------ restoration page */
.restoration-dark { background: var(--ap-navy-ink); color: var(--ap-ivory); }
.restoration-dark .content-area { max-width: 860px; }
.restoration-dark h1, .restoration-dark h2, .restoration-dark h3 { color: var(--ap-gold-antique); }
.restoration-dark a { color: var(--ap-gold-bright); }
.restoration-hero {
  text-align: center; padding: 120px 0 30px;
}
.restoration-hero h1 {
  text-transform: uppercase; letter-spacing: normal;
  font-size: clamp(2.6rem, 7vw, 5rem); color: var(--ap-ivory);
}
.restoration-editions { padding: 30px 0 90px; }
.restoration-editions .books-grid { max-width: var(--ap-max); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------- journal */
.journal-hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(198, 161, 91, 0.16), transparent 60%),
    var(--ap-ivory);
  text-align: center;
  padding: 96px 0 70px;
  border-bottom: 1px solid var(--ap-line);
}
.journal-hero .kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
}
.journal-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.08; color: var(--ap-navy);
  max-width: 880px; margin: 10px auto 0;
}
.journal-hero h1 em { font-style: italic; color: var(--ap-gold-text); }
.journal-hero .post-meta {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ap-muted);
}
.journal-search { max-width: 560px; margin: 10px auto 0; }
.journal-main { background: var(--ap-paper); }
.journal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px;
}
.journal-card {
  background: #fff; border: 1px solid var(--ap-line);
  display: flex; flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.journal-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(8, 20, 38, 0.13); }
.journal-thumb { display: block; aspect-ratio: 800/520; overflow: hidden; background: var(--ap-navy-panel); }
.journal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.journal-card:hover .journal-thumb img { transform: scale(1.045); }
.journal-thumb-fallback {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--ap-navy-panel), var(--ap-navy-deep));
}
.journal-thumb-rule { height: 1px; width: 44px; background: var(--ap-gold-grad); }
.journal-thumb-initial {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 3.4rem; line-height: 1; color: var(--ap-gold-antique);
}
.journal-body { padding: 24px 26px 28px; }
.journal-cat {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ap-gold-text); margin-bottom: 10px;
}
.journal-cat:hover { color: var(--ap-navy); text-decoration: none; }
.journal-title {
  font-size: 1.65rem; line-height: 1.22; margin: 0;
}
.journal-title a { color: var(--ap-ink); }
.journal-title a:hover { color: var(--ap-navy); text-decoration: none; }
.journal-title em { font-style: italic; }
.journal-featured-wrap { margin-bottom: 8px; }
.journal-card-featured {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch;
}
.journal-card-featured .journal-thumb { aspect-ratio: auto; min-height: 320px; }
.journal-card-featured .journal-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 44px;
}
.journal-card-featured .journal-title { font-size: clamp(2rem, 4vw, 2.9rem); }
.journal-excerpt { color: var(--ap-muted); margin-top: 14px; }
.journal-sep {
  border: none; height: 1px; margin: 52px auto;
  background: var(--ap-gold-grad); max-width: 420px;
}
.journal-empty { color: var(--ap-muted); font-size: 1.05rem; text-align: center; }
@media (max-width: 800px) {
  .journal-card-featured { grid-template-columns: 1fr; }
  .journal-card-featured .journal-thumb { aspect-ratio: 800/520; min-height: 0; }
}

/* Pagination (posts + comments), styled once for the whole theme. */
.pagination { margin-top: 54px; text-align: center; }
.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
  display: inline-block; padding: 9px 15px;
  border: 1px solid var(--ap-line); background: #fff; color: var(--ap-navy);
  font-weight: 600; font-size: 0.92rem;
}
.page-numbers.current { background: var(--ap-navy); border-color: var(--ap-navy); color: var(--ap-ivory); }
a.page-numbers:hover { border-color: var(--ap-gold-deep); color: var(--ap-gold-text); text-decoration: none; }
.comments-area .nav-links { display: flex; justify-content: space-between; gap: 12px; }
.comments-area .nav-previous a, .comments-area .nav-next a {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ap-gold-text);
}

/* ----------------------------------------------------------- single post */
.post-single { max-width: 760px; margin: 0 auto; padding: 54px 0 20px; }
.post-featured { margin: 0 0 40px; border: 1px solid rgba(198, 161, 91, 0.55); padding: 10px; background: var(--ap-navy); }
.post-featured img { display: block; width: 100%; height: auto; }
.post-content { font-size: 1.06rem; }
.post-content h2, .post-content h3 { margin-top: 1.4em; }
.post-content a { color: var(--ap-navy); text-decoration: underline; text-decoration-color: var(--ap-gold); text-underline-offset: 3px; }
.post-content a:hover { color: var(--ap-gold-text); }
.restoration-dark .post-content a { color: var(--ap-gold-bright); }
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.post-tag {
  padding: 6px 16px; border: 1px solid var(--ap-gold-deep); border-radius: 999px;
  color: var(--ap-gold-text); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.post-tag:hover { background: rgba(198, 161, 91, 0.12); color: var(--ap-navy); text-decoration: none; }
.post-newsletter {
  background: linear-gradient(165deg, var(--ap-navy-panel), var(--ap-navy-deep));
  color: var(--ap-ivory); text-align: center;
  padding: 44px 40px; margin-top: 56px;
  border: 1px solid rgba(198, 161, 91, 0.4);
}
.post-newsletter h2 { color: var(--ap-ivory); font-size: 2rem; margin-bottom: 18px; }
.post-nav {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: 56px; padding-top: 30px;
  border-top: 1px solid var(--ap-line);
}
.post-nav-link { display: block; max-width: 46%; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label {
  display: block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ap-gold-text);
  margin-bottom: 6px;
}
.post-nav-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.35rem; line-height: 1.25; color: var(--ap-ink);
}
.post-nav-link:hover .post-nav-title { color: var(--ap-navy); text-decoration: underline; text-decoration-color: var(--ap-gold); }

/* --------------------------------------------------------- newsletter form */
.ap-newsletter-form {
  display: flex; flex-wrap: nowrap; gap: 12px; align-items: stretch;
  max-width: 820px; margin: 0 auto;
}
.ap-nl-field { display: block; min-width: 0; }
/* Name, email, and the submit button share one row. Stacking happens
   only on narrow screens (see the 640px media query below). */
.ap-newsletter-form .ap-nl-field:first-of-type { flex: 1 1 190px; }
.ap-newsletter-form .ap-nl-field:last-of-type { flex: 1.35 1 260px; }
.ap-nl-submit { flex: 0 0 auto; }
.ap-nl-field input {
  width: 100%; padding: 14px 18px; border: 1px solid rgba(198, 161, 91, 0.45);
  border-radius: 3px; font: inherit; font-size: 1rem;
  background: rgba(251, 248, 241, 0.97); color: var(--ap-ink);
}
.ap-nl-field input:focus { outline: 2px solid var(--ap-gold-bright); outline-offset: 2px; }
.ap-nl-submit { white-space: nowrap; }
.ap-newsletter-thanks {
  color: var(--ap-gold-bright); font-weight: 700; margin-bottom: 16px; text-align: center;
}
.newsletter .ap-newsletter-form { text-align: left; }
@media (max-width: 640px) {
  .ap-newsletter-form { flex-direction: column; flex-wrap: wrap; }
  .post-newsletter { padding: 36px 24px; }
}

/* -------------------------------------------------------------- CTA band */
.cta-gold {
  background: linear-gradient(120deg, var(--ap-gold-deep), var(--ap-gold) 45%, var(--ap-gold-bright));
  color: var(--ap-navy);
  text-align: center;
  padding: 72px 0;
}
.cta-gold h2 {
  color: var(--ap-navy-ink);
  font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 22px;
}
.cta-gold h2 em { font-style: italic; }
.btn-navy {
  background: var(--ap-navy); color: var(--ap-ivory);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.btn-navy:hover { background: var(--ap-navy-ink); color: var(--ap-gold-bright); }
/* The closing band's call to action reads as a solid, raised button
   against the gold field. */
.cta-gold .btn-navy {
  padding: 16px 42px;
  box-shadow: 0 14px 32px rgba(8, 20, 38, 0.35);
}
.cta-gold .btn-navy:hover { box-shadow: 0 18px 38px rgba(8, 20, 38, 0.42); }
/* Small button variant (event cards, header CTA). */
.btn-small { padding: 9px 20px; font-size: 0.85rem; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--ap-navy);
  color: var(--ap-ivory-dim);
  padding: 76px 0 0;
}
.site-footer .wrap { display: block; max-width: var(--ap-max); }
.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding-bottom: 54px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand .custom-logo { max-height: 58px; width: auto; }
.footer-brand .site-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; color: var(--ap-ivory); text-transform: uppercase; letter-spacing: normal;
}
.footer-brand .site-brand:hover { color: var(--ap-gold-bright); text-decoration: none; }
.footer-mission { margin-top: 16px; max-width: 340px; font-size: 0.98rem; line-height: 1.65; }
.footer-socials { margin-top: 20px; justify-content: center; }
.site-footer h4 {
  color: var(--ap-gold-bright);
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 18px;
}
/* Footer headings are always the bright gold at full opacity,
   in every column and in the newsletter block. */
.site-footer h4,
.site-footer .footer-col h4,
.site-footer .footer-newsletter-text h4 {
  color: var(--ap-gold-bright); opacity: 1;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--ap-ivory-dim); font-size: 0.97rem; }
.footer-col a:hover { color: var(--ap-gold-bright); text-decoration: none; }
.site-footer .footer-newsletter {
  display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center;
  border-top: 1px solid rgba(198, 161, 91, 0.3);
  padding: 38px 24px;
}
.footer-newsletter-text { flex: 1 1 260px; }
.footer-newsletter-text h4 { margin-bottom: 6px; }
.footer-newsletter-text p { margin: 0; font-size: 0.95rem; max-width: 420px; }
.footer-newsletter .ap-newsletter-form { flex: 2 1 420px; margin: 0; max-width: none; }
.footer-newsletter .ap-newsletter-thanks { text-align: left; margin: 0; }
.site-footer .footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(198, 161, 91, 0.3);
  padding: 24px 0 30px;
  font-size: 0.86rem;
}
.footer-copyright { margin: 0; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--ap-ivory-dim); }
.footer-legal a:hover { color: var(--ap-gold-bright); text-decoration: none; }
@media (max-width: 900px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer .footer-top { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ search form */
.ap-searchform { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; }
.ap-searchform-field { flex: 1; display: block; }
.ap-searchform-input {
  width: 100%; padding: 14px 18px; font: inherit; font-size: 1rem;
  border: 1px solid var(--ap-line); border-radius: 3px;
  background: #fff; color: var(--ap-ink);
}
.ap-searchform-input:focus { outline: none; border-color: var(--ap-gold-deep); box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.22); }
.ap-searchform-btn { white-space: nowrap; }

/* ------------------------------------------------------------------ 404 */
.error-hero {
  background:
    radial-gradient(ellipse 65% 50% at 50% -5%, rgba(198, 161, 91, 0.2), transparent 60%),
    linear-gradient(175deg, var(--ap-navy) 0%, var(--ap-navy-deep) 80%, var(--ap-navy-ink) 100%);
  color: var(--ap-ivory);
  text-align: center;
  padding: 130px 0 120px;
}
.error-hero .kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ap-gold-antique);
}
.error-title {
  font-size: clamp(3rem, 8vw, 5.6rem); color: var(--ap-ivory);
  margin: 14px 0 10px; line-height: 1.05;
}
.error-text { color: var(--ap-ivory-dim); max-width: 540px; margin: 0 auto 30px; font-size: 1.1rem; }
.error-search { max-width: 520px; margin: 0 auto 34px; }
.error-search .ap-searchform-input { background: rgba(251, 248, 241, 0.97); border-color: rgba(198, 161, 91, 0.45); }
.error-actions .btn-outline { color: var(--ap-ivory); border: 1px solid rgba(198, 161, 91, 0.7); background: transparent; margin-left: 12px; }
.error-actions .btn-outline:hover { background: rgba(198, 161, 91, 0.14); color: var(--ap-ivory); }

/* --------------------------------------------------- homepage newsletter */
/* The homepage band sits on a gold field with navy text; the submit
   button goes navy with ivory text. The footer and post forms keep
   their dark grounds and only share the one-row layout above. */
.newsletter {
  background: linear-gradient(120deg, var(--ap-gold-deep), var(--ap-gold) 42%, var(--ap-gold-antique) 78%, var(--ap-gold-bright));
  color: var(--ap-navy);
}
.newsletter h2 { color: var(--ap-navy); }
.newsletter h2 em { color: var(--ap-navy); }
.newsletter p { color: rgba(8, 20, 38, 0.85); }
.newsletter .ap-nl-field input { border-color: rgba(8, 20, 38, 0.35); }
.newsletter .ap-nl-submit { background: var(--ap-navy); color: var(--ap-ivory); }
.newsletter .ap-nl-submit:hover { background: var(--ap-navy-deep); color: var(--ap-gold-bright); }
.newsletter .ap-newsletter-thanks { color: var(--ap-navy); }

/* ----------------------------------------------------------- back to top */
/* Premium treatment for the base #ap-scroll-top button (rendered by
   authorpress_scroll_top): navy disc, gold hairline ring, gold
   chevron, soft shadow. It sits below the header and mobile menu in
   stacking order and hides while the mobile menu is open. */
#ap-scroll-top {
  width: 54px; height: 54px;
  background: var(--ap-navy);
  border: 1px solid var(--ap-gold);
  color: var(--ap-gold-bright);
  box-shadow: 0 14px 34px rgba(4, 9, 15, 0.42), inset 0 0 0 1px rgba(227, 200, 120, 0.14);
  z-index: 250;
}
#ap-scroll-top:hover {
  background: var(--ap-navy-raised);
  box-shadow: 0 18px 40px rgba(4, 9, 15, 0.5), 0 0 22px rgba(198, 161, 91, 0.3);
}
html.ap-menu-open #ap-scroll-top { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  #ap-scroll-top { right: 18px; bottom: 18px; width: 48px; height: 48px; }
}

/* ---------------------------------------------------------- fluent forms */
/* Fluent Forms output, restyled to the theme system. Scoped to the
   plugin's own classes; only colors, borders, type, and spacing are
   set here, never layout widths, so the plugin's grid cannot break. */
.fluentform .ff-el-group { margin-bottom: 20px; }
.fluentform .ff-el-form-label,
.fluentform label.ff-el-form-label {
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ap-navy); margin-bottom: 8px;
}
.fluentform input[type="text"], .fluentform input[type="email"],
.fluentform input[type="tel"], .fluentform input[type="url"],
.fluentform input[type="number"], .fluentform input[type="password"],
.fluentform textarea, .fluentform select {
  background: var(--ap-paper); color: var(--ap-ink);
  border: 1px solid var(--ap-line); border-radius: 3px;
  padding: 13px 16px; font: inherit; font-size: 1rem;
  box-shadow: none;
}
.fluentform input:focus, .fluentform textarea:focus, .fluentform select:focus {
  outline: none; border-color: var(--ap-gold-deep);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.22);
}
/* Submit button: the plugin stylesheet paints .ff-btn-submit with
   its own default blue at equal specificity to a plain two-class
   rule, and loads late enough to win on order. These rules chain
   the plugin's button classes and mark the paint !important, so
   the button is the theme gold button in every section, light or
   dark. */
.fluentform .ff-btn-submit.ff-btn,
.fluentform .ff-btn-submit.ff_btn_style,
.fluentform button[type="submit"].ff-btn-submit,
.fluentform input[type="submit"].ff-btn-submit,
.fluentform button[type="submit"],
.fluentform .ff_submit_btn_wrapper .ff-btn-submit,
.fluentform .ff-btns .ff-btn-submit {
  background: var(--ap-gold) !important;
  background-image: none !important;
  color: var(--ap-navy) !important;
  border: 1px solid var(--ap-gold-deep) !important;
  border-radius: 3px;
  padding: 14px 36px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600; font-size: 1rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; box-shadow: none !important;
  opacity: 1;
}
.fluentform .ff-btn-submit.ff-btn:hover,
.fluentform .ff-btn-submit.ff_btn_style:hover,
.fluentform button[type="submit"].ff-btn-submit:hover,
.fluentform input[type="submit"].ff-btn-submit:hover,
.fluentform button[type="submit"]:hover,
.fluentform .ff_submit_btn_wrapper .ff-btn-submit:hover,
.fluentform .ff-btns .ff-btn-submit:hover {
  background: var(--ap-gold-bright) !important;
  border-color: var(--ap-gold-deep) !important;
  color: var(--ap-navy) !important;
}
.fluentform .ff-btn-submit:focus-visible,
.fluentform button[type="submit"]:focus-visible,
.fluentform input[type="submit"]:focus-visible {
  outline: 2px solid var(--ap-gold-deep);
  outline-offset: 3px;
}
.band-navy .fluentform .ff-btn-submit:focus-visible,
.restoration-dark .fluentform .ff-btn-submit:focus-visible,
.film-band .fluentform .ff-btn-submit:focus-visible,
.post-newsletter .fluentform .ff-btn-submit:focus-visible,
.newsletter .fluentform .ff-btn-submit:focus-visible {
  outline-color: var(--ap-gold-bright);
}
.fluentform .ff-el-is-error input, .fluentform .ff-el-is-error textarea,
.fluentform .ff-el-is-error select { border-color: #B3402E; }
.fluentform .error, .fluentform .ff-error, .fluentform .text-danger {
  color: #B3402E; font-size: 0.88rem;
}
.fluentform .ff-message-success {
  border: 1px solid var(--ap-gold-deep); border-radius: 3px;
  background: rgba(198, 161, 91, 0.12); color: var(--ap-ink);
  padding: 16px 20px;
}
.fluentform .ff-message-error {
  border: 1px solid #B3402E; border-radius: 3px;
  background: rgba(179, 64, 46, 0.08); color: #7C2B1D;
  padding: 16px 20px;
}
/* On navy / dark sections the fields go dark with gold focus rings. */
.band-navy .fluentform .ff-el-form-label, .restoration-dark .fluentform .ff-el-form-label,
.film-band .fluentform .ff-el-form-label, .post-newsletter .fluentform .ff-el-form-label,
.newsletter .fluentform .ff-el-form-label { color: var(--ap-gold-antique); }
.band-navy .fluentform input, .band-navy .fluentform textarea, .band-navy .fluentform select,
.restoration-dark .fluentform input, .restoration-dark .fluentform textarea, .restoration-dark .fluentform select,
.film-band .fluentform input, .film-band .fluentform textarea, .film-band .fluentform select,
.post-newsletter .fluentform input, .post-newsletter .fluentform textarea, .post-newsletter .fluentform select,
.newsletter .fluentform input, .newsletter .fluentform textarea, .newsletter .fluentform select {
  background: var(--ap-navy-raised);
  border-color: rgba(198, 161, 91, 0.45); color: var(--ap-ivory);
}
.band-navy .fluentform input:focus, .restoration-dark .fluentform input:focus,
.film-band .fluentform input:focus, .post-newsletter .fluentform input:focus,
.newsletter .fluentform input:focus {
  border-color: var(--ap-gold-bright);
  box-shadow: 0 0 0 3px rgba(227, 200, 120, 0.25);
}
.band-navy .fluentform .ff-message-success, .restoration-dark .fluentform .ff-message-success,
.film-band .fluentform .ff-message-success, .post-newsletter .fluentform .ff-message-success,
.newsletter .fluentform .ff-message-success {
  color: var(--ap-ivory); border-color: var(--ap-gold);
}

/* ------------------------------------------------ pillar page sections */
/* Designed section bands for the Speaking, Restoration, and Our
   Research Continues pages, rendered from the dashboard's Pages tab.
   Ivory, navy, and gold bands share one measure and rhythm; the
   programs and roster styles lay their bodies out as card grids. */
.pillar-section { padding: var(--ap-space-6) 0; }
.pillar-section .wrap { max-width: 920px; }
.pillar-kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ap-gold-text); margin-bottom: 12px;
}
.pillar-section h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; }
.pillar-section .ap-rule-wrap.rule-left { justify-content: flex-start; margin: 20px 0 28px; }
.pillar-section .ap-rule-wrap.rule-left .ap-gold-rule { margin: 0; }
.pillar-section .section-body { font-size: 1.07rem; line-height: 1.78; max-width: 760px; }
.pillar-section .section-body p { margin-bottom: 1.15em; }
.pillar-section .section-body p:last-child { margin-bottom: 0; }
.pillar-section .section-body a {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--ap-gold); text-underline-offset: 3px;
}
.pillar-section.has-dropcap .section-body > p:first-of-type::first-letter {
  font-family: 'Instrument Serif', serif; font-size: 3.3em; line-height: 0.82;
  float: left; padding: 8px 14px 0 0; color: var(--ap-gold-text);
}
.pillar-section--ivory { background: var(--ap-paper); color: var(--ap-ink); }
.pillar-section--ivory h2 { color: var(--ap-navy); }
.pillar-section--navy {
  background: linear-gradient(175deg, var(--ap-navy-panel), var(--ap-navy-deep));
  color: var(--ap-ivory);
}
.pillar-section--navy h2 { color: var(--ap-ivory); }
.pillar-section--navy .pillar-kicker { color: var(--ap-gold-antique); }
.pillar-section--navy .section-body { color: var(--ap-ivory-dim); }
.pillar-section--navy.has-dropcap .section-body > p:first-of-type::first-letter { color: var(--ap-gold-antique); }
.pillar-section--gold {
  background: linear-gradient(120deg, var(--ap-gold-deep), var(--ap-gold) 45%, var(--ap-gold-antique));
  color: var(--ap-navy);
}
.pillar-section--gold h2 { color: var(--ap-navy); }
.pillar-section--gold .pillar-kicker { color: var(--ap-navy); }
.pillar-section--gold .ap-diamond { background: var(--ap-navy); }
.pillar-section--gold.has-dropcap .section-body > p:first-of-type::first-letter { color: var(--ap-navy); }

/* Signature programs: one card per line of the section body. */
.pillar-section--programs { background: var(--ap-paper); color: var(--ap-ink); }
.pillar-section--programs h2 { color: var(--ap-navy); }
.program-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.program-card {
  background: #fff; border: 1px solid #E7E7E2;
  padding: 28px 28px 24px;
}
.program-card h3 { font-size: 1.5rem; color: var(--ap-navy); margin-bottom: 8px; }
.program-card p { color: var(--ap-muted); margin: 0; line-height: 1.65; }

/* The To Be Published roster: one card per figure. */
.pillar-section--roster {
  background: linear-gradient(175deg, var(--ap-navy-panel), var(--ap-navy-deep));
  color: var(--ap-ivory);
}
.pillar-section--roster h2 { color: var(--ap-ivory); }
.pillar-section--roster .pillar-kicker { color: var(--ap-gold-antique); }
.roster-intro { color: var(--ap-ivory-dim); }
.roster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; margin-top: 28px;
}
.roster-card {
  background: var(--ap-navy-raised);
  border: 1px solid rgba(198, 161, 91, 0.35);
  padding: 18px 20px;
}
.roster-name {
  display: block; font-family: 'Instrument Serif', serif;
  font-size: 1.3rem; line-height: 1.25; color: var(--ap-ivory);
}
.roster-meta {
  display: block; margin-top: 5px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ap-gold-antique);
}

/* Form band + panel: the Fluent Forms form on the Speaking page and
   the right column of the Contact page. */
.form-band {
  background: linear-gradient(175deg, var(--ap-navy-panel), var(--ap-navy-deep));
  padding: var(--ap-space-6) 0;
}
.form-band .wrap { max-width: 920px; }
.form-panel {
  background: var(--ap-paper);
  border: 1px solid rgba(198, 161, 91, 0.55);
  box-shadow: 0 30px 70px rgba(4, 9, 15, 0.3);
  padding: clamp(28px, 5vw, 52px);
}

/* Contact page: text left, form right; stacked on narrow screens. */
.contact-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: start;
  padding: 64px 0 90px;
}
.contact-text { font-size: 1.06rem; line-height: 1.78; max-width: none; margin: 0; padding: 0; }
.contact-form-panel { box-shadow: 0 24px 54px rgba(8, 20, 38, 0.16); }
@media (max-width: 860px) {
  .contact-cols { grid-template-columns: 1fr; gap: 40px; }
}

/* ------------------------------------------------------------ share row */
.ap-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px;
}
.ap-share-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ap-gold-text); margin-right: 4px;
}
.ap-share-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ap-gold);
  background: transparent; color: var(--ap-navy);
  cursor: pointer; padding: 0;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.ap-share-btn:hover {
  background: rgba(198, 161, 91, 0.16); color: var(--ap-navy);
  transform: translateY(-2px); text-decoration: none;
}
.ap-share-btn svg { display: block; }
.ap-share-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--ap-navy); color: var(--ap-ivory);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.ap-share-btn.is-copied .ap-share-tip { opacity: 1; visibility: visible; }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .book-card:hover .book-cover, .book-card:focus-within .book-cover,
  .edition-card:hover, .edition-card:hover .edition-cover img,
  .edition-card:focus-within .edition-cover img,
  .film-facade:hover .film-play, .film-facade:focus-visible .film-play,
  #ap-scroll-top:hover {
    transform: none;
  }
}

/* WordPress block buttons (e.g. the Education page CTA) take the
   theme's primary button styling: gold fill, ink text, 3px radius. */
.wp-block-button .wp-block-button__link {
  background: var(--ap-gold); color: var(--ap-ink);
  padding: 14px 36px; border-radius: 3px; font-weight: 600; font-size: 1rem;
  border: none; text-decoration: none;
}
.wp-block-button .wp-block-button__link:hover { background: var(--ap-gold-bright); color: var(--ap-ink); }

/* Book page: the edition subtitle reads as a small gold kicker
   above the description, never as body text. */
.book-single .book-subtitle {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ap-gold-text);
  margin: 0 0 18px;
}

/* Visitor pathways (homepage): Lee's four pathways from his home
   page copy, as linked cards under the pillars. */
.pathways { background: var(--ap-paper); padding: 84px 0; }
.pathways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pathway-card {
  display: block; background: #fff; border: 1px solid #E7E7E2; border-radius: 3px;
  padding: 26px 24px; text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pathway-card:hover { border-color: var(--ap-gold); transform: translateY(-3px); text-decoration: none; }
.pathway-card h3 { font-size: 1.25rem; color: var(--ap-navy); margin: 0 0 8px; }
.pathway-card p { color: var(--ap-muted); margin: 0; line-height: 1.6; font-size: 0.95rem; }
@media (max-width: 1020px) { .pathways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pathways-grid { grid-template-columns: 1fr; } }

/* Speaking hero call to action sits under the gold rule. */
.page-hero .btn { margin-top: 24px; }

/* Footer social icons: the stock stylesheet's .footer-socials a pill
   rule (display: inline-block; padding: 6px 14px; border-radius: 20px)
   outranks .ap-social-link and shoves the glyph ~7px right of the
   circle's center. Restore the icon-button geometry in the footer. */
.site-footer .footer-socials .ap-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid rgba(233, 223, 202, 0.45); border-radius: 50%;
}

/* ================================================================
   1.5.0 — Mobile pass (Ben's phone review, Oct 27): serif headings
   everywhere, card carousels with styled arrows on phones, the
   newsletter form stacked tight, a slim mobile menu, and styled
   publication details on book pages.
   ================================================================ */

/* ---- Headings: Playfair Display on every heading, with a serif
   generic fallback so a heading can never degrade to a sans. The
   pillar titles keep their tracked-caps label treatment on purpose
   (their more specific rule above still wins). ---- */
h1, h2, h3, h4, h5, h6,
.hero-display, .section-title, .journal-title, .site-brand,
.program-card h3, .page-hero h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
h1 em, h2 em, h3 em, h4 em,
.hero-display em, .section-title em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

/* ---- Newsletter form: on phones the fields stack directly above
   the button. (The old column switch kept the row flex-basis, which
   became 190px/260px of empty height per field.) ---- */
@media (max-width: 640px) {
  .ap-newsletter-form { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .ap-newsletter-form .ap-nl-field:first-of-type,
  .ap-newsletter-form .ap-nl-field:last-of-type { flex: 0 0 auto; width: 100%; }
  .ap-newsletter-form .ap-nl-submit { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 860px) {
  .site-footer .footer-newsletter { flex-direction: column; align-items: stretch; gap: 18px; }
  .footer-newsletter-text p { max-width: none; }
}

/* ---- Mobile menu: top-level items only (the menu itself is now
   depth 1 in header.php; this hides any sub-menu regardless), and
   the social icons centered on their bottom row. ---- */
.ap-mobile-menu .sub-menu { display: none; }
.ap-mobile-menu .mobile-socials { display: flex; justify-content: center; gap: 14px; }

/* ---- Publication details on book pages: a quiet label/value
   ledger instead of running paragraphs. ---- */
.pub-details { border-top: 1px solid var(--ap-line); margin-top: 10px; }
.pub-details dl { margin: 0; }
.pub-details dl > div {
  display: grid; grid-template-columns: 215px 1fr; gap: 4px 24px;
  padding: 11px 0; border-bottom: 1px solid var(--ap-line);
}
.pub-details dt {
  font-family: 'Manrope', sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ap-gold-text); padding-top: 4px;
}
.pub-details dd { margin: 0; color: var(--ap-ink); }
@media (max-width: 640px) {
  .pub-details dl > div { grid-template-columns: 1fr; gap: 1px; }
  .pub-details dt { padding-top: 0; }
}

/* ---- Card carousels on phones: the grids that stacked into long
   lists become swipe tracks with styled arrow buttons (the buttons
   are added by flemming.js). Desktop layouts are untouched. ---- */
.ap-carousel-nav { display: none; }
@media (max-width: 900px) {
  .pillars-grid, .pathways-grid, .editions-grid, .bio-grid,
  .journal-grid, .program-grid, .books-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 18px; padding-bottom: 8px;
  }
  .pillars-grid::-webkit-scrollbar, .pathways-grid::-webkit-scrollbar,
  .editions-grid::-webkit-scrollbar, .bio-grid::-webkit-scrollbar,
  .journal-grid::-webkit-scrollbar, .program-grid::-webkit-scrollbar,
  .books-grid::-webkit-scrollbar { display: none; }
  .pillars-grid > * { flex: 0 0 64%; scroll-snap-align: start; }
  .pathways-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .editions-grid > * { flex: 0 0 82%; scroll-snap-align: start; }
  .bio-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .journal-grid > * { flex: 0 0 86%; scroll-snap-align: start; }
  .program-grid > * { flex: 0 0 86%; scroll-snap-align: start; }
  .books-grid > * { flex: 0 0 80%; scroll-snap-align: start; }
  .pillar { border-left: none; }
  .ap-carousel-nav {
    display: flex; justify-content: center; align-items: center;
    gap: 14px; margin-top: 20px;
  }
  .ap-carousel-btn {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--ap-gold); background: rgba(198, 161, 91, 0.10);
    color: var(--ap-gold); display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  }
  .ap-carousel-btn svg { width: 20px; height: 20px; display: block; }
  .ap-carousel-btn:active { background: var(--ap-gold); color: var(--ap-navy); }
  .ap-carousel-btn:disabled { opacity: 0.28; pointer-events: none; }
}

/* The theme uses .screen-reader-text in its forms but never defined
   it; on the live site an unrelated stylesheet happened to clip it.
   Define it properly so form labels never render as stray lines. */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  border: 0; white-space: nowrap;
}

/* 1.5.1: the publication-details section band (ivory treatment) and
   its trailing note line. */
.pillar-section--details { background: var(--ap-paper); color: var(--ap-ink); }
.pillar-section--details h2 { color: var(--ap-navy); }
.pub-details .pub-note { margin: 14px 0 0; color: var(--ap-muted); }

/* ================================================================
   1.5.2 — Phone fixes, round 2 (Ben's review of the live phone
   build): hero lifted, carousel cards centered on the screen, the
   clipped card buttons freed, footer rhythm, sticky buy bar.
   ================================================================ */

/* Hero: the desktop padding (168px top) pushed the call to action
   off the first phone screen. Lift the block up on small screens. */
@media (max-width: 640px) {
  .hero { padding: 92px 0 84px; }
}

/* Carousels: center the active card on the screen. Card widths are
   lengths derived from the viewport (basis% of the track is 100vw
   minus the wrap's 48px of side padding on phones), and the track's
   side padding — a percentage of that same content width — places
   the first and last cards dead center; snapping aligns on center.
   The reveal rise is suppressed inside tracks: a card left in its
   30px offset start state overflows the track's bottom edge and its
   last element (the View Edition button) is clipped off. */
@media (max-width: 900px) {
  .pillars-grid, .pathways-grid, .editions-grid, .bio-grid,
  .journal-grid, .program-grid, .books-grid { padding-bottom: 16px; }
  .pillars-grid { padding-inline: 18%; }
  .pillars-grid > * { flex: 0 0 calc(64vw - 30.72px); scroll-snap-align: center; }
  .pathways-grid { padding-inline: 8%; }
  .pathways-grid > * { flex: 0 0 calc(84vw - 40.32px); scroll-snap-align: center; }
  .editions-grid { padding-inline: 9%; }
  .editions-grid > * { flex: 0 0 calc(82vw - 39.36px); scroll-snap-align: center; }
  .bio-grid { padding-inline: 8%; }
  .bio-grid > * { flex: 0 0 calc(84vw - 40.32px); scroll-snap-align: center; }
  .journal-grid { padding-inline: 7%; }
  .journal-grid > * { flex: 0 0 calc(86vw - 41.28px); scroll-snap-align: center; }
  .program-grid { padding-inline: 7%; }
  .program-grid > * { flex: 0 0 calc(86vw - 41.28px); scroll-snap-align: center; }
  .books-grid { padding-inline: 10%; }
  .books-grid > * { flex: 0 0 calc(80vw - 38.4px); scroll-snap-align: center; }
  .pillars-grid > *, .pathways-grid > *, .editions-grid > *,
  .bio-grid > *, .journal-grid > *, .program-grid > *, .books-grid > * {
    transform: none !important;
  }
  .editions-grid .edition-card { padding-bottom: 14px; }
}

/* Footer newsletter on phones: the text block and the form kept
   their row flex-bases (260px / 420px) as heights in the stacked
   layout, which opened the voids around the form. Let both take
   their natural height. (The band's side padding is restored in
   the base rule above, which had overridden the wrap inset.) */
@media (max-width: 860px) {
  .footer-newsletter-text { flex: 0 0 auto; }
  .footer-newsletter .ap-newsletter-form { flex: 0 0 auto; width: 100%; }
}

/* Sticky buy bar on book pages (mobile only; markup in
   single-book.php). Mirrors the page's own buy box so the purchase
   action is always on screen while scrolling. The scroll-to-top
   button lifts above it, and the bar hides while the menu is open. */
.ap-sticky-buy { display: none; }
@media (max-width: 900px) {
  .ap-sticky-buy {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
    background: rgba(8, 20, 38, 0.97);
    border-top: 1px solid rgba(198, 161, 91, 0.45);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    transition: opacity 0.25s ease;
  }
  .ap-sticky-buy-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem; color: var(--ap-ivory); white-space: nowrap;
  }
  .ap-sticky-buy .ap-sticky-buy-btn {
    flex: 1 1 auto; text-align: center; margin: 0;
    padding: 15px 18px; font-size: 1rem;
  }
  body.single-book { padding-bottom: 86px; }
  body.single-book #ap-scroll-top { bottom: 102px; }
  html.ap-menu-open .ap-sticky-buy { opacity: 0; pointer-events: none; }
}
