/* ==========================================================================
   Turbo Reman Center: site-wide styles (tokens, base, components, header, footer)
   ========================================================================== */

/* Fonts (self-hosted, SIL OFL) ------------------------------------------- */

@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/rubik-latin-wght-normal.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: "Rubik";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/rubik-latin-ext-wght-normal.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: "Saira Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/saira-condensed-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Saira Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/saira-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Saira Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/saira-condensed-latin-700-normal.woff2") format("woff2");
}

/* Tokens ------------------------------------------------------------------ */

:root {
	--c-red: #e52727;
	--c-red-600: #c81e1e;
	--c-red-700: #a51616;
	--c-red-50: #fdeeee;
	--c-red-on-dark: #ff3d3d;
	--c-ink: #161616;
	--c-text: #454545;
	--c-muted: #666;
	--c-line: #e4e2e0;
	--c-line-strong: #cfcccb;
	--c-surface: #f4f3f2;
	--c-white: #fff;
	--c-dark: #141414;
	--c-dark-2: #1c1c1c;
	--c-dark-3: #2b2b2b;
	--c-on-dark: #f3f3f3;
	--c-on-dark-muted: #b9b9b9;
	--c-star: #f5b400;

	--font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Saira Condensed", "Arial Narrow", sans-serif;

	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 14px;
	--radius-pill: 999px;

	--shadow-1: 0 1px 2px rgb(20 20 20 / 0.06), 0 10px 24px -14px rgb(20 20 20 / 0.28);
	--shadow-2: 0 2px 6px rgb(20 20 20 / 0.06), 0 28px 56px -28px rgb(20 20 20 / 0.45);
	--shadow-pop: 0 0 0 1px rgb(20 20 20 / 0.05), 0 4px 10px rgb(20 20 20 / 0.06), 0 18px 36px -18px rgb(20 20 20 / 0.4);

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

	--container: 1280px;
	--gutter: clamp(16px, 4vw, 32px);
	--space-section: clamp(64px, 8vw, 120px);
	--header-top: 64px;
	--header-nav: 0px;
	--z-header: 50;
}

@media (min-width: 1024px) {
	:root {
		--header-top: 88px;
		--header-nav: 64px;
	}
}

/* Base -------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	scroll-padding-top: calc(var(--header-nav) + var(--header-top) + 16px);
	accent-color: var(--c-red);
	scrollbar-color: #bdbab8 transparent;
}

@media (min-width: 1024px) {
	html {
		scroll-padding-top: calc(var(--header-nav) + 16px);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	caret-color: var(--c-red);
}

::selection {
	background: var(--c-red);
	color: var(--c-white);
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--c-ink);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

p + p {
	margin-top: 1em;
}

a {
	color: var(--c-red-600);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.15s ease;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

figure,
blockquote,
dl,
dd {
	margin: 0;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

button,
a,
summary,
[role="button"] {
	touch-action: manipulation;
}

button,
.btn,
summary {
	-webkit-user-select: none;
	user-select: none;
}

input,
textarea,
select {
	font: inherit;
	font-size: max(16px, 1rem);
	color: var(--c-ink);
}

:focus-visible {
	outline: 3px solid var(--c-red);
	outline-offset: 3px;
	border-radius: 4px;
}

.site-footer :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.brands :focus-visible,
.proof :focus-visible,
.social :focus-visible {
	outline-color: var(--c-white);
}

[hidden] {
	display: none !important;
}

/* Utilities --------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* .screen-reader-text is WordPress's and WooCommerce's name for the same thing. */
.sr-only,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 12px 20px;
	border-radius: var(--radius-pill);
	background: var(--c-ink);
	color: var(--c-white);
	font-weight: 500;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-main:focus {
	outline: none;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: currentColor;
}

.stars {
	display: inline-flex;
	gap: 2px;
	color: var(--c-star);
}

.stars .icon {
	width: 18px;
	height: 18px;
}

