/*
Theme Name: Without Watermark
Author: Without Watermark
Description: A minimal theme for a video downloader website. Visitors paste a link from TikTok, Instagram, Facebook, X and more, and download the video in HD, with TikTok's watermark removed. Downloads run on your server with yt-dlp, which the theme installs and keeps updated. Also includes a watermark remover page for videos on the visitor's own device, a blog, ad slots, an FAQ, a legal page layout, landing page templates, and light and dark modes that follow the visitor's device.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: without-watermark
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, blog, accessibility-ready
*/

/* ---------------------------------------------------------------
   Fonts (Archivo, SIL Open Font License, self-hosted)
---------------------------------------------------------------- */
@font-face {
	font-family: "Archivo WW";
	src: url("assets/fonts/archivo-var.woff") format("woff");
	font-weight: 400 800;
	font-stretch: 100% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Archivo WW";
	src: url("assets/fonts/archivo-italic-var.woff") format("woff");
	font-weight: 400 700;
	font-stretch: 100%;
	font-style: italic;
	font-display: swap;
}

/* ---------------------------------------------------------------
   Tokens
---------------------------------------------------------------- */
:root {
	--canvas: #e6e9ed;
	--surface: #f2f4f6;
	--ink: #1a2130;
	--muted: #576173;
	--rule: #c8ced7;
	--monitor: #151a23;
	--monitor-ink: #e9edf3;
	--monitor-muted: #8e97a8;
	--monitor-rule: rgba(233, 237, 243, 0.14);
	--key: #2440f0;
	--key-hover: #1a31c9;
	--key-ink: #ffffff;
	--key-glow: #8c9cff;
	--key-soft: rgba(36, 64, 240, 0.12);
	--danger: #b4232a;

	--font: "Archivo WW", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wide: 125%;
	--semi: 112%;

	--radius-frame: 16px;
	--radius-screen: 8px;
	--radius-control: 10px;
	--radius-pill: 999px;

	--gutter: clamp(16px, 4vw, 40px);
	--wrap: 1120px;
	--read: 680px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--canvas: #10141b;
		--surface: #181d26;
		--ink: #e4e8ef;
		--muted: #98a2b3;
		--rule: #2a3140;
		--monitor: #1b212c;
		--monitor-ink: #e9edf3;
		--monitor-muted: #95a0b2;
		--monitor-rule: rgba(233, 237, 243, 0.14);
		--key: #7d8eff;
		--key-hover: #9aa7ff;
		--key-ink: #0b1020;
		--key-glow: #a9b5ff;
		--key-soft: rgba(125, 142, 255, 0.16);
		--danger: #ff7a7f;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--canvas: #10141b;
	--surface: #181d26;
	--ink: #e4e8ef;
	--muted: #98a2b3;
	--rule: #2a3140;
	--monitor: #1b212c;
	--monitor-ink: #e9edf3;
	--monitor-muted: #95a0b2;
	--monitor-rule: rgba(233, 237, 243, 0.14);
	--key: #7d8eff;
	--key-hover: #9aa7ff;
	--key-ink: #0b1020;
	--key-glow: #a9b5ff;
	--key-soft: rgba(125, 142, 255, 0.16);
	--danger: #ff7a7f;
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-weight: 400;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 700;
	line-height: 1.15;
	text-wrap: balance;
}
p { margin: 0; }

a {
	color: inherit;
	text-decoration-color: var(--key);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
}
a:hover { color: var(--key); }

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

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

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

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}
.wrap--read { width: min(100% - 2 * var(--gutter), var(--read)); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	background: var(--ink);
	color: var(--canvas);
	clip: auto !important;
	clip-path: none;
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	height: auto;
	left: 12px;
	top: 12px;
	padding: 12px 18px;
	width: auto;
	z-index: 100000;
	border-radius: var(--radius-control);
	text-decoration: none;
}

