/*!
Theme Name: DetailRivet
Theme URI: https://detailrivet.com
Author: DetailRivet
Author URI: https://detailrivet.com
Description: Editorial theme for DetailRivet — practical DIY car-detailing guides and product reviews. Image-led, responsive, light/dark.
Version: 2.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: detailrivet
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Originally scaffolded from Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Fonts
# Tokens (light + dark)
# Reset
# Base typography
# Layout primitives
# Accessibility
# Motion
# Header, nav, search, drawer
# Footer
# Listing: featured, grid, cards, media
# Article
# Roundup TOC
# Pagination + post navigation
# Forms + search form
# Comments
# Widgets + blocks
# Cookie notice
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/

/* Self-hosted (no third-party font CDN request — the site serves EU traffic).
   Newsreader is sliced to the weights this theme actually uses and pinned to
   one optical size, which takes it from 128 KB to 38 KB. */

@font-face {
	font-family: montserrat;
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(assets/fonts/montserrat-normal-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;
}

@font-face {
	font-family: montserrat;
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(assets/fonts/montserrat-normal-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: montserrat;
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/montserrat-italic-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;
}

@font-face {
	font-family: montserrat;
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/montserrat-italic-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/instrument-sans-normal-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;
}

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/instrument-sans-normal-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Sans";
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url(assets/fonts/instrument-sans-italic-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;
}

@font-face {
	font-family: "Instrument Sans";
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url(assets/fonts/instrument-sans-italic-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: newsreader;
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url(assets/fonts/newsreader-normal-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;
}

@font-face {
	font-family: newsreader;
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url(assets/fonts/newsreader-normal-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: newsreader;
	font-style: italic;
	font-weight: 400 500;
	font-display: swap;
	src: url(assets/fonts/newsreader-italic-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;
}

@font-face {
	font-family: newsreader;
	font-style: italic;
	font-weight: 400 500;
	font-display: swap;
	src: url(assets/fonts/newsreader-italic-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(assets/fonts/jetbrains-mono-normal-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;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(assets/fonts/jetbrains-mono-normal-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/

:root {

	/* DetailRivet palette — bright, clean and technical without feeling cold. */
	--drv-bg: #fff;
	--drv-bg-2: #f3f8fb;
	--drv-bg-3: #e5f0f6;
	--drv-ink: #0f2a3d;
	--drv-ink-2: #40586a;
	--drv-ink-3: #718496;
	--drv-line: #d5e3eb;
	--drv-accent: #007bff;
	--drv-accent-hover: #0065d6;
	--drv-accent-ink: #fff;
	--drv-accent-soft: rgba(0, 123, 255, 0.1);
	--drv-motif: rgba(0, 212, 255, 0.22);
	--drv-shade: rgba(15, 42, 61, 0.08);
	--drv-header-bg: rgba(255, 255, 255, 0.88);
	--drv-footer-bg: #0f2a3d;
	--drv-footer-ink: #fff;
	--drv-footer-ink-2: #b7c5cf;
	--drv-footer-line: #24475f;

	/* Type */
	--drv-font-ui: montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	--drv-font-serif: montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	--drv-font-mono: montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	--drv-fs-mono: 0.6875rem;
	--drv-fs-sm: 0.8125rem;
	--drv-fs-base: 0.9375rem;
	--drv-fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	--drv-fs-body: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
	--drv-fs-card: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
	--drv-fs-h3: clamp(1.1875rem, 1.08rem + 0.5vw, 1.4375rem);
	--drv-fs-h2: clamp(1.5rem, 1.28rem + 1vw, 2rem);
	--drv-fs-h1: clamp(2rem, 1.42rem + 2.6vw, 3.25rem);
	--drv-fs-display: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

	/* Rhythm */
	--drv-max: 1200px;
	--drv-measure: 68ch;
	--drv-gutter: clamp(1.25rem, 5vw, 2.5rem);
	--drv-block: clamp(3rem, 7vw, 5.5rem);
	--drv-radius: 8px;
	--drv-radius-lg: 18px;

	/* Motion */
	--drv-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--drv-dur-fast: 180ms;
	--drv-dur: 380ms;
	--drv-dur-slow: 640ms;

	color-scheme: light;
}

/* Dark — applied when the OS asks for it and the reader has not
   pinned light. */
@media (prefers-color-scheme: dark) {

	:root:not([data-drv-theme="light"]) {
		--drv-bg: #071925;
		--drv-bg-2: #0f2a3d;
		--drv-bg-3: #163b54;
		--drv-ink: #fff;
		--drv-ink-2: #bfd0dc;
		--drv-ink-3: #94a3b8;
		--drv-line: #24475f;
		--drv-accent: #00d4ff;
		--drv-accent-hover: #61e7ff;
		--drv-accent-ink: #0f2a3d;
		--drv-accent-soft: rgba(0, 212, 255, 0.14);
		--drv-motif: rgba(0, 212, 255, 0.2);
		--drv-shade: rgba(0, 0, 0, 0.4);
		--drv-header-bg: rgba(7, 25, 37, 0.9);
		--drv-footer-bg: #06141e;
		--drv-footer-ink: #fff;
		--drv-footer-ink-2: #94a3b8;
		--drv-footer-line: #18364a;

		color-scheme: dark;
	}
}

/* Dark — explicitly chosen with the header toggle, whatever the OS says. */
:root[data-drv-theme="dark"] {
	--drv-bg: #071925;
	--drv-bg-2: #0f2a3d;
	--drv-bg-3: #163b54;
	--drv-ink: #fff;
	--drv-ink-2: #bfd0dc;
	--drv-ink-3: #94a3b8;
	--drv-line: #24475f;
	--drv-accent: #00d4ff;
	--drv-accent-hover: #61e7ff;
	--drv-accent-ink: #0f2a3d;
	--drv-accent-soft: rgba(0, 212, 255, 0.14);
	--drv-motif: rgba(0, 212, 255, 0.2);
	--drv-shade: rgba(0, 0, 0, 0.4);
	--drv-header-bg: rgba(7, 25, 37, 0.9);
	--drv-footer-bg: #06141e;
	--drv-footer-ink: #fff;
	--drv-footer-ink-2: #94a3b8;
	--drv-footer-line: #18364a;

	color-scheme: dark;
}

/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--drv-bg);
	color: var(--drv-ink);
	font-family: var(--drv-font-ui);
	font-size: var(--drv-fs-base);
	line-height: 1.6;
	text-rendering: optimizelegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

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

img {
	height: auto;
}

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

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

table {
	border-collapse: collapse;
	width: 100%;
}

hr {
	border: 0;
	border-top: 1px solid var(--drv-line);
	margin: 2rem 0;
}

/*--------------------------------------------------------------
# Base typography
--------------------------------------------------------------*/

a {
	color: var(--drv-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--drv-dur-fast) var(--drv-ease);
}

a:hover {
	color: var(--drv-accent-hover);
}

::selection {
	background: var(--drv-accent);
	color: var(--drv-accent-ink);
}

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

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

/* Mono eyebrow used on cards, single posts, and section heads. */
.drv-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
}

.drv-kicker__cat {
	color: var(--drv-accent);
	text-decoration: none;
}

.drv-kicker__cat:hover {
	color: var(--drv-accent-hover);
	text-decoration: underline;
}

.drv-kicker__sep {
	color: var(--drv-line);
}

/*--------------------------------------------------------------
# Layout primitives
--------------------------------------------------------------*/

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.site-content {
	flex: 1 0 auto;
}

.site-main {
	max-width: var(--drv-max);
	margin-inline: auto;
	padding-inline: var(--drv-gutter);
	padding-block: clamp(2rem, 5vw, 4rem) var(--drv-block);
}

/* Reading column. Single posts and pages sit on a 68ch measure inside the
   same outer container, so gutters line up with the listing grid above. */
.drv-single .entry-header,
.drv-single .entry-content,
.drv-single .entry-footer,
.drv-single .drv-roundup-toc,
.drv-single .post-navigation,
.drv-single .comments-area {
	max-width: var(--drv-measure);
	margin-inline: auto;
}

/* 404 and empty-result pages put a measure-width block above a full-width
   grid, so these hang off the container's leading edge instead of centring —
   otherwise the copy and the cards below it start on different lines. */
.drv-error .page-header,
.drv-error .drv-error__search,
.drv-error .drv-error__cats,
.no-results {
	max-width: var(--drv-measure);
	margin-inline: 0 auto;
}

/* The lead image is a direct child of the article, not of the reading column,
   so it only needs to be capped and centred. */
.drv-media--hero {
	max-width: 1040px;
	margin-inline: auto;
}

/* Blocks that break out of the reading measure they are nested inside.
   The inline margins are negative by exactly enough to re-centre the
   block on the container, and collapse to zero once the viewport is
   narrower than the cap. */
.entry-content .alignwide {
	width: min(100vw - (var(--drv-gutter) * 2), 1040px);
	max-width: none;
	margin-inline: calc(50% - min(50vw - var(--drv-gutter), 520px));
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.entry-content .alignleft {
	float: inline-start;
	margin-inline-end: 1.5rem;
	margin-block-end: 1rem;
}

.entry-content .alignright {
	float: inline-end;
	margin-inline-start: 1.5rem;
	margin-block-end: 1rem;
}

.entry-content .aligncenter {
	margin-inline: auto;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

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

.skip-link:focus {
	background: var(--drv-ink);
	color: var(--drv-bg);
	clip-path: none;
	display: block;
	font-size: var(--drv-fs-sm);
	font-weight: 600;
	height: auto;
	inset-inline-start: 1rem;
	top: 1rem;
	padding: 0.7rem 1.1rem;
	position: fixed !important;
	text-decoration: none;
	width: auto;
	z-index: 1000;
	border-radius: var(--drv-radius);
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Motion
--------------------------------------------------------------*/

/* Cross-document page transitions where supported; a no-op elsewhere. */
/* stylelint-disable at-rule-no-unknown, property-no-unknown -- @view-transition
   post-dates stylelint 14's known-at-rule list. */
@view-transition {
	navigation: auto;
}
/* stylelint-enable at-rule-no-unknown, property-no-unknown */

/* Scroll reveal. Scoped to `.drv-js` so content is never hidden when the
   stylesheet loads but the script does not. */
.drv-js [data-drv-reveal] {
	opacity: 0;
	transform: translateY(16px);
	will-change: opacity, transform;
}

.drv-js [data-drv-reveal].is-revealed {
	opacity: 1;
	transform: none;
	transition:
		opacity var(--drv-dur-slow) var(--drv-ease),
		transform var(--drv-dur-slow) var(--drv-ease);
	transition-delay: var(--drv-reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.drv-js [data-drv-reveal] {
		opacity: 1;
		transform: none;
	}
}

/*--------------------------------------------------------------
# Header, nav, search, drawer
--------------------------------------------------------------*/

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--drv-header-bg);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition:
		transform var(--drv-dur) var(--drv-ease),
		border-color var(--drv-dur-fast) linear;
}

/* Sit below the admin bar for logged-in users. Core makes the bar 46px tall
   under 783px, and stops fixing it to the viewport under 601px. */
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {

	.admin-bar .site-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {

	.admin-bar .site-header {
		top: 0;
	}
}

/* Hairline appears only once the page has scrolled off the top. */
.site-header.is-stuck {
	border-bottom-color: var(--drv-line);
}

/* Retract on scroll down, return on scroll up. */
.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header__progress {
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 2px;
	background: var(--drv-accent);
	transform: scaleX(var(--drv-progress, 0));
	transform-origin: left center;
	z-index: 1;
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	max-width: var(--drv-max);
	margin-inline: auto;
	padding: 0.85rem var(--drv-gutter);
}

.site-branding {
	flex: 0 0 auto;
	min-width: 0;
}

.site-title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
	white-space: nowrap;
}

.site-title a {
	color: var(--drv-ink);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--drv-accent);
}

.site-description {
	display: none;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	display: block;
	max-height: 44px;
	max-width: clamp(11rem, 23vw, 15.5rem);
	width: auto;
}

/* The two transparent wordmarks swap without adding a backdrop. */
.custom-logo--dark {
	display: none;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-drv-theme="light"]) .custom-logo--light {
		display: none;
	}

	:root:not([data-drv-theme="light"]) .custom-logo--dark {
		display: block;
	}
}

:root[data-drv-theme="dark"] .custom-logo--light {
	display: none;
}

:root[data-drv-theme="dark"] .custom-logo--dark {
	display: block;
}

:root[data-drv-theme="light"] .custom-logo--light {
	display: block;
}

:root[data-drv-theme="light"] .custom-logo--dark {
	display: none;
}

.main-navigation {
	flex: 1 1 auto;
	min-width: 0;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.75rem);
	list-style: none;
}

.primary-menu a {
	position: relative;
	display: block;
	padding-block: 0.35rem;
	font-size: var(--drv-fs-sm);
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--drv-ink-2);
	text-decoration: none;
	white-space: nowrap;
}

/* Underline wipes in from the leading edge on hover, out to the trailing
   edge on leave — the direction change is what keeps it from feeling canned. */
.primary-menu a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 1px;
	background: currentcolor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform var(--drv-dur) var(--drv-ease);
}

.primary-menu a:hover {
	color: var(--drv-ink);
}

.primary-menu a:hover::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.primary-menu .current-menu-item > a,
.primary-menu .current-cat > a,
.primary-menu .current-menu-parent > a {
	color: var(--drv-ink);
}

.primary-menu .current-menu-item > a::after,
.primary-menu .current-cat > a::after {
	background: var(--drv-accent);
	transform: scaleX(1);
	transform-origin: left center;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-inline-start: auto;
	flex: 0 0 auto;
}

.drv-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--drv-ink-2);
	transition:
		background var(--drv-dur-fast) var(--drv-ease),
		color var(--drv-dur-fast) var(--drv-ease);
}

.drv-icon-btn:hover {
	background: var(--drv-bg-2);
	color: var(--drv-ink);
}

.drv-icon {
	width: 19px;
	height: 19px;
}

.drv-icon--close {
	display: none;
}

.drv-icon-btn[aria-expanded="true"] .drv-icon--search {
	display: none;
}

.drv-icon-btn[aria-expanded="true"] .drv-icon--close {
	display: block;
}

/* Sun/moon: one disc masked by a second circle, plus a ring of rays. Parked
   off-canvas the mask does nothing and the rays are out, so it reads as a sun;
   slide the mask over the disc and retract the rays and the same disc is a
   crescent. No icon swap, so the two states morph into each other. */
.drv-icon--theme .drv-icon__bite,
.drv-icon--theme .drv-icon__rays {
	transition:
		transform var(--drv-dur) var(--drv-ease),
		opacity var(--drv-dur-fast) var(--drv-ease);
	transform-origin: 12px 12px;
}

#drv-theme-toggle[aria-pressed="true"] .drv-icon__bite {
	transform: translate(-8px, 6px);
}

#drv-theme-toggle[aria-pressed="true"] .drv-icon__rays {
	opacity: 0;
	transform: scale(0.4) rotate(-45deg);
}

