/* ==========================================================================
   Coastal Structures: main.css
   1. Design tokens
   2. Base / reset
   3. Accessibility helpers
   4. Layout
   5. Buttons
   6. Site header
   7. Site footer
   8. Components
   9. Content and templates
   10. Reduced motion
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   Sizes are measured from the 1920px comp and use rem + vw inside clamp(),
   so they scale with the viewport and still respect browser zoom and
   text-size settings. Colors that are still placeholders are noted.
   ========================================================================== */
:root {
	/* Brand colors */
	--color-slate: #1b2128;
	--color-red: #e60000;
	--color-white: #ffffff;

	/* Color roles */
	--color-text: var(--color-slate);
	--color-text-muted: #595959;
	--color-bg: var(--color-white);
	--color-bg-alt: #f4f4f2; /* placeholder until the light-section color is confirmed */
	--color-bg-dark: var(--color-slate);
	--color-on-dark: var(--color-white);
	--color-on-dark-muted: #d4d4d6;
	--color-line-on-dark: rgba(255, 255, 255, 0.18);
	--color-primary: var(--color-red);
	--color-on-primary: var(--color-white);
	--color-focus: var(--color-red);
	--color-focus-on-dark: var(--color-white);

	/* Typography: Adobe Fonts kit (loaded in inc/enqueue.php) */
	--font-body: "source-sans-pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-heading: var(--font-body);
	--fw-body: 400;
	--fw-heading: 700;
	--fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.25rem);
	--fs-h1: clamp(2rem, 1.4rem + 2.4vw, 4.5rem);
	--fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 3.25rem);
	--fs-h3: clamp(1.375rem, 1.15rem + 0.9vw, 2.25rem);
	--lh-body: 1.6;
	--lh-heading: 1.15;

	/* Spacing (fluid) */
	--space-xs: clamp(0.5rem, 0.45rem + 0.2vw, 0.75rem);
	--space-s: clamp(0.75rem, 0.65rem + 0.4vw, 1.25rem);
	--space-m: clamp(1.25rem, 1rem + 1vw, 2.25rem);
	--space-l: clamp(2rem, 1.5rem + 2vw, 4rem);
	--space-xl: clamp(3rem, 2rem + 4vw, 7rem);

	/* Layout */
	--container-max: 75rem;
	--gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);

	/* Header (comp @ 1920: 83px side inset, 66px top bar, 101px nav row,
	   308px logo, 75px between nav items) */
	--header-pad: clamp(1rem, 4.3vw, 5.2rem);
	--header-gap: clamp(1.5rem, 3vw, 3rem);
	--hdr-top: clamp(3.25rem, 2.25rem + 1.56vw, 4.125rem);
	--hdr-nav: clamp(4rem, 1.36rem + 4.13vw, 6.3rem);
	--logo-w: clamp(10rem, 6rem + 11.2vw, 19.25rem);
	--logo-offset: clamp(0.4rem, 0.15rem + 0.65vw, 0.9rem);
	--nav-gap: clamp(1.75rem, 3.8vw, 4.55rem);
	--fs-nav: clamp(0.9375rem, 0.72rem + 0.335vw, 1.125rem);
	--fs-util: clamp(0.75rem, 0.65rem + 0.15vw, 0.875rem);
	--header-offset: 0px; /* WordPress admin bar height, set below */

	/* Interaction */
	--tap-min: 2.75rem; /* 44px minimum touch target */
	--focus-ring: 3px solid var(--color-focus);
	--focus-offset: 3px;
	--ease: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   2. Base / reset
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* Keep focused elements and #anchors clear of the sticky header. */
	scroll-padding-top: calc(var(--header-height, 0px) + var(--header-offset) + 1rem);
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-s);
	font-family: var(--font-heading);
	font-weight: var(--fw-heading);
	line-height: var(--lh-heading);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
	margin: 0 0 var(--space-s);
}

a {
	color: var(--color-primary);
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 0.15em;
}

/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */
:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* Visually hidden, still available to screen readers. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Skip link: off-screen until it receives keyboard focus. */
.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-min);
	padding: 0.5rem 1.25rem;
	background: var(--color-text);
	color: var(--color-bg);
	font-weight: 700;
	transform: translateY(-100%);
}

.skip-link:focus {
	transform: translateY(0);
	outline-color: var(--color-focus-on-dark);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
	width: min(100% - (2 * var(--gutter)), var(--container-max));
	margin-inline: auto;
}

.site-main {
	padding-block: var(--space-l);
}

/* ==========================================================================
   5. Buttons
   Every .btn has a left-to-right wipe on hover and keyboard focus: a colored
   layer grows from the left, and slides out to the right on mouse-out.
   Colors come from variables so each variant only sets four values.
   ========================================================================== */
