/* ==========================================================================
   Blank Dimensions Archive. Visual language: thresholds, margins, texture.
   One serif for headlines, one for body, one mono for captions. Nothing bounces.
   ========================================================================== */

:root {
	--bd-paper: #f8f7f3;
	--bd-ink: #1b1a19;
	--bd-charcoal: #0a0a0a;
	--bd-rule: rgba(27, 26, 25, 0.28);
	--bd-slow: 1400ms;
	--bd-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	/* Atmosphere: the accent each investigation can override. */
	--bd-atmo: #8b3a2b;
	--bd-atmo-ink: #f8f7f3;
}

/* ---- Atmospheres: the site stays neutral, the stories bring the colour ---- */
body.atmo-kali,
body.atmo-kali-puja,
body.atmo-hindu-mythology { --bd-atmo: #6e2a22; }           /* deep maroon */
body.atmo-norse,
body.atmo-norse-mythology { --bd-atmo: #5f6a66; }           /* cold grey */
body.atmo-alchemy { --bd-atmo: #8c8673; --bd-atmo-ink: #1b1a19; } /* aged parchment */
body.atmo-egypt,
body.atmo-egyptian-mythology { --bd-atmo: #4d4678; }        /* lapis */
body.atmo-japanese-folklore,
body.atmo-folklore { --bd-atmo: #4d4678; }                  /* indigo */
body.atmo-occult,
body.atmo-occult-practices-and-esoteric-knowledge { --bd-atmo: #2d392b; }
body.atmo-horror-cinema { --bd-atmo: #2a1a18; }
body.atmo-symbolism,
body.atmo-symbols-sigils { --bd-atmo: #4c845c; }

/* ---- Paper grain: felt, not seen ---- */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: 0.07;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- Entering a room: every page fades in, nothing slides ---- */
@keyframes bd-enter { from { opacity: 0; } to { opacity: 1; } }
body { animation: bd-enter var(--bd-slow) var(--bd-ease) both; }

.bd-js .bd-reveal { opacity: 0; transition: opacity 1.8s var(--bd-ease); }
.bd-js .bd-reveal.is-visible { opacity: 1; }

/* ---- Readability: long lines are forbidden ---- */
.entry-content p,
.wp-block-post-content p { max-width: 40rem; }
.wp-block-post-content > * { margin-left: auto; margin-right: auto; }
.wp-block-post-content > .alignwide { max-width: 76rem; }

/* ---- Mono captions ---- */
.bd-mono,
.bd-kicker,
.bd-meta,
figcaption,
.wp-element-caption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--caption);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.7;
}
.bd-kicker { opacity: 0.75; }
.bd-meta { opacity: 0.6; }

/* ---- Rules and dividers ---- */
.bd-rule { border: 0; border-top: 1px solid currentColor; opacity: 0.35; width: 3.5rem; margin: 0; }

/* ==========================================================================
   ARCHES: architectural, not decorative.
   Used as image masks, cards, section dividers, hover states, featured stories.
   ========================================================================== */

.is-arch,
.is-arch img,
.is-arch a,
.wp-block-post-featured-image.is-arch img {
	border-radius: 999px 999px 0 0;
}
.is-arch { overflow: hidden; }
.is-arch img { transition: transform var(--bd-slow) var(--bd-ease), opacity var(--bd-slow) var(--bd-ease), filter var(--bd-slow) var(--bd-ease); filter: saturate(0.92); }

/* Hover: the opening brightens, the image settles. No bounce, no scale jump. */
.bd-story:hover .is-arch img,
.is-arch:hover img { transform: scale(1.025); filter: saturate(1); }

/* Placeholder arch when a post has no image: stone with a doorway. */
.is-arch:empty,
.wp-block-post-featured-image:not(:has(img)) {
	background: linear-gradient(180deg, rgba(27, 26, 25, 0.12), rgba(27, 26, 25, 0.28));
	min-height: 18rem;
	border-radius: 999px 999px 0 0;
}

/* A wide threshold across the page: section divider. */
.bd-threshold {
	height: 4.5rem;
	width: 9rem;
	margin: 0 auto;
	border: 1px solid currentColor;
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
	opacity: 0.4;
}

/* Arch frame for text blocks (newsletter, quotes, theme tiles). */
.bd-arch-frame {
	border: 1px solid currentColor;
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
	padding-top: clamp(4rem, 3rem + 6vw, 9rem);
	text-align: center;
}

/* ==========================================================================
   THE GRID: never boxed cards. Gallery. The image is the button.
   Image, title, one sentence, date.
   ========================================================================== */

.bd-gallery .wp-block-post-template { gap: clamp(2rem, 1rem + 3vw, 4.5rem) 2.5rem; }
.bd-gallery .wp-block-post { margin: 0; }
.bd-story .wp-block-post-title { margin: 1.1rem 0 0.4rem; font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem); }
.bd-story .wp-block-post-title a { text-decoration: none; }
.bd-story .wp-block-post-title a:hover { color: inherit; opacity: 0.7; }
.bd-story .wp-block-post-excerpt { margin: 0 0 0.6rem; font-size: 1rem; opacity: 0.85; }
.bd-story .wp-block-post-excerpt__excerpt { margin: 0; }

/* ==========================================================================
   DARK ROOMS: hero, search, footer
   ========================================================================== */

.is-dark,
body.bd-dark-page,
.bd-search-page {
	background-color: var(--bd-charcoal);
	color: #ece9de;
}
.is-dark a,
.bd-search-page a { color: inherit; }
.is-dark .bd-rule,
.bd-search-page .bd-rule { opacity: 0.4; }

/* Latest Investigation, as the opening of the homepage */
.bd-latest .wp-block-post-title { font-size: var(--wp--preset--font-size--title); line-height: 1.1; margin: 1rem 0; }
.bd-latest .wp-block-post-title a { text-decoration: none; }
.bd-latest .wp-block-post-excerpt { font-family: var(--wp--preset--font-family--serif-display); font-style: italic; font-size: var(--wp--preset--font-size--lede); line-height: 1.45; max-width: 30rem; }

/* ==========================================================================
   HEADER and NAVIGATION: an archive drawer, not a menu bar
   ========================================================================== */

.bd-header { border-bottom: 1px solid var(--bd-rule); }
.bd-tagline {
	margin: 0.15rem 0 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.55;
}
.bd-header .wp-block-navigation a { text-decoration: none; padding-block: 0.4rem; position: relative; }
.bd-header .wp-block-navigation a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: currentColor; opacity: 0; transition: opacity 600ms var(--bd-ease);
}
.bd-header .wp-block-navigation a:hover::after,
.bd-header .wp-block-navigation .current-menu-item > a::after { opacity: 0.8; }
.bd-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--bd-paper); border: 1px solid var(--bd-rule); padding: 0.6rem 0.4rem; min-width: 14rem;
}
.wp-block-navigation__responsive-container.is-menu-open { background: var(--bd-charcoal); color: #ece9de; }

/* ==========================================================================
   SEARCH: large, black, exploration. No tiny icon.
   ========================================================================== */

.bd-search-page { min-height: 70vh; }
.bd-search-page .wp-block-search__inside-wrapper { border: 0; border-bottom: 1px solid rgba(236, 233, 222, 0.5); padding: 0; gap: 0; }
.bd-search-page .wp-block-search__input,
.bd-search-page input[type="search"] {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: var(--wp--preset--font-size--display);
	font-style: italic;
	line-height: 1.1;
	padding: 0.2em 0;
	background: transparent;
	color: inherit;
	border: 0;
	outline: none;
	width: 100%;
}
.bd-search-page input[type="search"]::placeholder { color: rgba(236, 233, 222, 0.38); transition: opacity 700ms var(--bd-ease); }
.bd-search-page .wp-block-search__button {
	color: inherit; background: transparent; border: 0; font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.18em; text-transform: uppercase; padding: 0 0 0 1rem;
}
.bd-search-hints { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0.6rem; }
.bd-search-hints a {
	font-family: var(--wp--preset--font-family--serif-display); font-style: italic; font-size: var(--wp--preset--font-size--lede);
	text-decoration: none; opacity: 0.6; transition: opacity 600ms var(--bd-ease);
}
.bd-search-hints a:hover { opacity: 1; }

/* ==========================================================================
   ARTICLE: where atmosphere matters. No sidebars, no widgets.
   ========================================================================== */

.bd-hero { margin: 0; }
.bd-hero img { width: 100%; height: clamp(22rem, 62vh, 44rem); object-fit: cover; filter: saturate(0.9); }
.bd-article-head { text-align: center; }
.bd-article-head .wp-block-post-title { margin-top: 0.8rem; }
.bd-article-head .bd-kicker a { color: var(--bd-atmo); text-decoration: none; }
.bd-standfirst {
	font-family: var(--wp--preset--font-family--serif-display);
	font-style: italic;
	font-size: var(--wp--preset--font-size--lede);
	line-height: 1.45;
	max-width: 34rem;
	margin: 1.5rem auto 0;
	opacity: 0.85;
}
.bd-atmosphere-rule { width: 3.5rem; height: 2px; background: var(--bd-atmo); border: 0; margin: 1.6rem auto 0; }

/* Opening story: the first paragraph speaks first. */

/* Before We Begin: three or four lines that open every investigation. */
.bd-before {
	border-top: 1px solid var(--bd-rule); border-bottom: 1px solid var(--bd-rule);
	padding: 2rem 0; margin: 2.5rem auto; font-family: var(--wp--preset--font-family--serif-display);
	font-style: italic; font-size: var(--wp--preset--font-size--lede); line-height: 1.5;
}
.bd-before .bd-kicker { display: block; font-style: normal; margin-bottom: 1rem; color: var(--bd-atmo); }
.bd-before p { margin: 0 0 0.6rem; }

/* Pull quote, margin note, footnote */
.wp-block-pullquote { border: 0; padding: 3rem 0; text-align: center; }
.wp-block-pullquote blockquote { max-width: 46rem; margin-inline: auto; }
.wp-block-pullquote cite { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; opacity: 0.65; }
.wp-block-quote { margin-inline: auto; padding-left: 0; }
sup.fn a, .bd-footnote { font-family: var(--wp--preset--font-family--mono); }
.bd-footnotes { font-size: 0.9rem; border-top: 1px solid var(--bd-rule); padding-top: 1.2rem; }

/* Sources: every book, every archive, every paper, every translation. */
.bd-sources { border-top: 1px solid currentColor; padding-top: 2rem; }
.bd-sources h2 { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.bd-sources ol, .bd-sources ul { font-size: 0.95rem; line-height: 1.6; }

/* ---- Images: one, large, museum quality ---- */
.wp-block-image img { height: auto; }
.wp-block-image figcaption { margin-top: 0.8rem; opacity: 0.7; text-align: left; }

/* ---- Pagination: rooms, not pages ---- */
.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption);
	letter-spacing: 0.16em; text-transform: uppercase; justify-content: space-between;
}
.wp-block-query-pagination a { text-decoration: none; }

/* ---- Theme tiles: Archive by Theme, each an arch ---- */
.bd-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; padding: 0; list-style: none; margin: 0; }
.bd-themes li { margin: 0; }
.bd-themes a {
	display: flex; align-items: flex-end; justify-content: center; text-align: center;
	min-height: 15rem; padding: 0 1rem 1.6rem; text-decoration: none;
	border: 1px solid var(--bd-rule); border-bottom: 0; border-radius: 999px 999px 0 0;
	font-family: var(--wp--preset--font-family--serif-display); font-size: 1.45rem; line-height: 1.15;
	transition: background-color var(--bd-slow) var(--bd-ease), color var(--bd-slow) var(--bd-ease);
}
.bd-themes a:hover { background: var(--bd-atmo); color: var(--bd-atmo-ink); }
.bd-themes li:nth-child(1) a { --bd-atmo: #6e2a22; }
.bd-themes li:nth-child(2) a { --bd-atmo: #2d392b; }
.bd-themes li:nth-child(3) a { --bd-atmo: #4d4678; }
.bd-themes li:nth-child(4) a { --bd-atmo: #8b3a2b; }
.bd-themes li:nth-child(5) a { --bd-atmo: #4c845c; }
.bd-themes li:nth-child(6) a { --bd-atmo: #2a1a18; }
.bd-themes li:nth-child(7) a { --bd-atmo: #8c8673; --bd-atmo-ink: #1b1a19; }
.bd-themes li:nth-child(8) a { --bd-atmo: #4d4678; }

/* ---- Newsletter ---- */
.bd-newsletter form { display: flex; gap: 0; max-width: 28rem; margin: 2rem auto 0; border-bottom: 1px solid currentColor; }
.bd-newsletter input[type="email"] {
	flex: 1; background: transparent; border: 0; outline: none; color: inherit;
	font-family: var(--wp--preset--font-family--serif-display); font-style: italic; font-size: 1.3rem; padding: 0.5rem 0;
}
.bd-newsletter input::placeholder { color: inherit; opacity: 0.5; }
.bd-newsletter button {
	background: transparent; border: 0; color: inherit; cursor: pointer;
	font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption);
	letter-spacing: 0.18em; text-transform: uppercase;
}
.bd-newsletter .bd-fine { margin-top: 1rem; font-size: 0.7rem; opacity: 0.55; }

/* ---- Footer: a sentence, not a legal block ---- */
.bd-footer-line { font-family: var(--wp--preset--font-family--serif-display); font-style: italic; font-size: var(--wp--preset--font-size--title); line-height: 1.1; margin: 0; }
.bd-footer a { text-decoration: none; opacity: 0.6; }
.bd-footer a:hover { opacity: 1; color: inherit; }

/* ---- Focus: visible, quiet, accessible ---- */
:where(a, button, input, summary):focus-visible { outline: 1px dashed currentColor; outline-offset: 4px; }

/* ---- Mobile ---- */
@media (max-width: 781px) {
	.bd-tagline { display: none; }
	.bd-hero img { height: 46vh; }
	.bd-themes a { min-height: 11rem; font-size: 1.25rem; }
}

/* ---- Motion: honour the visitor's preference ---- */
@media (prefers-reduced-motion: reduce) {
	body { animation: none; }
	.bd-js .bd-reveal { opacity: 1; transition: none; }
	.is-arch img, .bd-themes a { transition: none; }
}

@media print {
	body::before { display: none; }
	.bd-header, .bd-footer, .bd-newsletter { display: none; }
}

/* ==========================================================================
   Archive additions: features, collections, object and symbol labels
   ========================================================================== */

/* Featured Object / Symbol: alternate the doorway left and right */
@media (min-width: 782px) {
	.bd-feature.bd-flip { flex-direction: row-reverse; }
}
.bd-feature .wp-block-post-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); margin: 0.8rem 0; }
.bd-feature .wp-block-post-title a { text-decoration: none; }
.bd-feature .wp-block-post-excerpt { font-family: var(--wp--preset--font-family--serif-display); font-style: italic; font-size: var(--wp--preset--font-size--lede); line-height: 1.45; max-width: 30rem; }

/* Wide image for Newest Story */
.bd-wide-image img { filter: saturate(0.9); transition: opacity var(--bd-slow) var(--bd-ease); }
.bd-wide-image:hover img { opacity: 0.92; }

/* Archive page: collections with a descriptor under each arch name */
.bd-collections a { flex-direction: column; justify-content: flex-end; }
.bd-collections a span { display: block; }
.bd-collections a small {
	display: block; margin-top: 0.6rem;
	font-family: var(--wp--preset--font-family--mono); font-size: 0.68rem;
	letter-spacing: 0.06em; text-transform: none; line-height: 1.5; opacity: 0.7;
}
.bd-collections { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.bd-collections a { min-height: 19rem; }

/* Archive label for Objects and Symbols: like a museum catalogue card */
.bd-spec-list { margin: 2rem 0; border-top: 1px solid currentColor; }
.bd-spec-list > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--bd-rule); }
.bd-spec-list dt { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; padding-top: 0.2rem; }
.bd-spec-list dd { margin: 0; }

/* Archive header on collection pages: the atmosphere tints the dark room */
body[class*="atmo-"] .bd-archive-head { background-color: color-mix(in srgb, var(--bd-atmo) 55%, #1b1a19); }

/* ==========================================================================
   V1 refinements: restraint. Drama comes from spacing, silence, image choice.
   Arches only on: featured images, cards, and the search overlay.
   ========================================================================== */

/* Search: large, centered, an opening in the wall. No sidebar. */
.bd-search-arch {
	max-width: 36rem; margin: 0 auto; text-align: center;
	border: 1px solid rgba(236, 233, 222, 0.45); border-bottom: 0; border-radius: 999px 999px 0 0;
	padding: clamp(5rem, 4rem + 8vw, 9rem) 2rem 2.5rem;
}
.bd-search-page .wp-block-search__inside-wrapper { justify-content: center; }
.bd-search-page .wp-block-search__input,
.bd-search-page input[type="search"] { font-size: var(--wp--preset--font-size--title); text-align: center; }
.bd-search-page .wp-block-search__button { margin: 1.2rem auto 0; padding: 0; }
.bd-search-hints { justify-items: center; text-align: center; }
.bd-search-hints a { font-family: var(--wp--preset--font-family--mono); font-style: normal; font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.18em; text-transform: uppercase; }

/* Homepage threshold: spacing and one sentence */
.bd-threshold-section .wp-block-heading { letter-spacing: -0.01em; }

/* Collection landing pages */
.bd-tags a { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption) !important; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; margin-right: 1.4rem; display: inline-block; padding: 0.25rem 0; opacity: 0.75; border-bottom: 1px solid transparent; transition: opacity 600ms var(--bd-ease), border-color 600ms var(--bd-ease); }
.bd-tags a:hover { opacity: 1; border-bottom-color: currentColor; color: inherit; }
.bd-connections { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 0; }
.bd-connections a { font-family: var(--wp--preset--font-family--serif-display); font-size: var(--wp--preset--font-size--lede); font-style: italic; text-decoration: none; opacity: 0.75; transition: opacity 600ms var(--bd-ease); }
.bd-connections a:hover { opacity: 1; color: inherit; }

/* Newsletter: invite, don't sell. No frame. */
.bd-newsletter h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.bd-newsletter .wp-block-paragraph, .bd-newsletter p { opacity: 0.85; }

/* Images: each needs a reason. Captions say why THIS image. */
.wp-block-image figcaption { max-width: 40rem; }


/* ==========================================================================
   v1.3
   ========================================================================== */
.bd-crumb { gap: 0.5rem; margin-bottom: 1rem; }
.bd-crumb a { text-decoration: none; opacity: 0.7; }
.bd-crumb p { margin: 0; }
main > .wp-block-group.alignfull { --bd-pad-boost: 1.15; }
.bd-article-head, .bd-explore { padding-top: calc(var(--wp--preset--spacing--50) * 1.15); }

/* Archive map */
.bd-map { list-style: none; margin: 0 auto; padding: 0; max-width: 60rem; counter-reset: none; }
.bd-map li { border-top: 1px solid rgba(27, 26, 25,0.28); }
.bd-map li:last-child { border-bottom: 1px solid rgba(27, 26, 25,0.28); }
.bd-map a { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.5rem; padding: 1.9rem 0; text-decoration: none; color: inherit; transition: background-color var(--bd-slow) var(--bd-ease); }
.bd-map a:hover { background-color: color-mix(in srgb, currentColor 4%, transparent); }
.bd-map .n, .bd-map .meta { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.bd-map .name { grid-column: 2; font-family: var(--wp--preset--font-family--serif-display); font-size: var(--wp--preset--font-size--title); line-height: 1.15; }
.bd-map .q { grid-column: 2; font-style: italic; opacity: 0.8; margin-top: 0.3rem; }
.bd-map .meta { grid-column: 2; margin-top: 0.8rem; }

/* Method strip */
.bd-method { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0; margin: 2.5rem 0 0; font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.1em; text-transform: uppercase; }
.bd-method span { padding: 0 1rem; opacity: 0.75; }
.bd-method span + span { border-left: 1px solid rgba(27, 26, 25,0.35); }
@media (max-width: 700px) { .bd-method { flex-direction: column; align-items: center; } .bd-method span + span { border-left: 0; } }

/* Quiet cards: image and title only */
.bd-story-quiet .wp-block-post-title { font-size: var(--wp--preset--font-size--body); margin-top: 0.7rem; }

/* Collection personalities */
.coll-investigations .wp-block-post-content > p:first-child { font-size: 1.15em; }
.coll-objects .bd-catalogue-card .wp-block-post-featured-image { background: var(--wp--preset--color--limestone); padding: 2rem; border: 1px solid rgba(27, 26, 25,0.28); }
.coll-objects .bd-spec-list { border-top: 1px solid rgba(27, 26, 25,0.4); }
.coll-symbols .bd-hero-square { max-width: 34rem; margin-inline: auto; }
.coll-symbols .bd-hero-square img { aspect-ratio: 1/1; object-fit: cover; }
.coll-cabinet .bd-index-card { max-width: 38rem; margin: 3rem auto 0; border: 1px solid rgba(27, 26, 25,0.3); background: color-mix(in srgb, var(--wp--preset--color--limestone) 55%, transparent); }
.coll-cabinet .wp-block-post-content { font-size: 0.97em; }
.coll-texts .bd-article-head, .coll-places .bd-article-head, .coll-beings .bd-article-head { text-align: left; }
.coll-texts .wp-block-post-content { font-size: 0.97em; }

/* Appears in, Follow the Thread */
.bd-appears .wp-block-post-title { font-size: var(--wp--preset--font-size--body); }
.bd-thread { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0; }
.bd-thread li { display: grid; grid-template-columns: 7rem 1fr; padding: 0.9rem 0; border-top: 1px solid rgba(27, 26, 25,0.25); }
.bd-thread span { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.bd-thread a { text-decoration: none; font-family: var(--wp--preset--font-family--serif-display); font-style: italic; font-size: var(--wp--preset--font-size--lede); }


/* ==========================================================================
   v1.4: contradictions. Quiet next to loud, pale next to black.
   Colours come from the moodboard: olive wordmark, indigo manifesto,
   black memoir, copper against black, silver instead of gold.
   ========================================================================== */
:root { --bd-indigo: #4d4678; --bd-black: #000000; --bd-olive: #8c8673; --bd-copper: #9d6b43; --bd-silver: #b9bbb8; }

/* Wordmark: olive, not black. The arch is the only black. */
.wp-block-site-title, .wp-block-site-title a { color: var(--bd-olive); }
.bd-header .wp-block-site-title a { letter-spacing: 0.02em; }

/* Heavy against light: first letter of an article is bold black, the rest stays pale serif */
.single .wp-block-post-content > p:first-of-type::first-letter,
.bd-dropcap::first-letter {
	font-family: var(--wp--preset--font-family--serif-display);
	font-weight: 700; color: var(--bd-black);
	float: left; font-size: 4.6em; line-height: 0.82; padding: 0.06em 0.12em 0 0;
}
.coll-cabinet .wp-block-post-content > p:first-of-type::first-letter { float: none; font-size: inherit; font-weight: inherit; padding: 0; color: inherit; }

/* Manifesto: indigo with a dark moon, cream text */
.bd-manifesto.is-dark { background-color: var(--bd-indigo); color: #ece9de; position: relative; overflow: hidden; }
.bd-manifesto.is-dark::before {
	content: ""; position: absolute; left: -8vw; top: 22%; width: 24vw; height: 24vw; max-width: 22rem; max-height: 22rem;
	border-radius: 50%; background: #3e3d35; opacity: 0.85;
	-webkit-mask: radial-gradient(circle at 72% 40%, transparent 52%, #000 53%); mask: radial-gradient(circle at 72% 40%, transparent 52%, #000 53%);
	pointer-events: none;
}
.bd-manifesto > * { position: relative; }

/* Memoir: the black room inside About */
.bd-memoir { background-color: var(--bd-black); color: #ece9de; }
.bd-memoir h2 { color: #ece9de; }

/* Copper on black, silver rules: no gold */
.is-dark .bd-kicker, .bd-latest .bd-kicker { color: var(--bd-copper); }
.is-dark hr, .bd-atmosphere-rule { border-color: var(--bd-silver); }


/* v1.5: publication direction */
.bd-masthead { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; max-width: 76rem; margin: 0 auto; padding: 1rem 1.5rem; border-bottom: 1px solid var(--bd-rule); font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.18em; text-transform: uppercase; }
.bd-masthead span { opacity: 0.7; }
.bd-credits { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--caption); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.bd-credits p, .bd-credits div { margin: 0; }
/* The cover: the Featured Investigation gets room. One idea per screen. */
.bd-latest { min-height: 92vh; display: flex; align-items: center; }
.bd-latest > .wp-block-query { width: 100%; }
.bd-latest .wp-block-post-title { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 5rem); line-height: 1.02; }
.bd-latest .wp-block-post-featured-image img { aspect-ratio: 3/4; }


/* ==========================================================================
   v1.7: review fixes. Pointed arch, one shared photographic grade,
   readable labels, catalogue meta on cards.
   ========================================================================== */
/* A doorway, not a boho semicircle: pointed (ogive) arch, like the wordmark */
.is-arch, .is-arch img, .is-arch a, .wp-block-post-featured-image.is-arch img { border-radius: 0; }
.is-arch { clip-path: polygon(0.0% 100.0%,0.0% 40.0%,0.4% 36.2%,1.7% 32.6%,3.7% 29.1%,6.4% 25.8%,9.7% 22.6%,13.4% 19.5%,17.5% 16.6%,21.9% 13.9%,26.6% 11.2%,31.3% 8.7%,36.2% 6.3%,40.9% 4.1%,45.6% 2.0%,50.0% 0.0%,54.4% 2.0%,59.1% 4.1%,63.8% 6.3%,68.7% 8.7%,73.4% 11.2%,78.1% 13.9%,82.5% 16.6%,86.6% 19.5%,90.3% 22.6%,93.6% 25.8%,96.3% 29.1%,98.3% 32.6%,99.6% 36.2%,100.0% 40.0%,100.0% 100.0%); }

/* One grade for every photograph so they read as one collection */
.wp-block-post-featured-image img, .wp-block-image img, .bd-story img { filter: sepia(0.14) saturate(0.82) contrast(1.02); }
.is-arch img { filter: sepia(0.14) saturate(0.82) contrast(1.02); }
.bd-story:hover .is-arch img, .is-arch:hover img { filter: sepia(0.08) saturate(0.95) contrast(1.02); }

/* Contrast: small mono labels */
.bd-kicker { opacity: 0.88; }
.bd-meta { opacity: 0.78; }
figcaption, .wp-element-caption, .bd-spec-list dt, .bd-thread span, .bd-map .meta, .bd-map .n { opacity: 0.85; }
:root { --wp--preset--font-size--caption: 0.8rem; }
.is-dark .bd-kicker, .bd-latest .bd-kicker { color: #cfc6ad; }

/* Method list: left-aligned with hairlines, like a catalogue */
.bd-method { flex-direction: column; align-items: stretch; max-width: 30rem; margin-inline: auto; text-align: left; }
.bd-method span { padding: 0.8rem 0; border-top: 1px solid var(--bd-rule); }
.bd-method span + span { border-left: 0; }
.bd-method span:last-child { border-bottom: 1px solid var(--bd-rule); }

/* Card meta: collection line, from real categories only */
.bd-card-meta, .bd-card-meta a { text-decoration: none; margin: 0.2rem 0 0; }


/* ==========================================================================
   v1.8: arch shape and colours copied from the Figma file.
   The arch is traced from the taupe arch in the Figma board (wide, low
   point, proportion 654:604). Change --bd-arch once to change every arch.
   Colours sampled from the same board: paper #F8F7F3, card #ECE9DE,
   olive #8C8673, taupe #6E685A, indigo #4D4678, sage #4C845C, black #000.
   ========================================================================== */
:root {
	--bd-arch: polygon(0.0% 100.0%,0.3% 42.7%,0.6% 40.1%,1.2% 37.4%,2.0% 34.8%,3.1% 32.1%,4.6% 29.3%,6.0% 26.7%,8.3% 24.0%,10.7% 21.4%,13.6% 18.7%,16.5% 16.1%,20.2% 13.4%,24.5% 10.6%,29.8% 7.9%,35.5% 5.3%,42.0% 2.6%,50.0% 0.0%,58.0% 2.6%,64.5% 5.3%,70.2% 7.9%,75.5% 10.6%,79.8% 13.4%,83.5% 16.1%,86.4% 18.7%,89.3% 21.4%,91.7% 24.0%,94.0% 26.7%,95.4% 29.3%,96.9% 32.1%,98.0% 34.8%,98.8% 37.4%,99.4% 40.1%,99.7% 42.7%,100.0% 100.0%);
	--bd-arch-ratio: 654 / 604;
	--bd-taupe: #6e685a; --bd-sage: #4c845c; --bd-card: #ece9de;
}
.is-arch { clip-path: var(--bd-arch); }
.is-arch img, .wp-block-post-featured-image.is-arch img { aspect-ratio: var(--bd-arch-ratio) !important; object-fit: cover; width: 100%; height: auto; }
.is-arch:empty, .wp-block-post-featured-image:not(:has(img)) {
	border-radius: 0; clip-path: var(--bd-arch); aspect-ratio: var(--bd-arch-ratio); min-height: 0;
	background: var(--bd-taupe);
}
/* Outlined arches: same traced shape, drawn as a line */
.bd-threshold, .bd-arch-frame, .bd-themes a, .bd-search-arch {
	border: 0; border-radius: 0; clip-path: var(--bd-arch);
	background-repeat: no-repeat; background-size: 100% 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0.0 100.0 L0.3 42.7 L0.6 40.1 L1.2 37.4 L2.0 34.8 L3.1 32.1 L4.6 29.3 L6.0 26.7 L8.3 24.0 L10.7 21.4 L13.6 18.7 L16.5 16.1 L20.2 13.4 L24.5 10.6 L29.8 7.9 L35.5 5.3 L42.0 2.6 L50.0 0.0 L58.0 2.6 L64.5 5.3 L70.2 7.9 L75.5 10.6 L79.8 13.4 L83.5 16.1 L86.4 18.7 L89.3 21.4 L91.7 24.0 L94.0 26.7 L95.4 29.3 L96.9 32.1 L98.0 34.8 L98.8 37.4 L99.4 40.1 L99.7 42.7 L100.0 100.0%22 fill=%22none%22 stroke=%22%238c8673%22 stroke-opacity=%220.9%22 stroke-width=%222%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E");
}
.bd-search-arch, .is-dark .bd-arch-frame, .is-dark .bd-threshold { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0.0 100.0 L0.3 42.7 L0.6 40.1 L1.2 37.4 L2.0 34.8 L3.1 32.1 L4.6 29.3 L6.0 26.7 L8.3 24.0 L10.7 21.4 L13.6 18.7 L16.5 16.1 L20.2 13.4 L24.5 10.6 L29.8 7.9 L35.5 5.3 L42.0 2.6 L50.0 0.0 L58.0 2.6 L64.5 5.3 L70.2 7.9 L75.5 10.6 L79.8 13.4 L83.5 16.1 L86.4 18.7 L89.3 21.4 L91.7 24.0 L94.0 26.7 L95.4 29.3 L96.9 32.1 L98.0 34.8 L98.8 37.4 L99.4 40.1 L99.7 42.7 L100.0 100.0%22 fill=%22none%22 stroke=%22%23ece9de%22 stroke-opacity=%220.55%22 stroke-width=%222%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E"); }
.bd-threshold { opacity: 0.7; aspect-ratio: var(--bd-arch-ratio); height: auto; width: 7rem; }
.bd-themes a { aspect-ratio: var(--bd-arch-ratio); min-height: 0; }
.bd-themes a:hover { background-color: var(--bd-atmo); }


/* ==========================================================================
   v1.9: one photographic grade. The archive is monochrome in the house
   taupe; every photograph, whatever its original colour, joins the same
   collection. Dial --bd-tint-amount down toward 0 to let colour back in.
   ========================================================================== */
:root { --bd-tint: #6e685a; --bd-tint-amount: 0.82; }

.wp-block-post-featured-image,
.wp-block-image,
.bd-story figure { position: relative; }

.wp-block-post-featured-image img,
.wp-block-image img,
.bd-story img {
	filter: grayscale(0.45) contrast(1.06) brightness(0.98) saturate(0.7);
}

.wp-block-post-featured-image::after,
.wp-block-image.is-arch::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: var(--bd-tint);
	mix-blend-mode: color;
	opacity: var(--bd-tint-amount);
}
.is-dark .wp-block-post-featured-image::after { opacity: calc(var(--bd-tint-amount) - 0.08); }
.bd-story:hover .wp-block-post-featured-image::after,
.wp-block-post-featured-image:hover::after { opacity: calc(var(--bd-tint-amount) - 0.35); transition: opacity 900ms var(--bd-ease); }
.wp-block-post-featured-image::after { transition: opacity 900ms var(--bd-ease); }

/* Card meta: one collection, not every category */
.bd-card-meta { margin: 0.6rem 0 0.2rem; }
.bd-card-meta a { text-decoration: none; }

/* The collections map on the home page */
.bd-map-section .bd-map { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
	.wp-block-post-featured-image::after { transition: none; }
}

/* The map is a full index on the Archive page and a quieter list on the home page */
.bd-map-section .bd-map .name { font-size: var(--wp--preset--font-size--lede); }
.bd-map-section .bd-map a { padding: 1.25rem 0; }
.bd-map-section .bd-map .q { margin-top: 0.15rem; }