.drv-icon-btn--menu {
	display: none;
}

.drv-burger {
	display: block;
	width: 18px;
}

.drv-burger i {
	display: block;
	height: 1.5px;
	background: currentcolor;
	border-radius: 2px;
	transition: transform var(--drv-dur) var(--drv-ease);
}

.drv-burger i:first-child {
	margin-bottom: 5px;
}

#drv-menu-toggle[aria-expanded="true"] .drv-burger i:first-child {
	transform: translateY(3.25px) rotate(45deg);
}

#drv-menu-toggle[aria-expanded="true"] .drv-burger i:last-child {
	transform: translateY(-3.25px) rotate(-45deg);
}

/* Expanding search panel. Animating grid-template-rows lets the panel slide
   open to its natural height without hard-coding one. */
.site-header__search {
	display: grid;
	grid-template-rows: 0fr;
	border-top: 1px solid transparent;
	transition:
		grid-template-rows var(--drv-dur) var(--drv-ease),
		border-color var(--drv-dur) linear;
}

.site-header__search[hidden] {
	display: none;
}

.site-header__search.is-open {
	grid-template-rows: 1fr;
	border-top-color: var(--drv-line);
}

.site-header__search-inner {
	overflow: hidden;
}

.site-header__search .search-form {
	max-width: var(--drv-max);
	margin-inline: auto;
	padding: 1rem var(--drv-gutter) 1.15rem;
}