/* ---------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 12px 22px;
	border: 1px solid var(--rule);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 650;
	font-stretch: var(--semi);
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--key {
	background: var(--key);
	border-color: var(--key);
	color: var(--key-ink);
}
.btn--key:hover { background: var(--key-hover); border-color: var(--key-hover); color: var(--key-ink); }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.link-btn {
	padding: 6px 2px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--key);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.25em;
	cursor: pointer;
}
.link-btn:hover { color: var(--key); }

/* ---------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.site-header { position: relative; z-index: 20; }
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	color: var(--ink);
	text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 22px; flex: none; }
.brand__word {
	font-size: 1.0625rem;
	font-weight: 750;
	font-stretch: var(--wide);
	letter-spacing: -0.01em;
	line-height: 1;
	white-space: nowrap;
}
.brand__ghost { font-weight: 500; opacity: 0.42; }
.custom-logo-link { display: inline-flex; margin-right: auto; }
.custom-logo { max-height: 40px; width: auto; }

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 4px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	display: inline-block;
	padding: 8px 0;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}
.site-nav .sub-menu { display: none; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	padding: 0;
	border: 1px solid var(--rule);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
	.site-header__inner { min-height: 64px; gap: 10px; }
	.nav-toggle { display: inline-grid; }
	.site-nav {
		position: absolute;
		top: 100%;
		left: var(--gutter);
		right: var(--gutter);
		display: none;
		padding: 8px 20px;
		border: 1px solid var(--rule);
		border-radius: var(--radius-control);
		background: var(--surface);
		box-shadow: 0 18px 40px -18px rgba(16, 24, 40, 0.35);
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav li + li { border-top: 1px solid var(--rule); }
	.site-nav a { display: block; padding: 14px 0; font-size: 1.0625rem; }
}

/* ---------------------------------------------------------------
   Hero (tool landing)
---------------------------------------------------------------- */
.hero { padding-block: clamp(20px, 4vw, 52px) 0; }
.hero__title {
	max-width: 17ch;
	font-size: clamp(2.375rem, 1.35rem + 4.1vw, 4.75rem);
	font-weight: 780;
	font-stretch: var(--wide);
	line-height: 0.98;
	letter-spacing: -0.03em;
}
.hero__lead {
	max-width: 44ch;
	margin-top: clamp(16px, 2vw, 22px);
	color: var(--muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.5;
	text-wrap: pretty;
}
.hero__tool { margin-top: clamp(24px, 3.5vw, 44px); }

/* ---------------------------------------------------------------
   Tool: monitor
---------------------------------------------------------------- */
.wwm {
	position: relative;
	--frame-max-h: calc(100vh - 290px);
	--frame-max-h: clamp(260px, calc(100svh - 290px), 75vh);
}
.wwm [hidden] { display: none !important; }

.wwm-monitor {
	position: relative;
	scroll-margin-top: 12px;
	padding: 10px 10px 0;
	border-radius: var(--radius-frame);
	background: var(--monitor);
	color: var(--monitor-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 70px -40px rgba(14, 20, 34, 0.55);
}

.wwm-screen {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: var(--radius-screen);
	background: #07090d;
	isolation: isolate;
}
.wwm[data-state="empty"] .wwm-screen { aspect-ratio: 16 / 9; }
@media (max-width: 640px) {
	.wwm[data-state="empty"] .wwm-screen { aspect-ratio: 1 / 1; }
}

/* Empty / drop state */
.wwm-drop {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	text-align: center;
	transition: background-color 0.2s ease;
}
.wwm-safe {
	position: absolute;
	inset: 9% 6%;
	border: 1px dashed var(--monitor-rule);
	border-radius: 4px;
	pointer-events: none;
	transition: border-color 0.2s ease, inset 0.25s ease;
}
.wwm-bug {
	position: absolute;
	top: calc(9% + 16px);
	right: calc(6% + 16px);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, 0.5);
	font-size: clamp(0.75rem, 0.6rem + 0.5vw, 0.9375rem);
	font-weight: 750;
	font-stretch: var(--wide);
	letter-spacing: -0.005em;
	pointer-events: none;
	user-select: none;
}
.wwm-bug svg { width: 1.6em; height: 1.2em; }
.wwm:not([data-intro]) .wwm-bug,
.wwd:not([data-intro]) .wwm-bug { display: none; }

.wwm-drop__body { position: relative; display: grid; justify-items: center; gap: 14px; }
.wwm-drop__title {
	font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
	font-weight: 750;
	font-stretch: var(--wide);
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.wwm-drop__hint { color: var(--monitor-muted); font-size: 0.875rem; }

.wwm-pick { position: relative; overflow: hidden; }
.wwm-pick input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.wwm-pick:focus-within { outline: 2px solid var(--key-glow); outline-offset: 3px; }

.wwm.is-over .wwm-drop { background: rgba(36, 64, 240, 0.16); }
.wwm.is-over .wwm-safe { border-color: var(--key-glow); border-style: solid; inset: 6% 4%; }

/* Stage (video + overlays) */
.wwm-stage {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}
.wwm-frame {
	position: relative;
	width: min(100%, calc(var(--frame-max-h) * var(--ar, 1.7778)));
	aspect-ratio: var(--ar, 1.7778);
	max-height: var(--frame-max-h);
	overflow: hidden;
	background: #000;
	touch-action: none;
}
.wwm-frame video,
.wwm-frame canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
}
.wwm-frame [data-result] { clip-path: inset(0 0 0 var(--split, 50%)); }

/* Boxes */
.wwm-boxes {
	position: absolute;
	inset: 0;
	cursor: crosshair;
	touch-action: none;
}
.wwm[data-state="working"] .wwm-boxes,
.wwm[data-state="done"] .wwm-boxes { display: none; }

.wwm-box {
	position: absolute;
	border: 1.5px dashed var(--key-glow);
	border-radius: 3px;
	background: rgba(60, 85, 255, 0.08);
	box-shadow: 0 0 0 1px rgba(7, 9, 13, 0.55);
	cursor: move;
	touch-action: none;
}
.wwm-box:focus { outline: none; }
.wwm-box:focus-visible { box-shadow: 0 0 0 1px rgba(7, 9, 13, 0.55), 0 0 0 4px rgba(140, 156, 255, 0.55); }
.wwm-box.is-selected { border-style: solid; background: rgba(60, 85, 255, 0.05); }
.wwm-box.is-off { opacity: 0.35; }
.wwm.is-previewing .wwm-box:not(.is-selected) { background: transparent; }
.wwm-box__tag {
	position: absolute;
	top: -1px;
	left: -1px;
	transform: translateY(-100%);
	padding: 3px 7px 2px;
	border-radius: 4px 4px 4px 0;
	background: var(--key-glow);
	color: #0b1020;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
}
.wwm-box[data-tag-below] .wwm-box__tag { top: auto; bottom: -1px; transform: translateY(100%); border-radius: 0 4px 4px 4px; }
.wwm-handle {
	position: absolute;
	width: 22px;
	height: 22px;
	display: none;
	touch-action: none;
}
.wwm-handle::after {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1.5px solid var(--key-glow);
	border-radius: 2px;
	background: #fff;
}
.wwm-box.is-selected .wwm-handle { display: block; }
.wwm-handle[data-h="nw"] { top: -11px; left: -11px; cursor: nwse-resize; }
.wwm-handle[data-h="ne"] { top: -11px; right: -11px; cursor: nesw-resize; }
.wwm-handle[data-h="sw"] { bottom: -11px; left: -11px; cursor: nesw-resize; }
.wwm-handle[data-h="se"] { bottom: -11px; right: -11px; cursor: nwse-resize; }

.wwm-coach {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	padding: 8px 14px;
	border-radius: var(--radius-pill);
	background: rgba(7, 9, 13, 0.72);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* Compare slider */
.wwm-compare { position: absolute; inset: 0; cursor: ew-resize; touch-action: none; }
.wwm-compare__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--split, 50%);
	width: 2px;
	margin-left: -1px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(7, 9, 13, 0.4);
}
.wwm-compare__knob {
	position: absolute;
	top: 50%;
	left: var(--split, 50%);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	background: #fff;
	color: #151a23;
	box-shadow: 0 6px 18px rgba(7, 9, 13, 0.45);
	pointer-events: none;
}
.wwm-compare__knob svg { width: 20px; height: 20px; }
.wwm-compare__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}
.wwm-compare:focus-within .wwm-compare__knob { box-shadow: 0 0 0 3px var(--key-glow), 0 6px 18px rgba(7, 9, 13, 0.45); }
.wwm-tag {
	position: absolute;
	top: 12px;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: rgba(7, 9, 13, 0.68);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 650;
	pointer-events: none;
}
.wwm-tag--before { left: 12px; }
.wwm-tag--after { right: 12px; }

