/* =========================================================
   R. Walter Heinrichs — Site styles
   ---------------------------------------------------------
   COLOUR PALETTE (5 colours)
     1. Navy Gray  #2f3944  primary: header text, footer, dark panels, primary buttons
     2. White      #ffffff  page background, text on Navy Gray
     3. Black      #000000  headings and body text
     4. Mist       #e9edf0  light tint of Navy Gray: alternating sections, cards, tiles
     5. Ochre      #c9973f  warm accent: "Notify me" button, highlights, rules, timeline dots
   Contrast notes: black on Ochre 8:1, white on Navy Gray 11.7:1,
   Navy Gray on Mist 10:1. Don't put white text on Ochre (fails).
   Change a colour here and it updates across every page.
   ========================================================= */
:root {
  --navy:  #2f3944;
  --white: #ffffff;
  --black: #000000;
  --mist:  #e9edf0;
  --ochre: #c9973f;

  /* derived shades (built from the palette — no new colours) */
  --navy-soft: rgba(47, 57, 68, 0.72);   /* secondary text */
  --line:      rgba(47, 57, 68, 0.16);   /* borders */
  --ochre-dark: #a97c2c;                 /* Ochre hover */

  --font-head: "Noto Sans", Arial, serif;
  --font-body: "Noto Sans", Helvetica, Arial, sans-serif;

  --radius: 6px;
  --max: 1200px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--black); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 600; }
p  { margin: 0 0 1em; }
em, cite { font-style: italic; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 100; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); margin-bottom: .9em; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ochre); }
.lead { font-size: 1.2rem; }
.muted { color: var(--navy-soft); }
.note { font-size: .85rem; color: var(--navy-soft); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: .92rem; padding: 11px 22px;
  border-radius: 999px; border: 2px solid var(--navy); transition: all .2s ease;
  white-space: nowrap; cursor: pointer; font-family: var(--font-body); line-height: 1.3;
}
.btn-notify  { background: var(--ochre); border-color: var(--ochre); color: var(--black); } /* main book CTA */
.btn-notify:hover { background: var(--ochre-dark); border-color: var(--ochre-dark); color: var(--white); }
.btn-solid   { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--black); border-color: var(--black); }
.btn-solid.btn-gold-hover:hover { background: var(--ochre); border-color: var(--ochre); color: var(--black); } /* black text: white on Ochre is hard to read */
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-gold { background: transparent; color: var(--navy); border-color: var(--ochre); }
.btn-outline-gold:hover { background: var(--ochre); color: var(--black); }
.btn-light   { background: transparent; color: var(--white); border-color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-text    { border-color: transparent; color: var(--navy); padding-left: 0; padding-right: 0; }
.btn-text:hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 4px; }
.btn-lg      { padding: 14px 28px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 76px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }
.logo span { color: var(--ochre); }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-weight: 500; font-size: .95rem; color: var(--navy); position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--ochre); transition: width .2s; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
/* "Speaking Requests" nav item: same text style, white box with a square Ochre outline */
.main-nav ul { align-items: center; }
.main-nav .nav-speaking a { display: inline-block; background: var(--white); border: 2px solid var(--ochre); border-radius: 0; padding: 6px 14px; transition: background .2s; }
.main-nav .nav-speaking a::after { display: none; }
.main-nav .nav-speaking a:hover { background: var(--mist); }
.nav-mobile-cta { display: none; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; margin-left: auto; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: .2s; }

/* ---------- Artwork placeholders ----------
   Replace each <div class="art ..."> with <img class="art-img" src="images/..." alt="...">  */