.btn {
	--btn-bg: var(--color-red);
	--btn-fg: var(--color-white);
	--btn-wipe: var(--color-slate);
	--btn-fg-hover: var(--color-white);

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--tap-min);
	padding: 0.5rem 1.5rem;
	border: 0;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	isolation: isolate;
	transition: color 0.35s var(--ease);
}

.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--btn-wipe);
	transform: scaleX(0);
	transform-origin: right center; /* leaves to the right on mouse-out */
	transition: transform 0.35s var(--ease);
}

.btn:hover,
.btn:focus-visible {
	color: var(--btn-fg-hover);
	text-decoration: none;
}

.btn:hover::before,
.btn:focus-visible::before {
	transform: scaleX(1);
	transform-origin: left center; /* enters from the left */
}

/* Light button (top bar "Client Portal"): wipes to red. */
.btn--light {
	--btn-bg: var(--color-on-dark-muted);
	--btn-fg: var(--color-slate);
	--btn-wipe: var(--color-red);
	--btn-fg-hover: var(--color-white);
}

/* ==========================================================================
   6. Site header
   Sticky. Desktop: logo on the left; a top bar (phone, utility links, button)
   above the primary nav on the right, with dropdowns for child pages. Below
   64rem: logo + menu button, with everything else in a dropdown panel. The
   header condenses after scrolling.
   ========================================================================== */
.site-header {
	position: sticky;
	top: var(--header-offset);
	z-index: 100;
	background: var(--color-bg-dark);
	color: var(--color-on-dark);
}

/* WordPress admin bar (logged-in users): 32px, 46px on narrow screens, and
   it scrolls away entirely at 600px and below. */
.admin-bar {
	--header-offset: 32px;
}

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

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

.site-header :focus-visible {
	outline-color: var(--color-focus-on-dark);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--header-gap);
	padding: 0.75rem var(--header-pad);
}

.site-header__brand {
	flex: 0 0 auto;
	width: calc(var(--logo-w) * var(--logo-scale, 1));
	transition: width 0.3s var(--ease);
}

.site-header__brand-link {
	display: flex;
	align-items: center;
	min-height: var(--tap-min);
	color: var(--color-on-dark);
	text-decoration: none;
}

.site-header__logo {
	width: 100%;
	height: auto;
}

/* Text fallback until a logo is chosen in Site Settings. */
.site-header__brand-text {
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Menu button (mobile). Hidden unless JavaScript is running. */
.menu-toggle {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--tap-min);
	height: var(--tap-min);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-on-dark);
	cursor: pointer;
}

.js .menu-toggle {
	display: inline-flex;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 1.5rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before {
	top: -0.45rem;
}

.menu-toggle__bars::after {
	top: 0.45rem;
}

.menu-toggle.is-open .menu-toggle__bars {
	background: transparent;
}

.menu-toggle.is-open .menu-toggle__bars::before {
	transform: translateY(0.45rem) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bars::after {
	transform: translateY(-0.45rem) rotate(-45deg);
}

/* Top bar: phone | utility links | button */
.site-header__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	font-size: var(--fs-util);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-header__phone {
	margin: 0;
}

.site-header__phone a,
.utility-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--color-on-dark-muted);
	text-decoration: none;
}

/* Extend the tap area to 44px without changing how it looks. */
.site-header__phone a::before,
.utility-nav a::before,
.site-header__portal::after {
	content: "";
	position: absolute;
	inset: -0.75rem -0.375rem;
}

