/*
Theme Name:   Cognito Soft
Theme URI:    https://cognitosoft.com/
Author:       Cognito Soft
Author URI:   https://cognitosoft.com/
Description:  A fast, dependency-free theme for a specialist engineering consultancy. No page builder, no external font or script requests, structured data built in. Designed to make a small remote team read as a credible international vendor.
Version:      1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  cognitosoft
Tags:         business, portfolio, custom-colors, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--ink:            #0a0c12;
	--ink-2:          #12151d;
	--ink-3:          #1c212c;
	--paper:          #ffffff;
	--paper-2:        #f7f8fa;
	--paper-3:        #eef0f4;
	--text:           #14171f;
	--text-muted:     #5b6472;
	--text-invert:    #ffffff;
	--text-invert-mu: #a3adbd;
	--border:         #e3e7ec;
	--border-strong:  #cdd4dd;
	--border-invert:  #262c39;

	--accent:         #2f5bff;
	--accent-hover:   #1f47e0;
	--accent-soft:    #eef2ff;
	--accent-invert:  #7d9bff;
	--positive:       #00a37a;
	--positive-soft:  #e6f7f2;

	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
	--step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.09rem);
	--step-1:  clamp(1.19rem, 1.13rem + 0.30vw, 1.38rem);
	--step-2:  clamp(1.42rem, 1.31rem + 0.55vw, 1.75rem);
	--step-3:  clamp(1.69rem, 1.50rem + 0.95vw, 2.22rem);
	--step-4:  clamp(2.01rem, 1.71rem + 1.52vw, 2.81rem);
	--step-5:  clamp(2.40rem, 1.92rem + 2.40vw, 3.58rem);

	--space-xs: 0.5rem;
	--space-sm: 0.875rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: clamp(4rem, 8vw, 7.5rem);

	--radius-sm: 8px;
	--radius:    14px;
	--radius-lg: 20px;

	--width:      1180px;
	--width-prose: 720px;

	--ring: 0 0 0 3px rgba(47, 91, 255, 0.28);
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.65;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
	margin: 0 0 var(--space-sm);
	line-height: 1.15;
	letter-spacing: -0.021em;
	font-weight: 660;
	text-wrap: balance;
}

h1 { font-size: var(--step-5); letter-spacing: -0.032em; }
h2 { font-size: var(--step-4); letter-spacing: -0.027em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol { margin: 0 0 var(--space-md); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
	outline: none;
	box-shadow: var(--ring);
	border-radius: var(--radius-sm);
}

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

code {
	background: var(--paper-3);
	padding: 0.15em 0.4em;
	border-radius: 4px;
}

pre {
	background: var(--ink);
	color: #e6eaf2;
	padding: var(--space-md);
	border-radius: var(--radius);
	overflow-x: auto;
}

pre code { background: none; padding: 0; color: inherit; }

blockquote {
	margin: var(--space-lg) 0;
	padding-left: var(--space-md);
	border-left: 3px solid var(--accent);
	font-size: var(--step-1);
	color: var(--text);
}

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-xl) 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
th { font-weight: 640; background: var(--paper-2); }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--width);
	margin-inline: auto;
	padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.prose { max-width: var(--width-prose); }

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-invert); }
.section--dark p { color: var(--text-invert-mu); }
.section--dark a { color: var(--accent-invert); }

.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.stack > * + * { margin-top: var(--space-md); }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: 0.8rem 1.2rem;
	z-index: 999;
	border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   4. Typographic utilities
   ========================================================================== */

.eyebrow {
	font-family: var(--font-mono);
	font-size: var(--step--1);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 var(--space-sm);
	font-weight: 500;
}

.section--dark .eyebrow { color: var(--accent-invert); }

.lede {
	font-size: var(--step-1);
	line-height: 1.55;
	color: var(--text-muted);
	max-width: 62ch;
}

.section--dark .lede { color: var(--text-invert-mu); }

