/*
 * HNM Core — "night walk" styles.
 * Blue-black night, fog-grey text, lantern-amber accent.
 * Titles: IM Fell English (17th-century printing). Text: Public Sans.
 * Colors can be overridden from Astra: set the --hnm-* variables in Customizer > Additional CSS.
 */

@font-face { font-family: "IM Fell English"; src: url("fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--hnm-night: #12171d;     /* page */
	--hnm-slate: #1a2129;     /* panels */
	--hnm-rule: #2d3640;      /* lines */
	--hnm-fog: #d7dbde;       /* text */
	--hnm-ash: #949ca4;       /* quiet text */
	--hnm-lantern: #e3a843;   /* accent: links, buttons, focus */
	--hnm-lantern-ink: #1a1408; /* text on lantern */
	--hnm-display: "IM Fell English", "Iowan Old Style", Georgia, serif;
	--hnm-text: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Shared ---------- */

.hnm-listing, .hnm-explore {
	color: var(--hnm-fog);
	font-family: var(--hnm-text);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-wrap: anywhere;
}
.hnm-listing a, .hnm-explore a { color: var(--hnm-lantern); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.hnm-listing a:hover, .hnm-explore a:hover { text-decoration-thickness: 2px; }
.hnm-listing :focus-visible, .hnm-explore :focus-visible { outline: 2px solid var(--hnm-lantern); outline-offset: 3px; border-radius: 2px; }

.hnm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 2.75rem; padding: .55rem 1.1rem; border: 1px solid var(--hnm-rule); border-radius: 3px;
	background: transparent; color: var(--hnm-fog) !important; font: 700 .95rem/1.2 var(--hnm-text); text-decoration: none !important; cursor: pointer;
}
.hnm-btn:hover { border-color: var(--hnm-lantern); }
.hnm-btn.hnm-btn--primary { background: var(--hnm-lantern) !important; border-color: var(--hnm-lantern) !important; color: var(--hnm-lantern-ink) !important; }
.hnm-btn.hnm-btn--primary:hover { background: #f0bb5c !important; }

/* ---------- Listing page ---------- */

/* The theme's title, set in the period face. */
body[class*="single-hnm_"] .entry-title {
	font-family: var(--hnm-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 1.4rem + 4vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -.01em;
	color: var(--hnm-fog);
	text-wrap: balance;
	margin-bottom: .2em;
}

.hnm-listing {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1180px);
	margin-inline: auto;
}

.hnm-intro { margin: 0 0 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--hnm-rule); }
.hnm-kicker { margin: 0; font-size: 1.15rem; color: var(--hnm-ash); }
.hnm-kicker a { font-weight: 700; }
.hnm-intro > * + * { margin-top: 1rem; }

.hnm-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
@media (max-width: 880px) {
	.hnm-body { grid-template-columns: minmax(0, 1fr); }
}

.hnm-main { max-width: 40rem; }
.hnm-main > :first-child { margin-top: 0; }
.hnm-description p, .hnm-section p { margin: 0 0 1em; }
.hnm-lead { font-family: var(--hnm-display); font-size: 1.5rem; line-height: 1.35; color: var(--hnm-fog); margin: 0 0 1.25rem; }

.hnm-section { margin-top: 2.5rem; }
.hnm-section h2 {
	font-family: var(--hnm-display); font-weight: 400; font-size: 1.75rem; line-height: 1.15;
	color: var(--hnm-fog); margin: 0 0 .6rem;
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem;
}

/* How reliable each Story section is. */
.hnm-cls {
	font-family: var(--hnm-text); font-size: .8rem; font-weight: 700; line-height: 1.4;
	padding: .1rem .55rem; border-radius: 999px; border: 1px solid currentColor;
}
.hnm-cls--documented { color: #8fc49a; }
.hnm-cls--reported, .hnm-cls--alleged { color: var(--hnm-lantern); }
.hnm-cls--disputed { color: #e28a7f; }
.hnm-cls--folklore { color: #b6a6e6; }

/* Notices */
.hnm-notice, .hnm-draft-note {
	margin: 0; padding: .7rem 1rem; border-left: 3px solid var(--hnm-lantern);
	background: var(--hnm-slate); color: var(--hnm-fog);
}
.hnm-notice--past, .hnm-notice--postponed { border-left-color: var(--hnm-ash); }
.hnm-notice--cancelled, .hnm-notice--warn { border-left-color: #e28a7f; }
.hnm-notice--now { border-left-color: #8fc49a; }
.hnm-draft-note { border-left-color: #b6a6e6; font-size: .95rem; }

/* Plan your visit / Details panel */
.hnm-facts {
	background: var(--hnm-slate);
	border-top: 3px solid var(--hnm-lantern);
	padding: 1.25rem 1.25rem 1.5rem;
	position: sticky; top: 1.5rem;
}
@media (max-width: 880px) { .hnm-facts { position: static; } }
.hnm-facts > * + * { margin-top: 1.25rem; }
.hnm-facts__title { font-family: var(--hnm-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--hnm-fog); margin: 0; }

.hnm-logo { display: flex; justify-content: center; align-items: center; padding: .9rem; background: #f3f1ec; border-radius: 2px; }
.hnm-logo img { max-height: 84px; width: auto; height: auto; object-fit: contain; }
.hnm-photo { margin-left: -1.25rem !important; margin-right: -1.25rem; margin-bottom: 0; }
.hnm-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hnm-photo figcaption { padding: .35rem 1.25rem 0; font-size: .8rem; color: var(--hnm-ash); }

.hnm-factlist, .hnm-factlist dt, .hnm-factlist dd { margin: 0 !important; padding-left: 0 !important; }
.hnm-factlist { margin: 0; }
.hnm-factlist > div { padding: .7rem 0; border-top: 1px solid var(--hnm-rule); }
.hnm-factlist > div:first-child { border-top: 0; padding-top: 0; }
.hnm-factlist dt { font-size: .85rem; color: var(--hnm-ash); margin: 0 0 .1rem; }
.hnm-factlist dd { margin: 0; font-size: 1rem; line-height: 1.5; }

.hnm-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.hnm-actions .hnm-btn { flex: 1 1 calc(50% - .5rem); }
.hnm-actions .hnm-btn--primary { flex-basis: 100%; }

.hnm-video { display: block; text-decoration: none !important; color: var(--hnm-fog) !important; background: var(--hnm-night); }
.hnm-video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.hnm-video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.hnm-video:hover .hnm-video__thumb img { opacity: 1; }
.hnm-video__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: var(--hnm-lantern); }
.hnm-video__play::after { content: ""; position: absolute; left: 21px; top: 17px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--hnm-lantern-ink); }
.hnm-video__label { display: block; padding: .6rem .8rem; font-weight: 700; font-size: .95rem; }
.hnm-video__label small { display: block; font-weight: 400; color: var(--hnm-ash); }

.hnm-stops { padding-left: 1.4rem; }
.hnm-stops li { padding: .2rem 0; }
.hnm-editions { list-style: none; padding: 0; margin: 0; }
.hnm-editions li { padding: .55rem 0; border-top: 1px solid var(--hnm-rule); }
.hnm-muted { color: var(--hnm-ash); font-size: .95rem; }
.hnm-sources ul { margin: 0 0 .75rem 1.1rem; padding: 0; }
.hnm-sources h2 { font-size: 1.35rem; }

/* ---------- Explore (home page, /explore/ and archives) ---------- */

.hnm-explore-page { max-width: 1180px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) 1rem 4rem; }
.hnm-explore { width: 100%; max-width: 1180px; margin-inline: auto; }

.hnm-hero { margin: 0 0 2rem; }
.hnm-hero__title, .hnm-explore__title {
	font-family: var(--hnm-display); font-weight: 400; color: var(--hnm-fog);
	letter-spacing: -.015em; margin: 0; text-wrap: balance;
}
.hnm-hero__title { font-size: clamp(3rem, 1.2rem + 7.5vw, 7.25rem); line-height: .95; max-width: 11ch; }
.hnm-explore__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); line-height: 1; margin-bottom: 1.5rem; }
.hnm-hero__text { font-size: 1.2rem; color: var(--hnm-ash); max-width: 36rem; margin: 1.25rem 0 0; }

.hnm-search { margin: 0 0 1.75rem; }
.hnm-search__fields { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
@media (max-width: 720px) { .hnm-search__fields { grid-template-columns: minmax(0, 1fr); } }
.hnm-field { display: grid; gap: .3rem; margin: 0; }
.hnm-field span { font-size: .9rem; color: var(--hnm-ash); }
.hnm-field input {
	box-sizing: border-box; width: 100%; height: 2.9rem !important; min-height: 2.9rem; padding: .55rem .8rem !important; margin: 0;
	background: var(--hnm-slate) !important; color: var(--hnm-fog) !important;
	border: 1px solid var(--hnm-rule) !important; border-radius: 3px; font: 400 1rem/1.3 var(--hnm-text); box-shadow: none !important;
}
.hnm-field input::placeholder { color: #6f7780; }
.hnm-field input:focus { border-color: var(--hnm-lantern) !important; outline: none; }
.hnm-search .hnm-btn { min-height: 2.9rem; padding-inline: 1.6rem; }

/* Type tabs: a plain text row; the chosen one is underlined in lantern. */
.hnm-tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; border-bottom: 1px solid var(--hnm-rule); margin: 0 0 1rem; }
.hnm-tabs a { padding: .6rem 0; color: var(--hnm-ash) !important; text-decoration: none !important; font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hnm-tabs a:hover { color: var(--hnm-fog) !important; }
.hnm-tabs a[aria-current="page"] { color: var(--hnm-fog) !important; border-bottom-color: var(--hnm-lantern); }

.hnm-subfilters { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: 0 0 1.25rem; }
.hnm-chips, .hnm-when { display: flex; flex-wrap: wrap; gap: .4rem; }
.hnm-chips a, .hnm-when a {
	padding: .3rem .8rem; border: 1px solid var(--hnm-rule); border-radius: 999px;
	color: var(--hnm-fog) !important; text-decoration: none !important; font-size: .92rem;
}
.hnm-chips a:hover, .hnm-when a:hover { border-color: var(--hnm-ash); }
.hnm-chips a[aria-current="page"], .hnm-when a[aria-current="page"] { background: var(--hnm-fog); border-color: var(--hnm-fog); color: var(--hnm-night) !important; }

.hnm-resultbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin: 0 0 .5rem; }
.hnm-count { margin: 0; color: var(--hnm-ash); }
.hnm-draftswitch { font-size: .92rem; }

/* Results: a two-column index, ruled like a guidebook gazetteer. */
.hnm-results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 760px) { .hnm-results { grid-template-columns: minmax(0, 1fr); } }
.hnm-result { display: flex; gap: 1rem; padding: 1.25rem 0 1.4rem; border-top: 1px solid var(--hnm-rule); margin: 0; }
.hnm-result__text { flex: 1 1 auto; min-width: 0; }
.hnm-result__kicker { margin: 0 0 .2rem; font-size: .92rem; color: var(--hnm-ash); }
.hnm-result__title { font-family: var(--hnm-display); font-weight: 400; font-size: 1.65rem; line-height: 1.12; margin: 0 0 .45rem; }
.hnm-result__title a { color: var(--hnm-fog) !important; text-decoration: none !important; }
.hnm-result__title a:hover { color: var(--hnm-lantern) !important; }
.hnm-result__excerpt {
	margin: 0; font-size: .98rem; line-height: 1.55; color: #b9c0c6;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hnm-result__thumb { flex: 0 0 96px; }
.hnm-result__thumb img { width: 96px; height: 96px; object-fit: cover; display: block; border-radius: 2px; }
.hnm-tag { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border: 1px solid #b6a6e6; color: #b6a6e6; border-radius: 999px; font-size: .78rem; }

.hnm-empty { padding: 2.5rem 0; border-top: 1px solid var(--hnm-rule); font-size: 1.1rem; }
.hnm-pages { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: 2rem 0 0; border-top: 1px solid var(--hnm-rule); margin-top: .5rem; color: var(--hnm-ash); }
.hnm-pages a { font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
	.hnm-btn, .hnm-tabs a, .hnm-chips a, .hnm-video__thumb img { transition: background-color .15s, border-color .15s, color .15s, opacity .15s; }
}

/* ---------- Editable pages (blocks) ---------- */

/* "Period serif" heading style, usable on any Heading block. */
.is-style-hnm-fell {
	font-family: var(--hnm-display) !important;
	font-weight: 400 !important;
	letter-spacing: -.01em;
	line-height: 1.05;
	text-wrap: balance;
}
h1.is-style-hnm-fell.hnm-display, .hnm-display.is-style-hnm-fell {
	font-size: clamp(3rem, 1.2rem + 7.5vw, 7.25rem) !important;
	line-height: .95;
	margin-bottom: 0;
}
h2.is-style-hnm-fell { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: .25rem; }

/* "Intro text" paragraph style. */
.is-style-hnm-lead { font-size: 1.2rem !important; line-height: 1.6; color: var(--hnm-ash); max-width: 36rem; }

.hnm-home-hero { padding-bottom: 1rem; }
.hnm-home-hero .hnm-search { margin-top: 2rem; }
.hnm-home-section { margin-top: clamp(3rem, 6vw, 5rem); }
.hnm-section-intro { color: var(--hnm-ash); margin-top: 0; margin-bottom: 1rem; max-width: 40rem; }

.hnm-block.hnm-explore { max-width: none; }
.hnm-results--one { grid-template-columns: minmax(0, 1fr); }
.hnm-more { margin: .75rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hnm-rule); font-weight: 700; }

/* Browse by type: names in the period face, with a quiet count underneath. */
.hnm-browse ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--hnm-rule); border-left: 1px solid var(--hnm-rule); }
.hnm-browse li { margin: 0; border-right: 1px solid var(--hnm-rule); border-bottom: 1px solid var(--hnm-rule); }
.hnm-browse a { display: block; padding: .9rem 1rem 1rem; text-decoration: none !important; color: var(--hnm-fog) !important; height: 100%; box-sizing: border-box; }
.hnm-browse a:hover { background: var(--hnm-slate); }
.hnm-browse a:hover .hnm-browse__name { color: var(--hnm-lantern); }
.hnm-browse__name { display: block; font-family: var(--hnm-display); font-size: 1.6rem; line-height: 1.1; }
.hnm-browse__count { display: block; font-family: var(--hnm-text); font-size: .88rem; color: var(--hnm-ash); margin-top: .2rem; }
.hnm-browse a:focus-visible { outline: 2px solid var(--hnm-lantern); outline-offset: -2px; }

/* ---------- Location pages (topic × state / city) ---------- */

.hnm-crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .92rem; color: var(--hnm-ash); }
.hnm-crumbs li { margin: 0; }
.hnm-crumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--hnm-ash); }
.hnm-crumbs a { color: var(--hnm-ash) !important; }
.hnm-crumbs a:hover { color: var(--hnm-lantern) !important; }
.hnm-crumbs [aria-current] { color: var(--hnm-fog); }

