/* ==========================================================================
   Hollow Atlas 1.0.0 - eerie archival styling over Twenty Twenty-One.
   Restraint is the point: dark paper, bone ink, grain, vignette, and
   photographs that look pulled from a damp box. No dripping fonts.
   ========================================================================== */

/* ---- Faces (self-hosted, SIL Open Font License) ---- */
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/im-fell-english-400.woff2) format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/im-fell-english-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/im-fell-english-sc-400.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/spectral-300.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/spectral-400.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/spectral-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/spectral-600.woff2) format("woff2"); }

/* ---- Palette ---- */
html:root {
	--ha-void: #0b0c0b;      /* page */
	--ha-ash: #121311;       /* panels */
	--ha-soot: #1a1b18;      /* raised / hover */
	--ha-line: #2e2c27;      /* hairlines */
	--ha-bone: #d9d3c5;      /* body ink  (13:1 on void) */
	--ha-dust: #9b9485;      /* muted ink (6.6:1 on void) */
	--ha-brass: #b89a5e;     /* tarnished lamp: focus, small accents */
	--ha-rust: #7d3429;      /* dried blood: underlines and rules only, never text */
	--ha-serif-display: "IM Fell English", "Iowan Old Style", Georgia, serif;
	--ha-serif-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
	--ha-serif-text: "Spectral", Georgia, "Times New Roman", serif;
	--ha-slow: 1.2s cubic-bezier(.2, .6, .2, 1);

	/* lore-atlas plugin tokens */
	--lore-ink: var(--ha-bone);
	--lore-dim: var(--ha-dust);
	--lore-line: var(--ha-line);
	--lore-panel: var(--ha-ash);
	--lore-lamp: var(--ha-brass);

	/* Twenty Twenty-One font tokens */
	--font-headings: var(--ha-serif-display);
	--font-base: var(--ha-serif-text);
}

/* Twenty Twenty-One colour tokens live on body and are re-set by its dark-mode
   overrides, so out-specify them there. */
body.hollow-atlas.hollow-atlas.hollow-atlas {
	--global--color-background: var(--ha-void);
	--global--color-primary: var(--ha-bone);
	--global--color-secondary: var(--ha-dust);
	--global--color-foreground: var(--ha-bone);
	--global--color-border: var(--ha-line);
	--global--color-primary-hover: var(--ha-bone);
	--global--font-primary: var(--ha-serif-display);
	--global--font-secondary: var(--ha-serif-text);
	--global--font-size-base: 1.18rem;
	--global--line-height-body: 1.75;
	--heading--font-weight: 400;
	--heading--font-weight-page-title: 400;
	--heading--font-weight-strong: 400;
	--heading--letter-spacing-h1: 0.005em;
	--heading--letter-spacing-h2: 0.005em;
	--button--color-text: var(--ha-void);
	--button--color-background: var(--ha-bone);
	--button--color-text-hover: var(--ha-bone);
	--button--color-background-active: var(--ha-bone);
	--form--color-text: var(--ha-bone);
	--form--color-border: var(--ha-line);
	--form--border-radius: 0;
	--branding--color-text: var(--ha-bone);
	--branding--color-link: var(--ha-bone);
	--branding--color-link-hover: var(--ha-dust);
	--primary-nav--color-link: var(--ha-dust);
	--primary-nav--color-link-hover: var(--ha-bone);
	--footer--color-text: var(--ha-dust);
	--footer--color-link: var(--ha-dust);
	--footer--color-link-hover: var(--ha-bone);
	--entry-header--color: var(--ha-bone);
	--entry-header--color-link: var(--ha-bone);
	--entry-header--color-hover: var(--ha-dust);
	--entry-content--font-family: var(--ha-serif-text);
	--separator--border-color: var(--ha-line);
	--separator--height: 1px;

	background-color: var(--ha-void);
	color: var(--ha-bone);
	font-family: var(--ha-serif-text);
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
html body.hollow-atlas.custom-background { background-color: var(--ha-void); }

/* ---- Atmosphere: a vignette that closes in, and film grain ---- */
body.hollow-atlas::before,
body.hollow-atlas::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9990;
}
body.hollow-atlas::before {
	background:
		radial-gradient(ellipse 120% 95% at 50% 40%, transparent 52%, rgba(0, 0, 0, .42) 82%, rgba(0, 0, 0, .7) 100%);
}
body.hollow-atlas::after {
	inset: -64px;
	opacity: .075;
	will-change: transform;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .78 0 0 0 0 .72 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 220px 220px;
	animation: ha-grain 1.4s steps(5) infinite;
}
@keyframes ha-grain {
	0% { transform: translate(0, 0); }
	20% { transform: translate(-31px, 17px); }
	40% { transform: translate(23px, -41px); }
	60% { transform: translate(-13px, 37px); }
	80% { transform: translate(41px, 9px); }
	100% { transform: translate(0, 0); }
}
body.hollow-atlas #wpadminbar { z-index: 99999; }