.section-head { max-width: 62ch; margin-bottom: var(--space-lg); }

.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }
.mono { font-family: var(--font-mono); }

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.82rem 1.4rem;
	border-radius: var(--radius-sm);
	font-size: var(--step-0);
	font-weight: 570;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn--ghost {
	background: transparent;
	color: var(--text);
	border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text); color: var(--text); }

/*
 * Ghost buttons inherit the light-theme ink colour, which is invisible on a
 * dark ground. Every dark container must be listed here, .cta-band and
 * .page-hero are dark but are not .section--dark, so omitting them rendered
 * near-black text on a near-black panel.
 */
.section--dark .btn--ghost,
.site-hero .btn--ghost,
.page-hero .btn--ghost,
.cta-band .btn--ghost {
	color: #fff;
	border-color: rgba(255,255,255,.38);
}

.section--dark .btn--ghost:hover,
.site-hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.cta-band .btn--ghost:hover {
	border-color: #fff;
	background: rgba(255,255,255,.08);
	color: #fff;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

.link-arrow {
	font-weight: 570;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
}
.link-arrow::after { content: "\2192"; transition: transform .16s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   6. Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.86);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: 70px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-weight: 660;
	font-size: 1.06rem;
	letter-spacing: -0.02em;
	color: var(--text);
	text-decoration: none;
	flex-shrink: 0;
}
.site-brand img { max-height: 38px; width: auto; }

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(.9rem, 2vw, 1.75rem);
}

.site-nav a {
	color: var(--text);
	text-decoration: none;
	font-size: .95rem;
	font-weight: 500;
	padding: .4rem 0;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-parent > a { border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.header-actions .btn { padding: .58rem 1.05rem; font-size: .92rem; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	padding: .5rem .7rem;
	cursor: pointer;
	color: var(--text);
	font-size: .9rem;
	font-weight: 560;
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; gap: .45rem; }
	.site-nav {
		display: none;
		position: absolute;
		inset: 100% 0 auto 0;
		background: var(--paper);
		border-bottom: 1px solid var(--border);
		padding: var(--space-sm) clamp(1.15rem, 4vw, 2.5rem) var(--space-md);
		box-shadow: 0 18px 40px -24px rgba(10,12,18,.4);
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav li { border-bottom: 1px solid var(--border); }
	.site-nav li:last-child { border-bottom: 0; }
	.site-nav a { display: block; padding: .85rem 0; border-bottom: 0; }
	.header-actions .btn--ghost { display: none; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.site-hero {
	background: var(--ink);
	color: var(--text-invert);
	padding-block: clamp(4rem, 9vw, 7.5rem);
	position: relative;
	overflow: hidden;
}

/* Subtle engineered grid. Pure CSS, no image request. */
.site-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
	pointer-events: none;
}

.site-hero > * { position: relative; }

.site-hero h1 { color: #fff; max-width: 19ch; }
.site-hero .lede { color: var(--text-invert-mu); margin-top: var(--space-md); }
.site-hero .btn-row { margin-top: var(--space-lg); }

.hero-availability {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-family: var(--font-mono);
	font-size: var(--step--1);
	color: var(--text-invert-mu);
	border: 1px solid var(--border-invert);
	background: rgba(255,255,255,.03);
	border-radius: 100px;
	padding: .38rem .85rem;
	margin-bottom: var(--space-md);
}

.hero-availability .dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--positive);
	box-shadow: 0 0 0 3px rgba(0,163,122,.22);
	flex-shrink: 0;
}

/* ==========================================================================
   8. Page hero (interior pages)
   ========================================================================== */

.page-hero {
	background: var(--ink);
	color: var(--text-invert);
	padding-block: clamp(3rem, 6vw, 5rem);
}
.page-hero h1 { color: #fff; font-size: var(--step-4); max-width: 22ch; }
.page-hero .lede { color: var(--text-invert-mu); margin-top: var(--space-sm); }

.breadcrumbs {
	font-size: var(--step--1);
	color: var(--text-invert-mu);
	margin-bottom: var(--space-md);
	font-family: var(--font-mono);
}
.breadcrumbs a { color: var(--text-invert-mu); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-hidden] { opacity: .5; padding: 0 .4rem; }

/* ==========================================================================
   9. Cards
   ========================================================================== */

.card {
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-md);
	display: flex;
	flex-direction: column;
	gap: .7rem;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.card--link:hover {
	border-color: var(--border-strong);
	transform: translateY(-2px);
	box-shadow: 0 20px 40px -30px rgba(10,12,18,.45);
}

.card h3 { margin: 0; font-size: var(--step-1); }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--text-muted); font-size: .97rem; }
.card .link-arrow { margin-top: auto; padding-top: .4rem; }

.card__icon {
	width: 38px; height: 38px;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
	display: grid;
	place-items: center;
	margin-bottom: .3rem;
}
.card__icon svg { width: 20px; height: 20px; }

.card__meta {
	font-family: var(--font-mono);
	font-size: var(--step--1);
	color: var(--text-muted);
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .8rem;
}

.card__thumb {
	margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) 0;
	border-radius: var(--radius) var(--radius) 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--paper-3);
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   10. Tags and pills
   ========================================================================== */