.stars--small .icon {
	width: 15px;
	height: 15px;
}

.link-quiet {
	color: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--c-line-strong);
}

.trc-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
	--btn-bg: transparent;
	--btn-fg: var(--c-ink);
	--btn-border: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0.7em 1.6em;
	border: 2px solid var(--btn-border);
	border-radius: var(--radius-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease,
		transform 0.16s var(--ease-out);
}

.btn:active {
	transform: scale(0.97);
}

.btn .icon {
	width: 1.15em;
	height: 1.15em;
}

.btn--primary {
	--btn-bg: var(--c-red);
	--btn-fg: var(--c-white);
	--btn-border: var(--c-red);
}

.btn--outline {
	--btn-border: var(--c-red);
	--btn-fg: var(--c-ink);
}

.btn--ghost-light {
	--btn-border: rgb(255 255 255 / 0.55);
	--btn-fg: var(--c-white);
}

.btn--ghost-dark {
	--btn-border: var(--c-line-strong);
	--btn-fg: var(--c-ink);
}

.btn--light {
	--btn-bg: var(--c-white);
	--btn-fg: var(--c-ink);
	--btn-border: var(--c-white);
}

.btn--lg {
	min-height: 56px;
	padding: 0.85em 1.9em;
	font-size: 1.0625rem;
}

.btn--block {
	width: 100%;
}

@media (hover: hover) and (pointer: fine) {
	.btn--primary:hover {
		--btn-bg: var(--c-red-600);
		--btn-border: var(--c-red-600);
	}

	.btn--outline:hover {
		--btn-bg: var(--c-red);
		--btn-fg: var(--c-white);
	}

	.btn--ghost-light:hover {
		--btn-bg: var(--c-white);
		--btn-fg: var(--c-ink);
		--btn-border: var(--c-white);
	}

	.btn--ghost-dark:hover {
		--btn-border: var(--c-ink);
	}

	.btn--light:hover {
		--btn-bg: #efefef;
		--btn-border: #efefef;
	}

	.btn:hover {
		color: var(--btn-fg);
	}

	:where(.prose, .site-main--fallback, .search-empty) a:hover {
		color: var(--c-red-700);
	}
}

/* Header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--c-white);
	transition: box-shadow 0.2s ease;
}

.site-header.is-stuck {
	box-shadow: 0 1px 0 var(--c-line), 0 12px 24px -20px rgb(20 20 20 / 0.5);
}

@media (min-width: 1024px) {
	.site-header {
		top: calc(-1 * var(--header-top));
	}
}

.site-header__top-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--header-top);
	padding-top: env(safe-area-inset-top, 0px);
}

.site-logo {
	display: block;
	flex: none;
	width: clamp(124px, 36vw, 158px);
	text-decoration: none;
}

.site-logo__img {
	width: 100%;
	height: auto;
}

.site-logo__text {
	color: var(--c-ink);
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
}

.site-header__search {
	display: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0;
	margin-left: auto;
	margin-right: -6px;
}

@media (max-width: 1023px) {
	.header-call {
		padding: 0;
	}

	.header-call,
	.header-cart {
		justify-content: center;
		width: 44px;
	}
}

.header-action {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px;
	border-radius: var(--radius-sm);
	color: var(--c-ink);
	text-decoration: none;
}

.header-action__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	color: var(--c-ink);
}

.header-action__icon .icon {
	width: 26px;
	height: 26px;
}

.header-action__text {
	display: none;
	flex-direction: column;
	line-height: 1.2;
}

.header-action__text small {
	color: var(--c-muted);
	font-size: 0.8125rem;
}

.header-action__text strong {
	color: var(--c-ink);
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 600;
	white-space: nowrap;
}

.header-call .header-action__icon {
	color: var(--c-red);
}

.header-cart__count {
	position: absolute;
	top: -4px;
	right: -6px;
	display: grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding-inline: 5px;
	border-radius: var(--radius-pill);
	background: var(--c-red);
	color: var(--c-white);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.header-icon-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--c-ink);
	transition: background-color 0.15s ease, transform 0.16s var(--ease-out);
}

.header-icon-btn .icon {
	width: 26px;
	height: 26px;
}

.header-icon-btn:active,
.header-action:active {
	transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
	.header-icon-btn:hover,
	.header-action:hover {
		background: var(--c-surface);
		color: var(--c-ink);
	}
}

.site-header__nav {
	display: none;
}

@media (min-width: 1024px) {
	.site-logo {
		width: clamp(210px, 18vw, 250px);
	}

	.site-header__top-inner {
		gap: clamp(20px, 3vw, 40px);
	}

	.site-header__search {
		display: block;
		flex: 1 1 auto;
		max-width: 560px;
	}

	.header-search-btn,
	.nav-toggle {
		display: none;
	}

	.site-header__actions {
		gap: clamp(4px, 1vw, 16px);
	}

	.site-header__nav {
		display: block;
		border-top: 1px solid var(--c-line);
		background: var(--c-white);
	}

	.site-header__nav-inner {
		display: flex;
		align-items: center;
		gap: clamp(16px, 2.5vw, 36px);
		height: var(--header-nav);
	}

	.site-header__contact {
		margin-left: auto;
		min-height: 44px;
		padding-inline: 1.4em;
	}
}

@media (min-width: 1200px) {
	.header-action__text {
		display: flex;
	}
}

/* Product search ---------------------------------------------------------- */

