/* ==========================================================================
   jeffmaness.com — bold & modern
   Design tokens first. Light + dark themes via [data-theme] on <html>.
   ========================================================================== */

:root {
  /* Brand — red J|M monogram accent */
  --accent:          #e11d2b;
  --accent-hover:    #f5333f;
  --accent-ink:      #ffffff;
  --accent-soft:     rgba(225, 29, 43, 0.12);

  /* Secondary pops drawn from the stage-lighting photo */
  --blue:            #2f6fe0;
  --magenta:         #b5359b;

  /* Navy neutrals — light theme */
  --bg:            #ffffff;
  --surface:       #f2f5fb;
  --surface-2:     #e5ecf7;
  --ink:           #0e2148;   /* deep navy — dark sections in BOTH themes */
  --ink-deep:      #081733;
  --ink-text:      #eef3ff;
  --text:          #0e2148;
  --text-soft:     #45557a;
  --text-muted:    #7e8bab;
  --border:        rgba(14, 33, 72, 0.12);
  --border-strong: rgba(14, 33, 72, 0.20);
  --shadow:        0 10px 30px -12px rgba(14, 33, 72, 0.20);
  --shadow-lg:     0 24px 60px -20px rgba(14, 33, 72, 0.34);

  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container:   1200px;
  --container-narrow: 760px;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 140ms;
  --t-med:  260ms;
}

:root[data-theme="dark"] {
  --bg:            #081226;
  --surface:       #0e1d3d;
  --surface-2:     #16294f;
  --ink:           #0c1c3c;   /* panels lifted slightly off the bg */
  --ink-deep:      #060f22;
  --text:          #eef2fb;
  --text-soft:     #aab8d6;
  --text-muted:    #7e8db0;
  --border:        rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent:        #ff3b47;
  --accent-hover:  #ff5761;
  --accent-soft:   rgba(255, 59, 71, 0.18);
  --blue:          #5b9bff;
  --shadow:        0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg:     0 30px 70px -24px rgba(0, 0, 0, 0.75);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.eyebrow--link:hover { text-decoration: underline; }
.accent { color: var(--accent); font-style: normal; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.1rem, 4vw, 2rem);
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.band { background: var(--surface); max-width: none; }
.band > * { max-width: var(--container); margin-inline: auto; }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: gap var(--t-fast);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow--back { display: inline-block; color: var(--text-muted); margin-bottom: 1rem; }
.link-arrow--back:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Buttons + pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all var(--t-fast);
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill--active { background: var(--accent); color: var(--accent-ink); }
.pill--active:hover { color: var(--accent-ink); }
.pill--sm { font-size: 0.78rem; padding: 0.3rem 0.75rem; }
.pill--muted { background: transparent; border-color: var(--border); }
.pill--platform { background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Banner
   -------------------------------------------------------------------------- */
.banner { background: var(--ink); color: var(--ink-text); font-size: 0.9rem; }
.banner__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.6rem 1.2rem; position: relative;
}
.banner a { color: var(--accent); font-weight: 600; }
.banner__close {
  position: absolute; right: 1rem; background: none; border: none;
  color: var(--ink-text); font-size: 1.4rem; line-height: 1; opacity: 0.7;
}
.banner__close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Header + nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-med);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem clamp(1.1rem, 4vw, 2rem);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }
.wordmark__mark { height: 34px; width: 34px; }
.wordmark__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.03em; color: var(--text);
}
.site-footer__brand .wordmark { margin-bottom: 0.2rem; }
.site-footer__brand .wordmark__mark { filter: none; }
.site-nav { margin-left: auto; }
.site-nav__menu {
  list-style: none; display: flex; align-items: center; gap: 1.6rem; padding: 0;
}
.site-nav__menu a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  color: var(--text-soft); transition: color var(--t-fast);
}
.site-nav__menu a:hover { color: var(--accent); }
.site-nav__menu .btn { color: var(--accent-ink); }
.site-nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px;
}
.site-nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t-fast); }