.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }

.tag {
	font-family: var(--font-mono);
	font-size: .78rem;
	letter-spacing: .01em;
	padding: .24rem .6rem;
	border-radius: 100px;
	background: var(--paper-3);
	color: var(--text-muted);
	border: 1px solid var(--border);
	text-decoration: none;
	white-space: nowrap;
}
a.tag:hover { border-color: var(--border-strong); color: var(--text); }

.section--dark .tag {
	background: rgba(255,255,255,.05);
	border-color: var(--border-invert);
	color: var(--text-invert-mu);
}

/* ==========================================================================
   11. Metrics
   ========================================================================== */

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

.metric__value {
	font-size: var(--step-3);
	font-weight: 680;
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: var(--text);
	display: block;
}
.metric__label {
	font-size: var(--step--1);
	color: var(--text-muted);
	margin-top: .3rem;
	display: block;
	line-height: 1.45;
}

/*
 * .trust-bar is a dark band but is not .section--dark, so it has to be named
 * explicitly or metric text falls back to the light-theme colours and drops
 * below the 4.5:1 contrast minimum.
 */
.section--dark .metric__value,
.trust-bar .metric__value { color: #fff; }

.section--dark .metric__label,
.trust-bar .metric__label { color: var(--text-invert-mu); }

.metrics--boxed .metric {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-md);
	background: var(--paper);
}
.section--dark .metrics--boxed .metric {
	border-color: var(--border-invert);
	background: rgba(255,255,255,.02);
}

/* ==========================================================================
   12. Trust bar
   ========================================================================== */

.trust-bar {
	border-top: 1px solid var(--border-invert);
	background: var(--ink-2);
	color: var(--text-invert-mu);
	padding-block: var(--space-md);
}

.trust-bar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm) var(--space-lg);
	font-size: var(--step--1);
	font-family: var(--font-mono);
}

.trust-bar__list li { display: flex; align-items: center; gap: .5rem; }
.trust-bar__list svg { width: 15px; height: 15px; color: var(--positive); flex-shrink: 0; }

/* ==========================================================================
   13. Case study layout
   ========================================================================== */

.cs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

@media (max-width: 900px) {
	.cs-layout { grid-template-columns: 1fr; }
}

.cs-sidebar {
	position: sticky;
	top: 90px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-md);
	background: var(--paper-2);
	font-size: .94rem;
}

@media (max-width: 900px) {
	.cs-sidebar { position: static; }
}

.cs-sidebar dl { margin: 0; display: grid; gap: .9rem; }
.cs-sidebar dt {
	font-family: var(--font-mono);
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-muted);
	margin-bottom: .15rem;
}
.cs-sidebar dd { margin: 0; font-weight: 540; }