/* Mobile drawer */
.drv-drawer {
	position: fixed;
	inset: 0;
	z-index: 190;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2rem;
	padding: 5rem var(--drv-gutter) 3rem;
	background: var(--drv-bg);
	opacity: 0;
	transition: opacity var(--drv-dur) var(--drv-ease);
}

.drv-drawer[hidden] {
	display: none;
}

.drv-drawer.is-open {
	opacity: 1;
}

.drv-drawer__menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.drv-drawer__menu a {
	display: block;
	padding-block: 0.5rem;
	font-size: clamp(1.75rem, 9vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	color: var(--drv-ink);
	text-decoration: none;
}

.drv-drawer__menu a:hover {
	color: var(--drv-accent);
}

/* Items rise in one after another once the drawer opens. */
.drv-drawer__menu li {
	opacity: 0;
	transform: translateY(14px);
}

.drv-drawer.is-open .drv-drawer__menu li {
	opacity: 1;
	transform: none;
	transition:
		opacity var(--drv-dur) var(--drv-ease),
		transform var(--drv-dur) var(--drv-ease);
	transition-delay: calc(60ms + var(--drv-i, 0) * 45ms);
}

body.drv-drawer-open {
	overflow: hidden;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.site-footer {
	background: var(--drv-footer-bg);
	color: var(--drv-footer-ink-2);
	margin-top: var(--drv-block);

	/* In dark mode the footer sits only a shade below the page; the hairline is
	   what separates them. In light mode it reads as the footer's own edge. */
	border-top: 1px solid var(--drv-footer-line);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 4rem);
	max-width: var(--drv-max);
	margin-inline: auto;
	padding: clamp(3rem, 6vw, 4.5rem) var(--drv-gutter) clamp(2rem, 4vw, 3rem);
}

.site-footer__wordmark {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--drv-footer-ink);
	text-wrap: balance;
}