.product-search {
	position: relative;
}

.product-search__input {
	width: 100%;
	height: 50px;
	padding: 0 60px 0 22px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-pill);
	background: var(--c-white);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.product-search__input::placeholder {
	color: #767676;
}

.product-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.product-search__input:focus {
	border-color: var(--c-red);
	outline: none;
	box-shadow: 0 0 0 4px rgb(229 39 39 / 0.14);
}

.product-search__submit {
	position: absolute;
	top: 5px;
	right: 5px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-red);
	color: var(--c-white);
	transition: background-color 0.15s ease, transform 0.16s var(--ease-out);
}

.product-search__submit .icon {
	width: 20px;
	height: 20px;
}

.product-search__submit:active {
	transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
	.product-search__submit:hover {
		background: var(--c-red-600);
	}
}

.product-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 20;
	max-height: min(70vh, 480px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px;
	border-radius: var(--radius);
	background: var(--c-white);
	box-shadow: var(--shadow-pop);
	transform-origin: top center;
	transition:
		opacity 0.16s var(--ease-out),
		transform 0.16s var(--ease-out),
		display 0.16s allow-discrete;
}

@starting-style {
	.product-search__results {
		opacity: 0;
		transform: translateY(-4px) scale(0.99);
	}
}

.search-option {
	display: grid;
	grid-template-columns: 52px 1fr;
	align-items: center;
	gap: 14px;
	padding: 8px;
	border-radius: var(--radius-sm);
	color: var(--c-ink);
	text-decoration: none;
}

.search-option img {
	width: 52px;
	height: 52px;
	border-radius: 6px;
	background: var(--c-surface);
	object-fit: contain;
}

.search-option__name {
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
}

.search-option__price {
	display: block;
	color: var(--c-red-600);
	font-size: 0.875rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.search-option[aria-selected="true"],
.search-option:focus-visible {
	background: var(--c-surface);
	outline: none;
}

.search-option--all {
	display: block;
	margin-top: 4px;
	padding: 12px 8px;
	border-top: 1px solid var(--c-line);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	color: var(--c-red-600);
	font-weight: 500;
}

.search-empty {
	padding: 14px 10px;
	color: var(--c-text);
	font-size: 0.9375rem;
}

.search-empty a {
	font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
	.search-option:hover {
		background: var(--c-surface);
		color: var(--c-ink);
	}
}

/* Departments ("Shop By Category") --------------------------------------- */

.dept {
	position: relative;
	flex: none;
}

.dept__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--c-red);
	color: var(--c-white);
	font-weight: 500;
	transition: background-color 0.15s ease, transform 0.16s var(--ease-out);
}