/* Scanline: the one signature motion. Used for the intro sweep and as the progress indicator. */
.wwm-scan {
	--p: 0%;
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 3;
}
.wwm-scan__dim {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--p);
	right: 0;
	background: rgba(7, 9, 13, 0.62);
}
.wwm-scan__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--p);
	width: 2px;
	margin-left: -1px;
	background: var(--key-glow);
	box-shadow: 0 0 0 1px rgba(36, 64, 240, 0.35), 0 0 26px 5px rgba(80, 104, 255, 0.6);
}
.wwm-scan--intro .wwm-scan__dim { display: none; }
.wwm-scan--intro { animation: wwm-scan-fade 0.25s 1.9s ease forwards; }
.wwm-scan--intro .wwm-scan__line { animation: wwm-sweep 1.6s 0.35s cubic-bezier(0.65, 0, 0.35, 1) both; }
.wwm-bug.is-wiping { animation: wwm-wipe 0.32s 1.55s cubic-bezier(0.4, 0, 0.6, 1) forwards; }

@keyframes wwm-sweep {
	from { left: -2%; }
	to { left: 102%; }
}
@keyframes wwm-scan-fade { to { opacity: 0; visibility: hidden; } }
@keyframes wwm-wipe {
	from { clip-path: inset(0 0 0 0); }
	to { clip-path: inset(0 0 0 100%); }
}

