/*
Theme Name: Historian For Hire
Theme URI: https://hist4hire.com/
Author: Historian For Hire
Description: Custom WordPress theme for Historian For Hire, preserving the approved one-page design while adding editable WordPress content and blog functionality.
Version: 1.8.3
Text Domain: historian-for-hire
*/

/* 1.6 (3 Oct 2026) builds to the ChatGPT mockup Jacob approved on 2 Oct, a
 * restyle of these same sections with no new content (original, gitignored:
 * design/incoming/chatgpt-beautify-2026-10-02.png). Its scenes are in
 * assets/images/bg/, each with plain colour on the left for the text. The
 * section sizes moved from the review targets below to the mockup's: smaller
 * headings, tighter sections. Its three-column contact form was not taken.
 *
 * 1.5 (2 Oct 2026) rewrites this file in one pass. 1.0 to 1.4 had grown six
 * layers of overrides, each fighting the last; this is one system instead.
 * There is no mockup for this site (her Netlify page is the reference, see
 * design/mockup/README.md), so the sizes below come from the three ChatGPT
 * reviews of 30 Sep 2026 (design/chatgpt-*-feedback/), which give a target
 * for each one; the review item is named beside the value. */

:root{
 --navy:#172a46;--navy-deep:#10213a;--burgundy:#b33a4a;--pink:#d9899a;--pink-soft:#f1b7c3;
 --cream:#fff7f9;--blush:#fff2f5;--ink:#27303a;--muted:#5f6871;--line:#ead4da;--field:#d7c7cc;
 --wrap:1180px;                                  /* desktop 28: one content width */
 --gut:clamp(20px,4vw,40px);                     /* tablet 36, mobile 40: 24-28 phone, 32-40 tablet */
 --sec:clamp(52px,2.6rem + 2.2vw,84px);          /* the mockup: ~80 desktop, ~64 tablet, ~52 phone */
 --radius:5px;
 --f-h1:clamp(2.6rem,1.2rem + 3.4vw,3.9rem);     /* the mockup: ~62 desktop; mobile 10 (42) */
 --f-h2:clamp(1.85rem,1.3rem + 1.4vw,2.6rem);    /* the mockup: ~42 desktop; mobile 21/31 (30-32) */
 --f-h3:clamp(1.25rem,1.1rem + .45vw,1.45rem);   /* tablet 37 (20-23) */
 --f-body:clamp(1rem,.96rem + .2vw,1.075rem);    /* mobile 19 (16-17) */
 --btn-h:48px;                                   /* mobile 13 */
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:110px}
body{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:var(--f-body);color:var(--ink);background:var(--cream);line-height:1.6}
a{color:inherit}
img{max-width:100%;height:auto}
h1,h2,h3{line-height:1.12;color:var(--navy)}

/* ---- Buttons: one height, one radius, everywhere (desktop 30) ---- */
.btn,.hfh-home-editable .wp-block-button__link,.page-content .wp-block-button__link,.contact-form button,.comments-area .submit{
 display:inline-flex;align-items:center;justify-content:center;min-height:var(--btn-h);padding:12px 22px;
 background:var(--burgundy);color:#fff!important;border:1px solid var(--burgundy);border-radius:3px;
 font:bold 1rem/1.2 Georgia,"Times New Roman",serif;text-decoration:none;text-align:center;cursor:pointer}
.btn:hover,.hfh-home-editable .wp-block-button__link:hover,.page-content .wp-block-button__link:hover,.contact-form button:hover{filter:brightness(.94)}
.btn.alt{background:transparent;color:var(--burgundy)!important}
/* The block editor's Outline button style: the second of two, as .btn.alt. */
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--burgundy)!important}
.hfh-home-editable .service-card .is-style-outline .wp-block-button__link::after{content:none}
.hfh-home-editable .service-card .wp-block-buttons,.page-content .wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px}
/* The mockup's arrow, on the buttons that lead somewhere: the hero's first, the
 * two service cards' and the presentation panel's. Not on submits or outlines. */
.hfh-home-editable .hfh-hero .wp-block-button:first-child .wp-block-button__link::after,
.hfh-home-editable .service-card .wp-block-button__link::after,.pres-panel .btn::after{content:"\2192";margin-left:10px;font-weight:normal}