::selection { background: var(--ha-rust); color: var(--ha-bone); }
html { scrollbar-color: #34322c var(--ha-void); }

/* ---- Type ---- */
.hollow-atlas h1, .hollow-atlas h2, .hollow-atlas h3, .hollow-atlas h4,
.hollow-atlas .entry-title, .hollow-atlas .page-title, .hollow-atlas .site-title {
	font-family: var(--ha-serif-display);
	font-weight: 400;
	color: var(--ha-bone);
	text-wrap: balance;
}
.hollow-atlas .entry-title, .hollow-atlas .page-title { line-height: 1.12; letter-spacing: .005em; }
.hollow-atlas .entry-header .entry-title { text-shadow: 0 0 22px rgba(0, 0, 0, .9); }
.hollow-atlas .entry-content,
.hollow-atlas .entry-summary,
.hollow-atlas .lore-story { font-family: var(--ha-serif-text); color: var(--ha-bone); }
/* Drop cap on the first real paragraph only, never on a "Part of the lore of ..." line or a note. */
.hollow-atlas .entry-content > p:first-of-type:not([class*="lore-"])::first-letter,
.hollow-atlas .lore-story > p:first-of-type::first-letter {
	font-family: var(--ha-serif-display);
	float: left;
	font-size: 3.4em;
	line-height: .82;
	padding: .06em .1em 0 0;
	color: var(--ha-bone);
}

/* Links fade rather than snap. */
.hollow-atlas a {
	color: var(--ha-bone);
	text-decoration-color: color-mix(in srgb, var(--ha-rust) 85%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	transition: color var(--ha-slow), text-decoration-color var(--ha-slow), opacity var(--ha-slow);
}
.hollow-atlas a:hover { color: var(--ha-dust); text-decoration-color: var(--ha-bone); }
.hollow-atlas .entry-title a, .hollow-atlas .site-title a { text-decoration: none; }
.hollow-atlas .entry-title a:hover { color: var(--ha-dust); }

.hollow-atlas :focus-visible,
.hollow-atlas a:focus,
.hollow-atlas button:focus-visible {
	outline: 1px solid var(--ha-brass);
	outline-offset: 3px;
	background: transparent;
	text-decoration: none;
}
.hollow-atlas a:focus:not(:focus-visible) { outline: none; }

/* ---- Header ---- */
.hollow-atlas .site-header { border-bottom: 1px solid var(--ha-line); }
.hollow-atlas .site-title {
	font-family: var(--ha-serif-sc);
	text-transform: none;
	font-size: var(--ha-site-title, 1.7rem);
	letter-spacing: .22em;
}
.hollow-atlas .site-description {
	font-family: var(--ha-serif-display);
	font-style: italic;
	color: var(--ha-dust);
	letter-spacing: .02em;
}
.hollow-atlas .primary-navigation a {
	font-family: var(--ha-serif-sc);
	letter-spacing: .14em;
	font-size: 1.05rem;
	color: var(--ha-dust);
	text-decoration: none;
}
.hollow-atlas .primary-navigation a:hover,
.hollow-atlas .primary-navigation .current-menu-item > a {
	color: var(--ha-bone);
	text-decoration: underline;
	text-decoration-color: var(--ha-rust);
}
.hollow-atlas .primary-navigation > div > .menu-wrapper { background: transparent; }
.hollow-atlas .primary-navigation-open .primary-navigation > .primary-menu-container { background: var(--ha-void); }

/* ---- Rules, headers, meta ---- */
.hollow-atlas .page-header,
.hollow-atlas .site-main > article > .entry-footer,
.hollow-atlas .site-footer > .site-info,
.hollow-atlas .widget-area,
.hollow-atlas hr,
.hollow-atlas .wp-block-separator {
	border-color: var(--ha-line);
	border-width: 0 0 1px;
}
.hollow-atlas .entry-footer,
.hollow-atlas .site-footer,
.hollow-atlas .entry-meta,
.hollow-atlas .wp-caption-text,
.hollow-atlas figcaption {
	color: var(--ha-dust);
}
.hollow-atlas figcaption,
.hollow-atlas .wp-caption-text {
	font-family: var(--ha-serif-display);
	font-style: italic;
	font-size: .95rem;
	letter-spacing: .01em;
	text-align: center;
	margin-top: .9em;
}
.hollow-atlas .more-link,
.hollow-atlas .pagination,
.hollow-atlas .navigation { font-family: var(--ha-serif-sc); letter-spacing: .1em; }
.hollow-atlas .pagination .page-numbers.current { color: var(--ha-bone); text-decoration: underline; text-decoration-color: var(--ha-rust); }

/* ---- Forms and buttons ---- */
.hollow-atlas input[type="text"], .hollow-atlas input[type="search"], .hollow-atlas input[type="email"],
.hollow-atlas input[type="url"], .hollow-atlas input[type="password"], .hollow-atlas input[type="number"],
.hollow-atlas textarea, .hollow-atlas select {
	background: var(--ha-ash);
	color: var(--ha-bone);
	border: 1px solid var(--ha-line);
	border-radius: 0;
	font-family: var(--ha-serif-text);
	transition: border-color var(--ha-slow), background-color var(--ha-slow);
}
.hollow-atlas input::placeholder, .hollow-atlas textarea::placeholder { color: #7d776b; opacity: 1; }
.hollow-atlas input:focus, .hollow-atlas textarea:focus, .hollow-atlas select:focus { border-color: var(--ha-dust); background: var(--ha-soot); outline: none; }
.hollow-atlas .wp-block-button__link,
.hollow-atlas input[type="submit"],
.hollow-atlas button:not(.lore-f):not(.lore-cluster):not([class*="maplibregl"]):not(.menu-button-container button) {
	font-family: var(--ha-serif-sc);
	letter-spacing: .12em;
	border-radius: 0;
	transition: background-color var(--ha-slow), color var(--ha-slow);
}

/* ==========================================================================
   Photographs. Greyscale is pure CSS so nothing ever shows in colour;
   hollow-tear.js then gives each image its own torn, burnt edge.
   ========================================================================== */
.hollow-atlas :is(.post-thumbnail, .entry-content, .wp-block-image, .wp-block-gallery, .lore-cards, .lore-story, .widget-area) img,
.hollow-atlas img.wp-post-image,
.hollow-atlas .wp-block-cover__image-background,
.hollow-atlas img.ha-torn {
	filter: grayscale(1) sepia(.08) contrast(1.14) brightness(.8);
	transition: filter 1.6s cubic-bezier(.2, .6, .2, 1), opacity 1.1s ease;
}
/* Hold an image back until its edge is cut, so it never flashes square.
   The animation reveals it anyway after 2.5s if the script never arrives. */
.ha-js .hollow-atlas :is(.post-thumbnail, .entry-content, .wp-block-image, .wp-block-gallery, .lore-cards, .lore-story) img:not(.ha-torn):not(.ha-no-tear),
.ha-js .hollow-atlas img.wp-post-image:not(.ha-torn):not(.ha-no-tear) {
	opacity: 0;
	animation: ha-reveal .01s 2.5s forwards;
}
@keyframes ha-reveal { to { opacity: 1; } }

img.ha-torn {
	-webkit-mask-image: var(--ha-mask);
	mask-image: var(--ha-mask);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: 0 0;
	mask-position: 0 0;
	opacity: 1;
}
/* Hover: the photograph surfaces a little, with one uneasy flicker. */
.hollow-atlas a:hover img.ha-torn,
.hollow-atlas figure:hover > img.ha-torn,
.hollow-atlas img.ha-torn:hover {
	filter: grayscale(1) sepia(.1) contrast(1.22) brightness(.97);
	animation: ha-flicker 1.9s linear 1;
}
@keyframes ha-flicker {
	0%, 100% { opacity: 1; }
	7% { opacity: .78; }
	9% { opacity: 1; }
	31% { opacity: .9; }
	33% { opacity: 1; }
	34% { opacity: .62; }
	37% { opacity: 1; }
	71% { opacity: .93; }
	72% { opacity: 1; }
}
/* Photographs sit in the dark like plates in an album. */
.hollow-atlas .post-thumbnail,
.hollow-atlas .wp-block-image,
.hollow-atlas figure.wp-caption { background: transparent; }
.hollow-atlas .post-thumbnail { margin-top: 1.6rem; margin-bottom: 2.2rem; }

/* ==========================================================================
   Map and lore-atlas chrome. Category colours are left alone on purpose.
   ========================================================================== */
.hollow-atlas .lore-atlas-bar,
.hollow-atlas .lore-filter-row label,
.hollow-atlas .lore-facts,
.hollow-atlas .lore-where { font-family: var(--ha-serif-text); }
.hollow-atlas .lore-filter-row label {
	font-family: var(--ha-serif-sc);
	letter-spacing: .12em;
	color: var(--ha-dust);
	font-size: .9rem;
}
.hollow-atlas .lore-atlas button.lore-f {
	background: transparent;
	border: 1px solid var(--ha-line);
	border-radius: 0;
	color: var(--ha-dust);
	font-family: var(--ha-serif-text);
	transition: color var(--ha-slow), border-color var(--ha-slow), background-color var(--ha-slow);
}
.hollow-atlas .lore-atlas button.lore-f:hover { color: var(--ha-bone); border-color: #4a463e; }
.hollow-atlas .lore-atlas button.lore-f.is-on { background: var(--ha-soot); color: var(--ha-bone); border-color: #57524a; }
.hollow-atlas .lore-atlas .lore-filter-row input.lore-q,
.hollow-atlas .lore-atlas .lore-filter-row select {
	background: var(--ha-ash);
	border: 1px solid var(--ha-line);
	border-radius: 0;
	color: var(--ha-bone);
	font-family: var(--ha-serif-text);
}
.hollow-atlas .lore-map { position: relative; border: 1px solid var(--ha-line); background: #070807; }
/* Darkness pooling at the map's edges; the canvas and its dots are untouched. */
.hollow-atlas .lore-map::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 70px 10px rgba(0, 0, 0, .72);
	z-index: 1;
}
.hollow-atlas .lore-map .maplibregl-control-container { position: relative; z-index: 2; }
.hollow-atlas .lore-list { background: var(--ha-ash); border-color: var(--ha-line); scrollbar-color: #34322c var(--ha-ash); }
.hollow-atlas .lore-atlas .lore-list button { border-radius: 0; transition: background-color var(--ha-slow), color var(--ha-slow); }
.hollow-atlas .lore-atlas .lore-list button:hover,
.hollow-atlas .lore-atlas .lore-list button:focus-visible { background: var(--ha-soot); }
.hollow-atlas .lore-list strong { font-family: var(--ha-serif-display); font-weight: 400; font-size: 1.05em; letter-spacing: .01em; }
.hollow-atlas .lore-list span, .hollow-atlas .lore-empty { color: var(--ha-dust); }

.hollow-atlas .maplibregl-ctrl-group {
	background: var(--ha-ash);
	border: 1px solid var(--ha-line);
	border-radius: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
}
.hollow-atlas .lore-map .maplibregl-ctrl-group button,
.hollow-atlas .lore-map .maplibregl-ctrl-group button:focus {
	background-color: transparent;
	border-radius: 0;
	padding: 0;
	color: var(--ha-bone);
	transition: background-color var(--ha-slow);
}
.hollow-atlas .maplibregl-ctrl-group button + button { border-top-color: var(--ha-line); }
.hollow-atlas .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(.86) sepia(.2); }
.hollow-atlas .lore-map .maplibregl-ctrl-group button:hover { background-color: var(--ha-soot); }
.hollow-atlas .maplibregl-ctrl-attrib { background: rgba(11, 12, 11, .78); color: var(--ha-dust); }
.hollow-atlas .maplibregl-ctrl-attrib a { color: var(--ha-dust); }

.hollow-atlas .lore-popup .maplibregl-popup-content {
	background: var(--ha-ash);
	border: 1px solid #3a372f;
	border-radius: 0;
	color: var(--ha-bone);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .85), inset 0 0 28px rgba(0, 0, 0, .55);
}
.hollow-atlas .lore-popup .maplibregl-popup-content,
.hollow-atlas .lore-pop p { font-family: var(--ha-serif-text); font-size: .95rem; line-height: 1.55; color: var(--ha-bone); }
.hollow-atlas .lore-popup .maplibregl-popup-close-button { background: transparent; color: var(--ha-dust); font-size: 1.1rem; }
.hollow-atlas .lore-pop-t { font-family: var(--ha-serif-display); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.hollow-atlas .lore-pop-s { color: var(--ha-dust); font-family: var(--ha-serif-display); font-style: italic; }
.hollow-atlas .lore-pop-more { font-family: var(--ha-serif-sc); letter-spacing: .1em; }

.hollow-atlas .lore-chip,
.hollow-atlas .lore-status-chip,
.hollow-atlas .lore-ev-chip {
	border-radius: 0;
	font-family: var(--ha-serif-sc);
	letter-spacing: .08em;
}
/* Kind chips (1.2.2): the kind colour (--chip, from Legends > Atlas settings) marks the dot,
   border and a faint stain; the label stays bone so darker kind colours never hurt reading. */
.hollow-atlas .lore-chip {
	color: color-mix(in srgb, var(--chip, var(--ha-bone)) 35%, var(--ha-bone));
	border-color: color-mix(in srgb, var(--chip, var(--ha-line)) 75%, transparent);
	background: color-mix(in srgb, var(--chip, transparent) 12%, transparent);
}
.hollow-atlas .lore-section h2,
.hollow-atlas .lore-tellings h2 {
	font-family: var(--ha-serif-sc);
	letter-spacing: .14em;
	font-size: 1.15rem;
	color: var(--ha-dust);
	border-bottom: 1px solid var(--ha-line);
	padding-bottom: .5em;
}
.hollow-atlas .lore-cards a {
	background: var(--ha-ash);
	border: 1px solid var(--ha-line);
	border-radius: 0;
	transition: background-color var(--ha-slow), border-color var(--ha-slow);
}
.hollow-atlas .lore-cards a:hover { background: var(--ha-soot); border-color: #4a463e; }
.hollow-atlas .lore-note, .hollow-atlas .lore-sources { color: var(--ha-dust); }

/* ---- Footer ---- */
.hollow-atlas .site-footer { font-family: var(--ha-serif-display); font-style: italic; }

/* ---- People who ask for less motion get none ---- */

/* ---------- Lightbox: the original photograph, unfiltered ---------- */
.hollow-atlas img.ha-lb-trigger { cursor: zoom-in; }
.hollow-atlas img.ha-lb-trigger:focus-visible { outline: 1px solid var(--ha-brass); outline-offset: 6px; }
html.ha-lb-open, html.ha-lb-open body { overflow: hidden; }
.ha-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: 1fr auto;
	background: rgba(5, 6, 5, .96);
	opacity: 0;
	transition: opacity .6s ease;
}
.ha-lb[hidden] { display: none; }
.ha-lb.is-open { opacity: 1; }
.ha-lb__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 4.5rem 4.5rem 1rem;
}
.ha-lb .ha-lb__img,
.hollow-atlas .ha-lb .ha-lb__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: none !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	opacity: 1 !important;
	animation: none !important;
	box-shadow: 0 0 0 1px var(--ha-line), 0 30px 90px rgba(0, 0, 0, .8);
	transition: opacity .4s ease;
}
.ha-lb.is-loading .ha-lb__img { opacity: .35 !important; }
.ha-lb__bar {
	display: flex;
	gap: 1.5rem;
	align-items: baseline;
	justify-content: center;
	padding: 0 4.5rem 1.6rem;
	color: var(--ha-dust);
}
.ha-lb__cap {
	margin: 0;
	max-width: 70ch;
	font-family: var(--ha-serif-display, "IM Fell English", serif);
	font-style: italic;
	font-size: .9rem;
	line-height: 1.5;
	text-align: center;
	color: var(--ha-dust);
	overflow-wrap: anywhere;
}
.ha-lb__count {
	font-family: "IM Fell English SC", serif;
	font-size: .8rem;
	letter-spacing: .18em;
	white-space: nowrap;
}
.ha-lb .ha-lb__btn,
body.hollow-atlas .ha-lb button.ha-lb__btn:not(.has-background) {
	position: absolute;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--ha-line);
	border-radius: 0;
	background: rgba(18, 19, 17, .7);
	color: var(--ha-bone);
	font-family: "IM Fell English", serif;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color .4s ease, color .4s ease, background-color .4s ease;
}
.ha-lb .ha-lb__btn:hover,
.ha-lb .ha-lb__btn:focus-visible,
body.hollow-atlas .ha-lb button.ha-lb__btn:not(.has-background):hover,
body.hollow-atlas .ha-lb button.ha-lb__btn:not(.has-background):focus-visible { border-color: var(--ha-brass); color: #fff; background: var(--ha-soot); outline: none; }
.ha-lb .ha-lb__btn[hidden],
body.hollow-atlas .ha-lb button.ha-lb__btn[hidden] { display: none !important; }
.ha-lb__close { top: 1rem; right: 1rem; }
.ha-lb__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.ha-lb__next { right: 1rem; top: 50%; transform: translateY(-50%); }
/* Lightbox settings (1.3.0, Legends > Lightbox). */
.hollow-atlas .ha-lb.ha-lb--greyscale .ha-lb__img,
.hollow-atlas .ha-lb.ha-lb--styled .ha-lb__img { filter: grayscale(1) sepia(.08) contrast(1.14) brightness(.88) !important; }
.hollow-atlas .ha-lb.ha-lb--styled .ha-lb__img {
	-webkit-mask-image: var(--ha-mask) !important;
	mask-image: var(--ha-mask) !important;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	box-shadow: none;
}
.ha-lb.ha-lb--fx::before,
.ha-lb.ha-lb--fx::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
}
.ha-lb.ha-lb--fx::before { background: radial-gradient(ellipse 110% 90% at 50% 45%, transparent 48%, rgba(0, 0, 0, .5) 80%, rgba(0, 0, 0, .78) 100%); }
.ha-lb.ha-lb--fx::after {
	inset: -64px;
	opacity: .09;
	mix-blend-mode: screen;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .78 0 0 0 0 .72 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 220px 220px;
	animation: ha-grain 1.4s steps(5) infinite;
}
.ha-lb.ha-lb--fx { overflow: hidden; }
.ha-lb.ha-lb--fx .ha-lb__btn { z-index: 3; }
html.ha-atmo-still .ha-lb.ha-lb--fx::after { animation: none; }
/* Hover flicker off: page photos stay still under the pointer. */
.hollow-atlas.ha-no-hover a:hover img.ha-torn,
.hollow-atlas.ha-no-hover figure:hover > img.ha-torn,
.hollow-atlas.ha-no-hover img.ha-torn:hover { filter: grayscale(1) sepia(.08) contrast(1.14) brightness(.8); animation: none; }
/* Lightbox off: nothing on a photo says it can be clicked. */
.hollow-atlas.ha-lb-off img.ha-torn { cursor: auto; }

@media (max-width: 600px) {
	.ha-lb__stage { padding: 4rem .75rem .5rem; }
	.ha-lb__bar { padding: 0 1rem 1rem; flex-direction: column; align-items: center; gap: .4rem; }
	.ha-lb__prev, .ha-lb__next { top: auto; bottom: .75rem; transform: none; }
}

/* ==========================================================================
   Atmosphere (1.2.0): the shared backdrop from template-parts/atmosphere.php,
   drawn by hollow-atmosphere.js. Everything here sits BEHIND the page
   (z-index 0 under .site), never takes a click, and animates only transform,
   opacity and stroke-dashoffset. --ha-atmo is the admin intensity (1 = 5/10).
   ========================================================================== */
.hollow-atlas .site { position: relative; z-index: 1; }
.ha-atmo {
	--ha-ink: 217, 211, 197;
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	color: rgb(var(--ha-ink));
	contain: strict;
}
/* old stains in the dark, barely there */
.ha-atmo::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: calc(.9 * var(--ha-atmo, 1));
	background:
		radial-gradient(ellipse 38% 30% at 86% 10%, rgba(125, 52, 41, .055), transparent 70%),
		radial-gradient(ellipse 30% 26% at 8% 88%, rgba(184, 154, 94, .035), transparent 70%),
		radial-gradient(ellipse 60% 40% at 50% 110%, rgba(40, 52, 38, .09), transparent 70%);
}

/* self-drawing ink */
.ha-atmo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ha-ink {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}
.ha-atmo.is-live .ha-ink,
.ha-divider.is-drawn .ha-ink { animation: ha-draw var(--t, 2s) cubic-bezier(.45, .05, .3, 1) var(--d, 0s) forwards; }
@keyframes ha-draw { to { stroke-dashoffset: 0; } }

.ha-atmo__slot { position: absolute; }
.ha-atmo__slot--tr,
.ha-atmo__slot--bl { width: min(56vmin, 640px); aspect-ratio: 1; opacity: calc(.17 * var(--ha-atmo, 1)); }
.ha-atmo__slot--tr { top: 0; right: 0; transform: scaleX(-1); }
.ha-atmo__slot--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.ha-atmo__slot--br { right: -4vmin; bottom: -4vmin; width: min(52vmin, 600px); aspect-ratio: 1; opacity: calc(.11 * var(--ha-atmo, 1)); }
.ha-atmo__slot--cp { left: 3.2vw; top: 46vh; width: 118px; aspect-ratio: 1; opacity: calc(.13 * var(--ha-atmo, 1)); }
.ha-ink--index { opacity: 1.6; }
.ha-ink--needle { fill: currentColor; fill-opacity: .25; }

.ha-atmo__branch { transform-origin: 0 0; will-change: transform; animation: ha-sway var(--sway, 14s) ease-in-out infinite alternate; }
@keyframes ha-sway {
	from { transform: rotate(calc(var(--sway-a, .5deg) * -1)); }
	to { transform: rotate(var(--sway-a, .5deg)); }
}
.ha-needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--n0, 0deg)); animation: ha-needle var(--needle, 22s) ease-in-out infinite; }
@keyframes ha-needle {
	0%, 100% { transform: rotate(var(--n0, 0deg)); }
	22% { transform: rotate(calc(var(--n0, 0deg) + 13deg)); }
	31% { transform: rotate(calc(var(--n0, 0deg) + 9deg)); }
	58% { transform: rotate(calc(var(--n0, 0deg) - 11deg)); }
	63% { transform: rotate(calc(var(--n0, 0deg) - 7deg)); }
	84% { transform: rotate(calc(var(--n0, 0deg) + 4deg)); }
}