.story-block { margin-bottom: var(--space-lg); }
.story-block h2 {
	font-size: var(--step-2);
	display: flex;
	align-items: baseline;
	gap: .7rem;
}
.story-block h2::before {
	content: attr(data-step);
	font-family: var(--font-mono);
	font-size: .8rem;
	font-weight: 500;
	color: var(--accent);
	letter-spacing: .06em;
}

.pull-quote {
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: var(--space-md);
	background: var(--paper-2);
	margin: var(--space-lg) 0;
}
.pull-quote p {
	font-size: var(--step-1);
	line-height: 1.55;
	margin: 0 0 var(--space-sm);
}
.pull-quote cite {
	font-style: normal;
	font-size: var(--step--1);
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.nda-note {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-family: var(--font-mono);
	font-size: var(--step--1);
	color: var(--text-muted);
	background: var(--paper-3);
	border-radius: 100px;
	padding: .3rem .75rem;
}

/* ==========================================================================
   14. Team
   ========================================================================== */

.person { text-align: left; }

.person__photo {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--paper-3);
	margin-bottom: .8rem;
}

.person__photo--empty {
	display: grid;
	place-items: center;
	font-family: var(--font-mono);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--text-muted);
	border: 1px solid var(--border);
}

.person h3 { font-size: var(--step-1); margin-bottom: .1rem; }
.person__role { font-size: .93rem; color: var(--accent); font-weight: 540; margin-bottom: .5rem; }
.person__bio { font-size: .95rem; color: var(--text-muted); }

.person__links { display: flex; gap: .8rem; font-size: var(--step--1); font-family: var(--font-mono); }
.person__links a { text-decoration: none; }
.person__links a:hover { text-decoration: underline; }

/* ==========================================================================
   15. Process / steps
   ========================================================================== */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }

.step {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: var(--space-md);
	align-items: start;
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }

.step__num {
	font-family: var(--font-mono);
	font-size: .85rem;
	font-weight: 560;
	color: var(--accent);
	border: 1px solid var(--border);
	border-radius: 10px;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	background: var(--paper);
}

.step h3 { font-size: var(--step-1); margin-bottom: .25rem; }
.step p { margin: 0; color: var(--text-muted); }

.section--dark .step { border-bottom-color: var(--border-invert); }
.section--dark .step__num {
	background: rgba(255,255,255,.03);
	border-color: var(--border-invert);
	color: var(--accent-invert);
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */

.faq-list { border-top: 1px solid var(--border); max-width: var(--width-prose); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 1.1rem 2.2rem 1.1rem 0;
	font-weight: 580;
	font-size: var(--step-1);
	position: relative;
	line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
	content: "+";
	position: absolute;
	right: .2rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--text-muted);
	line-height: 1;
	transition: transform .18s ease;
}
.faq-item[open] summary::after { content: "\2013"; }

.faq-item > div { padding-bottom: 1.2rem; color: var(--text-muted); max-width: 66ch; }
.faq-item > div p:last-child { margin-bottom: 0; }

/* ==========================================================================
   17. Forms
   ========================================================================== */

.form-grid { display: grid; gap: var(--space-md); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); }

.field label {
	display: block;
	font-weight: 560;
	font-size: .93rem;
	margin-bottom: .38rem;
}
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
	width: 100%;
	font: inherit;
	font-size: .98rem;
	color: var(--text);
	padding: .72rem .85rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--paper);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: var(--ring);
}

.field .hint { font-size: var(--step--1); color: var(--text-muted); margin-top: .35rem; }

.hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