.dept__toggle .icon {
	width: 20px;
	height: 20px;
}

.dept__caret {
	width: 14px !important;
	height: 14px !important;
	transition: transform 0.2s var(--ease-out);
}

.dept__toggle[aria-expanded="true"] .dept__caret {
	transform: rotate(180deg);
}

.dept__toggle:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.dept__toggle:hover {
		background: var(--c-red-600);
	}
}

.dept__panel {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 30;
	width: 320px;
	padding: 10px;
	border-radius: var(--radius);
	background: var(--c-white);
	box-shadow: var(--shadow-pop);
	transform-origin: top left;
	transition:
		opacity 0.18s var(--ease-out),
		transform 0.18s var(--ease-out),
		display 0.18s allow-discrete;
}

@starting-style {
	.dept__panel {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}
}

.dept__list {
	list-style: none;
}

.dept__list a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 12px;
	border-radius: var(--radius-sm);
	color: var(--c-ink);
	font-weight: 500;
	text-decoration: none;
}

.dept__count {
	color: var(--c-muted);
	font-size: 0.8125rem;
	font-weight: 400;
	white-space: nowrap;
}

.dept__all {
	display: block;
	margin-top: 6px;
	padding: 12px;
	border-top: 1px solid var(--c-line);
	color: var(--c-red-600);
	font-weight: 500;
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.dept__list a:hover {
		background: var(--c-surface);
		color: var(--c-red-700);
	}
}

/* Primary navigation ------------------------------------------------------ */

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(4px, 1.4vw, 20px);
	list-style: none;
}

.primary-nav__item {
	position: relative;
	display: flex;
	align-items: center;
}

.primary-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 6px;
	color: var(--c-ink);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav__link::after {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--c-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s var(--ease-out);
}

.primary-nav__link[aria-current="page"] {
	color: var(--c-red-600);
}

.primary-nav__link[aria-current="page"]::after {
	transform: scaleX(1);
}

.primary-nav__toggle {
	display: grid;
	place-items: center;
	width: 28px;
	height: 36px;
	margin-left: -4px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--c-muted);
}

.primary-nav__toggle .icon {
	width: 13px;
	height: 13px;
	transition: transform 0.2s var(--ease-out);
}

.primary-nav__toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.nav-panel {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 30;
	display: none;
	grid-template-columns: repeat(2, minmax(200px, auto));
	gap: 8px 48px;
	padding: 20px 24px;
	border-radius: var(--radius);
	background: var(--c-white);
	box-shadow: var(--shadow-pop);
	transform-origin: top left;
	transition:
		opacity 0.18s var(--ease-out),
		transform 0.18s var(--ease-out),
		display 0.18s allow-discrete;
}

.has-panel.is-open .nav-panel {
	display: grid;
}