.site-footer__tagline {
	margin-top: 0.9rem;
	max-width: 34ch;
	font-size: var(--drv-fs-sm);
	color: var(--drv-footer-ink-2);
}

.site-footer__heading {
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--drv-footer-ink-2);
	margin-bottom: 1.1rem;
}

.site-footer__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	font-size: var(--drv-fs-sm);
}

.site-footer__list a {
	color: var(--drv-footer-ink);
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--drv-accent);
}

.site-info {
	max-width: var(--drv-max);
	margin-inline: auto;
	padding: 1.5rem var(--drv-gutter) clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--drv-footer-line);
}

.drv-disclosure--footer {
	max-width: 78ch;
	font-size: var(--drv-fs-sm);
	line-height: 1.65;
	color: var(--drv-footer-ink-2);
}

.drv-disclosure__statement {
	font-weight: 600;
}

.drv-disclosure--footer .drv-disclosure__statement {
	color: var(--drv-footer-ink);
}

.site-info__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--drv-footer-ink-2);
}

.site-info__copyright {
	margin: 0;
}

.site-info__top {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--drv-footer-ink);
	text-decoration: none;
}

.site-info__top span {
	transition: transform var(--drv-dur) var(--drv-ease);
}

.site-info__top:hover {
	color: var(--drv-accent);
}

.site-info__top:hover span {
	transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Listing: featured, grid, cards, media
--------------------------------------------------------------*/

.page-header {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.page-title {
	font-size: var(--drv-fs-h1);
}

.archive-description {
	margin-top: 1rem;
	max-width: 60ch;
	font-size: var(--drv-fs-lead);
	color: var(--drv-ink-2);
}

/* Media: one shape for cards, the featured slot, and article heroes. */
.drv-media {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--drv-bg-2);
	border-radius: var(--drv-radius-lg);
	aspect-ratio: 3 / 2;
}

.drv-media--featured,
.drv-media--hero {
	aspect-ratio: 16 / 10;
}

.drv-media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--drv-dur-slow) var(--drv-ease);
}

/* Stand-in for posts with no featured image yet: a hairline motif behind the
   category name. Four motifs, picked from the post ID, so a grid of
   image-less posts still reads as designed rather than broken. */
.drv-media__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 1rem;
	background-color: var(--drv-bg-2);
	transition: transform var(--drv-dur-slow) var(--drv-ease);
}

/* A soft vignette from the bottom-leading corner keeps the label legible over
   whichever motif the post drew. */
.drv-media__placeholder::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--drv-bg-2), transparent 55%);
}

.drv-media__placeholder[data-motif="0"] {
	background-image: radial-gradient(var(--drv-motif) 1.5px, transparent 1.6px);
	background-size: 13px 13px;
}

.drv-media__placeholder[data-motif="1"] {
	background-image: repeating-linear-gradient(-45deg, var(--drv-motif) 0 1px, transparent 1px 10px);
}

.drv-media__placeholder[data-motif="2"] {
	background-image:
		linear-gradient(var(--drv-motif) 1px, transparent 1px),
		linear-gradient(90deg, var(--drv-motif) 1px, transparent 1px);
	background-size: 24px 24px;
}

.drv-media__placeholder[data-motif="3"] {
	background-image: repeating-radial-gradient(circle at 82% 18%, var(--drv-motif) 0 1px, transparent 1px 16px);
}

.drv-media__placeholder-label {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--drv-ink-2);
}

.drv-media__placeholder-label::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background: var(--drv-ink-2);
}

/* Featured slot */
.drv-featured {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
	border-bottom: 1px solid var(--drv-line);
}

@media (min-width: 860px) {

	.drv-featured {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	}
}

.drv-featured__title {
	font-size: var(--drv-fs-display);
	margin-bottom: 1.15rem;
}

.drv-featured__title a {
	color: var(--drv-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--drv-accent), var(--drv-accent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 2px;
	transition: background-size var(--drv-dur) var(--drv-ease);
}

.drv-featured__title a:hover {
	background-size: 100% 2px;
}

.drv-featured__excerpt {
	max-width: 46ch;
	font-family: var(--drv-font-serif);
	font-size: var(--drv-fs-lead);
	line-height: 1.6;
	color: var(--drv-ink-2);
}

.drv-featured:hover .drv-media__img,
.drv-featured:hover .drv-media__placeholder {
	transform: scale(1.03);
}

.drv-readmore {
	margin-top: 1.5rem;
	font-size: var(--drv-fs-sm);
	font-weight: 600;
}

.drv-readmore a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
}

