/* WordPress layer: blog, search, pager, forms (Contact Form 7), editor content, admin bar. */

/* ---------- Admin bar: the fixed header sits below it ---------- */
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } html #wpadminbar { position: fixed; } }

/* ---------- Pillar cards (About, 404) ---------- */
.pillar-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
@media (max-width: 1000px) { .pillar-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* "Philanthropist" (about 6 times the font size wide) fits a fifth of the page on desktop and half of a 320 px phone. */
.pillar-cards .col-card h3 { font-size: clamp(24px, 2.2vw, 32px); }
@media (max-width: 600px) { .pillar-cards .col-card h3 { font-size: clamp(20px, 6.4vw, 26px); } }

/* ---------- Search form ---------- */
.ed-search { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ed-search label { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.ed-search svg { width: 16px; height: 16px; flex: none; opacity: .7; }
.ed-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; outline: none; padding: 8px 0; }
.ed-search input::placeholder { color: currentColor; opacity: .55; }
.ed-search:focus-within { box-shadow: inset 0 0 0 1.5px currentColor; }
.ed-search .btn { flex: none; }
.phero .ed-search .btn { --b-bg: var(--on-ink); --b-fg: var(--ink); --b-bd: var(--on-ink); }
.section .ed-search, .news-empty .ed-search { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.chip.is-on { background: var(--on-ink); color: var(--ink); }

/* ---------- News list ---------- */
.news-section { padding-top: clamp(56px, 7vw, 96px); }
.news-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.news-feature .nf-media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(90% 80% at 100% 0%, rgba(207, 174, 123, .22), transparent 60%), var(--ink-2); }
.news-feature .nf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-image) var(--ease); }
.news-feature .nf-word { position: absolute; left: 32px; bottom: 28px; font-family: var(--f-disp); font-style: italic; font-size: clamp(40px, 4vw, 64px); line-height: 1; color: var(--on-ink); }
.news-feature .h2 { font-size: clamp(32px, 3.4vw, 52px); color: var(--ink); margin-bottom: 18px; }
.news-feature .kicker { margin-bottom: 14px; }
@media (hover: hover) and (pointer: fine) { .news-feature:hover .nf-media img { transform: scale(1.03); } }
@media (max-width: 900px) { .news-feature { grid-template-columns: 1fr; } }
.news-empty { padding: 40px 0; max-width: 640px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: clamp(48px, 6vw, 80px); }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--ivory); transition: background-color .2s var(--ease), color .2s var(--ease); }
.pager .page-numbers svg { width: 16px; height: 16px; }
.pager .page-numbers.current { background: var(--ink); color: var(--on-ink); }
.pager a.page-numbers:hover { background: var(--stone); }
.pager .dots { background: transparent; }

/* ---------- Search results ---------- */
.results { list-style: none; display: grid; }
.result { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; margin-inline: -18px; border-radius: 18px; transition: background-color .2s var(--ease); }
.results li + li .result::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: var(--line); }
.result:hover { background: var(--ivory); }
.r-media { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--ivory); }
.r-media img { width: 100%; height: 100%; object-fit: cover; }
.r-body { display: grid; gap: 4px; }
.r-kind { font-size: 13.5px; color: var(--bronze); }
.r-title { font-family: var(--f-disp); font-size: 26px; line-height: 1.12; color: var(--ink); }
.r-text { font-size: 15px; color: var(--muted); }