/* Messages inside the screen */
.wwm-msg {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 16px;
	padding: 24px;
	background: #07090d;
	color: #e9edf3;
	text-align: center;
}
.wwm-msg p { max-width: 46ch; font-size: 1rem; line-height: 1.5; }
.wwm-msg .wwm-actions { margin: 0; justify-content: center; }
.wwm-msg .link-btn { color: #fff; }
.wwm-msg strong { display: block; margin-bottom: 4px; font-size: 1.1875rem; font-stretch: var(--semi); }

.wwm-loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--monitor-muted);
	font-size: 0.9375rem;
}

/* Transport */
.wwm-transport {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 8px 6px 10px;
	color: var(--monitor-muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}
.wwm-play {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	flex: none;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--monitor-ink);
	color: var(--monitor);
	cursor: pointer;
}
.wwm-play svg { width: 14px; height: 14px; }
.wwm-play[disabled] { opacity: 0.25; cursor: default; }
.wwm-time { flex: none; min-width: 7.5em; }

.wwm-scrub-wrap { position: relative; flex: 1; min-width: 60px; height: 28px; }
.wwm-ranges { position: absolute; left: 0; right: 0; top: 4px; height: 4px; pointer-events: none; }
.wwm-ranges span {
	position: absolute;
	top: 0;
	height: 3px;
	border-radius: 2px;
	background: rgba(140, 156, 255, 0.45);
}
.wwm-ranges span.is-selected { background: var(--key-glow); }

.wwm-scrub {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	--fill: 0%;
}
.wwm-scrub:disabled { cursor: default; opacity: 0.5; }
.wwm-scrub::-webkit-slider-runnable-track {
	height: 4px;
	margin-top: 8px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--monitor-ink) var(--fill), rgba(233, 237, 243, 0.16) var(--fill));
}
.wwm-scrub::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--monitor-ink) var(--fill), rgba(233, 237, 243, 0.16) var(--fill));
}
.wwm-scrub::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(140, 156, 255, 0.45);
}
.wwm-scrub::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(140, 156, 255, 0.45);
}
.wwm-scrub:focus-visible { outline: none; }
.wwm-scrub:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--key-glow); }
.wwm-scrub:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--key-glow); }

.wwm-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	color: var(--monitor-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}
.wwm-switch input {
	position: relative;
	width: 34px;
	height: 20px;
	margin: 0;
	border-radius: 999px;
	background: rgba(233, 237, 243, 0.2);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.wwm-switch input::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}
.wwm-switch input:checked { background: #2440f0; }
.wwm-switch input:checked::after { transform: translateX(14px); }
.wwm-switch input:focus-visible { outline: 2px solid var(--key-glow); outline-offset: 2px; }
.wwm-switch input:disabled { opacity: 0.4; }
.wwm[data-state="empty"] .wwm-switch,
.wwm[data-state="working"] .wwm-switch,
.wwm[data-state="done"] .wwm-switch { display: none; }

/* ---------------------------------------------------------------
   Tool: panel under the monitor
---------------------------------------------------------------- */
.wwm-panel { margin-top: 18px; }
.wwm-view { display: none; }
.wwm[data-state="edit"] .wwm-view--edit,
.wwm[data-state="working"] .wwm-view--working,
.wwm[data-state="done"] .wwm-view--done { display: block; }

.wwm-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.wwm-boxes-field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.wwm-boxlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.wwm-boxlist__empty { padding: 14px 0; color: var(--muted); font-size: 0.9375rem; border-bottom: 1px solid var(--rule); }
.wwm-boxitem {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--rule);
	font-size: 0.9375rem;
}
.wwm-boxitem__name {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0;
	border: 0;
	background: none;
	font-weight: 650;
	cursor: pointer;
}
.wwm-boxitem__swatch {
	width: 14px;
	height: 10px;
	border: 1.5px dashed var(--key);
	border-radius: 2px;
}
.wwm-boxitem.is-selected .wwm-boxitem__swatch { border-style: solid; background: var(--key-soft); }
.wwm-boxitem__time { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.wwm-boxitem__time label { display: inline-flex; align-items: center; gap: 6px; }
.wwm-time-input {
	width: 5.6em;
	padding: 6px 8px;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: var(--surface);
	color: var(--ink);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}
.wwm-time-input:focus { outline: 2px solid var(--key); outline-offset: 1px; border-color: transparent; }
.wwm-mini {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--rule);
	border-radius: 8px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.wwm-mini:hover { border-color: var(--ink); }
.wwm-mini svg { width: 15px; height: 15px; }
.wwm-boxitem__remove { margin-left: auto; }

.wwm-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px 32px;
	margin-top: 22px;
}
.wwm-controls fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.wwm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-left: auto; }