.drv-readmore__arrow {
	transition: transform var(--drv-dur) var(--drv-ease);
}

.drv-readmore a:hover .drv-readmore__arrow {
	transform: translateX(5px);
}

/* Section head */
.drv-section {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.drv-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	padding-bottom: 1.1rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
	border-bottom: 1px solid var(--drv-ink);
}

.drv-section__title {
	font-size: var(--drv-fs-h3);
}

.drv-section__count {
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
	white-space: nowrap;
}

/* Grid */
.drv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

.drv-card__body {
	padding-top: 1.15rem;
}

.drv-card__title {
	font-size: var(--drv-fs-card);
	margin-bottom: 0.65rem;
	text-wrap: pretty;
}

.drv-card__title a {
	color: var(--drv-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--drv-accent), var(--drv-accent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1.5px;
	transition: background-size var(--drv-dur) var(--drv-ease);
}

.drv-card:hover .drv-card__title a,
.drv-card__title a:focus-visible {
	background-size: 100% 1.5px;
}

.drv-card:hover .drv-media__img,
.drv-card:hover .drv-media__placeholder {
	transform: scale(1.04);
}

.drv-card__excerpt {
	color: var(--drv-ink-2);
	font-size: var(--drv-fs-base);
	line-height: 1.6;
}

.drv-card__excerpt p {
	margin: 0;
}

.drv-card__meta {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--drv-line);
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
}

/* 404 */
.drv-error__search {
	margin-bottom: 2rem;
}

.drv-chiplist {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.drv-chiplist a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--drv-line);
	border-radius: 999px;
	font-size: var(--drv-fs-sm);
	color: var(--drv-ink-2);
	text-decoration: none;
	transition:
		border-color var(--drv-dur-fast) var(--drv-ease),
		color var(--drv-dur-fast) var(--drv-ease);
}

.drv-chiplist a:hover {
	border-color: var(--drv-accent);
	color: var(--drv-accent);
}

/*--------------------------------------------------------------
# Article
--------------------------------------------------------------*/

.entry-title {
	font-size: var(--drv-fs-h1);
}

.entry-standfirst {
	margin-top: 1.25rem;
	font-family: var(--drv-font-serif);
	font-size: var(--drv-fs-lead);
	line-height: 1.55;
	color: var(--drv-ink-2);
	text-wrap: pretty;
}

.entry-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 1rem;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--drv-line);
	font-size: var(--drv-fs-sm);
	color: var(--drv-ink-2);
}

.entry-byline__author {
	color: var(--drv-ink);
	font-weight: 600;
	text-decoration: none;
}

.entry-byline__author:hover {
	color: var(--drv-accent);
}

.entry-byline__updated {
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
}

.drv-media--hero {
	margin-block: clamp(2rem, 5vw, 3.25rem);
}

.entry-content {
	margin-top: clamp(2rem, 5vw, 3rem);
	font-family: var(--drv-font-serif);
	font-size: var(--drv-fs-body);
	line-height: 1.7;
}

.entry-content > * + * {
	margin-top: 1.35em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--drv-font-ui);
	letter-spacing: -0.028em;
}

.entry-content h2 {
	font-size: var(--drv-fs-h2);
	margin-top: 2.1em;
}

.entry-content h3 {
	font-size: var(--drv-fs-h3);
	margin-top: 1.9em;
}

.entry-content h4 {
	font-size: 1.0625rem;
	margin-top: 1.75em;
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.4em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content a {
	text-decoration: underline;
}

.entry-content blockquote {
	padding-inline-start: 1.5rem;
	border-inline-start: 2px solid var(--drv-accent);
	font-size: 1.15em;
	font-style: italic;
	color: var(--drv-ink-2);
}

.entry-content img,
.entry-content figure img {
	border-radius: var(--drv-radius-lg);
}

.entry-content figcaption,
.wp-caption-text {
	margin-top: 0.7rem;
	font-family: var(--drv-font-ui);
	font-size: var(--drv-fs-sm);
	color: var(--drv-ink-3);
}

.entry-content pre {
	background: var(--drv-bg-2);
	border-radius: var(--drv-radius-lg);
	padding: 1.25rem;
	overflow-x: auto;
}

.entry-content table {
	font-family: var(--drv-font-ui);
	font-size: var(--drv-fs-base);
	display: block;
	overflow-x: auto;
}

.entry-content th,
.entry-content td {
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--drv-line);
	text-align: start;
}

.entry-content th {
	font-weight: 600;
	border-bottom-color: var(--drv-ink);
}

/* Amazon disclosure above affiliate posts. */
.entry-content > p.drv-disclosure {
	margin-top: 0;
	padding: 0.9rem 1.15rem;
	border-inline-start: 2px solid var(--drv-accent);
	background: var(--drv-accent-soft);
	border-radius: 0 var(--drv-radius) var(--drv-radius) 0;
	font-family: var(--drv-font-ui);
	font-size: var(--drv-fs-sm);
	line-height: 1.6;
	color: var(--drv-ink-2);
}

.entry-content > p.drv-disclosure .drv-disclosure__statement {
	color: var(--drv-ink);
}

.entry-footer {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--drv-line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
}

.entry-footer a {
	color: var(--drv-ink-2);
	text-decoration: none;
}

.entry-footer a:hover {
	color: var(--drv-accent);
}

/*--------------------------------------------------------------
# Roundup TOC
--------------------------------------------------------------*/

.drv-roundup-toc {
	margin-top: clamp(2rem, 5vw, 3rem);
	padding: 1.5rem 1.75rem;
	background: var(--drv-bg-2);
	border-radius: var(--drv-radius-lg);
}

.drv-roundup-toc__label {
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
	margin-bottom: 0.9rem;
}