.hnm-loc .hnm-explore__title { margin-bottom: 1rem; }
.hnm-loc__intro { max-width: 42rem; font-size: 1.15rem; color: #b9c0c6; margin: 0 0 2rem; }
.hnm-loc__intro p { margin: 0 0 .9em; }

.hnm-loc__h2 { font-family: var(--hnm-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--hnm-fog); margin: 0 0 .75rem; }
.hnm-loc__areas { margin: 0 0 2rem; }
.hnm-loc__related, .hnm-loc__faq { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hnm-rule); }

/* Area and topic links: a ruled gazetteer, name with a quiet count. */
.hnm-arealinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 1.5rem; }
.hnm-arealinks li { margin: 0; border-bottom: 1px solid var(--hnm-rule); }
.hnm-arealinks a { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .55rem 0; color: var(--hnm-fog) !important; text-decoration: none !important; }
.hnm-arealinks a:hover { color: var(--hnm-lantern) !important; }
.hnm-arealinks span { color: var(--hnm-ash); font-size: .9rem; font-variant-numeric: tabular-nums; }

.hnm-loc__faq h3 { font-family: var(--hnm-text); font-weight: 700; font-size: 1.05rem; color: var(--hnm-fog); margin: 1.25rem 0 .35rem; }
.hnm-loc__faq p { margin: 0 0 .75rem; max-width: 42rem; }