.wwm-seg {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--rule);
	border-radius: var(--radius-pill);
	background: var(--surface);
}
.wwm-seg label { position: relative; cursor: pointer; }
.wwm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wwm-seg span {
	display: block;
	padding: 8px 15px;
	border-radius: var(--radius-pill);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wwm-seg input:checked + span { background: var(--ink); color: var(--canvas); }
.wwm-seg input:focus-visible + span { outline: 2px solid var(--key); outline-offset: 2px; }

.wwm-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 1rem; }
.wwm-status strong { font-size: 1.5rem; font-weight: 750; font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
.wwm-status__sub { color: var(--muted); font-size: 0.9375rem; }
.wwm-working-row,
.wwm-done-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}
.wwm-done-row .wwm-actions { margin-left: 0; }
.wwm-warning { margin-top: 10px; color: var(--muted); font-size: 0.875rem; }

.wwm-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	color: var(--muted);
	font-size: 0.875rem;
}
.wwm-note svg { width: 15px; height: 15px; flex: none; }
.wwm[data-state="edit"] .wwm-note,
.wwm[data-state="working"] .wwm-note,
.wwm[data-state="done"] .wwm-note { margin-top: 26px; }

@media (max-width: 640px) {
	.wwm-monitor { padding: 6px 6px 0; border-radius: 12px; }
	.wwm-transport { gap: 10px; }
	.wwm-time { min-width: 0; }
	.wwm-controls { gap: 18px; }
	.wwm-controls fieldset { width: 100%; }
	.wwm-seg { display: flex; }
	.wwm-seg label { flex: 1; text-align: center; }
	.wwm-seg span { padding-inline: 8px; }
	.wwm-actions { width: 100%; margin-left: 0; }
	.wwm-actions .btn--key { flex: 1; }
	.wwm-bug { top: calc(9% + 10px); right: calc(6% + 10px); }
}

/* ---------------------------------------------------------------
   Link downloader
---------------------------------------------------------------- */
.wwd { position: relative; }
.wwd [hidden] { display: none !important; }

.wwd-monitor { padding-bottom: 10px; }

.wwd-bar {
	display: flex;
	gap: 10px;
	margin: 0 0 10px;
}
.wwd-field {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 60px;
	padding: 0 8px 0 16px;
	border: 1px solid rgba(233, 237, 243, 0.16);
	border-radius: 12px;
	background: #07090d;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wwd-field:focus-within {
	border-color: var(--key-glow);
	box-shadow: 0 0 0 3px rgba(140, 156, 255, 0.22);
}
.wwd-field__icon { width: 20px; height: 20px; flex: none; color: var(--monitor-muted); }
.wwd-input {
	flex: 1;
	min-width: 0;
	height: 58px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.0625rem;
	outline: none;
}
.wwd-input::placeholder { color: var(--monitor-muted); opacity: 1; }
.wwd-chip {
	flex: none;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: rgba(140, 156, 255, 0.18);
	color: #c9d0ff;
	font-size: 0.8125rem;
	font-weight: 650;
	white-space: nowrap;
}
.wwd-mini {
	display: inline-grid;
	place-items: center;
	flex: none;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(233, 237, 243, 0.18);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--monitor-ink);
	font-size: 0.875rem;
	font-weight: 650;
	cursor: pointer;
}
.wwd-mini:hover { border-color: #fff; }
.wwd-mini--icon { padding: 0; width: 40px; }
.wwd-mini svg { width: 16px; height: 16px; }
.wwd-go { min-height: 60px; padding-inline: 30px; font-size: 1rem; }
.wwd-go:focus-visible { outline-color: var(--key-glow); }

/* Empty screen: the channel list */
.wwd[data-state="empty"] .wwd-screen,
.wwd[data-state="finding"] .wwd-screen { aspect-ratio: 12 / 5; }
.wwd-empty,
.wwd-finding {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	text-align: center;
}
.wwd-empty__body { position: relative; max-width: 640px; }
.wwd-empty__label { margin-bottom: 12px; color: var(--monitor-muted); font-size: 0.875rem; }
.wwd-platforms {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--monitor-ink);
	font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem);
	font-weight: 700;
	font-stretch: var(--wide);
	letter-spacing: -0.01em;
}
.wwd-finding p { color: var(--monitor-ink); font-size: 1.0625rem; font-weight: 600; }
.wwd[data-state="finding"] .wwm-scan__dim { display: none; }
.wwd[data-state="finding"] .wwm-scan:not(.wwm-scan--intro) .wwm-scan__line { animation: wwd-search 1.3s ease-in-out infinite alternate; }
@keyframes wwd-search {
	from { left: 6%; }
	to { left: 94%; }
}

/* Results */
.wwd-result {
	align-self: stretch;
	justify-self: stretch;
	width: 100%;
	padding: clamp(16px, 3vw, 32px);
	color: var(--monitor-ink);
}
.wwd-result--single .wwd-item {
	display: grid;
	grid-template-columns: var(--tw, 240px) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}