.drv-roundup-toc__list {
	list-style: none;
	counter-reset: drv-toc;
	display: grid;
	gap: 0.55rem;
}

.drv-roundup-toc__list li {
	counter-increment: drv-toc;
	display: flex;
	gap: 0.85rem;
	font-size: var(--drv-fs-base);
}

.drv-roundup-toc__list li::before {
	content: counter(drv-toc, decimal-leading-zero);
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	color: var(--drv-ink-3);
	padding-top: 0.2em;
}

.drv-roundup-toc__list a {
	color: var(--drv-ink);
	text-decoration: none;
	font-weight: 500;
}

.drv-roundup-toc__list a:hover {
	color: var(--drv-accent);
}

/*--------------------------------------------------------------
# Pagination + post navigation
--------------------------------------------------------------*/

.pagination {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--drv-line);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-sm);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 0.7rem;
	border-radius: var(--drv-radius);
	color: var(--drv-ink-2);
	text-decoration: none;
	transition: background var(--drv-dur-fast) var(--drv-ease);
}

.pagination a.page-numbers:hover {
	background: var(--drv-bg-2);
	color: var(--drv-ink);
}

.pagination .page-numbers.current {
	background: var(--drv-ink);
	color: var(--drv-bg);
}

.post-navigation {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 1.75rem;
	border-top: 1px solid var(--drv-line);
}

.post-navigation .nav-links {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 700px) {

	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	/* Pin "next" to the second column so a post with only a next link still
	   sits on the right, rather than sliding into the empty first column. */
	.post-navigation .nav-next {
		grid-column: 2;
		text-align: end;
	}
}

.post-navigation a {
	display: block;
	text-decoration: none;
	color: var(--drv-ink);
}

.post-navigation .nav-subtitle {
	display: block;
	margin-bottom: 0.45rem;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
}

.post-navigation .nav-title {
	font-size: var(--drv-fs-h3);
	font-weight: 600;
	letter-spacing: -0.028em;
	line-height: 1.2;
}

.post-navigation a:hover .nav-title {
	color: var(--drv-accent);
}

/*--------------------------------------------------------------
# Forms + search form
--------------------------------------------------------------*/

.search-form {
	display: flex;
	gap: 0.6rem;
}

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

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	background: var(--drv-bg);
	color: var(--drv-ink);
	border: 1px solid var(--drv-line);
	border-radius: var(--drv-radius);
	padding: 0.7rem 0.95rem;
	transition: border-color var(--drv-dur-fast) var(--drv-ease);
}

input::placeholder,
textarea::placeholder {
	color: var(--drv-ink-3);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--drv-ink);
	outline: none;
}

textarea {
	resize: vertical;
	min-height: 9rem;
}

.drv-btn,
.search-form .search-submit,
.comment-form .submit,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--drv-ink);
	color: var(--drv-bg);
	border: 1px solid var(--drv-ink);
	border-radius: var(--drv-radius);
	padding: 0.7rem 1.5rem;
	font-size: var(--drv-fs-sm);
	font-weight: 600;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition:
		background var(--drv-dur-fast) var(--drv-ease),
		border-color var(--drv-dur-fast) var(--drv-ease),
		color var(--drv-dur-fast) var(--drv-ease);
}

.drv-btn:hover,
.search-form .search-submit:hover,
.comment-form .submit:hover,
input[type="submit"]:hover {
	background: var(--drv-accent);
	border-color: var(--drv-accent);
	color: var(--drv-accent-ink);
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/

.comments-area {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--drv-line);
}

.comments-title,
.comment-reply-title {
	font-size: var(--drv-fs-h3);
	margin-bottom: 1.5rem;
}

.comment-list {
	list-style: none;
	display: grid;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

.comment-list .comment-body {
	padding: 1.25rem 1.5rem;
	background: var(--drv-bg-2);
	border-radius: var(--drv-radius-lg);
}

.comment-list .children {
	list-style: none;
	margin-top: 1.25rem;
	padding-inline-start: clamp(1rem, 4vw, 2rem);
	display: grid;
	gap: 1.25rem;
}

.comment-meta {
	margin-bottom: 0.75rem;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
}

.comment-author .fn {
	color: var(--drv-ink);
	font-style: normal;
	font-weight: 600;
}

.comment-content {
	font-family: var(--drv-font-serif);
	font-size: var(--drv-fs-base);
}

.comment-content a {
	word-wrap: break-word;
}

.comment-respond {
	padding: clamp(1.5rem, 4vw, 2rem);
	background: var(--drv-bg-2);
	border-radius: var(--drv-radius-lg);
}

.comment-form {
	display: grid;
	gap: 1rem;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: var(--drv-fs-sm);
	font-weight: 600;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
	font-size: var(--drv-fs-sm);
	color: var(--drv-ink-2);
}

.comment-form .form-submit {
	margin-top: 0.25rem;
}

/*--------------------------------------------------------------
# Widgets + blocks
--------------------------------------------------------------*/

.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--drv-ink-3);
	margin-bottom: 1rem;
}

.widget ul,
.wp-block-latest-posts,
.wp-block-archives,
.wp-block-categories {
	list-style: none;
	display: grid;
	gap: 0.55rem;
	font-size: var(--drv-fs-base);
}

.widget a {
	color: var(--drv-ink);
	text-decoration: none;
}

.widget a:hover {
	color: var(--drv-accent);
}

.wp-block-search__inside-wrapper {
	display: flex;
	gap: 0.6rem;
}

.wp-block-search__input {
	flex: 1;
}

.gallery {
	display: grid;
	gap: 1rem;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.sticky .drv-card__title::after {
	content: " ★";
	color: var(--drv-accent);
}

.updated:not(.published) {
	display: none;
}

.page-links {
	margin-top: 2rem;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-sm);
}

