/*
Theme Name: Über RPG: Steampunk
Theme URI: https://steampunkrpg.com
Author: The Duumvirati
Author URI: https://duum.io
Description: Bespoke theme for steampunkrpg.com, Über RPG: Steampunk. Brass on dark over rusted metal, the chrome title lockup and the three-character banner, set in Fraunces. Rebuilt 2026 from the 2011 SEG template, then refreshed so it no longer looks its age.
Version: 2.2.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steampunkrpg
Tags: brown, dark, two-columns, right-sidebar, responsive, custom-menu
*/

/* ==========================================================================
   Fonts
   Fraunces (SIL Open Font License), self-hosted, latin subset, one variable
   file covering weights 500 to 700 and optical size. Georgia stands in until
   it loads, so nothing shifts much on swap.
   ========================================================================== */

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("fonts/fraunces-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens
   The palette is the 2011 site's (brass #e7b062 on near-black, rusted metal),
   warmed slightly so the dark ground sits with the rust instead of against it.
   ========================================================================== */

:root {
	--ground:        #16120f;
	--ground-deep:   #0f0c0a;
	--surface:       rgba(255, 240, 220, .04);
	--surface-hover: rgba(255, 240, 220, .07);
	--edge:          #8a6b3d;
	--edge-soft:     rgba(231, 176, 98, .28);
	--hairline:      rgba(240, 225, 200, .12);
	--brass:         #e7b062;
	--brass-bright:  #f5d3a0;
	--brass-deep:    #cf9a51;
	--ink:           #f1ebe1;
	--ink-soft:      #d8cec0;
	--muted:         #a99f92;

	--font-display:  "Fraunces", Georgia, "Times New Roman", serif;
	--font-body:     system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono:     ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Covenant Theme rule 1: tight vertical rhythm, mobile first. */
	--pad-section:   clamp(24px, 4vw, 40px);
	--gap:           clamp(12px, 2vw, 20px);
	--gap-tight:     10px;
	--measure:       68ch;
	--wrap:          1120px;
	--gutter:        clamp(16px, 4vw, 32px);
	--bar-h:         56px;
	--radius:        10px;
	--radius-sm:     6px;
}

@media (min-width: 768px) {
	:root { --bar-h: 60px; }
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--bar-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul, address {
	margin: 0;
	padding: 0;
}

ol, ul { list-style: none; }

img, picture, svg, video, canvas, iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

table { border-collapse: collapse; border-spacing: 0; }

/* ==========================================================================
   Ground
   ========================================================================== */

body {
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--ground);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ink);
	text-wrap: balance;                 /* Covenant Theme rule 2 */
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.95rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }

p, li, dd, blockquote { text-wrap: pretty; }

a {
	color: var(--brass);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color .15s ease;
}

a:hover,
a:focus-visible { color: var(--brass-bright); }

:focus-visible {
	outline: 2px solid var(--brass-bright);
	outline-offset: 3px;
	border-radius: 2px;
}

strong, b { font-weight: 700; }
em, i, cite { font-style: italic; }

hr {
	height: 1px;
	border: 0;
	margin: var(--pad-section) 0;
	background: linear-gradient(90deg, transparent, var(--edge-soft) 20%, var(--edge-soft) 80%, transparent);
}

blockquote {
	border-left: 2px solid var(--brass);
	padding: 2px 0 2px var(--gap);
	color: var(--ink-soft);
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 500;
}

code, kbd, pre, samp { font-family: var(--font-mono); font-size: .9em; }

pre {
	background: rgba(0, 0, 0, .35);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-sm);
	padding: var(--gap);
	overflow-x: auto;
}

abbr[title] { text-decoration: underline dotted; cursor: help; }

::selection { background: var(--brass); color: var(--ground); }

/* ==========================================================================
   Layout shell
   ========================================================================== */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	background: var(--brass);
	color: var(--ground);
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius-sm);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ==========================================================================
   Navigation bar
   Sticky, translucent, sitting over the top of the masthead's rust.
   ========================================================================== */

.site-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--bar-h);
	background: rgba(22, 18, 15, .78);
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	backdrop-filter: blur(12px) saturate(1.2);
	border-bottom: 1px solid var(--hairline);
}

.admin-bar .site-bar { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .site-bar { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .site-bar { top: 0; }
}

.site-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
	height: 100%;
}