.wwd-thumb {
	--p: 0%;
	position: relative;
	width: 100%;
	aspect-ratio: var(--ar, 0.5625);
	overflow: hidden;
	border-radius: 8px;
	background: #1d2330;
}
.wwd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wwd-dur {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 3px 8px;
	border-radius: var(--radius-pill);
	background: rgba(7, 9, 13, 0.75);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}
.wwd-thumb__scan { position: absolute; inset: 0; pointer-events: none; }
.wwd-thumb__scan .wwm-scan__dim,
.wwd-thumb__scan .wwm-scan__line { left: var(--p); }

.wwd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	color: var(--monitor-muted);
	font-size: 0.875rem;
}
.wwd-meta__platform { color: var(--monitor-ink); font-weight: 700; font-stretch: var(--wide); }
.wwd-title {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	color: #fff;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
	font-weight: 650;
	line-height: 1.35;
	text-wrap: pretty;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow-wrap: anywhere;
}
.wwd-count { margin-top: 6px; color: var(--monitor-muted); font-size: 0.875rem; }

.wwd-opts { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--monitor-rule); }
.wwd-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--monitor-rule);
}
.wwd-opt__label { display: grid; gap: 2px; min-width: 0; }
.wwd-opt__label strong { font-size: 1rem; font-weight: 700; }
.wwd-opt__label span { color: var(--monitor-muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.wwd-opt__go { min-width: 148px; min-height: 44px; font-variant-numeric: tabular-nums; }
.wwd .btn:not(.btn--key) { border-color: rgba(233, 237, 243, 0.24); color: var(--monitor-ink); }
.wwd .btn:not(.btn--key):hover { border-color: #fff; color: #fff; }
.wwd .btn:disabled { opacity: 0.45; cursor: default; }
.wwd .is-busy .btn:disabled { opacity: 1; }
.wwd .is-busy .btn:disabled:not(.btn--key) { opacity: 0.45; }
.wwd-status { min-height: 1.5em; margin-top: 12px; color: var(--monitor-muted); font-size: 0.875rem; }
.wwd-status.is-error { color: #ff9a9e; }
.wwd .wwd-cancel { color: var(--monitor-ink); font-size: 0.875rem; }

.wwd-head { margin-bottom: 20px; }
.wwd-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.wwd-result--list .wwd-item {
	display: grid;
	grid-template-columns: var(--tw, 120px) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding: 18px 0;
	border-top: 1px solid var(--monitor-rule);
}
.wwd-result--list .wwd-opts { margin-top: 8px; }
.wwd-item__name { font-weight: 700; }

@media (max-width: 640px) {
	.wwd-bar { flex-direction: column; }
	.wwd-go { width: 100%; min-height: 54px; }
	.wwd-field { min-height: 56px; padding-left: 14px; }
	.wwd-input { height: 54px; font-size: 1rem; }
	.wwd[data-state="empty"] .wwd-screen,
	.wwd[data-state="finding"] .wwd-screen { aspect-ratio: 4 / 3; }
	.wwd-platforms { gap: 4px 16px; }
	/* Small thumbnail beside the title, choices full width below it. */
	.wwd-result--single .wwd-item { grid-template-columns: var(--tw-sm, 96px) minmax(0, 1fr); column-gap: 14px; row-gap: 0; }
	.wwd-result--single .wwd-item__body { display: contents; }
	.wwd-result--single .wwd-thumb { grid-column: 1; grid-row: 1 / span 2; }
	.wwd-result--single .wwd-meta { grid-column: 2; grid-row: 1; align-self: end; }
	.wwd-result--single .wwd-title { grid-column: 2; grid-row: 2; align-self: start; -webkit-line-clamp: 4; }
	.wwd-result--single .wwd-opts,
	.wwd-result--single .wwd-status { grid-column: 1 / -1; }
	.wwd-opt__go { min-width: 128px; }
	.wwd-result--list .wwd-item { grid-template-columns: min(30%, var(--tw, 96px)) minmax(0, 1fr); gap: 14px; }
}

/* Remover promo on the homepage */
.promo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding-block: 32px;
	border-block: 1px solid var(--rule);
}
.promo__title { font-size: 1.375rem; font-weight: 750; font-stretch: var(--semi); letter-spacing: -0.015em; }
.promo__text { max-width: 52ch; margin-top: 6px; color: var(--muted); }
.promo-wrap { padding-top: clamp(56px, 8vw, 104px); }

/* ---------------------------------------------------------------
   Ad slots
---------------------------------------------------------------- */
.ad-slot {
	display: grid;
	justify-items: center;
	gap: 6px;
	margin-block: clamp(32px, 5vw, 56px);
	min-height: 120px;
	text-align: center;
	overflow: hidden;
}
.ad-slot__label { color: var(--muted); font-size: 0.75rem; }
.ad-slot > *:not(.ad-slot__label) { max-width: 100%; }
.ad-slot--post_top { margin-block: 0 32px; }
.ad-slot--post_bottom { margin-block: 40px 0; }

/* ---------------------------------------------------------------
   Home sections
---------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 120px) 0; }
.section__title {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	font-weight: 760;
	font-stretch: var(--wide);
	letter-spacing: -0.025em;
	line-height: 1.05;
}
.section__intro { max-width: 52ch; margin-top: 12px; color: var(--muted); }

/* How it works, laid out as keyframes on a timeline track */
.track {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 44px 0 0;
	padding: 34px 0 0;
	list-style: none;
	counter-reset: step;
}
.track::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--rule);
}
.track__step { position: relative; }
.track__key {
	position: absolute;
	top: -33px;
	left: 1px;
	width: 15px;
	height: 15px;
	transform: rotate(45deg);
	border: 2px solid var(--key);
	border-radius: 2px;
	background: var(--canvas);
}
.track__step:last-child .track__key { background: var(--key); }
.track__title {
	font-size: 1.25rem;
	font-weight: 700;
	font-stretch: var(--semi);
	letter-spacing: -0.01em;
}
.track__text { max-width: 34ch; margin-top: 8px; color: var(--muted); }

@media (max-width: 760px) {
	.track { grid-template-columns: 1fr; gap: 28px; padding: 0 0 0 34px; margin-top: 32px; }
	.track::before { top: 6px; bottom: 6px; left: 7px; right: auto; width: 2px; height: auto; }
	.track__key { top: 6px; left: -33px; }
}

/* FAQ */
.faq {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: 32px 64px;
}
.faq__list { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
	position: relative;
	padding: 20px 48px 20px 0;
	font-size: 1.125rem;
	font-weight: 650;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 6px;
	width: 14px;
	height: 2px;
	background: var(--ink);
	transition: transform 0.2s ease;
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--key); }
.faq__answer { max-width: 60ch; padding: 0 0 22px; color: var(--muted); }
.faq__answer p + p { margin-top: 10px; }