/*--------------------------------------------------------------
# Cookie notice
--------------------------------------------------------------*/

.drv-cookie-notice {
	position: fixed;
	inset-inline: 1rem;
	bottom: 1rem;
	z-index: 300;
	max-width: 40rem;
	margin-inline: auto;
	background: var(--drv-ink);
	color: var(--drv-bg);
	border-radius: var(--drv-radius-lg);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
	animation: drv-slide-up var(--drv-dur-slow) var(--drv-ease) both;
}

@keyframes drv-slide-up {

	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.drv-cookie-notice[hidden] {
	display: none;
}

.drv-cookie-notice__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.1rem 1.35rem;
}

.drv-cookie-notice p {
	flex: 1;
	margin: 0;
	font-size: var(--drv-fs-sm);
	line-height: 1.55;
}

.drv-cookie-notice a {
	color: var(--drv-accent);
}

.drv-cookie-notice__actions {
	flex-shrink: 0;
	display: flex;
	gap: 0.5rem;
}

.drv-cookie-notice__btn {
	background: var(--drv-bg);
	color: var(--drv-ink);
	border: 1px solid var(--drv-bg);
	border-radius: var(--drv-radius);
	padding: 0.55rem 1.2rem;
	font-size: var(--drv-fs-sm);
	font-weight: 600;
	transition:
		background var(--drv-dur-fast) var(--drv-ease),
		color var(--drv-dur-fast) var(--drv-ease);
}

.drv-cookie-notice__btn:hover {
	background: var(--drv-accent);
	border-color: var(--drv-accent);
	color: var(--drv-accent-ink);
}

.drv-cookie-notice__btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.28);
	color: var(--drv-bg);
}

.drv-cookie-notice__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--drv-bg);
}

/*--------------------------------------------------------------
# Small screens
--------------------------------------------------------------*/

@media (max-width: 767px) {

	.main-navigation {
		display: none;
	}

	.drv-icon-btn--menu {
		display: inline-flex;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.drv-cookie-notice__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.drv-cookie-notice__actions {
		justify-content: stretch;
	}

	.drv-cookie-notice__btn {
		flex: 1;
	}
}

@media (min-width: 768px) {

	.drv-drawer {
		display: none !important;
	}
}

/* ---------------------------------------------------------------
 * Article sharing
 * ------------------------------------------------------------ */

.drv-share {
	display: grid;
	gap: 1.25rem;
	max-width: var(--drv-measure);
	margin: clamp(2.75rem, 7vw, 5rem) auto 0;
	padding: clamp(1.25rem, 4vw, 1.75rem);
	border: 1px solid var(--drv-line);
	border-radius: var(--drv-radius-lg);
	background:
		linear-gradient(135deg, var(--drv-accent-soft), transparent 42%),
		var(--drv-bg-2);
}

.drv-share__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
}

.drv-share__eyebrow {
	margin: 0;
	font-family: var(--drv-font-mono);
	font-size: var(--drv-fs-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--drv-accent);
}

.drv-share h2 {
	margin: 0;
	font-family: var(--drv-font-serif);
	font-size: var(--drv-fs-h3);
	font-weight: 400;
}

.drv-share__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.55rem;
}

.drv-share__button {
	display: grid;
	place-items: center;
	gap: 0.4rem;
	min-height: 4.5rem;
	padding: 0.7rem 0.35rem;
	border: 0;
	border-radius: var(--drv-radius);
	background: var(--drv-social);
	color: #fff;
	font: 600 0.72rem/1.1 var(--drv-font-ui);
	text-decoration: none;
	cursor: pointer;
	transition:
		transform var(--drv-dur-fast) var(--drv-ease),
		filter var(--drv-dur-fast) linear;
}

.drv-share__button:hover,
.drv-share__button:focus-visible {
	color: #fff;
	filter: brightness(0.9);
	transform: translateY(-2px);
}

.drv-share__button svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: currentcolor;
}

.drv-share__button--whatsapp {
	--drv-social: #25d366;
}

.drv-share__button--imessage {
	--drv-social: #34c759;
}

.drv-share__button--facebook {
	--drv-social: #1877f2;
}

.drv-share__button--instagram {
	--drv-social: linear-gradient(135deg, #833ab4, #e1306c 55%, #fcb045);
}

.drv-share__button--threads {
	--drv-social: #242424;
}

.drv-share__button--x {
	--drv-social: #000;
}

.drv-share__status {
	min-height: 1.2em;
	margin: -0.5rem 0 0;
	font-size: var(--drv-fs-sm);
	color: var(--drv-ink-2);
}

/* ---------------------------------------------------------------
 * Newsletter popup
 * ------------------------------------------------------------ */

.site-footer__newsletter {
	margin-top: 1.25rem;
	padding: 0.72rem 1rem;
	border: 1px solid var(--drv-footer-line);
	border-radius: var(--drv-radius);
	background: transparent;
	color: var(--drv-footer-ink);
	font: 600 var(--drv-fs-sm)/1 var(--drv-font-ui);
	cursor: pointer;
}

.site-footer__newsletter:hover,
.site-footer__newsletter:focus-visible {
	border-color: var(--drv-accent);
	color: var(--drv-accent);
}

.drv-newsletter {
	width: min(920px, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--drv-bg);
	color: var(--drv-ink);
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
	overflow: auto;
}

.drv-newsletter::backdrop {
	background: rgba(12, 11, 10, 0.74);
	backdrop-filter: blur(7px);
}

.drv-newsletter__shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.45fr);
	min-height: 540px;
}

.drv-newsletter__close {
	position: absolute;
	z-index: 2;
	inset-block-start: 0.75rem;
	inset-inline-end: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--drv-line);
	border-radius: 50%;
	background: var(--drv-bg);
	color: var(--drv-ink);
	font: 400 1.55rem/1 var(--drv-font-ui);
	cursor: pointer;
}