.art {
  width: 100%; border-radius: var(--radius); display: flex; align-items: flex-end;
  padding: 14px 16px; color: rgba(255,255,255,.85); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600; min-height: 120px;
}
.art-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.art-a { background: linear-gradient(135deg, #2f3944 0%, #4a5866 55%, #c9973f 140%); }
.art-b { background: linear-gradient(160deg, #c9973f 0%, #8c7a5c 50%, #2f3944 100%); }
.art-c { background: linear-gradient(120deg, #e9edf0 0%, #9aa6b2 60%, #2f3944 100%); color: var(--navy); }
.art-d { background: linear-gradient(200deg, #000 0%, #2f3944 60%, #6b7a88 100%); }
.ratio-16x9 { aspect-ratio: 16/9; }
.ratio-4x5  { aspect-ratio: 4/5; }
.ratio-3x4  { aspect-ratio: 3/4; }
.ratio-1x1  { aspect-ratio: 1/1; }

/* Art strip used as a section divider */
.art-divider { height: 140px; border-radius: 0; min-height: 0; }

/* Painting banner between major sections (full width, cropped to a strip) */
.art-banner { width: 100%; max-width: none; height: clamp(160px, 22vw, 300px); object-fit: cover; object-position: center; display: block; }

/* Headshot placeholder */
.headshot {
  aspect-ratio: 4/5; width: 100%; border-radius: var(--radius); background: var(--mist);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--navy-soft); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  overflow: hidden;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.headshot--square { aspect-ratio: 1/1; } /* for square photos, so nothing is cropped */
/* Homepage: no box, so the cut-out photo floats on the page */
.headshot--float { aspect-ratio: auto; background: none; border: 0; border-radius: 0; overflow: visible; }
.headshot--float img { height: auto; object-fit: contain; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow, .notify-box .eyebrow { color: var(--white); }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: .25em; }

/* ---------- HOME: calling card ---------- */
.calling-card { position: relative; padding: 40px 0 0; overflow: hidden; } /* no bottom padding: the photo sits on the painting banner below */
.calling-card::before { /* artwork wash behind the calling card — swap for a real image in CSS or HTML */
  content: ""; position: absolute; inset: 0 0 0 auto; width: 44%;
  background: linear-gradient(160deg, #f9e2bf 0%, #f8f8f6 50%, #eccad8 100%); /* soft blush to cream */
  z-index: -1;
}
.cc-inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: 64px; align-items: center; }
.cc-role { font-size: 1.05rem; font-weight: 500; color: var(--navy); margin-bottom: 1.4em; }
.cc-tagline { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.45; font-weight: 600; color: var(--black); border-left: 3px solid var(--ochre); padding-left: 20px; margin-bottom: 1.6em; }
.cc-media { position: relative; align-self: end; } /* photo pinned to the bottom edge, so where it's cropped meets the banner */
.cc-text { padding-block: 24px 56px; }
.cc-media .headshot--float img { width: auto; max-width: 100%; max-height: 580px; margin: 0 auto -1px; } /* -1px: no hairline gap above the banner */
.cc-media .art { position: absolute; width: 46%; left: -18%; bottom: -26px; aspect-ratio: 1/1; min-height: 0; box-shadow: 0 10px 30px rgba(0,0,0,.18); }

/* ---------- HOME: doorways ---------- */
.doorways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doorway { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.doorway:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(47,57,68,.14); }
.doorway .art { border-radius: 0; aspect-ratio: 16/10; min-height: 0; }
/* Painting at the top of a doorway card (same size as the logo panels) */
.doorway-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
/* Logo panel at the top of a doorway card (same size as the artwork panels) */
.doorway-logo { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.doorway-logo img { height: 100%; width: auto; object-fit: contain; }
.doorway-logo--substack { background: #ff6719; } /* Substack brand orange, matches the logo file's background */
.doorway-logo--book { background: var(--white); padding-top: 12px; } /* book mockup has a white background */
.doorway-logo--art { background: var(--white); padding: 14px; } /* whole painting shown, uncropped, like the book and logo beside it */
.doorway-logo--art img { max-width: 100%; max-height: 100%; height: auto; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
/* Larger logo panel (e.g. Substack page header): logo kept at its own size, centred on a matching colour */
.logo-panel { width: 100%; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.logo-panel img { width: min(225px, 70%); height: auto; }
.logo-panel--substack { background: #ff6719; }
.logo-panel--large img { width: 100%; } /* high-resolution logo: can fill the panel width without blurring */
.doorway-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.doorway-body p { color: var(--navy-soft); flex: 1; }
.doorway-body .eyebrow { flex: 0 0 auto; } /* only the description stretches, so no gap under the eyebrow */
.doorway-body .btn { text-align: center; }
.doorway-latest { font-size: .88rem; background: var(--mist); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 1.2em; color: var(--navy); }

/* ---------- Events (hidden until confirmed) ---------- */
.event-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event-date { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 64px 0 56px; background: var(--mist); }
.ph-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.ph-inner--book { grid-template-columns: .8fr 1.2fr; }

/* ---------- ABOUT: career spotlight ---------- */
/* Photo on the left, timeline + tiles on the right, with extra space around the section */
.section--spotlight { padding: 112px 0; }
.spotlight { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.spotlight-photo { margin: 0; position: sticky; top: 108px; }
.spotlight-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 14px 30px rgba(47,57,68,.14); } /* whole photo, uncropped */
/* Photo with a painting underneath: stacked with a gap, and not sticky (the pair is taller than the screen) */
.spotlight-photo--stack { position: static; display: grid; gap: 28px; }
.spotlight-photo--stack .art-figure .art-img { height: auto; }
.spotlight-body { min-width: 0; }
.spotlight .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .section--spotlight { padding: 72px 0; }
  .spotlight { grid-template-columns: 1fr; gap: 40px; }
  .spotlight-photo { position: static; max-width: 360px; }
  .spotlight-photo--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; align-items: start; } /* side by side on tablets */
}
@media (max-width: 560px) {
  .spotlight .stat-tiles { grid-template-columns: 1fr; }
  .spotlight-photo--stack { grid-template-columns: 1fr; max-width: 360px; } /* stacked again on phones */
}
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 8px 0 48px; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--navy); opacity: .25; }
.tl-item { position: relative; padding-top: 34px; }
.tl-item::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ochre); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--ochre); }
.tl-year { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); display: block; }
.tl-text { font-size: .92rem; color: var(--navy-soft); }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-tile { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 26px 22px; border-top: 4px solid var(--ochre); }
.stat-num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; line-height: 1; display: block; margin-bottom: 10px; }
.stat-label { font-size: .92rem; opacity: .9; }

/* ---------- ABOUT: story ---------- */
.story { display: grid; grid-template-columns: 1.4fr .9fr; gap: 64px; align-items: start; }
.story-text .eyebrow + p::first-letter { font-family: var(--font-head); font-size: 3.6rem; float: left; line-height: .9; padding: 6px 10px 0 0; color: var(--navy); font-weight: 800; }
.story-art { display: grid; gap: 28px; } /* no longer sticky: three paintings are taller than the screen */
/* Painting with a small one-line gallery label. The label's middle sits on the
   painting's bottom edge, so it half-overlaps the image. */
.art-figure { margin: 0; position: relative; padding-bottom: 16px; } /* room for the half that hangs below */
.art-figure .art-img { display: block; }
.art-label {
  position: absolute; left: 16px; bottom: 16px; transform: translateY(50%);
  display: flex; align-items: baseline; gap: 8px; max-width: calc(100% - 32px);
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--ochre); border-radius: 2px;
  padding: 5px 12px; font-size: .78rem; line-height: 1.4; color: var(--navy-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(47,57,68,.12);
}
.art-label strong { color: var(--navy); font-weight: 600; font-style: italic; }
.art-label span { overflow: hidden; text-overflow: ellipsis; }
.story-text .art-callout { margin-top: 1.6em; }
.story-art .art-img { height: auto; } /* show the whole painting, uncropped */
.art-callout { font-size: .9rem; color: var(--navy); background: var(--mist); padding: 14px 16px; border-left: 3px solid var(--ochre); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- ABOUT: scholar card ---------- */
.scholar-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.scholar-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0; }
.scholar-stats div { font-size: .85rem; color: var(--navy-soft); }
.scholar-stats strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); }
.pub-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pub-list li:last-child { border-bottom: 0; }
.pub-list .pub-src { display: block; font-size: .85rem; color: var(--navy-soft); }

/* ---------- BOOK ---------- */
.book-cover {
  aspect-ratio: 2/3; width: 100%; max-width: 340px; border-radius: 4px; margin: 0 auto;
  background: linear-gradient(170deg, var(--navy) 0%, #000 100%); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; padding: 30px 26px;
  box-shadow: 14px 18px 34px rgba(0,0,0,.25); border-left: 6px solid var(--ochre);
}
/* Book cover preview image (square, white background) */
.book-cover-img { width: 100%; max-width: 420px; height: auto; margin: 0 auto; background: var(--white); border-radius: 10px; box-shadow: 0 14px 30px rgba(47,57,68,.12); }
.book-cover .bc-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.book-cover .bc-sub { font-size: .9rem; opacity: .85; margin-top: 10px; }
.book-cover .bc-author { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.book-subtitle { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--navy); margin-bottom: .6em; }
.book-meta { font-size: .95rem; color: var(--navy-soft); margin-bottom: 1.6em; }

/* Three questions side by side, one per column */
.hook-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; align-items: start; }
.hook { font-family: var(--font-head); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.4; font-weight: 600; color: var(--white); padding-left: 24px; border-left: 3px solid var(--ochre); margin: 0; }
@media (max-width: 820px) { .hook-questions { grid-template-columns: 1fr; gap: 28px; } }
.hook .hl { color: var(--ochre); } /* key phrases in gold */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--ochre); }
.feature h3 { font-size: 1.1rem; line-height: 1.35; }
.feature p { color: var(--navy-soft); font-size: .95rem; margin: 0; }

