/*
Theme Name: Callan Pyfer
Theme URI: https://callanpyfer.com/
Author: Callan Pyfer
Author URI: https://callanpyfer.com/about/
Description: Portfolio block theme for callanpyfer.com. Barlow / Barlow Condensed, radius 0, no shadows, thin divider lines only.
Version: 1.0.16
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: callanpyfer
*/

:root {
	--cp-bg: var(--wp--preset--color--bg);
	--cp-text: var(--wp--preset--color--text);
	--cp-accent: var(--wp--preset--color--accent);
	--cp-accent-600: var(--wp--preset--color--accent-600);
	--cp-accent-700: var(--wp--preset--color--accent-700);
	--cp-accent-900: var(--wp--preset--color--accent-900);
	--cp-divider: rgba(29, 31, 32, .16);
	--cp-muted-82: rgba(29, 31, 32, .82);
	--cp-muted-80: rgba(29, 31, 32, .80);
	--cp-muted-78: rgba(29, 31, 32, .78);
	--cp-muted-72: rgba(29, 31, 32, .72);
	--cp-muted-70: rgba(29, 31, 32, .70);
	--cp-heading: var(--wp--preset--font-family--heading);
	--cp-gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; text-wrap: pretty; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cp-accent); outline-offset: 2px; }
::selection { background: rgba(89, 128, 166, .3); }
h1, h2, h3, h4, h5, h6 { font-family: var(--cp-heading); font-weight: 600; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1; }
.screen-reader-text, .cp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cp-text); color: var(--cp-bg); padding: 10px 16px; }
.cp-skip:focus { left: 8px; }

/* ── Shared text styles ─────────────────────────────────────────── */
.cp-kicker { display: block; font-family: var(--wp--preset--font-family--body); line-height: 1.55; margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--cp-accent-700); }
.cp-kicker--muted { color: var(--cp-muted-70); }
.cp-rule { height: 1px; background: var(--cp-divider); border: 0; margin: 0; }
.cp-muted { color: var(--cp-muted-80); }
.cp-upper { text-transform: uppercase; }

/* Section heads: "02 · Why hiring teams call" + divider */
.cp-section { padding: 24px 0 72px; }
.cp-section-head { margin-bottom: 12px; }
.cp-section-head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* Page intro (interior pages) */
.cp-page-intro { padding: 80px 0 48px; }
.cp-page-intro .cp-kicker { margin-bottom: 16px; }
.cp-h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; }
.cp-intro-copy { font-size: 17px; line-height: 1.55; max-width: 60ch; margin-top: 24px; color: var(--cp-muted-80); }

/* ── Buttons (core/button + .cp-btn) ────────────────────────────── */
.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.wp-block-button__link, .cp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 20px; border: 1px solid var(--cp-accent); border-radius: 0;
	font-family: var(--cp-heading); font-weight: 600; font-size: 14px; line-height: 1.2;
	background: var(--cp-accent); color: var(--cp-bg) !important; text-decoration: none; cursor: pointer;
	box-shadow: none; transition: background-color .15s;
}
.wp-block-button__link:hover, .cp-btn:hover { background: var(--cp-accent-600); color: var(--cp-bg); }
.wp-block-button__link:active, .cp-btn:active { background: var(--cp-accent-700); }
.is-style-secondary .wp-block-button__link, .cp-btn--secondary {
	background: transparent; color: var(--cp-text) !important; border-color: var(--cp-divider);
}
.is-style-secondary .wp-block-button__link:hover, .cp-btn--secondary:hover { background: rgba(29, 31, 32, .07); }
.is-style-secondary .wp-block-button__link:active, .cp-btn--secondary:active { background: rgba(29, 31, 32, .14); }
.is-style-ghost .wp-block-button__link, .cp-btn--ghost {
	background: transparent; color: var(--cp-accent-700) !important; border-color: transparent; padding: 0 4px; min-height: 36px;
}
.is-style-ghost .wp-block-button__link:hover, .cp-btn--ghost:hover { background: rgba(89, 128, 166, .10); }
.cp-btn--sm { min-height: 40px; }