.site-header__phone a:hover,
.utility-nav a:hover {
	color: var(--color-on-dark);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.utility-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Divider before each utility link ("phone | contact"). */
.utility-nav__list li {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.utility-nav__list li::before {
	content: "";
	width: 1px;
	height: 1em;
	background: currentColor;
	opacity: 0.55;
}

/* Compact button in the top bar (comp: 142 x 32px at 1920). */
.site-header__portal {
	min-height: 2rem;
	padding: 0 clamp(0.75rem, 0.5rem + 0.4vw, 1rem);
	font-size: var(--fs-util);
	letter-spacing: 0.14em;
}

/* Primary navigation (top level) */
.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 0 var(--nav-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__list > li {
	position: relative;
	display: flex;
	align-items: center;
}

.primary-nav__list > li > a {
	position: relative;
	display: inline-block;
	color: var(--color-on-dark-muted);
	font-size: var(--fs-nav);
	line-height: 1;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.25s var(--ease);
}

/* Tap area (about 52px tall) around each link. */
.primary-nav__list > li > a::before {
	content: "";
	position: absolute;
	inset: -1.1rem -0.5rem;
}

/* Red underline: slides in on hover/focus, stays on the current page. */
.primary-nav__list > li > a::after {
	content: "";
	position: absolute;
	top: calc(100% + 0.55rem);
	right: 0.1em;
	left: 0;
	height: 3px;
	background: var(--color-red);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.3s var(--ease);
}

.primary-nav__list > li > a:hover,
.primary-nav__list > li > a:focus-visible,
.primary-nav__list > li > a[aria-current],
.primary-nav__list > li.current-menu-ancestor > a,
.primary-nav__list > li.is-open > a {
	color: var(--color-on-dark);
}

.primary-nav__list > li > a:hover::after,
.primary-nav__list > li > a:focus-visible::after,
.primary-nav__list > li > a[aria-current]::after,
.primary-nav__list > li.current-menu-ancestor > a::after,
.primary-nav__list > li.is-open > a::after {
	transform: scaleX(1);
	transform-origin: left center;
}

/* Submenu toggle buttons (added by CS_Nav_Walker). Without JavaScript the
   dropdowns still open on hover, so the buttons are hidden. */
.submenu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: var(--tap-min);
	height: var(--tap-min);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-on-dark-muted);
	cursor: pointer;
}

.js .submenu-toggle {
	display: inline-flex;
}

.submenu-toggle:hover {
	color: var(--color-on-dark);
}

.submenu-toggle__icon {
	transition: transform 0.3s var(--ease);
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
	transform: rotate(180deg);
}

/* Submenus (shared) */
.primary-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sub-menu a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--tap-min);
	padding: 0.5rem 1.25rem;
	color: var(--color-on-dark-muted);
	font-size: 0.9375rem;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* Red bar that slides down the left edge on hover, focus and current page. */
.sub-menu a::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--color-red);
	transform: scaleY(0);
	transform-origin: top center;
	transition: transform 0.3s var(--ease);
}

.sub-menu li:hover,
.sub-menu li:focus-within {
	background: rgba(255, 255, 255, 0.06);
}

.sub-menu a:hover,
.sub-menu a:focus-visible,
.sub-menu a[aria-current],
.sub-menu .current-menu-ancestor > a {
	color: var(--color-on-dark);
}

.sub-menu a:hover::before,
.sub-menu a:focus-visible::before,
.sub-menu a[aria-current]::before,
.sub-menu .current-menu-ancestor > a::before {
	transform: scaleY(1);
}

/* Below 64rem: logo + menu button, everything else in a dropdown panel. */
@media (max-width: 63.999rem) {
	.js .site-header__panel:not(.is-open) {
		display: none;
	}

	.site-header__panel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: calc(100dvh - var(--header-height, 5rem) - var(--header-offset));
		padding: 1rem var(--header-pad) 1.5rem;
		overflow-y: auto;
		background: var(--color-bg-dark);
		border-top: 1px solid var(--color-line-on-dark);
	}

	.site-header__top {
		margin-bottom: 1rem;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--color-line-on-dark);
		font-size: 0.875rem;
	}

	.site-header__portal {
		min-height: var(--tap-min);
		padding: 0 1.25rem;
	}

	.primary-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.primary-nav__list > li {
		flex-wrap: wrap;
	}

	.primary-nav__list > li > a {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		min-height: var(--tap-min);
		font-size: 1.0625rem;
	}

	.primary-nav__list > li > a::before {
		inset: 0 -0.5rem;
	}

	.primary-nav__list > li > a::after {
		top: auto;
		right: auto;
		bottom: 0.4rem;
		width: 2.5rem;
	}

	/* Submenus become an accordion under their parent. */
	.primary-nav .sub-menu {
		flex: 1 0 100%;
		margin: 0 0 0.5rem 0.25rem;
		border-left: 1px solid var(--color-line-on-dark);
	}

	.js .primary-nav .sub-menu {
		display: none;
	}

	.js .primary-nav li.is-open > .sub-menu {
		display: block;
	}

	.sub-menu li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.sub-menu li > a {
		flex: 1 1 auto;
	}

	.sub-menu .sub-menu {
		margin-left: 1rem;
	}
}