.toc-placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--navy-soft); }

/* Notify me form */
.notify-box { background: var(--navy); color: var(--white); border-radius: 10px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.notify-box h2 { color: var(--white); }
.notify-form { display: grid; gap: 12px; }
.notify-form label { font-size: .85rem; font-weight: 500; }
.notify-form label .optional { font-weight: 400; opacity: .75; }
/* First and last name side by side (stacked on very small phones) */
.name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 400px) { .name-row { grid-template-columns: 1fr; } }
.notify-form input { width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.3); background: var(--white); color: var(--black); font: inherit; }
.notify-form input:focus { outline: 3px solid var(--ochre); outline-offset: 1px; }
.notify-form .btn { justify-self: start; margin-top: 6px; }
.notify-form .btn:disabled { opacity: .6; cursor: wait; }
/* CASL consent line under the fields */
.form-consent { font-size: .8rem; line-height: 1.5; opacity: .85; margin: 4px 0 0; }
.form-consent a { text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 3px; }
.form-msg { font-size: .9rem; min-height: 1.4em; }

/* ---------- Speaking Requests pop-up ---------- */
.speaking-dialog {
  width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 0; border-top: 6px solid var(--ochre); border-radius: 10px;
  background: var(--white); color: var(--black); box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.speaking-dialog::backdrop { background: rgba(47, 57, 68, 0.72); }
.speaking-inner { padding: 36px 40px 32px; position: relative; }
.speaking-inner h2 { margin-bottom: .3em; }
.speaking-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; color: var(--navy); cursor: pointer; border-radius: 50%;
}
.speaking-close:hover { background: var(--mist); }
.speaking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 22px; }
.speaking-form .field { display: grid; gap: 6px; }
.speaking-form .field--full { grid-column: 1 / -1; }
.speaking-form label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.speaking-form label span { color: var(--navy-soft); font-weight: 400; }
.speaking-form input, .speaking-form select, .speaking-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(47,57,68,.3); border-radius: var(--radius);
  font: inherit; font-size: .95rem; color: var(--black); background: var(--white);
}
.speaking-form textarea { min-height: 120px; resize: vertical; }
.speaking-form input:focus, .speaking-form select:focus, .speaking-form textarea:focus { outline: 3px solid var(--ochre); outline-offset: 1px; }
.speaking-form .form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.speaking-form .form-msg { color: var(--navy); margin: 0; }
@media (max-width: 560px) {
  .speaking-inner { padding: 30px 20px 24px; }
  .speaking-form { grid-template-columns: 1fr; }
}