.hnm-loc__editor { margin-top: 3rem; padding: .7rem 1rem; border-left: 3px solid #b6a6e6; background: var(--hnm-slate); font-size: .92rem; color: var(--hnm-ash); }

/* Links from a listing's facts panel to its location pages. */
.hnm-nearby-links ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hnm-rule); }
.hnm-nearby-links li { margin: 0; border-bottom: 1px solid var(--hnm-rule); }
.hnm-nearby-links a { display: block; padding: .6rem 0; font-weight: 700; text-decoration: none !important; }
.hnm-nearby-links a::after { content: " →"; }

/* ---------- Near me ---------- */

.hnm-near__controls { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end; margin: 0 0 1.25rem; }
.hnm-near__form { flex: 1 1 320px; }
.hnm-near__controls .hnm-search { margin: 0; }
.hnm-near__locate { min-height: 2.9rem; padding-inline: 1.4rem; }
.hnm-near__locate[hidden] { display: none; }
.hnm-near__locate:not([hidden]) ~ .hnm-near__form { border-left: 1px solid var(--hnm-rule); padding-left: 1.5rem; }
.hnm-near__fields { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 720px) {
	.hnm-near__locate { flex: 1 1 100%; }
	.hnm-near__locate:not([hidden]) ~ .hnm-near__form { border-left: 0; padding-left: 0; }
	.hnm-near__fields { grid-template-columns: minmax(0, 1fr) auto; }
}
.hnm-near__types { margin: 0 0 1.25rem; }
.hnm-near__status:empty { display: none; }
.hnm-near[aria-busy] .hnm-near__results { opacity: .5; }
.hnm-distance { display: inline-block; margin-right: .35rem; padding: 0 .5rem; border-radius: 999px; background: var(--hnm-lantern); color: var(--hnm-lantern-ink); font-weight: 700; font-size: .8rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.hnm-near__note, .hnm-near__privacy { margin: 1.5rem 0 0; font-size: .92rem; color: var(--hnm-ash); }
.hnm-near__note { padding-top: 1.25rem; border-top: 1px solid var(--hnm-rule); }

/* Astra mobile header on the night background (0.5.4): a visible menu button and a dark dropdown. */
#ast-mobile-header .menu-toggle,
#ast-mobile-header .menu-toggle .ast-mobile-svg,
.ast-header-break-point .main-header-menu-toggle { color: #E3A843 !important; fill: #E3A843 !important; background: transparent !important; border-color: #E3A843 !important; }
#ast-mobile-header .ast-mobile-header-content,
#ast-mobile-header .ast-mobile-header-content .main-header-menu,
#ast-mobile-header .ast-mobile-header-content .sub-menu,
#ast-mobile-popup .ast-mobile-popup-inner,
#ast-mobile-popup .main-header-menu,
#ast-mobile-popup .sub-menu { background: #0E1216 !important; }
#ast-mobile-header .ast-mobile-header-content .menu-link,
#ast-mobile-popup .menu-link { color: #D7DBDE !important; border-color: #232B33 !important; }
#ast-mobile-header .ast-mobile-header-content .menu-link:hover,
#ast-mobile-header .ast-mobile-header-content .current-menu-item > .menu-link,
#ast-mobile-popup .menu-link:hover,
#ast-mobile-popup .current-menu-item > .menu-link { color: #E3A843 !important; }
#ast-mobile-header .ast-menu-toggle,
#ast-mobile-popup .ast-menu-toggle { color: #D7DBDE !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
