/* Global variables, typography, content, and shared components. */
:root {
	--prime-color-primary: #173b65;
	--prime-color-heading: #17202a;
	--prime-color-text: #333f4d;
	--prime-color-muted: #596575;
	--prime-color-border: #d9e0e8;
	--prime-color-surface: #f4f6f9;
	--prime-color-background: #ffffff;
	--prime-container-width: 1200px;
	--prime-radius: 10px;
	--prime-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--prime-color-background); color: var(--prime-color-text); font-family: var(--prime-font); font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.site { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.site-main { flex: 1; min-width: 0; }
.container { width: min(var(--prime-container-width), calc(100% - 40px)); margin-inline: auto; }
.section-space { padding-block: 64px; }
h1, h2, h3, h4, h5, h6 { color: var(--prime-color-heading); line-height: 1.25; margin: 0 0 20px; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 20px; }
a { color: var(--prime-color-primary); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
iframe, video, embed, object { max-width: 100%; }
figure { max-width: 100%; margin: 0 0 24px; }
button, input, select, textarea { font: inherit; }
input, select, textarea { max-width: 100%; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--prime-color-border); border-radius: 6px; background: #fff; color: var(--prime-color-text); }
input[type="checkbox"], input[type="radio"] { width: auto; }
textarea { min-height: 160px; resize: vertical; }
button, .button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border: 1px solid var(--prime-color-primary); border-radius: 6px; background: var(--prime-color-primary); color: #fff; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
button:hover, .button:hover, input[type="submit"]:hover { background: #102c4d; }
:focus-visible { outline: 3px solid #b65a00; outline-offset: 4px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 99999; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 12px 20px; overflow: visible; clip: auto; clip-path: none; background: #fff; color: #17202a; }
.page-header { margin-bottom: 36px; }
.page-header h1 { margin-bottom: 16px; }
.entry-meta { color: var(--prime-color-muted); font-size: 0.9rem; margin-bottom: 12px; }
.entry-featured-image { margin-bottom: 32px; }
.entry-featured-image img { display: block; width: 100%; height: auto; border-radius: var(--prime-radius); }
.entry-content { display: flow-root; overflow-wrap: anywhere; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 32px; }
.entry-content ul, .entry-content ol { padding-inline-start: 24px; }
.entry-content li { margin-block: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--prime-color-border); padding: 10px 12px; text-align: start; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content blockquote { margin: 24px 0; padding: 16px 24px; border-inline-start: 4px solid var(--prime-color-primary); background: var(--prime-color-surface); }
pre { max-width: 100%; overflow-x: auto; padding: 20px; background: var(--prime-color-surface); }
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { width: 100%; max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--prime-color-muted); font-size: 0.9rem; margin-top: 8px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { min-width: 0; border: 1px solid var(--prime-color-border); border-radius: var(--prime-radius); overflow: hidden; background: #fff; }
.post-card__image { display: block; }
.post-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card__title { font-size: 1.45rem; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card.sticky { border-color: var(--prime-color-primary); }
.read-more { font-weight: 600; }
.navigation, .page-links { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.post-navigation .nav-links { justify-content: space-between; align-items: start; }
.nav-previous, .nav-next { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--prime-color-border); border-radius: 5px; text-decoration: none; }
.page-numbers.current { background: var(--prime-color-primary); color: #fff; border-color: var(--prime-color-primary); }
.search-form { display: flex; gap: 12px; max-width: 640px; margin: 24px 0; }
.search-form .search-field { flex: 1; min-width: 0; }
.search-form button { flex-shrink: 0; }
.error-code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; line-height: 1; color: var(--prime-color-primary); }
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--prime-color-border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 24px; }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--prime-color-border); }
.comment-author .avatar { margin-inline-end: 10px; border-radius: 50%; }
.comment-metadata { font-size: 0.85rem; margin-block: 8px 16px; }
.comment-list .bypostauthor > .comment-body { border-inline-start: 3px solid var(--prime-color-primary); padding-inline-start: 16px; }
.comment-form { max-width: 760px; }
.comment-form label { display: inline-block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent input { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