.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); transition: all var(--t-fast);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-deep);
  min-height: clamp(560px, 82vh, 780px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: 68% 18%;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,19,45,0.35) 0%, rgba(8,19,45,0.20) 35%, rgba(8,19,45,0.92) 100%),
    linear-gradient(90deg, rgba(8,19,45,0.88) 0%, rgba(8,19,45,0.65) 34%, rgba(8,19,45,0.10) 62%, rgba(8,19,45,0) 82%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; width: 100%;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2rem);
}
.hero__text { max-width: 560px; color: #fff; }
.hero .eyebrow { color: #fff; opacity: 0.9; }
.hero__headline {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.02;
  margin-bottom: 1.2rem;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.hero__headline .accent { color: #ff5561; }
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.88); max-width: 46ch; margin-bottom: 1.8rem;
}
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero .subscribe-row__label { color: rgba(255,255,255,0.7); }
.hero .pill--platform { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.18); }
.hero .pill--platform:hover { border-color: #ff5561; color: #fff; }
.hero__btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.hero__btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }

/* Latest-episode band under the hero */
.latest { background: var(--ink); color: var(--ink-text); }
.latest__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; padding: clamp(2rem, 4vw, 3rem) clamp(1.1rem, 4vw, 2rem);
}
.latest__cover {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--ink-deep);
}
.latest__cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--art); background-size: cover; background-position: center;
  filter: blur(30px) brightness(0.6) saturate(1.15); transform: scale(1.3);
}
.latest__cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.latest__tag {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); margin-bottom: 0.9rem;
}
.latest__title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; color: #fff; }
.latest__title a:hover { color: #ff5561; }

/* --------------------------------------------------------------------------
   Subscribe row
   -------------------------------------------------------------------------- */
.subscribe-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.subscribe-row__label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* --------------------------------------------------------------------------
   Cards + grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.6rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__media {
  position: relative; display: block; aspect-ratio: 16/9;
  background: var(--ink); overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: var(--accent); background: var(--ink);
}

/* Episode artwork is square/portrait — show it WHOLE (never cropped) on a
   blurred backdrop of itself so the frame stays filled and colorful. */
.card--episode .card__media { aspect-ratio: 1 / 1; background: var(--ink); }
.card--episode .card__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--art); background-size: cover; background-position: center;
  filter: blur(28px) brightness(0.6) saturate(1.15); transform: scale(1.3);
}
.card--episode .card__media img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
}
.card--episode:hover .card__media img { transform: none; }
.card__play {
  position: absolute; bottom: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 0.9rem;
  opacity: 0; transform: translateY(8px); transition: all var(--t-med) var(--ease);
}
.card:hover .card__play { opacity: 1; transform: translateY(0); }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.card__eyebrow--link:hover { color: var(--accent); }
.card__title { font-size: 1.18rem; line-height: 1.2; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--text-soft); font-size: 0.92rem; flex: 1; }
.card__meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 0.4rem; }

/* --------------------------------------------------------------------------
   Page hero (podcast / blog / generic)
   -------------------------------------------------------------------------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.1rem, 4vw, 2rem);
}
.page-hero__inner--center { flex-direction: column; text-align: center; }
.page-hero__art {
  width: 200px; height: 200px; border-radius: var(--radius-lg);
  object-fit: cover; box-shadow: var(--shadow-lg); flex-shrink: 0;
}
.page-hero__title { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-hero__sub { color: var(--text-soft); font-size: 1.1rem; max-width: 60ch; margin-top: 0.7rem; }
.page-hero__meta { color: var(--text-muted); margin: 0.6rem 0 1rem; font-size: 0.92rem; }
.page-hero--podcast { background: var(--ink); color: var(--ink-text); }
.page-hero--podcast .page-hero__sub { color: rgba(255,255,255,0.7); }
.page-hero--podcast .page-hero__meta { color: rgba(255,255,255,0.55); }
.page-hero--podcast .subscribe-row__label { color: rgba(255,255,255,0.6); }
.page-hero--podcast .pill { background: rgba(255,255,255,0.1); color: #fff; }
.page-hero--podcast .pill:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */
.filters { display: flex; gap: 0.6rem; margin-bottom: 1.4rem; max-width: 520px; }
.filters__search {
  flex: 1; padding: 0.7rem 1rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong); background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
}
.filters__search:focus { border-color: var(--accent); outline: none; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tag-cloud--sm { margin-bottom: 0; }
.results-note { color: var(--text-soft); margin-bottom: 1.4rem; }
.empty { color: var(--text-muted); padding: 2rem 0; }
.empty a { color: var(--accent); }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.pagination__link {
  font-family: var(--font-display); font-weight: 600; padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong);
  transition: all var(--t-fast);
}
.pagination__link:hover { border-color: var(--accent); color: var(--accent); }
.pagination__status { color: var(--text-muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Prose (migrated HTML + long-form)
   -------------------------------------------------------------------------- */
.prose { max-width: var(--container-narrow); margin: 0 auto; color: var(--text); font-size: 1.08rem; line-height: 1.75; }
.prose--wide { max-width: 900px; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.35rem; margin-top: 2rem; }
.prose p { color: var(--text-soft); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--radius); margin: 1.6rem auto; box-shadow: var(--shadow); }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--text-soft); }
.prose li + li { margin-top: 0.4rem; }
.prose blockquote {
  border-left: 4px solid var(--accent); padding: 0.4rem 0 0.4rem 1.4rem;
  font-size: 1.2rem; font-style: italic; color: var(--text);
}
.prose iframe { border-radius: var(--radius); margin: 1.6rem 0; width: 100%; }
.prose h1 { font-size: 2rem; }

/* --------------------------------------------------------------------------
   Media embeds
   -------------------------------------------------------------------------- */