/* From 64rem: logo left, top bar above nav on the right. */
@media (min-width: 64rem) {
	.site-header__inner {
		align-items: stretch;
		padding-block: 0;
	}

	.site-header__brand {
		align-self: flex-end;
		margin-bottom: var(--logo-offset);
	}

	.menu-toggle,
	.js .menu-toggle {
		display: none;
	}

	.site-header__panel {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
	}

	.site-header__top {
		position: relative;
		flex-wrap: nowrap;
		justify-content: flex-end;
		height: var(--hdr-top);
		transition: height 0.3s var(--ease);
	}

	/* Divider line. It starts inside the logo's empty top-right corner, as in
	   the comp, so it is drawn from the top bar and reaches back over the gap. */
	.site-header__top::after {
		content: "";
		position: absolute;
		right: 0;
		bottom: 0;
		left: calc(-1 * (var(--header-gap) + var(--logo-w) * var(--logo-scale, 1) * 0.15));
		height: 1px;
		background: var(--color-line-on-dark);
		pointer-events: none;
	}

	.primary-nav {
		display: flex;
		align-items: stretch;
		justify-content: flex-end;
		height: var(--hdr-nav);
		transition: height 0.3s var(--ease);
	}

	/* Each top-level item fills the whole nav row, so the pointer can travel
	   from the link down into its dropdown without leaving the item. */
	.primary-nav__list {
		align-items: stretch;
	}

	/* Chevron sits in the gap beside the link, so item spacing matches the comp. */
	.primary-nav__list > li > .submenu-toggle {
		position: absolute;
		top: 50%;
		left: 100%;
		width: 1.75rem;
		height: var(--tap-min);
		transform: translateY(-50%);
	}

	/* Dropdown panels */
	.primary-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 2;
		min-width: 15.5rem;
		padding: 0.5rem 0;
		background: var(--color-bg-dark);
		border-top: 1px solid var(--color-line-on-dark);
		box-shadow: 0 1rem 1.75rem rgba(0, 0, 0, 0.28);
		visibility: hidden;
		opacity: 0;
		transform: translateY(0.5rem);
		transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
	}

	.primary-nav .sub-menu .sub-menu {
		top: -0.5rem;
		left: 100%;
	}

	.sub-menu li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.sub-menu li > a {
		flex: 1 1 auto;
		white-space: nowrap;
	}

	/* Chevron inside a dropdown row points right (opens a flyout). */
	.sub-menu .submenu-toggle {
		position: static;
		flex: none;
		width: var(--tap-min);
		height: var(--tap-min);
	}

	.sub-menu .submenu-toggle__icon {
		transform: rotate(-90deg);
	}

	/* Open by keyboard/touch (JS adds .is-open) ... */
	.primary-nav li.is-open > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition-delay: 0s;
	}

	/* ... or by mouse hover. Escape suppresses a hover-opened menu. */
	@media (hover: hover) and (pointer: fine) {
		.primary-nav li.menu-item-has-children:not(.is-suppressed):hover > .sub-menu {
			visibility: visible;
			opacity: 1;
			transform: none;
			transition-delay: 0s;
		}

		.primary-nav__list > li.menu-item-has-children:not(.is-suppressed):hover > a {
			color: var(--color-on-dark);
		}

		.primary-nav__list > li.menu-item-has-children:not(.is-suppressed):hover > a::after {
			transform: scaleX(1);
			transform-origin: left center;
		}
	}

	/* Condensed after scrolling: smaller logo and bars. */
	.site-header.is-condensed {
		--hdr-top: 2.75rem;
		--hdr-nav: 3.5rem;
		--logo-scale: 0.6;
	}
}

/* ==========================================================================
   7. Site footer
   Placeholder look until the footer comp is built.
   ========================================================================== */
.site-footer {
	padding-block: var(--space-m);
	background: var(--color-bg-alt);
	color: var(--color-text);
}

/* Red links fall just short of 4.5:1 on this light gray, so use text color. */
.site-footer a {
	color: inherit;
}

.site-footer__copy {
	margin: 0;
}

/* ==========================================================================
   8. Components
   ========================================================================== */

/* Site contact (phone, address, social links) from Site Settings */
.site-contact {
	display: grid;
	gap: var(--space-xs);
	margin-bottom: var(--space-s);
}

.site-contact p,
.site-contact address {
	margin: 0;
	font-style: normal;
}

.site-contact__phone a,
.social-links a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-min);
	min-width: var(--tap-min);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs) var(--space-s);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ==========================================================================
   9. Content and templates
   Placeholder styling for pages, news and 404 until the comp is applied.
   ========================================================================== */
.container--narrow {
	width: min(100% - (2 * var(--gutter)), 50rem);
}

.page-header {
	margin-bottom: var(--space-m);
}

.page-title,
.entry-title {
	margin-bottom: var(--space-s);
}

.entry-meta,
.post-card__meta {
	margin: 0 0 var(--space-s);
	color: var(--color-text-muted);
}

.entry-content > * + * {
	margin-top: var(--space-s);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.link-tap {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-min);
}

.post-list {
	display: grid;
	gap: var(--space-m);
}

.post-card__title {
	margin-bottom: var(--space-xs);
}

.post-card__title a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-min);
}

.post-card__excerpt p {
	margin: 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-top: var(--space-m);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tap-min);
	min-height: var(--tap-min);
	padding: 0 0.75rem;
}

.pagination .page-numbers.current {
	background: var(--color-primary);
	color: var(--color-on-primary);
	font-weight: 700;
	text-decoration: none;
}

.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-s);
	margin-top: var(--space-m);
}

.post-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-min);
}

/* ==========================================================================
   10. Reduced motion
   Honors the visitor's OS setting. Anything that animates or moves longer
   than 5 seconds will also get a pause control when we build it.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