@starting-style {
	.has-panel.is-open .nav-panel {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.nav-panel__title {
	margin-bottom: 6px;
	color: var(--c-muted);
	font-size: 0.8125rem;
	font-weight: 500;
}

.nav-panel__list {
	list-style: none;
}

.nav-panel__list a {
	display: block;
	padding: 7px 0;
	color: var(--c-ink);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
	.primary-nav__link:hover {
		color: var(--c-ink);
	}

	.primary-nav__link:hover::after {
		transform: scaleX(1);
	}

	.has-panel:hover .nav-panel {
		display: grid;
	}

	.nav-panel__list a:hover {
		color: var(--c-red-700);
	}
}

/* Mobile navigation drawer ------------------------------------------------ */

.mobile-nav {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 100vw);
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: var(--c-white);
	color: var(--c-text);
	transform: translateX(100%);
	transition:
		transform 0.32s var(--ease-drawer),
		overlay 0.32s allow-discrete,
		display 0.32s allow-discrete;
}

.mobile-nav[open] {
	transform: translateX(0);
}

@starting-style {
	.mobile-nav[open] {
		transform: translateX(100%);
	}
}

.mobile-nav::backdrop {
	background: rgb(10 10 10 / 0);
	transition:
		background-color 0.32s ease,
		overlay 0.32s allow-discrete,
		display 0.32s allow-discrete;
}

.mobile-nav[open]::backdrop {
	background: rgb(10 10 10 / 0.55);
}

@starting-style {
	.mobile-nav[open]::backdrop {
		background: rgb(10 10 10 / 0);
	}
}

.mobile-nav__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: calc(12px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mobile-nav__head .site-logo {
	width: 150px;
}

.mobile-nav__list {
	list-style: none;
	border-top: 1px solid var(--c-line);
}

.mobile-nav__list > li {
	border-bottom: 1px solid var(--c-line);
}

.mobile-nav__list > li > a,
.mobile-nav__group > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	color: var(--c-ink);
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 600;
	text-decoration: none;
}

.mobile-nav__list a[aria-current="page"] {
	color: var(--c-red-600);
}

.mobile-nav__group > summary {
	list-style: none;
	cursor: pointer;
}

.mobile-nav__group > summary::-webkit-details-marker {
	display: none;
}

.mobile-nav__group > summary .icon {
	width: 16px;
	height: 16px;
	color: var(--c-muted);
	transition: transform 0.2s var(--ease-out);
}

.mobile-nav__group[open] > summary .icon {
	transform: rotate(180deg);
}

.mobile-nav__group ul {
	list-style: none;
	margin-bottom: 12px;
}

.mobile-nav__group ul a,
.mobile-nav__all {
	display: block;
	padding: 9px 0;
	color: var(--c-text);
	font-weight: 500;
	text-decoration: none;
}

.mobile-nav__all {
	color: var(--c-red-600);
}

.mobile-nav__group-title {
	margin-top: 10px;
	color: var(--c-muted);
	font-size: 0.8125rem;
	font-weight: 500;
}

.mobile-nav__contact {
	display: grid;
	gap: 10px;
	margin-top: auto;
}

.mobile-nav__meta {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 4px 0 0;
	font-size: 0.9375rem;
}

.mobile-nav__meta .icon {
	margin-top: 3px;
	color: var(--c-red);
}

.mobile-nav__meta a {
	color: inherit;
}

body.nav-open {
	overflow: hidden;
}

/* Page fallback (templates not rebuilt yet) ------------------------------- */

.site-main--fallback {
	padding-block: clamp(40px, 6vw, 80px);
}

.prose-wrap {
	max-width: calc(820px + 2 * var(--gutter));
}

.page-title {
	margin-bottom: 0.75em;
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
}

.prose h2,
.prose h3 {
	margin: 1.6em 0 0.5em;
}

.post-list {
	display: grid;
	gap: 10px;
	padding-left: 1.2em;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	position: relative;
	/* A hairline where the dark end of the closing band meets the footer. */
	border-top: 1px solid rgb(255 255 255 / 0.1);
	background: var(--c-dark);
	color: var(--c-on-dark-muted);
	font-size: 0.9375rem;
}

.site-footer a {
	color: var(--c-on-dark);
	text-decoration: none;
}

.site-footer__grid {
	display: grid;
	gap: 44px 32px;
	padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
}

@media (min-width: 640px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: 1.25fr 0.9fr 1.1fr 1.25fr;
		gap: 40px;
	}
}

.site-footer__logo {
	display: inline-block;
	margin-bottom: 20px;
}

.site-footer__logo img {
	width: 150px;
	height: auto;
}