/* ---- Strap, header, menu ---- */
.top{background:var(--navy);color:#fff;text-align:center;padding:8px var(--gut);font-size:.88rem;letter-spacing:.08em;line-height:1.35}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100}
.nav{max-width:calc(var(--wrap) + 2 * var(--gut));margin:auto;padding:12px var(--gut);   /* padding inside the cap, so the content is the 1180 every section's is (3 Oct 2026: it was 1100) */
 display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative}
.logo{height:76px;width:auto;display:block}
.primary-menu{display:flex;gap:24px;align-items:center;list-style:none;margin:0;padding:0}   /* desktop 7: 24-28 */
.primary-menu li{margin:0}
.primary-menu a{text-decoration:none;color:var(--navy);font-size:.95rem;white-space:nowrap}
.primary-menu a:hover{color:var(--burgundy)}
.primary-menu .menu-book{margin-left:6px}
.primary-menu .menu-book a{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;background:var(--burgundy);color:#fff;border-radius:3px;font-weight:bold}
.primary-menu .menu-book a:hover{color:#fff;filter:brightness(.94)}
.menu-toggle{display:none;min-width:44px;min-height:44px;background:none;border:0;padding:0;font-size:1.75rem;line-height:1;color:var(--navy);cursor:pointer}

/* ---- Hero ---- */
/* The scene's books and globe sit on the right, behind the card; its left is
 * plain navy, faintly scripted, under the copy. */
.hfh-home-editable .hfh-hero{background:linear-gradient(90deg,rgba(13,30,51,.55),rgba(13,30,51,0) 60%),url('assets/images/bg/hero-books-globe.webp') right center/cover no-repeat,#0d1e33;color:#fff;padding:0 var(--gut)}
.hfh-home-editable .hfh-hero-inner>.wp-block-group__inner-container{max-width:var(--wrap);margin:auto;padding:clamp(52px,2.5rem + 3vw,96px) 0;   /* the mockup: shorter */
 display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:64px;align-items:center}
.hfh-home-editable .hfh-hero-copy>*>*{margin-top:0}
.hfh-home-editable .hfh-hero h1{color:#fff;font-size:var(--f-h1);line-height:1;letter-spacing:-.01em;margin:14px 0 22px}   /* desktop 9: 0.95-1.0 */
.hfh-home-editable .hfh-hero-copy .eyebrow::after{content:"";display:inline-block;width:64px;height:1px;background:var(--pink);vertical-align:middle;margin-left:14px}
.hfh-home-editable .hfh-hero-copy p:not(.eyebrow){font-size:1.12rem;line-height:1.6;font-weight:normal;max-width:620px;color:#e9edf1;margin:0 0 18px}   /* desktop 10, mobile 12 */
.hfh-home-editable .hfh-hero .wp-block-buttons{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.hfh-home-editable .hfh-hero .wp-block-button:nth-child(2) .wp-block-button__link{background:transparent;color:#fff!important;border-color:rgba(255,255,255,.8)}   /* the mockup: a white outline */
/* The card as a bookplate (Jacob, 4 Oct 2026: the stripe, rounded corners,
 * floating shadow, red capitals and underline read as a Wix template). Warm
 * paper, square corners, a hairline frame inset 7px, her name as an italic
 * author line over a rule, the line set regular rather than bold. ChatGPT's
 * direction, asked about the card alone. */
.hfh-home-editable .hero-card{position:relative;background:#fcfaf6;color:var(--navy);padding:36px 32px 34px;border:1px solid #d7cfc3;border-radius:0;box-shadow:none;max-width:400px;justify-self:end;width:100%}
.hfh-home-editable .hero-card::before{content:"";position:absolute;inset:7px;border:1px solid #e4ddd2;pointer-events:none}
.hfh-home-editable .hero-card>*>*{margin-top:0}
.hfh-home-editable .hero-card .eyebrow{color:#943440;font-size:.94rem;font-weight:normal;font-style:italic;letter-spacing:0;text-transform:none;line-height:1.4;margin:0 0 21px;padding-bottom:15px;border-bottom:1px solid #d7cfc3}
.hfh-home-editable .hero-card h2{font-size:1.62rem;font-weight:normal;line-height:1.2;letter-spacing:-.01em;margin:0 0 18px}
.hfh-home-editable .hero-card p:not(.eyebrow){color:#344050;font-size:1.06rem;margin:0;line-height:1.6}

/* ---- Eyebrows ---- */
.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:var(--pink-soft);font-size:.78rem;font-weight:bold;margin:0}
.eyebrow.dark{color:var(--burgundy)}

/* ---- Every homepage section: one width, one rhythm (desktop 28, mobile 40) ---- */
.hfh-home-editable>.wp-block-group:not(.hfh-hero),.hfh-home-editable .events{padding:var(--sec) var(--gut);margin:0}
.hfh-home-editable>.wp-block-group:not(.hfh-hero)>*,.hfh-home-editable .events-inner{max-width:var(--wrap);margin-left:auto;margin-right:auto}
.hfh-home-editable>.wp-block-group>.wp-block-group__inner-container>h2,.hfh-home-editable .events h2{font-size:var(--f-h2);margin:6px 0 8px;max-width:1000px}   /* the mockup: heading and line close under the eyebrow */
.hfh-home-editable>.wp-block-group>.wp-block-group__inner-container>p:not(.eyebrow){color:var(--muted);max-width:860px;margin:0}
.hfh-home-editable>.wp-block-group>.wp-block-group__inner-container>p.eyebrow{margin:0}
/* Each scene is pinned right at the section's full height, and the section is
 * the colour of the scene's plain left edge, so a wide screen never shows a seam. */
.hfh-home-editable>.wp-block-group{position:relative;overflow:hidden}
.hfh-home-editable .about{background:#faeeeb}
/* Her logo as the section's watermark, where the column scene was (Jacob,
 * 3 Oct 2026: the logo off from under her photo, the columns gone). Centred
 * behind the text column and faint: bg/logo-watermark.webp is logo.jpg with
 * its white ground turned transparent, so there is no box and no edges. The
 * file is 174px wide; at this opacity its softness does not read. */
.hfh-home-editable .about-grid>.wp-block-column:last-child{position:relative}
.hfh-home-editable .about-grid>.wp-block-column:last-child::after{content:"";position:absolute;left:50%;top:50%;width:min(480px,100%);aspect-ratio:174/108;transform:translate(-50%,-50%);background:url('assets/images/bg/logo-watermark.webp') center/contain no-repeat;opacity:.08;z-index:-1;pointer-events:none}
.hfh-home-editable .hfh-grant{background:url('assets/images/bg/grant-pen.webp') right center/auto 100% no-repeat,#fcece9}
.hfh-home-editable .presentations{background:url('assets/images/bg/presentations-gate.webp') right center/auto 100% no-repeat,#0d213f;color:#fff}
.hfh-home-editable>.presentations>.wp-block-group__inner-container>h2{color:#fff}
.hfh-home-editable>.presentations>.wp-block-group__inner-container>p:not(.eyebrow){color:#d8e0e7}
/* The speaking section's link, now that the section is gone (3 Oct 2026). */
.hfh-home-editable .presentations .wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.hfh-home-editable .blog{background:linear-gradient(90deg,rgba(255,255,255,.8),rgba(255,255,255,.6) 65%,rgba(255,255,255,0) 90%),url('assets/images/bg/blog-books.webp') right center/auto 100% no-repeat,#f0ddd3}
.hfh-home-editable .reviews{background:var(--blush)}
.hfh-home-editable .contact{background:#fdf9f9}
/* The leaf sprig in the margins, where the mockup has it: left of About and
 * Contact, right of Reviews, faint on the navy band. Only where the margin is
 * wide enough to hold it clear of the content. */
.hfh-home-editable>.wp-block-group>*{position:relative;z-index:1}
@media(min-width:1180px){
 .hfh-home-editable .about::before,.hfh-home-editable .reviews::before,.hfh-home-editable .contact::before,.hfh-home-editable .presentations::before{content:"";position:absolute;width:200px;height:460px;background:url('assets/images/bg/leaf-sprig.webp') center/contain no-repeat;opacity:.55;pointer-events:none}
 .hfh-home-editable .about::before{left:-40px;bottom:-30px;transform:rotate(-14deg)}
 .hfh-home-editable .reviews::before{right:-30px;top:20px;transform:scaleX(-1) rotate(-10deg)}
 .hfh-home-editable .contact::before{left:-40px;top:0;transform:rotate(-8deg)}
 .hfh-home-editable .presentations::before{left:-60px;bottom:-60px;opacity:.12}
}
.hfh-home-editable .events{background:var(--cream)}

/* ---- About ---- */
.hfh-home-editable .about-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:56px;align-items:center;margin:0}
.hfh-home-editable .about-grid>.wp-block-column:last-child{max-width:600px}   /* clear of the columns in the scene */
.hfh-home-editable .about-visual{text-align:center}
.hfh-home-editable .about-visual .wp-block-image{margin:0 auto}
.hfh-home-editable .about-visual .wp-block-image img{width:min(320px,100%);aspect-ratio:5/6;object-fit:cover;object-position:center 15%;border-radius:var(--radius);border:1px solid var(--line);box-shadow:0 12px 30px rgba(24,38,59,.12)}
.hfh-home-editable .headshot-caption{color:var(--navy);font-weight:bold;margin:18px 0 0}   /* tablet 17 */
.hfh-home-editable .about h2{font-size:clamp(1.75rem,1.3rem + 1vw,2.2rem);margin:12px 0 18px}   /* desktop 13: 26-30, below the section headings */
.hfh-home-editable .about-grid>.wp-block-column:last-child>*{margin-top:0}
.hfh-home-editable .about-grid>.wp-block-column:last-child p:not(.eyebrow){margin:0 0 16px}

/* ---- Service cards (desktop 17-19): image and text in one bordered card ---- */
.hfh-home-editable .service-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-top:28px;box-shadow:0 10px 30px rgba(24,38,59,.07)}
.hfh-home-editable .service-card>.wp-block-group__inner-container{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto auto auto auto 1fr;column-gap:40px;align-items:start}
.hfh-home-editable .service-card>.wp-block-group__inner-container>*{margin:0 0 14px}
.hfh-home-editable .service-card .service-image{grid-row:1 / span 5;margin:0}
.hfh-home-editable .service-card .service-image img{display:block;width:100%;border-radius:4px}
.hfh-home-editable .service-card h3{font-size:var(--f-h3);margin-top:4px}
.hfh-home-editable .service-card .wp-block-buttons{margin-top:10px}
/* The grant card has its image on the right, and keeps the
 * whole note: its words are in the picture, so it is never cropped. */
.hfh-home-editable .hfh-grant .service-card>.wp-block-group__inner-container{grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:center}
.hfh-home-editable .hfh-grant .service-card .service-image{grid-column:2;grid-row:1 / span 5}
.hfh-home-editable .hfh-grant .service-card>.wp-block-group__inner-container>:not(.service-image){grid-column:1}

/* ---- Featured presentations: one panel, three selectors (desktop 1, tablet 3) ---- */
.pres-feature{margin-top:28px;background:#fff;border-radius:var(--radius);padding:22px;color:var(--ink);box-shadow:0 18px 40px rgba(0,0,0,.25)}
.pres-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.pres-tab{min-height:52px;padding:10px 16px;background:#fff;color:var(--burgundy);border:1px solid var(--pink);border-radius:3px;font:bold .98rem/1.3 Georgia,"Times New Roman",serif;text-align:center;cursor:pointer}
.pres-tab[aria-selected="true"]{background:var(--burgundy);border-color:var(--burgundy);color:#fff}
.pres-tab:focus-visible{outline:3px solid var(--pink);outline-offset:2px}
.pres-panels{display:grid}
.pres-panel{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:40px;align-items:center;grid-area:1/1}
.pres-feature.is-ready .pres-panel:not(.is-active){visibility:hidden}
.pres-feature:not(.is-ready) .pres-panel+.pres-panel{grid-area:auto;margin-top:32px}
.pres-panel img{display:block;width:100%;height:auto;border-radius:4px}
.pres-panel h3{color:var(--navy);font-size:clamp(1.4rem,1.1rem + .9vw,1.9rem);margin:0 0 14px}
.pres-panel p{color:var(--ink);margin:0 0 24px}   /* desktop 22: dark text on the light panel */

/* ---- Blog ---- */
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:28px;max-width:1000px}   /* clear of the books */   /* desktop 3: 22-24 */
.post-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 8px 24px rgba(24,38,59,.05)}
.post-card h3{color:var(--navy);font-size:var(--f-h3);margin:10px 0 10px}
.post-card p{margin:0 0 16px}
.post-card a{color:var(--burgundy);font-weight:bold;text-decoration:none}
.post-num{color:var(--burgundy);font-size:1.5rem;font-weight:bold;line-height:1}
.post-meta{font-size:.85rem;color:var(--muted)}
.post-soon{color:var(--muted);font-style:italic;font-size:.95rem}
.all-posts{margin:32px 0 0}

/* ---- Reviews (desktop 4, 25) ---- */
.reviews-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:28px;align-items:start}
.review-form-box,.featured-reviews{border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.review-form-box{background:#fff}
.featured-reviews{background:#fdeef2}
.reviews-grid-single{grid-template-columns:minmax(0,760px)}   /* the form alone, until there is a review to show beside it */
.review-form-box h3,.featured-reviews h3{font-size:var(--f-h3);margin:0 0 20px}
.review-card{margin:0 0 22px;padding:0 0 0 18px;border-left:4px solid var(--burgundy)}
.review-card:nth-child(odd){border-left-color:var(--pink)}
.review-card:last-child{margin-bottom:0}
.review-card p{font-style:italic;color:var(--ink);margin:0 0 8px}
.review-card cite{font-style:normal;color:var(--muted)}

/* ---- Forms ---- */
.contact-form{display:grid;gap:18px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.contact-form label{display:block;font-weight:bold;margin-bottom:8px;color:var(--navy);font-size:.95rem}   /* desktop 25: 8-10 */
.contact-form input,.contact-form select,.contact-form textarea{width:100%;min-height:50px;padding:12px 14px;border:1px solid var(--field);border-radius:4px;background:#fffafb;font:inherit;color:var(--ink)}
.contact-form textarea{min-height:130px;resize:vertical}   /* desktop 25: 110-140 */
.contact-form button{width:100%}
.hidden-field{position:absolute;left:-5000px}
.notice{padding:14px 18px;border:1px solid var(--line);background:var(--cream);margin-bottom:20px}
.notice.success{border-color:#a8c9af}.notice.error{border-color:#d8a0a0}

/* ---- Contact (desktop 6): the heading, then one centred form about 900 wide ---- */
.hfh-home-editable>.contact>.wp-block-group__inner-container>h2,.hfh-home-editable>.contact>.wp-block-group__inner-container>p,.hfh-home-editable>.contact>.wp-block-group__inner-container>p:not(.eyebrow){margin-left:auto;margin-right:auto;text-align:center}
.hfh-home-editable .contact-grid{display:block;max-width:900px;margin:28px auto 0}
.hfh-home-editable .contact-box{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:4px 18px;text-align:center;background:none;border:0;border-bottom:1px solid var(--line);padding:0 0 22px;margin:0 0 28px}
.hfh-home-editable .contact-box>*{margin:0!important}
.hfh-home-editable .contact-box h3{flex-basis:100%;font-size:var(--f-h3)}
.hfh-home-editable .contact-box p{color:var(--muted)}
.hfh-home-editable .contact-box a{color:var(--burgundy);font-weight:bold}

/* ---- Social and footer: one navy band, as the mockup closes ----
 * Social is the last homepage section, so it runs straight into the footer:
 * the heading left, the links right, then a rule and the footer line. */
.hfh-home-editable #social-media.social{background:var(--navy-deep);color:#fff;padding-top:clamp(40px,2rem + 1.5vw,56px);padding-bottom:28px}
.hfh-home-editable>#social-media>.wp-block-group__inner-container{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:40px;align-items:center;padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,.18)}
.hfh-home-editable>#social-media>.wp-block-group__inner-container>*{grid-column:1}
.hfh-home-editable>#social-media>.wp-block-group__inner-container>h2{color:#fff;font-size:clamp(1.5rem,1.2rem + .8vw,1.9rem);margin:6px 0 6px}
.hfh-home-editable>#social-media>.wp-block-group__inner-container>p:not(.eyebrow){color:#d8e0e7;font-size:.95rem}
.hfh-home-editable>#social-media>.wp-block-group__inner-container>.social-links{grid-column:2;grid-row:1 / span 3;margin:0}
.social-links{display:flex;flex-wrap:wrap;gap:10px}
.social-links a{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid rgba(255,255,255,.55);border-radius:3px;color:#fff;text-decoration:none;font-weight:bold;font-size:.95rem}
.social-links a:hover{background:rgba(255,255,255,.08)}
.hfh-home-editable .social .social-links{justify-content:flex-end}

/* ---- Events ---- */
.event-list{display:grid;gap:18px;margin-top:32px}
.event-card{display:grid;grid-template-columns:86px 1fr;gap:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.event-date{background:var(--navy);color:#fff;border-radius:4px;text-align:center;padding:10px 6px;align-self:start}
.event-month{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:.78rem;color:var(--pink-soft);font-weight:bold}
.event-day{display:block;font-size:2rem;font-weight:bold;line-height:1.1}
.event-card h3{margin:0 0 6px;font-size:var(--f-h3)}
.event-meta{color:var(--muted);margin:0 0 8px}
.event-link{color:var(--burgundy);font-weight:bold;text-decoration:none}

/* ---- Footer (desktop 27: a closing strip) ---- */
footer{background:var(--navy-deep);color:#cdd5dd;padding:40px var(--gut);font-size:.88rem}
.home footer{padding-top:0}   /* the social band above already opened it */
.footer-inner{max-width:var(--wrap);margin:auto;display:grid;grid-template-columns:1fr auto;column-gap:24px;align-items:end}
.footer-inner p{margin:0 0 4px;grid-column:1}.footer-inner p:last-child{margin:0}
.footer-inner .credit{grid-column:2;grid-row:2 / span 2}
.footer-inner a{color:#fff}
.credit{font-size:.82rem}.credit a{color:#cdd5dd}

/* ---- Posts, pages, archive, 404 ---- */
main>section{padding:var(--sec) var(--gut);background:var(--cream)}
.page-content{font-size:1.08rem}
.page-content img{border-radius:var(--radius)}
.entry-meta{color:var(--muted);font-size:.9rem}
.archive-item{max-width:860px;padding:28px 0;border-bottom:1px solid var(--line)}
.archive-item:first-child{padding-top:0}
.not-found{min-height:50vh}
.actions{display:flex;gap:13px;flex-wrap:wrap}
.comments-area{margin-top:50px;padding-top:30px;border-top:1px solid var(--line)}
.comments-area input,.comments-area textarea{width:100%;padding:12px;border:1px solid var(--field);font:inherit}

/* ---- Inner pages: Public Speaking, Grant Writing and each
 * talk (1.7, 3 Oct 2026, for search: one page per subject). Nobody drew them,
 * so every value is one the homepage already uses: the presentations band's
 * navy for the title band, --sec and --wrap for rhythm and width, the
 * service card's border, radius and shadow for the cards. ---- */
.page-hero{background:#0d213f;color:#fff;padding:calc(var(--sec) * .75) var(--gut)}   /* the hero's band, shorter: a title, not a pitch */
.page-hero-inner{max-width:var(--wrap);margin:auto}
.page-hero h1{color:#fff;font-size:var(--f-h2);margin:8px 0 0;max-width:900px}
.page-hero .eyebrow{margin-top:4px}
.page-hero-meta{color:#d8e0e7;margin:10px 0 0}
.page-hero-lead{color:#d8e0e7;max-width:860px;margin:12px 0 0}   /* the band's line under its heading, as on the homepage */
.breadcrumbs{font-size:.85rem;color:#c9d3dd;margin:0 0 10px}
.breadcrumbs a{color:#fff}
.page-wide{max-width:var(--wrap);margin:auto}
/* A page body starts on the title band's edge, the full 1180 (Jacob, 3 Oct
 * 2026: at 900 and centred it sat indented under a full-width title). Its
 * prose keeps the homepage section copy's 860 measure, left-set. */
.page-wide>.page-content>:is(p,figure,ul,ol,blockquote,img),.page-wide>p,.comments-area{max-width:min(860px,100%)}   /* min(): a bare 860px replaced img{max-width:100%}, and a 1024px featured image ran off a phone (ask-1367) */
.page-content{overflow-wrap:anywhere}   /* her posts carry bare source URLs, wider than a phone */
.page-content>*:first-child{margin-top:0}
.page-content h2,.pres-others h2,.cta-band h2{font-size:var(--f-h2);margin:44px 0 12px}
.page-content .lead{font-size:1.2rem;color:var(--navy)}
.page-content figure{margin:28px 0}
.page-content figure img{display:block;border-radius:var(--radius);border:1px solid var(--line)}
.page-content .events{margin-top:var(--sec)}
.page-content .events h2{margin-top:6px}
/* Image beside text (the Public Speaking page): the service card's split. */
.page-content .service-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px;align-items:start;margin:28px 0}
.page-content .service-split figure{margin:0}
/* Picture on the right (Grant Writing), as the homepage's grant card: 7:5, top-set. */
.page-content .service-split-right{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.page-content .service-split>.wp-block-column>*:first-child{margin-top:0}
/* One talk per row, the picture on the left (Jacob, 3 Oct 2026; it was a
 * three-up grid). The picture column is the homepage panel's split, 5:7. */
.pres-cards{display:grid;gap:22px;margin-top:28px}
.pres-card{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 10px 30px rgba(24,38,59,.07)}
/* Two of the three pictures are square badges and a portrait: shown whole on
 * the blush ground rather than cropped through. */
.pres-card-image{display:block;position:relative;align-self:start;width:100%;aspect-ratio:4/3;background:var(--blush)}   /* start, not stretched: a stretched row height would set the width through the ratio and spill over the text */
.pres-card-image img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}   /* absolute: the file's own height must not stretch the 4:3 frame */
.pres-card-body{display:flex;flex-direction:column;justify-content:center;padding:28px 32px}
.pres-card-body h2,.pres-card-body h3{font-size:var(--f-h3);margin:0 0 10px}
.pres-card-body h2 a,.pres-card-body h3 a,.pres-panel h3 a{text-decoration:none;color:inherit}
.pres-card-body p{margin:0 0 16px}
.pres-card-more,.pres-more a{color:var(--burgundy);font-weight:bold;text-decoration:none}
/* Under a talk, the others by picture and title only (4 Oct 2026): their
 * summaries are on Public Speaking, and printing them a third time was the
 * duplication Jacob called out. Side by side, a picture above each title. */
.pres-cards:has(.pres-card-compact){grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.pres-card-compact{grid-template-columns:1fr}
.pres-card-compact .pres-card-body{justify-content:flex-start;padding:20px 24px 22px}
.pres-more{margin:-10px 0 22px!important}   /* under the panel's text, above its button */
.pres-single{max-width:var(--wrap);margin:auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:start}
.pres-single-image{margin:0}
.pres-single-image img{display:block;width:100%;height:auto;border-radius:var(--radius)}
.pres-single .actions{margin-top:28px}
main>section.pres-others{background:var(--blush)}
.pres-others h2{margin-top:0}
.cta-band{background:var(--blush);text-align:center;padding:var(--sec) var(--gut)}
.cta-inner{max-width:760px;margin:auto}
.cta-band h2{margin:6px 0 12px}
.cta-band p:not(.eyebrow){color:var(--muted);margin:0}
.cta-band .actions{justify-content:center;margin-top:26px}
.footer-links{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:6px 22px;margin:0 0 18px;padding:0 0 18px;border-bottom:1px solid rgba(255,255,255,.14)}
.footer-links a{color:#fff;text-decoration:none;font-size:.95rem;min-height:44px;display:inline-flex;align-items:center}
@media(max-width:980px){
 .footer-links{justify-content:center}
}
@media(max-width:800px){
 .pres-single,.page-content .service-split{grid-template-columns:1fr;gap:28px}
 .page-content .service-split-right>.wp-block-column:last-child{order:-1}   /* the picture first when stacked */
 .pres-single-image img{max-width:460px}
}
/* The row stacks, picture on top, once the text beside it would starve. */
@media(max-width:700px){.pres-card{grid-template-columns:1fr}.pres-card-body{padding:22px}}
@media(max-width:600px){
 .pres-single .btn{width:100%}
}

/* ---- The menu collapses before it crowds: nine items need ~1100px (tablet 8) ---- */
@media(max-width:1100px){
 .menu-toggle{display:block}
 .primary-menu{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;padding:8px var(--gut) 20px;flex-direction:column;align-items:stretch;gap:0;border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(24,38,59,.12)}
 .primary-menu.open{display:flex}
 .primary-menu a{display:flex;align-items:center;min-height:46px;border-bottom:1px solid #f2e6ea}   /* mobile 9: 44px rows */
 .primary-menu .menu-book{margin:14px 0 0}
 .primary-menu .menu-book a{justify-content:center;border:0;min-height:var(--btn-h)}
}

/* ---- Tablet ---- */
@media(max-width:980px){
 .hfh-home-editable .hfh-hero-inner>.wp-block-group__inner-container{grid-template-columns:1fr;gap:40px}   /* tablet 2 */
 .hfh-home-editable .hero-card{justify-self:start;max-width:600px}
 .hfh-home-editable .about-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:36px}   /* tablet 15 */
 .post-grid{grid-template-columns:1fr}
 .reviews-grid{grid-template-columns:1fr;gap:28px}   /* tablet 6 */
 .pres-panel{grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:28px}
 /* One column from here: the globe would sit behind the copy, so the hero's
  * scene drops to the bottom under a navy wash; the blog's cards stack and
  * would cover the books, so it keeps a pale wash and no scene. */
 .hfh-home-editable .hfh-hero{background:linear-gradient(180deg,rgba(13,30,51,.94) 40%,rgba(13,30,51,.6)),url('assets/images/bg/hero-books-globe-900.webp') 80% 100%/auto 70% no-repeat,#0d1e33}
 .hfh-home-editable .blog{background:#fbf4f0}
 .hfh-home-editable>#social-media>.wp-block-group__inner-container{display:block;text-align:center}
 .hfh-home-editable .social .social-links{justify-content:center;margin-top:20px}
 .footer-inner{display:block;text-align:center}
 .footer-inner .credit{margin-top:10px}
}
@media(max-width:800px){
 .hfh-home-editable .service-card>.wp-block-group__inner-container,
 .hfh-home-editable .hfh-grant .service-card>.wp-block-group__inner-container{display:block}
 .hfh-home-editable .service-card .service-image{margin:0 0 22px}
 .pres-panel{grid-template-columns:1fr;gap:22px}
 .pres-panel img{max-width:460px}
 /* About, in reading order on a phone: label, heading, portrait, text (mobile 4). */
 .hfh-home-editable .about-grid{display:flex;flex-direction:column;gap:0;align-items:stretch}
 .hfh-home-editable .about-grid>.wp-block-column:last-child{display:contents}
 .hfh-home-editable .about-grid .eyebrow{order:-2}
 .hfh-home-editable .about-grid h2{order:-1}
 .hfh-home-editable .about-visual{margin:6px 0 32px}
 .hfh-home-editable .about-visual .wp-block-image img{width:min(300px,100%)}   /* mobile 16 */
 /* Phone sections are tall and narrow: a scene sized to their height would be
  * all columns and pen behind the text, so they keep only its colour. The hero
  * keeps a phone-sized scene (see 980). */
 .hfh-home-editable .about,.hfh-home-editable .hfh-grant,.hfh-home-editable .presentations{background-image:none}
 .hfh-home-editable .about-grid>.wp-block-column:last-child::after{content:none}   /* the column is display:contents here, and on a phone it would sit under every line */
}

/* ---- Phone ---- */
@media(max-width:600px){
 .top{font-size:.72rem;letter-spacing:.05em;padding:8px 14px}   /* mobile 6 */
 .logo{height:64px}   /* mobile 8: ~110 wide */
 .nav{padding-top:10px;padding-bottom:10px}
 .hfh-home-editable .hfh-hero h1{line-height:1.04;margin-bottom:20px}
 .hfh-home-editable .hfh-hero-copy p:not(.eyebrow){font-size:1.02rem;margin-bottom:14px}
 .hfh-home-editable .hfh-hero .wp-block-buttons{flex-direction:column;align-items:stretch;gap:12px;margin-top:24px}   /* mobile 13 */
 .hfh-home-editable .hfh-hero .wp-block-button__link{width:100%}
 .hfh-home-editable .hfh-hero-inner>.wp-block-group__inner-container{gap:30px}
 .hfh-home-editable .hero-card{padding:30px 26px 28px}
 .hfh-home-editable .hero-card h2{font-size:1.45rem}
 .hfh-home-editable .service-card,.review-form-box,.featured-reviews,.post-card{padding:22px}
 .hfh-home-editable .service-card .wp-block-button,.hfh-home-editable .service-card .wp-block-button__link,.hfh-home-editable .presentations .wp-block-button,.hfh-home-editable .presentations .wp-block-button__link{width:100%}   /* mobile 24, 29 */
 .hfh-home-editable .service-card h3{font-size:1.25rem}
 .pres-feature{padding:16px}
 .pres-tabs{grid-template-columns:1fr;gap:8px;margin-bottom:20px}
 .pres-tab{min-height:48px}
 .pres-panel .btn{width:100%}
 .form-grid{grid-template-columns:1fr}
 .event-card{grid-template-columns:64px 1fr;gap:16px;padding:18px}
}

/* ---- check:layout and check:buttons, 2 Oct 2026 ---- */
/* Three selectors side by side starve below about 1024: they stack instead. */
@media(max-width:1024px){.pres-tabs{grid-template-columns:1fr;gap:8px;margin-bottom:20px}.pres-tab{min-height:48px}}
/* On the narrowest phones the panel runs edge to edge, so "Inquire About This
 * Presentation" keeps to one line. */
@media(max-width:420px){
 .pres-feature{margin-left:calc(-1 * var(--gut));margin-right:calc(-1 * var(--gut));border-radius:0;padding:16px}
 .pres-panel .btn,.pres-single .btn{padding-left:12px;padding-right:12px;font-size:.95rem}
 .pres-panel .btn::after{content:none}   /* the arrow would wrap it at 320 */
}