/* ---------- CONTACT page ---------- */
/* Page header: Walter's photo on the left, "Let's connect" on the right */
.ph-inner--photo-left { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.contact-photo { width: 100%; max-width: 420px; height: auto; border-radius: var(--radius); }
@media (max-width: 820px) { .contact-photo { max-width: 320px; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-reasons { display: grid; gap: 22px; margin-bottom: 32px; }
.contact-reasons li { padding-left: 20px; border-left: 3px solid var(--ochre); }
.contact-reasons h3 { font-size: 1.15rem; margin-bottom: .25em; }
.contact-reasons p { color: var(--navy-soft); margin: 0; }
.contact-reasons a, .contact-details a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 3px; }
.contact-details { display: flex; flex-wrap: wrap; gap: 16px 48px; background: var(--mist); border-radius: var(--radius); padding: 20px 24px; }
.contact-details p { margin: 0; color: var(--navy); }
.contact-card { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--ochre); border-radius: 10px; padding: 36px; box-shadow: 0 14px 30px rgba(47,57,68,.08); }
.contact-card h2 { font-size: 1.6rem; }

/* Contact form uses the same field styles as the Speaking Requests form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 18px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form .field--full { grid-column: 1 / -1; }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(47,57,68,.3); border-radius: var(--radius);
  font: inherit; font-size: .95rem; color: var(--black); background: var(--white);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--ochre); outline-offset: 1px; }
.contact-form .form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.contact-form .form-msg { color: var(--navy); margin: 0; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .contact-card { padding: 26px 20px; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ---------- SUBSTACK ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; transition: border-color .2s; }
.post-card:hover { border-color: var(--navy); }
.posts-msg { grid-column: 1 / -1; color: var(--navy-soft); margin: 0; }
.posts-msg a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 3px; }
.post-date { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-soft); margin-bottom: 10px; }
.post-card h3 { font-size: 1.2rem; }
.post-card p { color: var(--navy-soft); font-size: .95rem; flex: 1; }
.archive-list li { border-bottom: 1px solid var(--line); }
.archive-list a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.archive-list a:hover { color: var(--navy); }
.archive-list .date { font-family: var(--font-body); font-size: .85rem; font-weight: 400; color: var(--navy-soft); white-space: nowrap; }

/* ---------- BOOKS: cover picker (click a cover to show that book below) ---------- */
.books-picker { padding: 56px 0 0; background: var(--white); border-bottom: 1px solid var(--line); }
.books-picker h1 { margin-bottom: .6em; }
.book-tabs { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: flex-end; }
.book-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 170px;
  background: none; border: 0; border-bottom: 4px solid transparent; padding: 0 0 16px;
  font: inherit; color: var(--navy); cursor: pointer; text-align: center;
  opacity: .6; transition: opacity .2s, border-color .2s;
}
.book-tab:hover { opacity: 1; }
.book-tab.is-active { opacity: 1; border-bottom-color: var(--ochre); }
.book-tab:focus-visible { outline: 3px solid var(--ochre); outline-offset: 4px; }
.book-tab-cover { height: 200px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 6px; }
.book-tab-cover img { max-height: 100%; width: auto; max-width: 100%; box-shadow: 0 8px 18px rgba(47,57,68,.18); transition: transform .2s; }
.book-tab:hover .book-tab-cover img, .book-tab.is-active .book-tab-cover img { transform: translateY(-4px); }
.book-tab-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--black); }
.book-tab-year { font-size: .82rem; color: var(--navy-soft); }
.book-panel[hidden] { display: none; }
/* Book title inside each panel: styled like a page heading */
.book-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .3em; }
/* Printed book cover (portrait, no white mock-up background) */
.book-cover-img--print { max-width: 320px; border-radius: 2px; background: none; box-shadow: 14px 18px 34px rgba(0,0,0,.25); }
/* "Buy the book" label above the store buttons */
.buy-label { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: .7em; }
/* Table of contents: numbered chapters with their sections underneath */
.toc-list { counter-reset: chapter; display: grid; gap: 0; margin-top: 8px; }
.toc-list li { counter-increment: chapter; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.toc-list li::before { content: counter(chapter); grid-row: 1 / span 2; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--ochre); }
.toc-list h3 { font-size: 1.2rem; margin: 0 0 .3em; }
.toc-list p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--navy-soft); }
.toc-after { margin: 18px 0 0 60px; font-size: .92rem; }
/* Book cover beside the table of contents (contents left, cover right; cover on top on phones) */
.toc-with-cover { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; }
.toc-cover { max-width: 380px; order: 2; }
@media (max-width: 820px) {
  .toc-with-cover { grid-template-columns: 1fr; gap: 36px; }
  .toc-cover { max-width: 280px; margin: 0; order: 0; }
}
.toc-before { margin: 8px 0 0 60px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: .92rem; } /* front matter above chapter 1 */
/* "Who is this book for?": book cover on the left, text on the right; cover on top on phones */
.audience-with-cover { max-width: 1040px; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.audience-cover { max-width: 380px; margin: 0; }
@media (max-width: 820px) {
  .audience-with-cover { grid-template-columns: 1fr; gap: 36px; }
  .audience-cover { max-width: 280px; }
}
/* Two-column table of contents (The Illness of Thoughts): chapters run down the first column, then the second */
.toc-2col-wrap { max-width: 1040px; }
.toc-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 56px; }
@media (max-width: 820px) {
  .toc-list--2col { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* Praise / endorsements */
.praise-feature { margin: 0 0 36px; padding: 0 0 0 28px; border-left: 4px solid var(--ochre); max-width: 860px; }
.praise-feature p { font-family: var(--font-head); font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 600; line-height: 1.35; color: var(--black); margin-bottom: .6em; }
.praise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.praise { margin: 0; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--ochre); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.praise p { margin: 0; flex: 1; font-size: 1.02rem; line-height: 1.55; color: var(--black); }
.praise-feature cite, .praise cite { font-style: normal; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--navy); }
.praise-feature cite span, .praise cite span { color: var(--navy-soft); }
/* Buy buttons at the end of the praise section */
.praise-buy { margin-top: 44px; text-align: center; }
.praise-buy .btn-row { justify-content: center; }
@media (max-width: 960px) { .praise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .praise-grid { grid-template-columns: 1fr; }
  .praise-feature { padding-left: 18px; }
  .book-tabs { gap: 8px 16px; }
  .book-tab { width: calc(50% - 8px); }
  .book-tab-cover { height: 150px; }
}

/* ---------- CTA band (end of pages) ---------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }
/* Book cover above the text in the end-of-page band */
.cta-cover { display: block; width: min(280px, 80%); margin: 0 auto 36px; transition: transform .25s; }
.cta-cover .book-cover-img { max-width: 100%; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.cta-cover:hover { transform: translateY(-4px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-brand .logo { color: var(--white); font-size: 1.5rem; }
.footer-brand p { opacity: .8; margin: 12px 0 22px; max-width: 34ch; }
.site-footer h5 { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white); opacity: .7; margin-bottom: 16px; }
.footer-links a { display: block; padding: 4px 0; opacity: .9; }
.footer-links a:hover { color: var(--ochre); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; opacity: .8; }
.footer-bottom p { margin: 0; }
/* Design credit: dark logo turned light so it shows on the navy footer;
   cropped to the wordmark (the logo file is square with lots of white space) */
.site-credit { display: flex; align-items: center; gap: 8px; }
.site-credit a { display: block; }
.site-credit img { width: 150px; aspect-ratio: 4/1; object-fit: cover; object-position: center 46%; filter: invert(1); mix-blend-mode: screen; transition: filter .2s; }
.site-credit a:hover img { filter: invert(1) sepia(1) saturate(3) hue-rotate(-10deg); } /* warm gold tint on hover */

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .doorways, .posts, .features { grid-template-columns: 1fr 1fr; }
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .timeline::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .tl-item { padding: 0 0 22px; }
  .tl-item::before { left: -34px; top: 4px; }
  .scholar-card, .notify-box { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open { display: block; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .main-nav ul { align-items: stretch; }
  .main-nav .nav-speaking a { display: inline-block; margin: 8px 0 4px; padding: 8px 14px; }
  .nav-mobile-cta { display: inline-block; margin-top: 12px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cc-inner, .ph-inner, .ph-inner--book, .story { grid-template-columns: 1fr; gap: 36px; }
  .calling-card::before { width: 100%; height: 40%; inset: auto 0 0 0; }
  .cc-media { max-width: 380px; }
  .cc-media .art { left: auto; right: -14px; }
  .story > * { min-width: 0; }
  .story-art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-art .art-figure:last-child:nth-child(odd) { grid-column: 1 / -1; } /* third painting spans the full width */
  .section { padding: 56px 0; }
  .event-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .btn { white-space: normal; text-align: center; }
  .doorways, .posts, .features, .stat-tiles { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .notify-box, .scholar-card { padding: 26px; }
  .archive-list a { flex-direction: column; gap: 4px; }
}