@media (max-width: 860px) {
	.faq { grid-template-columns: 1fr; }
}

/* Post lists */
.postlist { margin: 28px 0 0; padding: 0; list-style: none; }
.postrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 32px;
	padding: 26px 0;
	border-top: 1px solid var(--rule);
}
.postlist > li:last-child .postrow { border-bottom: 1px solid var(--rule); }
.postrow__meta { color: var(--muted); font-size: 0.875rem; }
.postrow__title {
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	font-weight: 700;
	font-stretch: var(--semi);
	letter-spacing: -0.015em;
	line-height: 1.2;
}
.postrow__title a { text-decoration: none; }
.postrow__title a:hover { text-decoration: underline; color: inherit; }
.postrow__excerpt { max-width: 62ch; color: var(--muted); }
.postrow__thumb {
	grid-column: 2;
	grid-row: 1 / span 3;
	width: clamp(110px, 18vw, 200px);
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius-control);
	background: var(--surface);
}
.postrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.postrow > *:not(.postrow__thumb) { grid-column: 1; }
@media (max-width: 600px) {
	.postrow { column-gap: 16px; }
	.postrow__thumb { width: 84px; aspect-ratio: 1; grid-row: 1 / span 2; }
}
.section__more { margin-top: 24px; }

/* ---------------------------------------------------------------
   Page headers, posts, pages
---------------------------------------------------------------- */
.page-head { padding-block: clamp(28px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.page-head__title {
	font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem);
	font-weight: 780;
	font-stretch: var(--wide);
	letter-spacing: -0.03em;
	line-height: 1.02;
}
.page-head__lead { max-width: 56ch; margin-top: 14px; color: var(--muted); font-size: 1.125rem; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }
.page-head__meta a { color: inherit; }

.entry-thumb { margin: 0 auto clamp(28px, 4vw, 44px); }
.entry-thumb img { width: 100%; border-radius: var(--radius-frame); }

/* Readable content */
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
	margin-top: 1.9em;
	font-size: 1.75rem;
	font-weight: 750;
	font-stretch: var(--semi);
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.prose h3 { margin-top: 1.6em; font-size: 1.3125rem; font-weight: 700; line-height: 1.3; }
.prose h4 { margin-top: 1.4em; font-size: 1.125rem; font-weight: 700; }
.prose h2 + *,
.prose h3 + *,
.prose h4 + * { margin-top: 0.6em; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--muted); }
.prose blockquote {
	margin-inline: 0;
	padding: 2px 0 2px 22px;
	border-left: 3px solid var(--key);
	font-size: 1.1875rem;
}
.prose blockquote cite { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9375rem; font-style: normal; }
.prose hr { height: 1px; margin-block: 2.4em; border: 0; background: var(--rule); }
.prose img,
.prose video,
.prose iframe { border-radius: var(--radius-control); }
.prose figure { margin-inline: 0; }
.prose figcaption,
.wp-caption-text,
.wp-element-caption { margin-top: 8px; color: var(--muted); font-size: 0.875rem; text-align: left; }
.prose code {
	padding: 0.15em 0.4em;
	border-radius: 5px;
	background: var(--surface);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88em;
}
.prose pre {
	overflow-x: auto;
	padding: 18px 20px;
	border-radius: var(--radius-control);
	background: var(--monitor);
	color: var(--monitor-ink);
	font-size: 0.9375rem;
	line-height: 1.55;
}
.prose pre code { padding: 0; background: none; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { font-weight: 650; }
.prose .wp-block-button__link {
	padding: 13px 22px;
	border-radius: var(--radius-pill);
	background: var(--key);
	color: var(--key-ink);
	font-size: 0.9375rem;
	font-weight: 650;
	text-decoration: none;
}
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.prose .alignwide { width: min(100vw - 2 * var(--gutter), var(--wrap)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull img { border-radius: 0; }

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.gallery-caption { color: var(--muted); font-size: 0.875rem; }
.sticky .postrow__title::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; vertical-align: middle; transform: rotate(45deg); background: var(--key); }
.bypostauthor > .comment-body .comment-author b::after { content: ""; }

.entry-footer { margin-top: 44px; color: var(--muted); font-size: 0.9375rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--rule);
	border-radius: var(--radius-pill);
	color: var(--ink);
	font-size: 0.875rem;
	text-decoration: none;
}
.tag-list a:hover { border-color: var(--ink); }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--rule);
}
.post-nav__link { display: grid; gap: 4px; text-decoration: none; }
.post-nav__link span { color: var(--muted); font-size: 0.875rem; }
.post-nav__link strong { font-weight: 650; line-height: 1.3; }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__link:hover strong { color: var(--key); }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	border-radius: var(--radius-pill);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .dots { border: 0; }