.site-bar__name {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--brass-bright);
	text-decoration: none;
	white-space: nowrap;
}

.site-bar__name:hover,
.site-bar__name:focus-visible { color: var(--brass); }

.nav-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 12px;
	margin-right: -12px;
	background: none;
	border: 0;
	color: var(--ink);
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
}

.nav-toggle-bars {
	position: relative;
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .18s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top:  6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Phone menu: a panel that drops from the bar over the page. */
.nav-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--bar-h));
	overflow-y: auto;
	padding: 6px var(--gutter) var(--gap);
	background: rgba(18, 15, 12, .97);
	border-bottom: 1px solid var(--edge-soft);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

.nav-menu.is-open { display: block; }

.nav-menu li + li { border-top: 1px solid var(--hairline); }

.nav-menu a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 2px;
	color: var(--ink);
	font-size: 1rem;
	text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--brass-bright); }

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a { color: var(--brass); }

.nav-menu .sub-menu {
	padding-left: var(--gap);
	margin-bottom: 6px;
	border-left: 1px solid var(--edge-soft);
}

.nav-menu .sub-menu li { border-top: 0; }

.nav-menu .sub-menu a {
	min-height: 44px;
	font-size: .9375rem;
	color: var(--ink-soft);
}

@media (min-width: 768px) {
	.nav-toggle { display: none; }

	.nav-menu {
		position: static;
		display: flex !important;
		align-items: center;
		gap: 2px;
		max-height: none;
		overflow: visible;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
	}

	.nav-menu li + li { border-top: 0; }

	.nav-menu > li { position: relative; }

	.nav-menu > li > a {
		min-height: 40px;
		padding: 6px 12px;
		border-radius: var(--radius-sm);
		font-size: .9375rem;
		color: var(--ink-soft);
		white-space: nowrap;
	}

	.nav-menu > li > a:hover,
	.nav-menu > li > a:focus-visible,
	.nav-menu > li:focus-within > a {
		background: var(--surface-hover);
		color: var(--ink);
	}

	.nav-menu > .current-menu-item > a,
	.nav-menu > .current_page_item > a,
	.nav-menu > .current-menu-ancestor > a {
		color: var(--brass-bright);
		background: rgba(231, 176, 98, .1);
	}

	/* Items with children get a small caret. */
	.nav-menu > .menu-item-has-children > a::after {
		content: "";
		width: 6px;
		height: 6px;
		margin: -3px 0 0 8px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
		opacity: .7;
	}

	/* Desktop dropdowns. :focus-within carries the keyboard case, so the
	   panel opens on Tab as well as on hover, with no script involved. The
	   padding-top bridges the gap so the pointer can travel into it. */
	.nav-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 60;
		display: none;
		min-width: 220px;
		margin: 0;
		padding: 8px 0 0;
		border: 0;
		background: none;
	}

	.nav-menu .sub-menu::before {
		content: "";
		position: absolute;
		inset: 8px 0 0;
		z-index: -1;
		background: rgba(24, 20, 17, .98);
		border: 1px solid var(--edge-soft);
		border-radius: var(--radius);
		box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
	}

	.nav-menu > li:hover > .sub-menu,
	.nav-menu > li:focus-within > .sub-menu { display: block; }

	.nav-menu .sub-menu li:first-child { padding-top: 6px; }
	.nav-menu .sub-menu li:last-child  { padding-bottom: 6px; }

	.nav-menu .sub-menu a {
		min-height: 42px;
		margin-inline: 6px;
		padding: 8px 12px;
		border-radius: var(--radius-sm);
		color: var(--ink-soft);
		white-space: nowrap;
	}

	.nav-menu .sub-menu a:hover,
	.nav-menu .sub-menu a:focus-visible {
		background: var(--surface-hover);
		color: var(--brass-bright);
	}
}

/* Phones have room for the site name beside the Menu button, and so do wide
   screens beside the full menu. In between, the menu needs the whole bar. */
@media (min-width: 768px) and (max-width: 1023px) {
	.site-bar__name { display: none; }
	.site-bar__inner { justify-content: center; }
}

/* ==========================================================================
   Masthead
   The rusted metal is atmosphere here, darkened and faded into the ground,
   rather than wallpaper behind every box on the page.
   ========================================================================== */