/* ---------- Single story ---------- */
.post-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--head-h) + clamp(56px, 8vw, 110px)) 0 clamp(120px, 14vw, 200px); color: var(--on-ink); background: radial-gradient(60% 80% at 92% 8%, rgba(207, 174, 123, .16), transparent 62%), radial-gradient(50% 70% at 0% 100%, rgba(90, 74, 52, .32), transparent 70%), var(--ink); }
.post-hero .phero-ambient { opacity: .3; }
.post-hero .wrap { max-width: 1100px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 22px; font-size: 14.5px; color: var(--on-ink-muted); }
.post-meta .chip { background: rgba(207, 174, 123, .12); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(207, 174, 123, .28); padding: 6px 12px; font-size: 13.5px; }
.post-meta time::after { content: "·"; margin-left: 16px; opacity: .6; }
.post-title { font-size: clamp(42px, 5.6vw, 84px); max-width: 18ch; }
.post-hero .lead { margin-top: 24px; color: var(--on-ink); }
.post-figure { position: relative; z-index: 2; margin-top: calc(-1 * clamp(80px, 10vw, 150px)); margin-bottom: 0; }
.post-figure img { width: 100%; max-height: 78svh; object-fit: cover; border-radius: var(--r-l); box-shadow: 0 40px 80px -40px rgba(20, 18, 15, .5); }
.post-layout { display: grid; grid-template-columns: 120px minmax(0, 720px); justify-content: center; gap: clamp(24px, 5vw, 80px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.post-aside { position: sticky; top: calc(var(--head-h) + 40px); align-self: start; }
.post-aside .kicker { margin-bottom: 12px; }
.share { display: flex; gap: 8px; }
.share .icon-link { border: 0; background: var(--ivory); color: var(--ink); box-shadow: none; cursor: pointer; }
.share .icon-link svg { width: 16px; height: 16px; fill: currentColor; }
.share .icon-link:hover { background: var(--ink); color: var(--on-ink); }
.share [data-share-copy] svg { fill: none; }
.share .icon-link.is-done { background: var(--bronze); color: #fff; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; order: 2; } }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: clamp(56px, 7vw, 96px); max-width: 1100px; }
.post-nav a { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-m); background: var(--ivory); transition: background-color .2s var(--ease); }
.post-nav a:last-child { text-align: right; }
.post-nav a:hover { background: var(--stone); }
.post-nav small { font-size: 13.5px; color: var(--muted); }
.post-nav span { font-family: var(--f-disp); font-size: 22px; line-height: 1.15; color: var(--ink); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav a:last-child { text-align: left; } }
.author-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-radius: var(--r-m); background: var(--ivory); }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.author-card .ac-name { font-family: var(--f-disp); font-size: 24px; color: var(--ink); margin: 0 0 4px; }
.author-card .ac-text { font-size: 15.5px; color: var(--muted); margin: 0 0 10px; }
.prose .author-card a { background: none; padding: 0; }
.prose .author-card .link-arrow { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; }

/* ---------- Text written in the editor ---------- */
.post-body { font-size: 18.5px; line-height: 1.75; }
.page-body { max-width: 760px; margin-inline: auto; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(32px, 3vw, 42px); margin-top: 1.6em; }
.post-body h3 { font-size: clamp(26px, 2.4vw, 32px); margin-top: 1.4em; }
.post-body figure { margin: 2em 0; }
.post-body img { border-radius: var(--r-m); height: auto; }
.post-body figcaption, .post-body .wp-element-caption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.post-body .wp-block-gallery, .post-body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.post-body .wp-block-gallery figure, .post-body .gallery figure { margin: 0; }
/* WordPress gives gallery images a flex width; the grid above sets the size instead */
.post-body .wp-block-gallery.has-nested-images > figure.wp-block-image { width: auto !important; max-width: none !important; margin: 0 !important; flex: none !important; }
.post-body .wp-block-gallery img[data-lb] { cursor: zoom-in; transition: transform .5s var(--ease, ease), filter .3s; }
.post-body .wp-block-gallery img[data-lb]:hover { filter: brightness(1.04); }
.post-body .wp-block-gallery img, .post-body .gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.post-body .alignwide { margin-inline: calc(-1 * clamp(0px, 8vw, 140px)); }
.post-body .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.post-body .wp-block-pullquote, .post-body .wp-block-quote { margin: 2em 0; padding: 26px 30px; border-radius: var(--r-m); background: var(--ivory); border: 0; }
.post-body .wp-block-quote p, .post-body .wp-block-pullquote p { font-family: var(--f-disp); font-style: italic; font-size: 28px; line-height: 1.3; color: var(--ink); margin: 0; }
.post-body .wp-block-quote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--bronze); }
.post-body .wp-block-button__link, .post-body .wp-element-button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 15.5px; font-weight: 500; background-image: none; }
.post-body .wp-block-embed iframe, .post-body iframe { width: 100%; border: 0; border-radius: var(--r-m); aspect-ratio: 16 / 9; height: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.post-body code { padding: 2px 6px; border-radius: 6px; background: var(--ivory); font-size: .9em; }

/* ---------- Contact Form 7 in the site's style ---------- */
.ed-form .wpcf7 form { display: grid; gap: 22px; }
.ed-form .wpcf7-form-control-wrap { display: block; }
.ed-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 600px) { .ed-form .row { grid-template-columns: 1fr; } }
.ed-form label { display: grid; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.ed-form input[type="text"], .ed-form input[type="email"], .ed-form input[type="tel"], .ed-form select, .ed-form textarea { font: inherit; font-size: 16.5px; color: var(--ink); background: var(--ivory); border: 0; border-radius: 14px; padding: 15px 18px; width: 100%; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s var(--ease), background-color .15s var(--ease); }
.ed-form textarea { min-height: 170px; resize: vertical; }
.ed-form input:focus, .ed-form select:focus, .ed-form textarea:focus { outline: none; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(138, 102, 53, .14); }
.ed-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.ed-form .wpcf7-acceptance label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--muted); }
.ed-form .wpcf7-acceptance input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.ed-form .wpcf7-submit { cursor: pointer; }
.ed-form .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }
.ed-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.ed-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; font-weight: 500; color: #a1382b; }
.ed-form .wpcf7-not-valid { box-shadow: inset 0 0 0 1.5px #a1382b !important; }
.ed-form .wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 16px 20px; border: 0; border-radius: 14px; font-size: 15.5px; background: var(--ivory); color: var(--ink); }
.ed-form .wpcf7 form.sent .wpcf7-response-output { background: rgba(138, 102, 53, .12); color: var(--ink); }
.ed-form .wpcf7 form.invalid .wpcf7-response-output, .ed-form .wpcf7 form.unaccepted .wpcf7-response-output, .ed-form .wpcf7 form.failed .wpcf7-response-output { background: rgba(161, 56, 43, .08); color: #7e2a20; }
.ed-form .ed-hp { position: absolute !important; left: -9999px !important; }

/* Nov 2026 review: three-number rows, foundation cards, a plain book cover until the real one arrives */
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .facts--3 { grid-template-columns: 1fr; } }
.found-card h3 { font-size: clamp(28px, 2.6vw, 36px); }
.cover--plain { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px rgba(20, 18, 15, .12), 0 36px 60px -24px rgba(20, 18, 15, .35); }
.cover--plain::before, .cover--plain::after { display: none; }
.cover--plain b { color: #1f4e8c; }
.cover--plain small { opacity: 1; color: var(--muted); line-height: 1.4; }
.duale-facts h3 { margin-top: 2px; }

/* Nov 2026 polish (frontend-design review): italics stay in each page's main title only, links lose the trailing arrow
   unless they open another site, and the next-pillar line sits under the name instead of after a dot. */
.h2 em, .h3 em, .site-foot .h1 em { font-style: normal; }
.link-arrow:not([target="_blank"])::after { display: none; }
.next .next-line { margin: 10px 0 0; font-size: 15px; color: rgba(255, 255, 255, .86); }

/* Frontend audit (Nov 25, 2026) */
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 560px) { .facts--2 { grid-template-columns: 1fr; } }
/* Phones and touch screens: links tall enough for a finger (about 44 px). */
@media (max-width: 860px), (pointer: coarse) {
	.foot-top ul { gap: 0; }
	.foot-top ul a { display: block; padding-block: 12px; }
	.foot-top h4 { margin-bottom: 4px; }
	.foot-bottom a, .quote cite a { position: relative; }
	.foot-bottom a::after, .quote cite a::after { content: ""; position: absolute; inset: -13px -6px; }
}
/* Dropdowns: the site's own chevron, set in from the edge (the browser arrow sat on the edge). */
.ed-form select, .form select { -webkit-appearance: none; appearance: none; padding-right: 50px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%2314120f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 12px 12px; }
.ed-form select:focus, .form select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%2314120f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 12px 12px; }
/* Round 3 (Dec 2026): the Mammuthus image in the Duale facts */
.duale-facts-img { margin-bottom: 20px; }
.duale-facts-img img { aspect-ratio: 3 / 2; }
.duale-facts-pic { display: block; margin-bottom: 20px; border-radius: var(--r-m); overflow: hidden; }
.duale-facts-pic img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* Screenshot review (Dec 2, 2026): French quotation marks, and photo-hero labels that stay readable on bright paintings */
.quote p:lang(fr)::before { content: "«\00a0"; }
.quote p:lang(fr)::after { content: "\00a0»"; }
.phero--photo .phero-inner .kicker { color: var(--on-ink); text-shadow: 0 1px 14px rgba(20, 18, 15, .7), 0 0 2px rgba(20, 18, 15, .5); }
.book { align-content: start; } /* text starts right under the cover, even when the card next to it is taller */

/* Long texts: the opening shows, the rest opens on request (assets/js/main.js). */
.prose-toggle { margin: 30px 0 0; }
.prose.is-open .prose-toggle { margin-top: 34px; }
.more-btn svg { transition: transform var(--m-out) var(--ease); }
.prose.is-open .more-btn svg { transform: rotate(180deg); }
.prose-more > :first-child { margin-top: 0; }
.section--soft .more-btn { --b-bd: rgba(20, 18, 15, .24); }