/* ── Header ─────────────────────────────────────────────────────── */
.cp-header { position: sticky; top: 0; z-index: 10; background: var(--cp-bg); border-bottom: 1px solid var(--cp-divider); }
.admin-bar .cp-header { top: 32px; }
.cp-nav { display: flex; align-items: center; gap: 13.6px; flex-wrap: wrap; row-gap: 8px; padding: 10.2px var(--cp-gutter); }
.cp-nav__brand { margin-right: auto; font-family: var(--cp-heading); font-weight: 600; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; color: var(--cp-text); text-decoration: none; }
.cp-nav__links { display: flex; gap: 13.6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.cp-nav__links a { color: var(--cp-text); text-decoration: none; font-size: 14px; }
.cp-nav__links a:hover, .cp-nav__links a[aria-current="page"] { color: var(--cp-accent); }
.cp-nav .cp-btn { min-height: 36px; padding: 6.8px 12.24px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.cp-footer { border-top: 1px solid var(--cp-divider); padding: 32px var(--cp-gutter); }
.cp-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--cp-muted-72); }
.cp-footer__inner p { margin: 0; }
.cp-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Home ───────────────────────────────────────────────────────── */
.cp-hero { padding: 96px 0 72px; max-width: 980px; }
.cp-hero .cp-kicker { margin-bottom: 20px; }
.cp-hero__title { font-size: clamp(46px, 7vw, 96px); line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; }
.cp-hero__title span { display: block; }
.cp-hero__title .cp-accent { color: var(--cp-accent); }
.cp-hero__sub { font-size: 18px; line-height: 1.55; max-width: 58ch; margin-top: 28px; color: var(--cp-muted-82); }
.cp-hero .wp-block-buttons { margin-top: 32px; }
.cp-hero__photo { justify-self: end; width: 100%; max-width: 220px; margin: 0; }

.cp-headshot { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

.cp-stats { padding: 0 0 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cp-stat { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.cp-stat__n { font-size: 12px; letter-spacing: .08em; font-weight: 600; color: var(--cp-accent-700); }
.cp-stat__v { font-family: var(--cp-heading); font-weight: 600; font-size: 44px; line-height: 1; }
.cp-stat__l { font-size: 14px; color: var(--cp-muted-78); }

.cp-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.cp-pillar { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cp-pillar h3 { font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.cp-pillar p { font-size: 15px; line-height: 1.55; color: var(--cp-muted-80); }

.cp-work-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) 13em; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--cp-divider); color: inherit; text-decoration: none; }
.cp-work-row:hover { background: rgba(89, 128, 166, .06); color: inherit; }
.cp-work-row__v { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--cp-accent-700); font-weight: 600; }
.cp-work-row__t { font-family: var(--cp-heading); font-weight: 600; font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.cp-work-row__m { font-family: var(--cp-heading); font-size: 28px; color: var(--cp-accent); text-align: right; white-space: nowrap; }

.cp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.cp-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; color: inherit; text-decoration: none; }
.cp-card:hover { background: rgba(89, 128, 166, .06); color: inherit; }
.cp-card__meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--cp-accent-700); }
.cp-card__title { font-family: var(--cp-heading); font-weight: 600; font-size: 24px; line-height: 1.15; }
.cp-card__dek { font-size: 14px; line-height: 1.5; color: var(--cp-muted-78); }

.cp-cta { padding: 24px 0 96px; }
.cp-cta__inner { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.cp-cta h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; text-transform: uppercase; }
.cp-cta p { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--cp-muted-80); max-width: 52ch; }
.cp-cta .wp-block-buttons { justify-content: flex-end; }

/* ── Case studies ───────────────────────────────────────────────── */
.cp-case { padding: clamp(24px, 4vw, 48px) 0; margin-bottom: 56px; }
.cp-case__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--cp-divider); padding-bottom: 16px; margin-bottom: 28px; }
.cp-case__title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; text-transform: uppercase; margin: 0 0 32px; max-width: 24ch; }
.cp-case__title a { color: inherit; text-decoration: none; }
.cp-case__title a:hover { color: var(--cp-accent); }
.cp-case-single .cp-case__title { font-size: clamp(36px, 5vw, 60px); max-width: 22ch; }
.cp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 32px; }
.cp-metric { padding: 20px; }
.cp-metric__v { font-family: var(--cp-heading); font-weight: 600; font-size: 38px; line-height: 1; color: var(--cp-accent); }
.cp-metric__l { font-size: 14px; margin-top: 6px; color: var(--cp-muted-78); }
.cp-case-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; }
.cp-case-cols h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.cp-case-cols h3 + p + h3 { margin-top: 28px; }
.cp-case-cols p, .cp-case-cols li { font-size: 15px; line-height: 1.6; }
.cp-case-cols ul, .cp-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.cp-case__more { margin-top: 28px; }