/* a surveyor's border with chain ticks */
.ha-atmo__frame i { position: absolute; opacity: calc(.1 * var(--ha-atmo, 1)); }
.ha-atmo__frame .t, .ha-atmo__frame .b {
	left: 18px; right: 18px; height: 6px;
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 64px) 0 0 / 100% 6px no-repeat;
	transform: scaleX(0);
}
.ha-atmo__frame .t { top: 18px; transform-origin: 0 50%; }
.ha-atmo__frame .b { bottom: 18px; transform-origin: 100% 50%; scale: 1 -1; }
.ha-atmo__frame .l, .ha-atmo__frame .r {
	top: 18px; bottom: 18px; width: 6px;
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 1px 100% no-repeat,
		repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 64px) 0 0 / 6px 100% no-repeat;
	transform: scaleY(0);
}
.ha-atmo__frame .l { left: 18px; transform-origin: 50% 100%; }
.ha-atmo__frame .r { right: 18px; transform-origin: 50% 0; scale: -1 1; }
.ha-atmo.is-live .ha-atmo__frame .t, .ha-atmo.is-live .ha-atmo__frame .b { animation: ha-rule-x 3.6s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
.ha-atmo.is-live .ha-atmo__frame .l, .ha-atmo.is-live .ha-atmo__frame .r { animation: ha-rule-y 3.6s cubic-bezier(.6, 0, .2, 1) 1.1s forwards; }
@keyframes ha-rule-x { to { transform: scaleX(1); } }
@keyframes ha-rule-y { to { transform: scaleY(1); } }
body.admin-bar .ha-atmo__frame .t, body.admin-bar .ha-atmo__frame .l, body.admin-bar .ha-atmo__frame .r { margin-top: var(--wp-admin--admin-bar--height, 32px); }

/* lights in the trees: drift, breathe, and now and then flare */
.ha-atmo__lights { position: absolute; inset: 0; }
.ha-orb {
	position: absolute;
	width: var(--s, 8px);
	height: var(--s, 8px);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 240, 218, .95) 0, rgba(196, 220, 176, .42) 32%, rgba(160, 196, 150, 0) 70%);
	opacity: 0;
	will-change: transform, opacity;
	animation:
		ha-orb-drift var(--drift, 34s) ease-in-out var(--delay, 0s) infinite alternate,
		ha-orb-breath var(--breath, 8s) ease-in-out var(--delay, 0s) infinite;
}
.ha-orb--warm { background: radial-gradient(circle, rgba(236, 214, 160, .95) 0, rgba(184, 154, 94, .42) 32%, rgba(184, 154, 94, 0) 70%); }
.ha-orb::after {
	content: "";
	position: absolute;
	inset: -260%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(220, 232, 205, .28) 0, rgba(220, 232, 205, 0) 62%);
	opacity: 0;
	animation: ha-orb-flare var(--flare, 29s) linear var(--delay, 0s) infinite;
}
@keyframes ha-orb-drift {
	from { transform: translate(0, 0); }
	to { transform: translate(var(--dx, 40px), var(--dy, -80px)); }
}
@keyframes ha-orb-breath {
	0%, 100% { opacity: calc(.12 * var(--ha-atmo, 1)); }
	45% { opacity: min(.9, calc(.5 * var(--ha-atmo, 1))); }
	60% { opacity: min(.8, calc(.32 * var(--ha-atmo, 1))); }
}
@keyframes ha-orb-flare {
	0%, 90%, 100% { opacity: 0; }
	91.5% { opacity: 1; }
	92.5% { opacity: .15; }
	93.5% { opacity: .85; }
	97% { opacity: 0; }
}