.site-header {
	position: relative;
	margin-top: calc(-1 * var(--bar-h));
	padding-top: var(--bar-h);
	background:
		linear-gradient(180deg, rgba(22, 18, 15, .35) 0%, rgba(22, 18, 15, .55) 55%, var(--ground) 100%),
		url("images/background-1100.webp") center top / cover no-repeat,
		var(--ground);
}

@media (min-width: 1101px) {
	.site-header {
		background:
			linear-gradient(180deg, rgba(22, 18, 15, .35) 0%, rgba(22, 18, 15, .55) 55%, var(--ground) 100%),
			url("images/background-1920.webp") center top / cover no-repeat,
			var(--ground);
	}
}

.site-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: var(--pad-section);
	padding-bottom: var(--gap);
	text-align: center;
}

.site-brand-heading {
	width: 100%;
	margin: 0;
	font-size: inherit;
	line-height: 0;
}

.site-brand {
	display: block;
	max-width: 720px;
	margin: 0 auto;
}

.site-brand img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}

.site-description {
	max-width: 46ch;
	margin-top: var(--gap-tight);
	font-family: var(--font-display);
	font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
	font-weight: 500;
	line-height: 1.4;
	color: var(--brass-bright);
	text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
	text-wrap: balance;
}

.award-badge {
	width: 64px;
	margin-top: var(--gap);
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}

@media (min-width: 900px) {
	.award-badge {
		position: absolute;
		top: var(--pad-section);
		right: var(--gutter);
		width: 88px;
		margin: 0;
		transform: rotate(8deg);
	}
}

/* The three characters, cut out of the old framed strip into their own
   panels. */
.site-banner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(6px, 1.4vw, 16px);
	width: 100%;
	max-width: 1000px;
	margin-top: var(--pad-section);
}

.site-banner img {
	width: 100%;
	aspect-ratio: 300 / 235;
	object-fit: cover;
	border: 1px solid var(--edge-soft);
	border-radius: var(--radius);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}

@media (max-width: 599px) {
	.site-banner img { border-radius: var(--radius-sm); }
}

/* ==========================================================================
   Main grid
   ========================================================================== */

.site-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pad-section);
	padding-top: var(--pad-section);
	padding-bottom: calc(var(--pad-section) * 1.5);
}

@media (min-width: 900px) {
	.site-layout {
		grid-template-columns: minmax(0, 1fr) 260px;
		gap: clamp(32px, 4vw, 56px);
	}
}

#content { min-width: 0; }

/* ==========================================================================
   Entries
   ========================================================================== */

.page-title { margin-bottom: var(--gap); }

.hentry + .hentry {
	margin-top: var(--pad-section);
	padding-top: var(--pad-section);
	border-top: 1px solid var(--hairline);
}

.entry-title {
	margin-bottom: var(--gap-tight);
	color: var(--ink);
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus-visible { color: var(--brass-bright); }

.entry-meta,
.entry-utility {
	font-size: .875rem;
	color: var(--muted);
}

.entry-meta { margin-bottom: var(--gap); }

.entry-utility {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: var(--gap);
	padding-top: var(--gap-tight);
	border-top: 1px solid var(--hairline);
}

.entry-content > * + *,
.entry-summary > * + * { margin-top: var(--gap); }

.entry-content > h2,
.entry-content > h3,
.entry-content > h4 { margin-top: var(--pad-section); }

/* The opening paragraph of the front page reads as a standfirst. */
.home .entry-content > p:first-child {
	font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
	line-height: 1.6;
	color: var(--ink-soft);
}

/* Block, not flex: a flex list is its own formatting context and refuses to
   wrap around a floated image, so it collapses into a narrow column beside
   one (the About page's character art does exactly that). */
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }

.entry-content li + li,
.entry-content li > ul,
.entry-content li > ol { margin-top: 6px; }

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li::marker { color: var(--brass); }

.entry-content p,
.entry-content li { max-width: var(--measure); }

.entry-content .aligncenter,
.entry-content > p:has(> img:only-child) { max-width: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--edge-soft);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--brass-bright);
	font-family: var(--font-body);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:hover,
.btn:focus-visible {
	background: rgba(231, 176, 98, .12);
	border-color: var(--brass);
	color: var(--brass-bright);
}

.btn--primary {
	background: var(--brass);
	border-color: var(--brass);
	color: #1c140c;
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--brass-bright);
	border-color: var(--brass-bright);
	color: #1c140c;
}