/* ── Experience ─────────────────────────────────────────────────── */
.cp-timeline { border-top: 1px solid var(--cp-divider); }
.cp-role { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr); gap: 24px 48px; padding: 36px 0; border-bottom: 1px solid var(--cp-divider); }
.cp-role__when { display: flex; flex-direction: column; gap: 6px; }
.cp-role__dates { font-size: 13px; letter-spacing: .08em; font-weight: 600; color: var(--cp-accent-700); text-transform: uppercase; }
.cp-role__org { font-size: 14px; color: var(--cp-muted-70); }
.cp-role h2 { font-size: 30px; line-height: 1.1; text-transform: uppercase; margin: 0 0 12px; }
.cp-role li { font-size: 15px; line-height: 1.55; }
.cp-two { padding: 64px 0 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.cp-two h2 { font-size: 28px; text-transform: uppercase; margin: 0 0 16px; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-tag { display: inline-flex; align-items: center; border: 1px solid var(--cp-accent); color: var(--cp-accent-700); font-size: 13px; padding: 6px 12px; letter-spacing: .02em; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cp-table td, .cp-table th { padding: 6.8px; border-bottom: 1px solid rgba(29, 31, 32, .08); text-align: left; vertical-align: top; }
.cp-table td:first-child { font-weight: 600; }
.cp-table--plain td:first-child { font-weight: 400; }
.cp-table tr.cp-strong td:first-child { font-weight: 600; }
.wp-block-table.cp-table-wrap { margin: 0; }
.wp-block-table.cp-table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wp-block-table.cp-table-wrap td { padding: 6.8px; border: 0; border-bottom: 1px solid rgba(29, 31, 32, .08); vertical-align: top; }
.wp-block-table.cp-table-wrap.cp-first-bold td:first-child { font-weight: 600; }

/* ── Insights index ─────────────────────────────────────────────── */
.cp-topics { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 32px; padding: 0; list-style: none; }
.cp-topics .cp-btn { min-height: 40px; }
.cp-rows { border-top: 1px solid var(--cp-divider); margin-bottom: 96px; }
.cp-post-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr); gap: 16px 40px; padding: 28px 0; border-bottom: 1px solid var(--cp-divider); color: inherit; text-decoration: none; }
.cp-post-row:hover { background: rgba(89, 128, 166, .06); color: inherit; }
.cp-post-row__meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.cp-post-row__topic { font-weight: 600; color: var(--cp-accent-700); }
.cp-post-row__date { color: var(--cp-muted-70); }
.cp-post-row__title { font-family: var(--cp-heading); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.cp-post-row__dek { font-size: 15px; line-height: 1.55; margin-top: 8px; max-width: 70ch; color: var(--cp-muted-78); }
.cp-pagination { display: flex; gap: 12px; margin: -64px 0 96px; }

/* ── Single post (E-E-A-T) ──────────────────────────────────────── */
.cp-article { max-width: 760px; margin: 0 auto; padding: 64px 0 96px; }
.cp-breadcrumb { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 28px; }
.cp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--cp-text); }
.cp-breadcrumb li:last-child a { color: var(--cp-muted-70); }
.cp-article__title { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; }
.cp-article__dek { font-size: 19px; line-height: 1.5; margin-top: 20px; color: var(--cp-muted-80); }
.cp-byline { display: flex; align-items: center; gap: 16px; margin: 32px 0; padding: 16px 0; border-top: 1px solid var(--cp-divider); border-bottom: 1px solid var(--cp-divider); flex-wrap: wrap; }
.cp-byline__photo { width: 52px; height: 52px; flex: none; }
.cp-byline__who { flex: 1; min-width: 200px; font-size: 14px; line-height: 1.45; }
.cp-byline__creds { color: var(--cp-muted-70); }
.cp-byline__dates { font-size: 13px; line-height: 1.5; text-align: right; color: var(--cp-muted-70); }
.cp-takeaways { padding: 24px 0; margin-bottom: 40px; }
.cp-takeaways .cp-kicker { margin-bottom: 12px; }
.cp-takeaways li { font-size: 16px; line-height: 1.5; }
.cp-body h2 { font-size: 30px; line-height: 1.1; margin: 0 0 14px; }
.cp-body h3 { font-size: 22px; line-height: 1.15; margin: 8px 0 12px; }
.cp-body p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.cp-body p:last-child { margin-bottom: 36px; }
.cp-body ul, .cp-body ol { font-size: 17px; line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.cp-body h2 + p { margin-top: 0; }
.cp-body > * + h2 { margin-top: 20px; }
.cp-note { border-left: 2px solid var(--cp-accent); padding: 4px 0 4px 20px; margin: 8px 0 40px; }
.cp-note .cp-kicker { margin-bottom: 8px; }
.cp-note p { font-size: 17px; line-height: 1.6; }
.cp-faq { margin-bottom: 40px; }
.cp-faq h2 { font-size: 30px; margin: 0 0 16px; }
.cp-faq details { border-top: 1px solid var(--cp-divider); padding: 16px 0; }
.cp-faq summary { cursor: pointer; font-family: var(--cp-heading); font-weight: 600; font-size: 22px; }
.cp-faq summary h3 { display: inline; font-size: inherit; letter-spacing: inherit; }
.cp-faq details p { font-size: 16px; line-height: 1.6; margin: 12px 0 0; }
.cp-sources { margin-bottom: 48px; font-size: 14px; line-height: 1.6; }
.cp-sources .cp-kicker { margin-bottom: 8px; }
.cp-sources ol { margin: 0; padding-left: 18px; }
.cp-author { padding: 28px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; }
.cp-author .cp-kicker { margin-bottom: 6px; }
.cp-author h2 { font-size: 26px; margin: 0 0 8px; text-transform: uppercase; }
.cp-author p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.cp-author__links { display: flex; gap: 12px; flex-wrap: wrap; }
.cp-author__links .cp-btn { min-height: 36px; }

/* ── Speaking ───────────────────────────────────────────────────── */
.cp-talk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.cp-talk .cp-kicker { margin-bottom: 12px; }
.cp-talk h2 { font-size: 32px; line-height: 1.1; text-transform: uppercase; margin: 0 0 16px; }
.cp-talk p { font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
.cp-video { position: relative; aspect-ratio: 16 / 9; background: var(--cp-text); margin: 0; }
.cp-video img, .cp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.cp-video__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29, 31, 32, .25); border: 0; cursor: pointer; color: var(--cp-bg); font-family: var(--cp-heading); font-weight: 600; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; width: 100%; }
.cp-video__play span { background: var(--cp-accent); padding: 12px 20px; }
.cp-video__play:hover span { background: var(--cp-accent-600); }
.cp-talks-head { font-size: 28px; text-transform: uppercase; margin: 72px 0 16px; }
.cp-talks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.cp-talks > div { padding: 24px; }
.cp-talks h3 { font-size: 22px; line-height: 1.15; margin: 0 0 8px; }
.cp-talks p { font-size: 15px; line-height: 1.55; color: var(--cp-muted-80); }