/* the lamp falters: the dark closes in for a breath */
html.ha-falter body.hollow-atlas::before { animation: ha-falter 1.3s linear; }
@keyframes ha-falter {
	0%, 100% { background-color: rgba(0, 0, 0, 0); }
	12% { background-color: rgba(0, 0, 0, .3); }
	20% { background-color: rgba(0, 0, 0, .06); }
	34% { background-color: rgba(0, 0, 0, .24); }
	60% { background-color: rgba(0, 0, 0, .1); }
}

/* ruled dividers under the header and above the footer */
.ha-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(100% - 2 * var(--global--spacing-horizontal, 25px), var(--responsive--alignwide-width, 1240px));
	margin: 0 auto;
	color: var(--ha-dust);
	opacity: .5;
	pointer-events: none;
}
.ha-divider__rule {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, currentColor 40%, currentColor);
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform 2.2s cubic-bezier(.6, 0, .2, 1);
}
.ha-divider__rule--r { background: linear-gradient(270deg, transparent, currentColor 40%, currentColor); transform-origin: 0 50%; }
.ha-divider.is-drawn .ha-divider__rule { transform: scaleX(1); }
.ha-divider svg { width: 22px; height: 22px; flex: none; }
.ha-divider .ha-ink { stroke-width: 1.4; }
body.ha-has-header-divider.hollow-atlas .site-header { border-bottom-color: transparent; }