.spotify-embed { border-radius: 12px; border: 0; }
.episode__players { display: grid; gap: 1.2rem; margin: 1.8rem auto; max-width: 820px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Episode + post detail
   -------------------------------------------------------------------------- */
.episode, .post {
  max-width: 860px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 2rem);
}
.episode__title, .post__title { font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0.4rem 0 1rem; }
.episode__meta, .post__meta { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; display: flex; gap: 0.5rem; }
.episode__notes { margin-top: 2.5rem; }
.episode__notes h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.episode .subscribe-row { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.post__hero { margin: 1.8rem 0; }
.post__hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.post__body { max-width: none; }
.post__tags { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   Books
   -------------------------------------------------------------------------- */
/* Covers are pre-cropped to just the artwork — show each one full-frame at its
   own natural shape (no letterbox, no background, no crop). */
.book-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.book-cover img { display: block; width: 100%; height: auto; }
.book-cover__fallback {
  display: grid; place-items: center; aspect-ratio: 2/3; width: 100%;
  background: var(--surface-2);
  font-family: var(--font-display); font-weight: 700; text-align: center;
  padding: 1rem; color: var(--text-soft); font-size: 1.1rem;
}
.book-cover--lg { max-width: 240px; }
.book-cover--xl { width: 300px; max-width: 100%; }
.book-strip { align-items: flex-start; }

.book-strip { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.book-strip__item { flex: 0 0 150px; scroll-snap-align: start; transition: transform var(--t-med); }
.book-strip__item:hover { transform: translateY(-6px); }
.book-strip__item .book-cover { margin-bottom: 0.7rem; }
.book-strip__title { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.5rem; }
.book-card { display: flex; flex-direction: column; gap: 1rem; }
.book-card__title { font-size: 1.3rem; }
.book-card__title a:hover { color: var(--accent); }
.book-card__subtitle { color: var(--text-soft); font-size: 0.95rem; }
.book-card__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; }

.book-detail { max-width: var(--container); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2rem); }
.book-detail__inner { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book-detail__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.5rem 0; }
.book-detail__subtitle { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 0.5rem; }
.book-detail__year { color: var(--text-muted); font-size: 0.9rem; }
.book-detail__buy { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.4rem 0 2rem; }
.book-detail .prose { margin: 0; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about { max-width: var(--container); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.1rem, 4vw, 2rem); }
.about__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media img, .about__portrait-fallback { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.about__portrait-fallback {
  aspect-ratio: 4/5; display: grid; place-items: center; background: var(--ink);
  color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 4rem;
}
.about__title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.about__intro { font-size: 1.2rem; color: var(--text-soft); }
.fact-list { list-style: none; padding: 0; margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.fact-list li { padding-left: 1.5rem; position: relative; color: var(--text-soft); }
.fact-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.about__body { margin-top: 3rem; }
.about__family { margin: 3rem auto 0; max-width: 820px; }
.about__family img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__family figcaption { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 0.7rem; }
.about__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-top: 3rem; }

.simple-page__hero { max-width: var(--container); margin: 2rem auto 0; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.simple-page__hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { max-width: var(--container); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.1rem, 4vw, 2rem); }
.contact__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.contact__intro p { color: var(--text-soft); }
.contact__links { list-style: none; padding: 0; margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.contact__links a { color: var(--accent); font-weight: 600; }
.contact__form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong); background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 0.98rem; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; }
.field__error { color: var(--accent); font-size: 0.85rem; }
.field--hidden { display: none; }

/* --------------------------------------------------------------------------
   Messages
   -------------------------------------------------------------------------- */
.messages { max-width: var(--container-narrow); margin: 1.5rem auto 0; padding: 0 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.message { padding: 0.9rem 1.2rem; border-radius: var(--radius); font-weight: 500; border: 1px solid var(--border); }
.message--success { background: var(--accent-soft); border-color: var(--accent); }
.message--warning { background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--ink-text); margin-top: 4rem; }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2rem) 2rem;
}
.site-footer__brand .wordmark__name { color: #fff; }
.site-footer__brand p { color: rgba(255,255,255,0.65); margin-top: 0.7rem; max-width: 34ch; }
.site-footer__note { font-size: 0.85rem; color: rgba(255,255,255,0.45) !important; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.site-footer__col h3 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.9rem; }
.site-footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__col a { color: rgba(255,255,255,0.8); font-size: 0.92rem; transition: color var(--t-fast); }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bottom {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem clamp(1.1rem, 4vw, 2rem); border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .latest__inner { grid-template-columns: 1fr; }
  .latest__cover { max-width: 240px; }
  .about__inner, .contact__inner, .book-detail__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 360px; }
  .book-detail__cover { max-width: 300px; margin: 0 auto; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav__toggle { display: flex; order: 3; }
  .site-nav { margin-left: auto; }
  .site-nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 1.4rem;
    background: var(--bg); border-left: 1px solid var(--border);
    padding: 5rem 2rem 2rem; transform: translateX(100%);
    transition: transform var(--t-med) var(--ease); box-shadow: var(--shadow-lg);
  }
  .site-nav__menu.is-open { transform: translateX(0); }
  .site-nav__menu a { font-size: 1.1rem; }
  .page-hero__inner:not(.page-hero__inner--center) { flex-direction: column; text-align: center; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