.notice {
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	margin-bottom: var(--space-md);
	font-size: .96rem;
}
.notice--ok { background: var(--positive-soft); border-color: rgba(0,163,122,.3); color: #06614a; }
.notice--err { background: #fdf0ef; border-color: #f2c9c4; color: #8f2c1e; }

/* ==========================================================================
   18. Contact detail panel
   ========================================================================== */

.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.detail-list dt,
.detail-list .detail__label {
	font-family: var(--font-mono);
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-muted);
	margin-bottom: .2rem;
}
.detail-list .detail__value { font-weight: 540; }
.detail-list a { text-decoration: none; }
.detail-list a:hover { text-decoration: underline; }

/* ==========================================================================
   19. Posts
   ========================================================================== */

.entry-meta {
	font-family: var(--font-mono);
	font-size: var(--step--1);
	color: var(--text-muted);
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .8rem;
	margin-bottom: var(--space-sm);
}

.entry-content { max-width: var(--width-prose); }
.entry-content h2 { font-size: var(--step-3); margin-top: var(--space-xl); }
.entry-content h3 { font-size: var(--step-2); margin-top: var(--space-lg); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img { border-radius: var(--radius); margin-block: var(--space-md); }
.entry-content figure { margin: var(--space-lg) 0; }
.entry-content figcaption {
	font-size: var(--step--1);
	color: var(--text-muted);
	margin-top: .5rem;
	text-align: center;
}

.author-box {
	display: flex;
	gap: var(--space-md);
	align-items: flex-start;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-md);
	background: var(--paper-2);
	margin-top: var(--space-xl);
	max-width: var(--width-prose);
}
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box p { margin: 0; font-size: .95rem; color: var(--text-muted); }
.author-box strong { color: var(--text); }

.pagination {
	display: flex;
	gap: .4rem;
	flex-wrap: wrap;
	margin-top: var(--space-xl);
	font-family: var(--font-mono);
	font-size: .92rem;
}
.pagination .page-numbers {
	padding: .5rem .85rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--text);
}
.pagination .page-numbers:hover { border-color: var(--border-strong); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   20. CTA band
   ========================================================================== */

.cta-band {
	background: var(--ink);
	color: var(--text-invert);
	border-radius: var(--radius-lg);
	padding: clamp(2rem, 5vw, 3.5rem);
	display: grid;
	gap: var(--space-md);
}
.cta-band h2 { color: #fff; font-size: var(--step-3); margin: 0; max-width: 20ch; }
.cta-band p { color: var(--text-invert-mu); margin: 0; max-width: 55ch; }

/* ==========================================================================
   21. Footer
   ========================================================================== */

.site-footer {
	background: var(--ink);
	color: var(--text-invert-mu);
	padding-block: var(--space-xl) var(--space-md);
	font-size: .94rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: var(--space-lg);
	padding-bottom: var(--space-lg);
	border-bottom: 1px solid var(--border-invert);
}

@media (max-width: 860px) {
	.footer-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

.site-footer h2 {
	font-size: .78rem;
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: .09em;
	color: #fff;
	margin-bottom: .9rem;
	font-weight: 500;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--text-invert-mu); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/*
 * One logo asset serves both placements. The mark is a dark monochrome PNG
 * on transparency for the light header; here it is flipped to solid white so
 * it reads on the dark footer without needing a second file.
 */
.footer-brand img {
	max-height: 44px;
	width: auto;
	margin-bottom: .9rem;
	filter: brightness(0) invert(1);
}
.footer-brand p { color: var(--text-invert-mu); font-size: .94rem; max-width: 34ch; }

.footer-legal {
	padding-top: var(--space-md);
	display: flex;
	flex-wrap: wrap;
	gap: .5rem var(--space-md);
	justify-content: space-between;
	font-size: .86rem;
	color: #7b8598;
}

.footer-legal address { font-style: normal; display: inline; }

/* ==========================================================================
   22. Utilities
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.alignwide { max-width: 1080px; margin-inline: auto; }
.alignfull { max-width: none; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 var(--space-md) var(--space-sm) 0; }
.alignright { float: right; margin: 0 0 var(--space-sm) var(--space-md); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--step--1); color: var(--text-muted); }

.sticky { border-left: 3px solid var(--accent); padding-left: var(--space-md); }

@media print {
	.site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
	body { color: #000; }
}