/* ── About ──────────────────────────────────────────────────────── */
.cp-about { padding: 80px 0 64px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cp-about__photo { position: sticky; top: 96px; width: 100%; max-width: 200px; margin: 0; }
.cp-about .cp-kicker { margin-bottom: 16px; }
.cp-about .cp-h1 { font-size: clamp(40px, 5.5vw, 72px); margin: 0 0 28px; }
.cp-about__lead { font-size: 19px; line-height: 1.6; margin: 0 0 18px; }
.cp-about p:not(.cp-about__lead):not(.cp-kicker) { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.cp-about h2 { font-size: 26px; text-transform: uppercase; margin: 14px 0 16px; }

/* ── Contact ────────────────────────────────────────────────────── */
.cp-contact { padding: 80px 0 96px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); }
.cp-contact .cp-kicker { margin-bottom: 16px; }
.cp-contact .cp-h1 { font-size: clamp(40px, 5.5vw, 72px); margin: 0 0 24px; }
.cp-contact__copy { font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.cp-form { padding: 32px 0 0; align-self: start; }
.cp-form .wp-block-jetpack-contact-form, .cp-form form { display: flex; flex-wrap: wrap; gap: 16px; }
.cp-form label, .cp-form .grunion-field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; color: var(--cp-text) !important; }
.cp-form input[type="text"], .cp-form input[type="email"], .cp-form textarea {
	width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 15px; color: var(--cp-text);
	background: #e9e9ea; border: 1px solid var(--cp-divider) !important; border-radius: 0 !important; box-shadow: none !important;
}
.cp-form textarea { min-height: 120px; resize: vertical; }
.cp-form input:focus-visible, .cp-form textarea:focus-visible { border-color: var(--cp-accent) !important; outline: 2px solid var(--cp-accent); outline-offset: 0; }
.cp-form .wp-block-button__link, .cp-form button[type="submit"] { width: auto; }
.contact-form-submission, .cp-form .contact-form__success { font-size: 16px; line-height: 1.6; }

/* ── Generic page body (fallback page.html) ─────────────────────── */
.cp-page { padding: 80px 0 96px; max-width: 760px; }
.cp-page .wp-block-post-title { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; text-transform: uppercase; margin-bottom: 28px; }
.cp-page .wp-block-post-content p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 782px) {
	.admin-bar .cp-header { top: 46px; }
	.cp-hero { grid-template-columns: 1fr; padding: 56px 0 48px; align-items: start; }
	.cp-hero__photo { justify-self: start; max-width: 160px; grid-row: 1; }
	.cp-cta__inner { grid-template-columns: 1fr; padding-inline: 0; }
	.cp-cta .wp-block-buttons { justify-content: flex-start; }
	.cp-work-row { grid-template-columns: 1fr; gap: 8px; }
	.cp-work-row__m { font-size: 22px; }
	.cp-role, .cp-post-row { grid-template-columns: 1fr; gap: 8px; }
	.cp-talk { grid-template-columns: 1fr; gap: 28px; }
	.cp-about { grid-template-columns: 1fr; padding-top: 56px; }
	.cp-about__photo { position: static; max-width: 160px; }
	.cp-contact { grid-template-columns: 1fr; padding-top: 56px; }
	.cp-page-intro { padding: 56px 0 36px; }
	.cp-byline__dates { text-align: left; width: 100%; }
	.cp-stat, .cp-pillar, .cp-card, .cp-metric, .cp-talks > div { padding-inline: 0; }
	.cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
	.cp-stat__v { font-size: 36px; }
	.cp-article { padding-top: 40px; }
	.cp-pillars, .cp-cards { gap: 8px; }
}
@media (max-width: 600px) {
	.cp-header { position: static; }
	.cp-nav { padding-block: 12px; }
	.cp-nav__links { order: 3; width: 100%; gap: 6px 16px; }
	.cp-author { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Measure helpers used in page content */
.cp-w16 { max-width: 16ch; }
.cp-w18 { max-width: 18ch; }
.cp-case-single { padding-top: 64px; }
hr.wp-block-separator.cp-rule:not(.is-style-dots) { border: 0; height: 1px; background: var(--cp-divider); opacity: 1; margin: 0; width: 100%; max-width: none; }
.cp-section .cp-pillars, .cp-section .cp-cards { margin-top: 40px; }
.wp-block-list.cp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-tags li { display: inline-flex; align-items: center; border: 1px solid var(--cp-accent); color: var(--cp-accent-700); font-size: 13px; padding: 6px 12px; letter-spacing: .02em; }
.cp-first-strong tr:first-child td:first-child { font-weight: 600; }
.cp-section-head--row .wp-block-buttons { margin: 0; }
.cp-section-head--row h2 { margin: 0; }
.cp-hero__photo .cp-headshot, .cp-about__photo .cp-headshot { width: 100%; }
@media (max-width: 782px) { .cp-work-row__m { text-align: left; } }

/* Keep reading (internal links between posts) */
.cp-related { margin: 0 0 48px; }
.cp-related .cp-kicker { margin-bottom: 8px; }
.cp-related ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cp-divider); }
.cp-related li { border-bottom: 1px solid var(--cp-divider); }
.cp-related__link { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; color: inherit; text-decoration: none; }
.cp-related__link:hover { background: rgba(89, 128, 166, .06); color: inherit; }
.cp-related__title { font-family: var(--cp-heading); font-weight: 600; font-size: 22px; line-height: 1.15; }
.cp-case-single .cp-related { max-width: 760px; margin-top: 48px; }
.cp-sources li { margin-bottom: 4px; }
.cp-body code { font-size: .9em; background: rgba(29, 31, 32, .06); padding: 1px 4px; }
.cp-body strong { font-weight: 600; }
.cp-case-story { max-width: 760px; margin-top: 56px; }
.cp-case-story h2 { font-size: 30px; line-height: 1.1; text-transform: uppercase; margin: 40px 0 14px; }
.cp-case-story p, .cp-case-story li { font-size: 17px; line-height: 1.7; }
.cp-case-story p { margin: 0 0 16px; }
.cp-case-story ol, .cp-case-story ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.cp-case-story strong { font-weight: 600; }