@media (max-width: 700px) {
	.ha-atmo__frame, .ha-atmo__slot--cp { display: none; }
	.ha-atmo__slot--tr, .ha-atmo__slot--bl { width: 62vmin; }
	.ha-atmo__slot--br { width: 70vmin; }
}

/* Still mode: admin "motion" off, or the visitor asked for less motion. Everything is shown, nothing moves. */
html.ha-atmo-still .ha-ink, .ha-atmo.no-motion .ha-ink { animation: none !important; stroke-dashoffset: 0; }
html.ha-atmo-still .ha-atmo__branch, html.ha-atmo-still .ha-needle, .ha-atmo.no-motion .ha-atmo__branch, .ha-atmo.no-motion .ha-needle { animation: none !important; }
html.ha-atmo-still .ha-atmo__frame i, .ha-atmo.no-motion .ha-atmo__frame i { animation: none !important; transform: none; }
html.ha-atmo-still .ha-orb, .ha-atmo.no-motion .ha-orb { animation: none !important; opacity: calc(.28 * var(--ha-atmo, 1)); }
html.ha-atmo-still .ha-orb::after, .ha-atmo.no-motion .ha-orb::after { animation: none !important; }
html.ha-atmo-still .ha-divider__rule { transition: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ha-ink { animation: none !important; stroke-dashoffset: 0; }
	.ha-atmo__branch, .ha-needle, .ha-orb, .ha-orb::after, .ha-atmo__frame i { animation: none !important; }
	.ha-atmo__frame i { transform: none; }
	.ha-orb { opacity: calc(.28 * var(--ha-atmo, 1)); }
	.ha-divider__rule { transition: none; transform: none; }
	html.ha-falter body.hollow-atlas::before { animation: none; }
}
@media print { .ha-atmo, .ha-divider { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
	.ha-lb, .ha-lb .ha-lb__img, .ha-lb .ha-lb__btn { transition: none !important; }
	.ha-lb.ha-lb--fx::after { animation: none; }
	body.hollow-atlas::after { animation: none; }
	.hollow-atlas *, .hollow-atlas *::before, .hollow-atlas *::after { transition-duration: .01ms !important; }
	.hollow-atlas a:hover img.ha-torn,
	.hollow-atlas figure:hover > img.ha-torn,
	.hollow-atlas img.ha-torn:hover { animation: none; }
}

@media print {
	body.hollow-atlas::before, body.hollow-atlas::after { display: none; }
	img.ha-torn { -webkit-mask-image: none; mask-image: none; }
}


/* ---------- Reading comfort (1.4.0): paragraph spacing, page navigation, folding Sources ---------- */
/* Space between paragraphs everywhere text is read. --ha-para comes from Legends > Reading (default 1.6em). */
.hollow-atlas :is(.entry-content, .entry-summary, .lore-story, .lore-tale-ch, .lore-tale-head, .lore-section, .page-content, .archive-description, .taxonomy-description, .comment-content, .widget, .lore-pop) p:not(#ha-none) {
	margin-top: 0;
	margin-bottom: var(--ha-para, 1.6em);
}
.hollow-atlas :is(.entry-content, .entry-summary, .lore-story, .lore-tale-ch, .lore-tale-head, .lore-section, .page-content, .archive-description, .taxonomy-description, .comment-content, .widget, .lore-pop) p:not(#ha-none):last-child { margin-bottom: 0; }
/* (The id in :not() only lifts these rules above the parent theme's long .entry-content > * selector.) */
.hollow-atlas :is(.lore-story, .lore-tale-ch) :is(ul, ol, blockquote) { margin-bottom: var(--ha-para, 1.6em); }

/* Anchored jumps land below the admin bar with a little air. */
.hollow-atlas :is(h1, h2, h3, h4, [id]) { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem); }

/* Reading progress: a thin brass line along the top edge. */
.ha-progress {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	height: 2px;
	z-index: 9000;
	pointer-events: none;
	background: var(--ha-brass);
	opacity: .75;
	transform-origin: 0 50%;
	transform: scaleX(0);
}

/* Page navigation: lower right, appears after the first screen. */
.ha-pnav {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 9000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
	font-family: var(--ha-serif-text);
}
.ha-pnav.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.ha-pnav__bar {
	display: flex;
	background: rgba(18, 19, 17, .92);
	border: 1px solid var(--ha-line);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.ha-pnav__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ha-bone);
	font: inherit;
	font-size: .85rem;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease;
}
.ha-pnav__btn + .ha-pnav__btn { border-left: 1px solid var(--ha-line); }
.ha-pnav__btn:hover, .ha-pnav__btn[aria-expanded="true"] { background: var(--ha-soot); color: var(--ha-brass); }
.ha-pnav__btn:focus-visible { outline: 2px solid var(--ha-brass); outline-offset: -2px; }
.ha-pnav__btn[disabled] { opacity: .35; cursor: default; background: transparent; color: var(--ha-bone); }
.ha-pnav__btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ha-pnav__label { font-family: var(--ha-serif-sc); }
.ha-pnav__menu {
	width: min(320px, calc(100vw - 32px));
	max-height: min(60vh, 460px);
	overflow-y: auto;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: rgba(18, 19, 17, .97);
	border: 1px solid var(--ha-line);
	box-shadow: 0 10px 34px rgba(0, 0, 0, .65);
	scrollbar-color: #34322c var(--ha-ash);
}
.ha-pnav__menu[hidden] { display: none; }
.ha-pnav__menu li { margin: 0; }
.ha-pnav__menu a {
	display: block;
	padding: 8px 18px;
	color: var(--ha-dust);
	text-decoration: none;
	font-size: .95rem;
	line-height: 1.35;
	border-left: 2px solid transparent;
}
.ha-pnav__menu a.is-sub { padding-left: 32px; font-size: .88rem; }
.ha-pnav__menu a:hover, .ha-pnav__menu a:focus-visible { color: var(--ha-bone); background: var(--ha-soot); outline: none; }
.ha-pnav__menu a[aria-current="true"] { color: var(--ha-bone); border-left-color: var(--ha-brass); }
.ha-pnav__head { padding: 4px 18px 8px; font-family: var(--ha-serif-sc); color: var(--ha-brass); font-size: .85rem; letter-spacing: .08em; }
@media (max-width: 600px) {
	.ha-pnav__label { display: none; }
	.ha-pnav__btn { padding: 0 10px; }
}