.site-footer__brand p {
	max-width: 36ch;
}

.site-footer__title {
	margin-bottom: 18px;
	color: var(--c-white);
	font-size: 1.375rem;
	font-weight: 600;
}

.site-footer__links {
	display: grid;
	gap: 10px;
	list-style: none;
}

.contact-list {
	display: grid;
	gap: 16px;
}

.contact-list dt {
	margin-bottom: 2px;
	color: var(--c-on-dark-muted);
	font-size: 0.8125rem;
}

.contact-list dd {
	color: var(--c-on-dark);
}

.contact-list dd a {
	overflow-wrap: anywhere;
}

.social-links {
	display: flex;
	gap: 10px;
	margin-top: 24px;
	list-style: none;
}

.social-links a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--c-dark-3);
	border-radius: 50%;
	color: var(--c-on-dark);
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.16s var(--ease-out);
}

.social-links a:active {
	transform: scale(0.94);
}

.social-links .icon {
	width: 20px;
	height: 20px;
}

@media (hover: hover) and (pointer: fine) {
	.site-footer a:hover {
		color: var(--c-white);
		text-decoration: underline;
		text-decoration-color: var(--c-red);
	}

	.social-links a:hover {
		border-color: var(--c-red);
		background: var(--c-red);
		text-decoration: none;
	}
}

.newsletter-form {
	margin-top: 18px;
}

.newsletter-form__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.newsletter-form__input {
	flex: 1 1 200px;
	min-width: 0;
	height: 50px;
	padding: 0 20px;
	border: 1px solid var(--c-dark-3);
	border-radius: var(--radius-pill);
	background: var(--c-dark-2);
	color: var(--c-on-dark);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-form__input::placeholder {
	color: #8f8f8f;
}

.newsletter-form__input:focus {
	border-color: var(--c-red);
	outline: none;
	box-shadow: 0 0 0 4px rgb(229 39 39 / 0.25);
}

.newsletter-form__input[aria-invalid="true"] {
	border-color: #ff6b6b;
}

.newsletter-form__submit {
	flex: none;
	min-height: 50px;
}

.newsletter-form__message {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	color: #9be7a8;
	font-size: 0.9375rem;
}

.newsletter-form__message.is-error {
	color: #ff9a9a;
}

.newsletter-form__message .icon {
	margin-top: 2px;
}

.site-footer__bar {
	border-top: 1px solid var(--c-dark-3);
	background: #0e0e0e;
	font-size: 0.875rem;
}

.site-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
}

.site-footer__credit {
	margin-left: auto;
}

.site-footer__bar a {
	color: var(--c-on-dark-muted);
}

.back-to-top {
	position: fixed;
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--c-ink);
	color: var(--c-white) !important;
	box-shadow: var(--shadow-1);
	transition:
		opacity 0.2s ease,
		transform 0.2s var(--ease-out),
		display 0.2s allow-discrete;
}

@starting-style {
	.back-to-top {
		opacity: 0;
		transform: translateY(8px);
	}
}

.back-to-top .icon {
	width: 20px;
	height: 20px;
}

@media (hover: hover) and (pointer: fine) {
	.back-to-top:hover {
		background: var(--c-red);
		text-decoration: none !important;
	}
}

/* Entrance reveals (site.js initReveal) ----------------------------------- */

/* Set only on elements that start below the fold. A 14px rise with the fade (a fade alone reads as a
   loading glitch), media settle from 97% scale; strong ease-out over 620ms, groups 60ms apart. */
.reveal {
	transition:
		opacity 0.62s var(--ease-out) var(--reveal-delay, 0ms),
		transform 0.62s var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal:not(.is-revealed) {
	opacity: 0;
	transform: translateY(14px);
}

.reveal--media {
	transition-duration: 0.8s;
}

.reveal--media:not(.is-revealed) {
	transform: scale(0.97);
}

/* Reduced motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