/* Wide card that fills the empty space beside the last pillar on desktop */
@media (min-width: 783px) { .cp-pillar--wide { grid-column: span 2; } }
.cp-pillar--wide .cp-list { font-size: 15px; line-height: 1.55; color: var(--cp-muted-80); }
.cp-pillar--wide .cp-list strong { color: var(--cp-text); font-weight: 600; }
.cp-pillar--wide .wp-block-buttons { margin-top: 4px; }

/* ── Responsive polish (v1.0.5) ─────────────────────────────────── */
/* Contact form: half-width fields share the row on wider screens */
.cp-form .grunion-field-width-50-wrap { flex: 1 1 calc(50% - 8px); min-width: 0; }
.cp-form .grunion-label-required, .cp-form .required { font-size: 12px; font-weight: 400; color: var(--cp-muted-70); }
.cp-form .wp-block-jetpack-button .wp-block-button__link, .cp-form button[type="submit"] { min-width: 120px; }

@media (max-width: 782px) {
	.cp-section { padding: 16px 0 48px; }
	.cp-pillars .cp-pillar, .cp-cards .cp-card { padding-block: 16px; }
	.cp-section .cp-pillars, .cp-section .cp-cards { margin-top: 24px; }
	.cp-stats { padding-bottom: 40px; }
	.cp-stat { padding-block: 16px; }
	.cp-cta { padding-bottom: 64px; }
	.cp-cta__inner { padding-block: 24px; }
	.cp-case { margin-bottom: 24px; }
	.cp-role { padding: 28px 0; }
	.cp-two { padding: 48px 0 64px; }
	.cp-post-row { padding: 22px 0; }
	.cp-hero .wp-block-buttons .wp-block-button { flex: 1 1 auto; }
	.cp-hero .wp-block-buttons .wp-block-button__link { width: 100%; }
}