/* Folding Sources: the heading stays a real heading; the button inside it opens the list. */
.hollow-atlas .ha-fold-btn {
	appearance: none;
	display: inline-flex;
	align-items: baseline;
	gap: .5em;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	text-transform: inherit;
	cursor: pointer;
}
.hollow-atlas .ha-fold-btn:hover { color: var(--ha-brass); background: none; }
.hollow-atlas .ha-fold-btn:focus-visible { outline: 2px solid var(--ha-brass); outline-offset: 4px; }
.hollow-atlas .ha-fold-count { font-family: var(--ha-serif-text); font-size: .5em; letter-spacing: .04em; color: var(--ha-dust); }
.hollow-atlas .ha-fold-chev {
	flex: none;
	align-self: center;
	width: .42em;
	height: .42em;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform .3s ease;
	opacity: .75;
}
.hollow-atlas .ha-fold-btn[aria-expanded="true"] .ha-fold-chev { transform: translateY(15%) rotate(-135deg); }
.hollow-atlas .ha-fold-body[hidden] { display: none; }
.hollow-atlas .ha-fold-body { padding-top: .25em; }
.hollow-atlas .ha-fold-body > :first-child { margin-top: 0; }


/* The parent theme paints every button bone with a dotted focus ring and long selectors; these two are ours. */
.hollow-atlas button.ha-fold-btn:not(#ha-none),
.hollow-atlas button.ha-fold-btn:not(#ha-none):is(:hover, :focus, :active) {
	background: none;
	border: 0;
	color: inherit;
	padding: 0;
	text-decoration: none;
	box-shadow: none;
}
.hollow-atlas button.ha-fold-btn:not(#ha-none):hover { color: var(--ha-brass); }
button.ha-pnav__btn:not(#ha-none),
button.ha-pnav__btn:not(#ha-none):is(:focus, :active) {
	background: transparent;
	color: var(--ha-bone);
	border: 0;
	padding: 0 12px;
	box-shadow: none;
	text-decoration: none;
}
.ha-pnav__btn + .ha-pnav__btn:not(#ha-none) { border-left: 1px solid var(--ha-line); }
button.ha-pnav__btn:not(#ha-none):hover, button.ha-pnav__btn:not(#ha-none)[aria-expanded="true"] { background: var(--ha-soot); color: var(--ha-brass); }
button.ha-pnav__btn:not(#ha-none)[disabled] { background: transparent; color: var(--ha-bone); opacity: .35; }
@media (max-width: 600px) { button.ha-pnav__btn:not(#ha-none) { padding: 0 10px; } }
:is(.ha-fold-btn, .ha-pnav__btn):focus:not(:focus-visible) { outline: none !important; }
.hollow-atlas button.ha-fold-btn:focus-visible { outline: 2px solid var(--ha-brass) !important; outline-offset: 4px; }
button.ha-pnav__btn:focus-visible { outline: 2px solid var(--ha-brass) !important; outline-offset: -2px; }


/* Long lists of related records: the box is inline CSS from Legends > Reading; this is its control. */
.hollow-atlas .ha-cards-more:not(#ha-none) { display: flex; align-items: baseline; justify-content: flex-end; gap: .6em; margin: .5rem 0 1.5rem; font-size: .85rem; color: var(--ha-dust); }
.hollow-atlas button.ha-cards-btn:not(#ha-none),
.hollow-atlas button.ha-cards-btn:not(#ha-none):is(:hover, :focus, :active) {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--ha-rust);
	border-radius: 0;
	padding: 0 0 1px;
	box-shadow: none;
	color: var(--ha-bone);
	font: inherit;
	font-family: var(--ha-serif-sc);
	letter-spacing: .05em;
	cursor: pointer;
	text-decoration: none;
}
.hollow-atlas button.ha-cards-btn:not(#ha-none):hover { color: var(--ha-brass); border-bottom-color: var(--ha-brass); }
.hollow-atlas button.ha-cards-btn:focus:not(:focus-visible) { outline: none !important; }
.hollow-atlas button.ha-cards-btn:focus-visible { outline: 2px solid var(--ha-brass) !important; outline-offset: 3px; }
.hollow-atlas ul.lore-cards.ha-cards-open + .ha-cards-more .ha-cards-hint { display: none; }
.hollow-atlas ul.lore-cards[tabindex]:focus-visible { outline: 2px solid var(--ha-brass); outline-offset: 2px; }
@media print { .ha-cards-more { display: none !important; } .hollow-atlas ul.lore-cards { max-height: none !important; overflow: visible !important; } }

@media (prefers-reduced-motion: reduce) {
	.ha-pnav, .ha-pnav.is-shown { transition: none; transform: none; }
	.hollow-atlas .ha-fold-chev { transition: none; }
}
@media print {
	.ha-pnav, .ha-progress { display: none !important; }
	.hollow-atlas .ha-fold-body[hidden] { display: block !important; }
	.hollow-atlas .ha-fold-chev, .hollow-atlas .ha-fold-count { display: none; }
}


/* ==========================================================================
   1.6.0 Legends and Beings: search, filter and sort (inc/browse.php)
   ========================================================================== */
.hollow-atlas .ha-browse {
	display: grid;
	grid-template-columns: minmax(14rem, 2fr) repeat(4, minmax(9rem, 1fr)) minmax(9rem, 1fr) auto;
	align-items: end;
	gap: .9rem 1rem;
	margin: 1.6rem 0 0;
	padding: 1.1rem 1.2rem 1rem;
	border: 1px solid var(--ha-line);
	background: var(--ha-ash);
}
.hollow-atlas .ha-browse__field { display: flex; flex-direction: column; gap: .35rem; margin: 0; min-width: 0; }
.hollow-atlas .ha-browse__field > span {
	font-family: var(--ha-serif-sc);
	letter-spacing: .12em;
	color: var(--ha-dust);
	font-size: .9rem;
	line-height: 1.2;
}
.hollow-atlas .ha-browse input[type="search"],
.hollow-atlas .ha-browse select {
	width: 100%;
	min-height: 2.6rem;
	padding: .45rem .6rem;
	font-size: 1rem;
	background-color: var(--ha-void, #0b0c0a);
}
.hollow-atlas .ha-browse__field.is-off select { opacity: .55; cursor: not-allowed; }
.hollow-atlas .ha-browse__go { display: flex; align-items: end; }
.hollow-atlas .ha-browse button.ha-browse__btn:not(#ha-none) { min-height: 2.6rem; padding: .45rem 1.3rem; white-space: nowrap; }
.hollow-atlas .ha-browse__count {
	grid-column: 1 / -1;
	margin: .1rem 0 0;
	color: var(--ha-dust);
	font-family: var(--ha-serif-sc);
	letter-spacing: .1em;
	font-size: .9rem;
}
.hollow-atlas .ha-browse__clear { margin-left: .9rem; color: var(--ha-bone); text-decoration-color: var(--ha-rust); }
.hollow-atlas .ha-browse.is-loading { opacity: .7; transition: opacity var(--ha-slow); }
.hollow-atlas .ha-browse-none { margin-top: 2.4rem; color: var(--ha-dust); }
.hollow-atlas .page-header .ha-browse + * { margin-top: 1rem; }
@media (max-width: 1100px) {
	.hollow-atlas .ha-browse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hollow-atlas .ha-browse__q { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.hollow-atlas .ha-browse { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .9rem; }
	.hollow-atlas .ha-browse__go { grid-column: 1 / -1; }
	.hollow-atlas .ha-browse button.ha-browse__btn:not(#ha-none) { width: 100%; }
}

/* ==========================================================================
   Record cards (1.7.0). One compact card for a legend or a being wherever
   records are listed: a small torn greyscale plate, the title in small
   capitals, one muted line and a two-line teaser. inc/cards.php draws it.
   ========================================================================== */
body.ha-card-list .site-main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem 1.4rem;
	align-items: start;
	max-width: var(--responsive--alignwide-width);
	margin-inline: auto;
}
body.ha-card-list .site-main > :not(.ha-card) { grid-column: 1 / -1; }
body.ha-card-list .site-main > .page-header { width: 100%; max-width: none; }

.hollow-atlas article.ha-card:not(#ha-none) {
	position: relative;
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 1.05rem;
	align-items: start;
	margin: 0;
	padding: .95rem 1.05rem .95rem .95rem;
	max-width: none;
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(155, 148, 133, .05), transparent 60%),
		var(--ha-ash);
	border: 1px solid var(--ha-line);
	border-radius: 0;
	box-shadow: inset 0 0 2.4rem rgba(0, 0, 0, .55);
	transition: background-color var(--ha-slow), border-color var(--ha-slow);
}
.hollow-atlas article.ha-card:not(#ha-none):hover,
.hollow-atlas article.ha-card:not(#ha-none):focus-within {
	background-color: var(--ha-soot);
	border-color: #4a463e;
}
.hollow-atlas .ha-card__media {
	display: block;
	width: 7.5rem;
	aspect-ratio: 1 / 1;
	text-decoration: none;
	position: relative;
	z-index: 2;
}
.hollow-atlas .ha-card__media img.ha-card__img:not(#ha-none) {
	/* The parent theme writes width and height as inline styles; the plate is square. */
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	max-width: none;
}
.hollow-atlas .ha-card__media--blank {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 50% 45%, rgba(155, 148, 133, .08), transparent 62%),
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 7px),
		var(--ha-void);
	border: 1px solid var(--ha-line);
	box-shadow: inset 0 0 1.4rem rgba(0, 0, 0, .8);
}
.hollow-atlas .ha-card__sigil {
	font-family: var(--ha-serif-sc);
	font-size: 2rem;
	line-height: 1;
	color: #4a463e;
	transition: color var(--ha-slow);
}
.hollow-atlas .ha-card:hover .ha-card__sigil { color: var(--ha-dust); }
.hollow-atlas .ha-card:hover img.ha-torn {
	filter: grayscale(1) sepia(.1) contrast(1.22) brightness(.97);
	animation: ha-flicker 1.9s linear 1;
}
.hollow-atlas.ha-no-hover .ha-card:hover img.ha-torn {
	filter: grayscale(1) sepia(.08) contrast(1.14) brightness(.8);
	animation: none;
}
.hollow-atlas .ha-card__body { min-width: 0; }
.hollow-atlas .ha-card__title:not(#ha-none) {
	margin: .1rem 0 .35rem;
	font-family: var(--ha-serif-sc);
	font-size: clamp(1.12rem, 1rem + .35vw, 1.38rem);
	font-weight: 400;
	line-height: 1.22;
	letter-spacing: .04em;
}
.hollow-atlas .ha-card__title a {
	color: var(--ha-bone);
	text-decoration: none;
}
/* The whole card opens the record; the title link stretches over it. */
.hollow-atlas .ha-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.hollow-atlas .ha-card__title a:hover,
.hollow-atlas .ha-card:hover .ha-card__title a { color: var(--ha-dust); }
.hollow-atlas .ha-card__title a:focus-visible { outline: none; }
.hollow-atlas .ha-card:has(.ha-card__title a:focus-visible) { outline: 1px solid var(--ha-dust); outline-offset: 2px; }
.hollow-atlas .ha-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .2rem .45rem;
	margin: 0 0 .45rem;
	font-family: var(--ha-serif-sc);
	font-size: .8rem;
	letter-spacing: .08em;
	color: var(--ha-dust);
}
.hollow-atlas .ha-card__meta .lore-chip { margin: 0; font-size: .72rem; }
.hollow-atlas .ha-card__sep { color: #4a463e; }
.hollow-atlas .ha-card__status { font-style: italic; text-transform: lowercase; }
.hollow-atlas .ha-card__teaser {
	margin: 0;
	font-family: var(--ha-serif-text);
	font-size: .95rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--ha-bone) 72%, var(--ha-dust));
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

/* Related records and "More from" (lore-atlas markup, six or fewer): the same card. */
.hollow-atlas .entry-content .lore-section > ul.lore-cards:not(:has(> li:nth-child(7))) {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: .8rem 1rem;
}
.hollow-atlas .entry-content .lore-section > ul.lore-cards:not(:has(> li:nth-child(7))) > li > a {
	display: grid;
	grid-template-columns: 4.75rem minmax(0, 1fr);
	grid-auto-rows: min-content;
	column-gap: .9rem;
	row-gap: .25rem;
	align-content: start;
	padding: .75rem .85rem .75rem .75rem;
	box-shadow: inset 0 0 1.8rem rgba(0, 0, 0, .5);
}
.hollow-atlas .entry-content .lore-section > ul.lore-cards:not(:has(> li:nth-child(7))) > li > a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.hollow-atlas .entry-content .lore-section > ul.lore-cards:not(:has(> li:nth-child(7))) > li > a > img {
	grid-column: 1;
	grid-row: 1 / span 3;
	width: 4.75rem !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	max-width: none;
}
.hollow-atlas .entry-content .lore-section > ul.lore-cards:not(:has(> li:nth-child(7))) > li > a > :not(img) { grid-column: -2; margin: 0; }
.hollow-atlas .entry-content .lore-section > ul.lore-cards:not(:has(> li:nth-child(7))) > li > a > .lore-chip { justify-self: start; font-size: .72rem; }
.hollow-atlas .entry-content .lore-section > ul.lore-cards:not(:has(> li:nth-child(7))) > li > a > strong {
	font-family: var(--ha-serif-sc);
	font-weight: 400;
	font-size: 1.05rem;
	line-height: 1.25;
	letter-spacing: .04em;
	color: var(--ha-bone);
}
.hollow-atlas .entry-content .lore-section > ul.lore-cards:not(:has(> li:nth-child(7))) > li > a > span:not(.lore-chip) {
	font-family: var(--ha-serif-sc);
	font-size: .78rem;
	letter-spacing: .08em;
	color: var(--ha-dust);
}
.hollow-atlas .lore-cards a:hover img.ha-torn {
	filter: grayscale(1) sepia(.1) contrast(1.22) brightness(.97);
}

@media (max-width: 782px) {
	body.ha-card-list .site-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.hollow-atlas article.ha-card:not(#ha-none) { grid-template-columns: 5.25rem minmax(0, 1fr); gap: .85rem; padding: .8rem; }
	.hollow-atlas .ha-card__media { width: 5.25rem; }
	.hollow-atlas .ha-card__sigil { font-size: 1.6rem; }
}
