/* Monster City frontend CSS — only what theme.json cannot express. */

/* Dark mode: overrides the same CSS custom properties theme.json already
   generates on :root, so every block/component that reads
   var(--wp--preset--color--*) picks up the dark palette automatically —
   no per-component dark-mode rules needed. Every value below was checked
   against WCAG AA (4.5:1 text / 3:1 non-text) before use — see
   05-design-system.md §1. Responds to the system-level
   prefers-color-scheme; [data-theme="dark"] is also supported for a
   future manual toggle. Light values are NOT redeclared here —
   theme.json is the single source of truth for those; this file only
   ever overrides. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wp--preset--color--background: #12160F;
		--wp--preset--color--surface: #1B2117;
		--wp--preset--color--text: #EEF3EA;
		--wp--preset--color--muted: #AAB3A4;
		--wp--preset--color--border: #AAB3A4;
		--wp--preset--color--accent: #4ADE80;
		--wp--preset--color--accent-secondary: #F6C453;
	}
}
:root[data-theme="dark"] {
	--wp--preset--color--background: #12160F;
	--wp--preset--color--surface: #1B2117;
	--wp--preset--color--text: #EEF3EA;
	--wp--preset--color--muted: #AAB3A4;
	--wp--preset--color--border: #AAB3A4;
	--wp--preset--color--accent: #4ADE80;
	--wp--preset--color--accent-secondary: #F6C453;
}

/* Visible focus ring everywhere (reference 02 §19 accessibility). */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
	padding: 12px 16px;
	z-index: 100;
}
.skip-link:focus {
	left: 16px;
	top: 16px;
}

/* Breadcrumbs (two-level: Home / Article — no hub level, see functions.php). */
.monstercity-breadcrumbs {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-bottom: var(--wp--preset--spacing--20);
}
.monstercity-breadcrumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: underline;
}
.monstercity-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--text);
}

/* Last-updated freshness line. */
.monstercity-last-updated {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: -8px;
	margin-bottom: var(--wp--preset--spacing--10);
}

/* "Checked for accuracy" line — this site's authorship treatment in place
   of a named byline (05-design-system.md §3). */
.monstercity-checked-line {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-bottom: var(--wp--preset--spacing--30);
}
.monstercity-checked-line a {
	color: var(--wp--preset--color--accent);
}

/* Article images: understated hairline border, no card/glass treatment —
   the most restrained image presentation in the network so far
   (05-design-system.md §3). */
.entry-content figure.wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--border);
}
.entry-content figcaption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: 8px;
}
.entry-content figure.wp-block-image {
	margin: var(--wp--preset--spacing--40) 0;
}

.wp-block-post-featured-image img {
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--border);
}

/* Comparison table: hairline borders, warm-toned header row. */
.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin: var(--wp--preset--spacing--30) 0;
	border: 1px solid var(--wp--preset--color--border);
}
.entry-content th,
.entry-content td {
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
	text-align: left;
	vertical-align: top;
}
.entry-content thead th {
	background: rgba(20, 108, 67, 0.06);
	font-family: var(--wp--preset--font-family--heading);
}

/* Risk/limitation callout — left-border accent in the secondary (amber)
   color, not a filled alarm-colored box (05-design-system.md §3). */
.monstercity-callout {
	background: var(--wp--preset--color--surface);
	border-left: 3px solid var(--wp--preset--color--accent-secondary);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-radius: 4px;
}

/* Glossary: real definition-list styling — the site's substitute for the
   card-grid hub pattern used everywhere else in the network
   (05-design-system.md §3). */
.entry-content dl {
	margin: var(--wp--preset--spacing--30) 0;
}
.entry-content dt {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--text);
}
.entry-content dd {
	margin: var(--wp--preset--spacing--10) 0 0 0;
	padding-left: var(--wp--preset--spacing--20);
	border-left: 2px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
}

/* Underline-first links inside body copy — a "field notes" reading feel
   distinct from every sibling site's link treatment (05-design-system.md §3).
   theme.json's element.link style already sets the base underline; this
   just tunes weight/offset for the serif+sans pairing here. */
.entry-content a {
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* Mobile navigation is the core Navigation block's own overlay menu
   (overlayMenu:"mobile" in parts/header.html) — no custom toggle CSS/JS
   needed. Only re-skin its colors to match the palette. */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--background);
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