@media (max-width: 600px) {
	.cp-form .grunion-field-width-50-wrap { flex-basis: 100%; }
	/* Nav: an even 3 by 2 grid of links with comfortable tap areas */
	.cp-nav__links { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 12px; }
	.cp-nav__links a { display: inline-block; padding: 8px 0; }
	.cp-nav .cp-btn { min-height: 40px; }
	.cp-byline__who a { padding: 4px 0; }
}

/* Accessibility: WCAG AA contrast (4.5:1) for small text on and in the accent color.
   Buttons use accent-700 (5.78:1 with the background color); large display type keeps the lighter accent. */
.wp-block-button__link, .cp-btn { background: var(--cp-accent-700); border-color: var(--cp-accent-700); }
.wp-block-button__link:hover, .cp-btn:hover { background: #2c455d; border-color: #2c455d; }
.wp-block-button__link:active, .cp-btn:active { background: var(--cp-accent-900); }
.is-style-secondary .wp-block-button__link, .cp-btn--secondary { background: transparent; border-color: var(--cp-divider); }
.is-style-ghost .wp-block-button__link, .cp-btn--ghost { background: transparent; border-color: transparent; }
.is-style-secondary .wp-block-button__link:hover, .cp-btn--secondary:hover { background: rgba(29, 31, 32, .07); border-color: var(--cp-divider); }
.is-style-ghost .wp-block-button__link:hover, .cp-btn--ghost:hover { background: rgba(89, 128, 166, .10); border-color: transparent; }
.cp-work-row__m { color: var(--cp-accent-700); }
.cp-nav__links a:hover, .cp-nav__links a[aria-current="page"] { color: var(--cp-accent-700); }

/* Longer nav labels (Speaking Engagements, About Callan Pyfer): 2 columns on phones */
@media (max-width: 600px) {
	.cp-nav__links { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 0 16px; }
}
.cp-footer__site { width: 100%; order: -1; }
.cp-footer__site a { color: var(--cp-text); text-decoration: none; }
.cp-footer__site a:hover { color: var(--cp-accent-700); text-decoration: underline; }

/* Hero second line in the same black as the first line */
.cp-hero__title .cp-accent { color: var(--cp-text); }

/* Single label above each case study's challenge / decision / delivery columns */
.cp-case-label { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 16px; }
.cp-case-cols p + p { margin-top: 12px; }