/* Legal page layout */
.legal { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, var(--read)); gap: 48px 72px; align-items: start; }
.legal__toc { position: sticky; top: 24px; font-size: 0.9375rem; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.legal__toc li a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.legal__toc li a:hover { color: var(--ink); border-left-color: var(--key); }
.legal--no-toc { grid-template-columns: minmax(0, var(--read)); }
@media (max-width: 900px) {
	.legal { grid-template-columns: 1fr; }
	.legal__toc { position: static; }
}

.page-actions { margin-top: 20px; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-field {
	width: 100%;
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid var(--rule);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
}
.search-field:focus { outline: 2px solid var(--key); outline-offset: 1px; border-color: transparent; }

/* 404 */
.nosignal {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 7;
	margin-top: 32px;
	border-radius: var(--radius-frame);
	background: var(--monitor);
	color: var(--monitor-muted);
	padding: 10px;
}
.nosignal span {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: var(--radius-screen);
	background: #07090d;
	font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	font-weight: 750;
	font-stretch: var(--wide);
}

/* Comments */
.comments { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }
.comments__title { font-size: 1.5rem; font-weight: 750; font-stretch: var(--semi); }
.comment-list { margin: 24px 0 0; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: 24px; list-style: none; border-left: 2px solid var(--rule); }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.9375rem; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.comment-content { margin-top: 10px; }
.comment-content p + p { margin-top: 0.8em; }
.reply { margin-top: 8px; font-size: 0.875rem; font-weight: 600; }
.comment-respond { margin-top: 32px; }
.comment-reply-title { font-size: 1.25rem; font-weight: 700; }
.comment-form { display: grid; gap: 14px; margin-top: 16px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--rule);
	border-radius: var(--radius-control);
	background: var(--surface);
	color: var(--ink);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: 2px solid var(--key); outline-offset: 1px; border-color: transparent; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.form-submit .submit {
	min-height: 46px;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--key);
	color: var(--key-ink);
	font-weight: 650;
	cursor: pointer;
}
.logged-in-as,
.comment-notes { color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer {
	margin-top: clamp(72px, 10vw, 136px);
	padding-block: 40px 48px;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.9375rem;
}
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px 48px;
	align-items: start;
}
.site-footer__about { display: grid; gap: 12px; max-width: 42ch; }
.site-footer .brand { margin: 0; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer__nav a:hover { color: var(--key); }
.site-footer__legal { grid-column: 1 / -1; font-size: 0.8125rem; }
@media (max-width: 760px) {
	.site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Motion preferences
---------------------------------------------------------------- */
@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;
	}
	.wwm-scan--intro { display: none; }
}