.drv-newsletter__art {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background:
		radial-gradient(circle at 78% 38%, rgba(0, 212, 255, 0.34), transparent 33%),
		linear-gradient(145deg, #071925 0%, #0f2a3d 58%, #005ab9 100%);
	color: #fff;
	overflow: hidden;
}

.drv-newsletter__art::before {
	content: "";
	position: absolute;
	inset: auto -5rem -8rem auto;
	width: 18rem;
	height: 18rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	box-shadow: 0 0 0 3.5rem rgba(0, 212, 255, 0.06);
	pointer-events: none;
}

.drv-newsletter__art > * {
	position: relative;
}

.drv-newsletter__kicker {
	font: 700 var(--drv-fs-mono)/1.2 var(--drv-font-ui);
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #00d4ff;
}

.drv-newsletter__art img {
	align-self: center;
	width: min(82%, 220px);
	height: auto;
	filter: drop-shadow(0 1.25rem 2rem rgba(0, 0, 0, 0.38));
}

.drv-newsletter__art p {
	max-width: 18ch;
	margin: 0;
	font: 700 1.35rem/1.25 var(--drv-font-ui);
	letter-spacing: -0.02em;
}

.drv-newsletter__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2rem, 6vw, 4rem);
}

.drv-newsletter__eyebrow {
	margin: 0 0 0.85rem;
	font: 600 var(--drv-fs-mono)/1 var(--drv-font-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--drv-accent);
}

.drv-newsletter h2 {
	max-width: 13ch;
	margin: 0;
	font: 400 clamp(2rem, 5vw, 3.2rem)/0.98 var(--drv-font-serif);
	letter-spacing: -0.025em;
}

.drv-newsletter__lede {
	max-width: 46ch;
	margin: 1.1rem 0 1.7rem;
	font: var(--drv-fs-base)/1.6 var(--drv-font-ui);
	color: var(--drv-ink-2);
}

.drv-newsletter__form > label:not(.drv-newsletter__consent) {
	display: block;
	margin: 0.8rem 0 0.35rem;
	font: 600 var(--drv-fs-sm)/1.3 var(--drv-font-ui);
}

.drv-newsletter__form > label span {
	font-weight: 400;
	color: var(--drv-ink-3);
}

.drv-newsletter input[type="text"],
.drv-newsletter input[type="email"] {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--drv-line);
	border-radius: var(--drv-radius);
	background: var(--drv-bg-2);
	color: var(--drv-ink);
	font: var(--drv-fs-base)/1 var(--drv-font-ui);
}

.drv-newsletter__email-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.55rem;
}

.drv-newsletter__email-row button {
	padding: 0.8rem 1.1rem;
	border: 0;
	border-radius: var(--drv-radius);
	background: var(--drv-accent);
	color: var(--drv-accent-ink);
	font: 700 var(--drv-fs-sm)/1 var(--drv-font-ui);
	cursor: pointer;
}

.drv-newsletter__email-row button:disabled {
	opacity: 0.55;
	cursor: wait;
}

.drv-newsletter__consent {
	display: grid;
	grid-template-columns: 1.1rem 1fr;
	gap: 0.6rem;
	align-items: start;
	margin-top: 0.9rem;
	font: var(--drv-fs-sm)/1.45 var(--drv-font-ui);
	color: var(--drv-ink-2);
}

.drv-newsletter__consent input {
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	accent-color: var(--drv-accent);
}

.drv-newsletter__status {
	min-height: 1.35em;
	margin: 0.8rem 0 0;
	font: 600 var(--drv-fs-sm)/1.45 var(--drv-font-ui);
	color: var(--drv-accent);
}

.drv-newsletter__form.is-complete .drv-newsletter__email-row,
.drv-newsletter__form.is-complete > label,
.drv-newsletter__form.is-complete > input,
.drv-newsletter__form.is-complete .drv-newsletter__consent {
	display: none;
}

.drv-newsletter__fineprint {
	margin: 0.35rem 0 0;
	font: 0.75rem/1.5 var(--drv-font-ui);
	color: var(--drv-ink-3);
}

.drv-newsletter__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.drv-newsletter-open {
	overflow: hidden;
}

.drv-newsletter-notice {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 0.8rem var(--drv-gutter);
	background: var(--drv-accent);
	color: var(--drv-accent-ink);
	font: 600 var(--drv-fs-sm)/1.4 var(--drv-font-ui);
}

.drv-newsletter-notice p {
	margin: 0;
}

.drv-newsletter-notice a {
	color: inherit;
	font-size: 1.3rem;
	text-decoration: none;
}

@media screen and (max-width: 760px) {

	.drv-share__heading {
		display: block;
	}

	.drv-share h2 {
		margin-top: 0.2rem;
	}

	.drv-share__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.drv-newsletter__shell {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.drv-newsletter__art {
		min-height: 130px;
		padding: 1.25rem;
	}

	.drv-newsletter__art img {
		position: absolute;
		inset: -1.7rem 1.5rem auto auto;
		width: 150px;
		opacity: 0.82;
	}

	.drv-newsletter__art p {
		margin-top: 2rem;
		font-size: 1.2rem;
	}

	.drv-newsletter__content {
		padding: 2rem 1.25rem;
	}
}

@media screen and (max-width: 460px) {

	.drv-share__button span {
		font-size: 0.65rem;
	}

	.drv-newsletter__email-row {
		grid-template-columns: 1fr;
	}

	.drv-newsletter__email-row button {
		min-height: 3rem;
	}
}

@media (prefers-reduced-motion: reduce) {

	.drv-share__button {
		transition: none;
	}
}