.btn--small {
	min-height: 40px;
	padding: 8px 14px;
	font-size: .875rem;
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-grid--wide {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-tight);
	max-width: none;
	padding: var(--gap) 16px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius);
	transition: border-color .18s ease, background .18s ease;
}

.product-card:hover,
.product-card:focus-within {
	background: var(--surface-hover);
	border-color: var(--edge-soft);
}

/* Push the buttons to the bottom so cards in a row line up. */
.product-card__actions { margin-top: auto; }

/* Selector carries an extra element qualifier on purpose: the legacy safety
   rule `.entry-content [width]` further down is also (0,2,0), and WordPress
   emits width/height attributes on every content image. Without the `img`
   here, that rule wins and covers stretch to the full card width. */
.entry-content img.product-card__cover,
.product-card__cover {
	display: block;
	width: 100%;
	max-width: 220px;
	border-radius: var(--radius-sm);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
	transition: transform .2s ease, box-shadow .2s ease;
}

a:hover > .product-card__cover,
a:focus-visible > .product-card__cover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, .6);
}

.product-card__title {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	text-wrap: balance;
}

.product-card__title a {
	display: inline-block;
	padding: 4px 2px;
	color: inherit;
	text-decoration: none;
}

.product-card__title a:hover,
.product-card__title a:focus-visible { color: var(--brass-bright); }

.product-card__price {
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--brass);
}

.product-card__note {
	font-size: .875rem;
	color: var(--muted);
	line-height: 1.45;
}

.product-card__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding-top: 4px;
}

/* A centred lead-in above a grid, e.g. "Latest Releases", ruled either side. */
.section-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 var(--gap);
	color: var(--brass-bright);
	text-align: center;
}

.section-heading::before,
.section-heading::after {
	content: "";
	flex: 1 1 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--edge-soft));
}

.section-heading::after { background: linear-gradient(90deg, var(--edge-soft), transparent); }

.section-note {
	max-width: 60ch;
	margin-inline: auto;
	color: var(--ink-soft);
	text-align: center;
	text-wrap: balance;
}

/* ==========================================================================
   WordPress content primitives
   ========================================================================== */

.entry-content img,
.entry-summary img { border-radius: var(--radius-sm); }

.alignleft {
	float: left;
	margin: 4px var(--gap) var(--gap-tight) 0;
	max-width: 40%;
}

.alignright {
	float: right;
	margin: 4px 0 var(--gap-tight) var(--gap);
	max-width: 40%;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignnone { margin-bottom: var(--gap-tight); }

@media (max-width: 599px) {
	.alignleft, .alignright {
		float: none;
		margin-inline: auto;
		max-width: 100%;
	}
}

.wp-caption {
	max-width: 100%;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius);
}

.wp-caption img { margin-inline: auto; }

.wp-caption-text,
.wp-caption p.wp-caption-text {
	margin-top: 6px;
	font-size: .8125rem;
	color: var(--muted);
	text-align: center;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--gap);
	margin: 0;
}

.gallery-item { margin: 0; text-align: center; }
.gallery img { border-radius: var(--radius-sm); margin-inline: auto; }
.gallery-caption { font-size: .8125rem; color: var(--muted); }

.page-link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: var(--gap);
	font-weight: 600;
}

.page-link a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 12px;
	border: 1px solid var(--edge-soft);
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-weight: normal;
}

.sticky {
	padding: var(--gap);
	background: var(--surface);
	border: 1px solid var(--edge-soft);
	border-radius: var(--radius);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Tables that are genuinely tabular. */
.entry-content table {
	width: 100%;
	margin-block: var(--gap);
	font-size: .9375rem;
}

.entry-content th,
.entry-content td {
	padding: 8px 12px;
	border: 1px solid var(--hairline);
	text-align: left;
	vertical-align: top;
}

.entry-content th { color: var(--brass-bright); font-family: var(--font-display); font-weight: 600; }

/* Safety net for any 2011 markup still in the database: never let a
   fixed-width table or oversized image push the page sideways. */
.entry-content > table,
.entry-summary > table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content [width],
.entry-summary [width] { max-width: 100%; }

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
	max-width: 100%;
	aspect-ratio: 16 / 9;               /* Covenant Code rule 1(c) */
	height: auto;
}

/* ==========================================================================
   Navigation between archive pages
   ========================================================================== */

.navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--gap-tight);
	margin-top: var(--pad-section);
	padding-top: var(--gap);
	border-top: 1px solid var(--hairline);
}

.navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	text-decoration: none;
}

.navigation a:hover,
.navigation a:focus-visible { text-decoration: underline; }

/* ==========================================================================
   Sidebar
   ========================================================================== */

.widget-area {
	display: flex;
	flex-direction: column;
	gap: var(--pad-section);
	min-width: 0;
	font-size: .9375rem;
}

@media (max-width: 899px) {
	.widget-area {
		padding-top: var(--pad-section);
		border-top: 1px solid var(--hairline);
	}
}

.widget-container { min-width: 0; }

/* Widget titles are quiet labels, not a second set of headlines. */
.widget-title {
	margin-bottom: 6px;
	font-family: var(--font-body);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--brass);
}

.widget-container ul {
	display: flex;
	flex-direction: column;
}

.widget-container li + li { border-top: 1px solid var(--hairline); }

.widget-container li a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 0;
	color: var(--ink-soft);
	text-decoration: none;
	line-height: 1.35;
	transition: color .15s ease, padding .15s ease;
}

.widget-container li a:hover,
.widget-container li a:focus-visible {
	color: var(--brass-bright);
	padding-left: 4px;
}

.widget-container .current_page_item > a { color: var(--brass); }

.widget-container ul ul {
	padding-left: var(--gap-tight);
	border-left: 1px solid var(--hairline);
}

.widget-container img { margin-inline: auto; }

/* ==========================================================================
   Search form
   ========================================================================== */

.search-form {
	display: flex;
	gap: 8px;
	max-width: 420px;
}

.search-form label { flex: 1 1 auto; min-width: 0; }

.search-field {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	background: rgba(0, 0, 0, .3);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-sm);
	color: var(--ink);
}

.search-field::placeholder { color: var(--muted); }

.search-field:focus-visible {
	border-color: var(--brass);
	background: rgba(0, 0, 0, .45);
}

/* ==========================================================================
   Comments
   ========================================================================== */

#comments {
	margin-top: var(--pad-section);
	padding-top: var(--pad-section);
	border-top: 1px solid var(--hairline);
}

#comments-title,
#reply-title {
	margin-bottom: var(--gap);
}

.commentlist {
	display: flex;
	flex-direction: column;
	gap: var(--pad-section);
	margin: 0 0 var(--pad-section);
}

.commentlist .comment-body {
	position: relative;
	padding-left: 56px;
	min-height: 44px;
}

.commentlist .avatar {
	position: absolute;
	top: 2px;
	left: 0;
	border-radius: 50%;
}

.comment-author cite {
	font-style: normal;
	font-weight: 700;
	color: var(--ink);
}

.comment-meta {
	margin-bottom: var(--gap-tight);
	font-size: .8125rem;
	color: var(--muted);
}

.comment-meta a { color: var(--muted); }

.commentlist .children {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	margin-top: var(--gap);
	padding-left: var(--gap);
	border-left: 1px solid var(--hairline);
}

.comment-content > * + * { margin-top: var(--gap-tight); }

.reply a,
.comment-edit-link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	font-size: .875rem;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: var(--gap-tight);
	max-width: 640px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: .875rem;
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	background: rgba(0, 0, 0, .3);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-sm);
	color: var(--ink);
}

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form .form-submit input[type="submit"] {
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--brass);
	border-radius: var(--radius-sm);
	background: var(--brass);
	color: #1c140c;
	font-weight: 600;
	cursor: pointer;
}

.comment-notes,
.form-allowed-tags,
.logged-in-as { font-size: .8125rem; color: var(--muted); }

.form-allowed-tags { display: none; }

.nopassword, .nocomments { display: none; }

.comment-respond { margin-top: var(--pad-section); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--ground-deep);
	border-top: 1px solid var(--hairline);
	font-size: .875rem;
	color: var(--muted);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding-block: var(--pad-section);
	text-align: center;
}

@media (min-width: 768px) {
	.site-footer__inner {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.site-footer a {
	color: var(--ink-soft);
	text-decoration-color: var(--edge-soft);
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--brass-bright); }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
	body { background: #fff; color: #000; }
	.site-header { background: none; margin: 0; padding: 0; }
	.site-bar, .widget-area, .site-banner, .award-badge, #comments { display: none; }
	.product-card { background: none; border-color: #ccc; }
	a { color: #000; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
