@charset "UTF-8";
/* ==========================================================================
   LOL.xyz theme
   Light is the default palette. Dark follows the device unless the visitor has
   picked a side with the header toggle, which stamps data-theme on <html>.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	--brand: #ffd400;
	--brand-deep: #f5b800;
	--pop: #ff2d6f;
	--ink: #101114;

	--bg: #ffffff;
	--bg-2: #f4f6f9;
	--bg-3: #eaeef4;
	--surface: #ffffff;
	--surface-2: #f7f8fa;
	--text: #14161a;
	--text-strong: #000000;
	--muted: #626a78;
	--border: #e3e7ee;
	--border-strong: #cfd6e1;

	--shadow-sm: 0 1px 2px rgb(16 17 20 / 0.06), 0 2px 8px rgb(16 17 20 / 0.05);
	--shadow-md: 0 2px 6px rgb(16 17 20 / 0.07), 0 12px 28px rgb(16 17 20 / 0.09);
	--shadow-lg: 0 10px 20px rgb(16 17 20 / 0.09), 0 30px 60px rgb(16 17 20 / 0.13);
	--scrim: rgb(10 11 13 / 0.55);
	--header-bg: rgb(255 255 255 / 0.86);

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--radius-pill: 999px;

	--wrap: 1240px;
	--wrap-wide: 1500px;
	--wrap-reading: 760px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 60px;

	--font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0c0d10;
		--bg-2: #121419;
		--bg-3: #191c22;
		--surface: #16181d;
		--surface-2: #1c1f26;
		--text: #f0f2f5;
		--text-strong: #ffffff;
		--muted: #99a1b0;
		--border: #262a33;
		--border-strong: #343945;

		--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.5);
		--shadow-md: 0 2px 6px rgb(0 0 0 / 0.5), 0 12px 28px rgb(0 0 0 / 0.45);
		--shadow-lg: 0 10px 20px rgb(0 0 0 / 0.5), 0 30px 60px rgb(0 0 0 / 0.55);
		--scrim: rgb(0 0 0 / 0.68);
		--header-bg: rgb(12 13 16 / 0.86);

		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #0c0d10;
	--bg-2: #121419;
	--bg-3: #191c22;
	--surface: #16181d;
	--surface-2: #1c1f26;
	--text: #f0f2f5;
	--text-strong: #ffffff;
	--muted: #99a1b0;
	--border: #262a33;
	--border-strong: #343945;

	--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.5);
	--shadow-md: 0 2px 6px rgb(0 0 0 / 0.5), 0 12px 28px rgb(0 0 0 / 0.45);
	--shadow-lg: 0 10px 20px rgb(0 0 0 / 0.5), 0 30px 60px rgb(0 0 0 / 0.55);
	--scrim: rgb(0 0 0 / 0.68);
	--header-bg: rgb(12 13 16 / 0.86);

	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 16px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text-strong);
	font-weight: 800;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
	color: inherit;
	text-decoration: none;
}

img, svg, video, iframe {
	max-width: 100%;
	display: block;
}

img { height: auto; }

button {
	font: inherit;
	color: inherit;
	border: 0;
	background: none;
	cursor: pointer;
}

input, select, textarea { font: inherit; }

:focus-visible {
	outline: 3px solid var(--pop);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: var(--brand);
	color: var(--ink);
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	top: 8px;
	left: 8px;
	z-index: 200;
	padding: 12px 18px;
	background: var(--brand);
	color: var(--ink);
	font-weight: 700;
	border-radius: var(--radius-sm);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--wide { max-width: var(--wrap-wide); }
.wrap--reading { max-width: calc(var(--wrap-reading) + var(--gutter) * 2); }
.wrap--narrow { max-width: 820px; }

.site {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.site-main {
	flex: 1 0 auto;
	padding-bottom: clamp(48px, 8vw, 90px);
}

.icon {
	flex: none;
	width: 20px;
	height: 20px;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

/* Deliberately not sticky: the bar scrolls away with the page. */
.header {
	position: relative;
	z-index: 60;
}

.header__bar {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 10px;
	height: var(--header-h);
}

.header__menu { display: inline-flex; }

.header__brand {
	display: flex;
	align-items: center;
	margin-inline-end: auto;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 900;
	letter-spacing: -0.045em;
	font-size: 25px;
	line-height: 1;
	color: var(--text-strong);
}

.brand__mark { display: inline-flex; }

.brand__mark svg { transition: transform 0.35s var(--ease); }
.brand:hover .brand__mark svg { transform: rotate(-12deg) scale(1.06); }

.brand__lol { color: var(--text-strong); }

.brand__tld {
	color: var(--muted);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.brand-custom,
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 38px; width: auto; }

/* The uploaded logo carries the light theme; its black lettering would vanish
   on a dark background, so the vector wordmark takes over there. */
.brand--alt { display: none; }

:root[data-theme="dark"] .brand-custom { display: none; }
:root[data-theme="dark"] .brand--alt { display: inline-flex; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand-custom { display: none; }
	:root:not([data-theme="light"]) .brand--alt { display: inline-flex; }
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav--desktop { display: none; }

.nav--desktop .nav__list > li > a {
	display: inline-block;
	padding: 8px 12px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 15px;
	color: var(--muted);
	transition: color 0.15s, background-color 0.15s;
}

.nav--desktop .nav__list > li > a:hover,
.nav--desktop .current-menu-item > a,
.nav--desktop .current-category-ancestor > a {
	color: var(--text-strong);
	background: var(--bg-3);
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-pill);
	color: var(--text);
	transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.icon-btn:hover { background: var(--bg-3); }
.icon-btn:active { transform: scale(0.93); }

.theme-toggle .icon--moon { display: none; }

:root[data-theme="dark"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: block; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon--sun { display: none; }
	:root:not([data-theme="light"]) .theme-toggle .icon--moon { display: block; }
}

/* Search panel ------------------------------------------------------------ */

.search-panel {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding-block: 14px;
	box-shadow: var(--shadow-sm);
}

.search-panel[hidden] { display: none; }

.searchform__row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 5px 5px 5px 16px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.searchform__row:focus-within {
	border-color: var(--brand-deep);
	box-shadow: 0 0 0 4px rgb(255 212 0 / 0.22);
}

.searchform__icon { color: var(--muted); }

.searchform__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	color: var(--text);
	padding: 9px 0;
	font-size: 16px;
}

.searchform__input:focus { outline: none; }
.searchform__input::placeholder { color: var(--muted); }

.searchform__submit {
	flex: none;
	background: var(--brand);
	color: var(--ink);
	font-weight: 800;
	padding: 9px 20px;
	border-radius: var(--radius-pill);
	transition: filter 0.15s, transform 0.15s;
}

.searchform__submit:hover { filter: brightness(1.06); }
.searchform__submit:active { transform: scale(0.97); }

/* Pill bar ---------------------------------------------------------------- */

.pillbar {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.pillbar__inner {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-block: 10px;
	-webkit-overflow-scrolling: touch;
}

.pillbar__inner::-webkit-scrollbar { display: none; }

.pill {
	flex: none;
	padding: 6px 15px;
	border-radius: var(--radius-pill);
	background: var(--bg-2);
	border: 1px solid var(--border);
	color: var(--muted);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.pill:hover {
	color: var(--text-strong);
	border-color: var(--border-strong);
}

.pill.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

:root[data-theme="dark"] .pill.is-active { background: var(--brand); color: var(--ink); border-color: var(--brand); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .pill.is-active { background: var(--brand); color: var(--ink); border-color: var(--brand); }
}

/* Drawer ------------------------------------------------------------------ */

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }

.drawer__scrim {
	position: absolute;
	inset: 0;
	background: var(--scrim);
	border: 0;
	animation: fade 0.2s var(--ease);
}

.drawer__panel {
	position: relative;
	z-index: 1;
	width: min(340px, 86vw);
	height: 100%;
	overflow-y: auto;
	background: var(--surface);
	border-inline-end: 1px solid var(--border);
	padding: 14px 20px 32px;
	animation: slide-in 0.25s var(--ease);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
}

.brand--drawer { font-size: 22px; }

.nav--drawer .nav__list {
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
}

.nav--drawer .nav__list a {
	display: block;
	padding: 12px 14px;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 17px;
	transition: background-color 0.15s;
}

.nav--drawer .nav__list a:hover,
.nav--drawer .current-menu-item > a { background: var(--bg-3); }

.nav--drawer .sub-menu {
	list-style: none;
	margin: 0;
	padding-inline-start: 14px;
}

@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }

/* --------------------------------------------------------------------------
   4. Buttons and chips
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: var(--bg-2);
	border: 1px solid var(--border);
	color: var(--text);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	transition: background-color 0.15s, border-color 0.15s, transform 0.15s, filter 0.15s;
}

.btn:hover { border-color: var(--border-strong); background: var(--bg-3); }
.btn:active { transform: scale(0.98); }

.btn--primary,
.btn--random {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--ink);
}

.btn--primary:hover,
.btn--random:hover {
	background: var(--brand);
	border-color: var(--brand-deep);
	filter: brightness(1.06);
}

.btn--block { width: 100%; }

.btn--load {
	padding: 13px 34px;
	font-size: 16px;
}

.btn.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.btn--random .btn__text { display: none; }
.btn--random { padding-inline: 11px; }

.chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: var(--radius-pill);
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.5;
	transition: filter 0.15s;
}

.chip:hover { filter: brightness(1.15); }
.chip--sm { font-size: 11px; padding: 3px 9px; }

/* Category accents keep the feed scannable at a glance. */
.chip[data-cat="funny"] { background: #ff9500; color: #201400; }
.chip[data-cat="lol"] { background: var(--brand); color: var(--ink); }
.chip[data-cat="epic-fail"] { background: var(--pop); color: #fff; }
.chip[data-cat="wtf"] { background: #7b5cff; color: #fff; }
.chip[data-cat="cute"] { background: #23c4a0; color: #00251c; }
.chip[data-cat="nsfw"] { background: #e5242b; color: #fff; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero { padding-top: clamp(18px, 3vw, 30px); }

.hero__card {
	position: relative;
	display: block;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-3);
	box-shadow: var(--shadow-md);
	isolation: isolate;
}

.hero__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--bg-3);
}

@media (min-width: 700px) {
	.hero__media { aspect-ratio: 16 / 9; }
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.hero__card:hover .hero__media img { transform: scale(1.03); }

.hero__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: clamp(20px, 4vw, 40px);
	background: linear-gradient(to top, rgb(6 7 9 / 0.92) 8%, rgb(6 7 9 / 0.72) 45%, rgb(6 7 9 / 0) 100%);
	color: #fff;
}

.hero__kicker {
	display: inline-block;
	background: var(--brand);
	color: var(--ink);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: var(--radius-pill);
	margin-bottom: 12px;
}

.hero__title {
	color: #fff;
	font-size: clamp(24px, 4.6vw, 46px);
	text-wrap: balance;
	max-width: 20ch;
	text-shadow: 0 2px 18px rgb(0 0 0 / 0.4);
}

.hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-weight: 800;
	color: var(--brand);
	font-size: 15px;
}

.hero__cta .icon { transition: transform 0.25s var(--ease); }
.hero__card:hover .hero__cta .icon { transform: translateX(4px); }

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding-top: 14px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Section headings
   -------------------------------------------------------------------------- */

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: clamp(30px, 5vw, 52px) 0 clamp(16px, 2.5vw, 24px);
}

.section-head__title {
	font-size: clamp(20px, 3vw, 28px);
	position: relative;
	padding-inline-start: 16px;
}

.section-head__title::before {
	content: "";
	position: absolute;
	inset-block: 4px;
	inset-inline-start: 0;
	width: 6px;
	border-radius: var(--radius-pill);
	background: var(--brand);
}

.section-head__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	transition: color 0.15s;
}

.section-head__more:hover { color: var(--text-strong); }

.page-head {
	padding: clamp(26px, 5vw, 48px) 0 clamp(14px, 2vw, 22px);
	border-bottom: 1px solid var(--border);
	margin-bottom: clamp(20px, 3vw, 32px);
}

.page-head__title { font-size: clamp(26px, 5vw, 42px); text-wrap: balance; }
.page-head__desc { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.page-head__count { color: var(--muted); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.page-head__search { margin-top: 18px; max-width: 520px; }

/* --------------------------------------------------------------------------
   7. Card grid
   -------------------------------------------------------------------------- */

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(16px, 2.4vw, 26px);
}

@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
	animation: card-in 0.4s var(--ease) both;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--border-strong);
}

@keyframes card-in {
	from { opacity: 0; transform: translateY(10px); }
}

.card__link { display: block; }

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--bg-3);
	overflow: hidden;
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s var(--ease);
}

.card:hover .card__img { transform: scale(1.05); }

.card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-weight: 900;
	font-size: 34px;
	letter-spacing: -0.04em;
	color: var(--border-strong);
}

.card__count {
	position: absolute;
	inset-block-end: 10px;
	inset-inline-end: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: var(--radius-pill);
	background: rgb(8 9 11 / 0.76);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.card__count .icon { width: 14px; height: 14px; }

.card__title {
	font-size: 18px;
	line-height: 1.3;
	padding: 15px 17px 0;
	text-wrap: balance;
	transition: color 0.15s;
}

.card__link:hover .card__title { color: var(--pop); }

.card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 11px 17px 15px;
	margin-top: auto;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

.entry__author a {
	color: var(--text-strong);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--border-strong);
	transition: text-decoration-color 0.15s, color 0.15s;
}

.entry__author a:hover {
	color: var(--pop);
	text-decoration-color: currentColor;
}

.card__views,
.entry__views,
.entry__count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.card__views .icon,
.entry__views .icon,
.entry__count .icon { width: 15px; height: 15px; }

.card__date { margin-inline-start: auto; }

.card--featured .card__title { font-size: 22px; }

/* --------------------------------------------------------------------------
   8. Feed controls
   -------------------------------------------------------------------------- */

.feed__foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: clamp(28px, 5vw, 48px) 0 0;
}

.feed__sentinel { width: 100%; height: 1px; }

.feed__status {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	min-height: 1.4em;
	text-align: center;
}

.feed.is-loading .btn--load,
.feed.is-done .btn--load { display: none; }

/* With JS on, the crawlable links stay in the DOM but out of the way. */
.js .pagination-fallback { display: none; }

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding-top: 12px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border-radius: var(--radius-pill);
	background: var(--bg-2);
	border: 1px solid var(--border);
	font-weight: 700;
	font-size: 15px;
}

.pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--border-strong);
	border-top-color: var(--brand-deep);
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   9. Single post shell
   -------------------------------------------------------------------------- */

.entry__head {
	padding: clamp(26px, 5vw, 46px) 0 clamp(16px, 2.5vw, 24px);
	text-align: center;
}

.entry__title {
	font-size: clamp(27px, 5.4vw, 48px);
	text-wrap: balance;
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 9px 15px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.entry__intro {
	font-size: 18px;
	color: var(--muted);
	text-align: center;
	max-width: 62ch;
	margin-inline: auto;
	padding-bottom: clamp(18px, 3vw, 30px);
}

.prose { line-height: 1.7; }
.prose h2 { font-size: 26px; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 0.5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: 0.4em; }

.prose a {
	color: var(--pop);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
}

.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-inline-start: 4px solid var(--brand);
	color: var(--muted);
	font-style: italic;
}

.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignleft { float: left; margin: 0 1.4em 1em 0; }
.prose .alignright { float: right; margin: 0 0 1em 1.4em; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text {
	font-size: 14px;
	color: var(--muted);
	text-align: center;
	margin-top: 8px;
}

.page-entry__thumb { margin-bottom: clamp(20px, 4vw, 34px); }
.page-entry__thumb img { border-radius: var(--radius-lg); width: 100%; }

/* --------------------------------------------------------------------------
   10. Photos
   -------------------------------------------------------------------------- */

.photos {
	display: flex;
	flex-direction: column;
	gap: clamp(26px, 4.5vw, 48px);
}

.photo {
	position: relative;
	margin: 0;
	scroll-margin-top: 20px;
}

.photo__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding-inline: 10px;
	margin-bottom: 12px;
	border-radius: var(--radius-pill);
	background: var(--brand);
	color: var(--ink);
	font-weight: 900;
	font-size: 15px;
	letter-spacing: -0.02em;
	box-shadow: var(--shadow-sm);
}

.photo__frame {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-3);
	box-shadow: var(--shadow-sm);
	line-height: 0;
}

.photo__img {
	width: 100%;
	height: auto;
}

.photo__embed {
	position: relative;
	aspect-ratio: 16 / 9;
}

.photo__embed iframe,
.photo__embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.photo__caption {
	padding-top: 12px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

.photo__caption a { color: var(--pop); text-decoration: underline; }

/* Slideshow frame: fit the whole photo on screen, however tall it is, and stay
   close to the photo rather than stretching across the page. */
.photo--contain {
	max-width: none;
	margin-inline: 0;
}

.photo--contain .photo__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 8px;
}

/* Sized from the space left over, so the counter and the Next button stay above
   the fold instead of forcing a scroll between every photo. The subtracted
   figure is the rest of the page chrome, measured rather than guessed. */
.photo--contain .photo__img {
	width: auto;
	max-width: 100%;
	max-height: clamp(260px, calc(100dvh - 316px), 760px);
	object-fit: contain;
	border-radius: var(--radius-sm);
}

/* A leaderboard above the title costs about another 100px. */
.has-ad-top .photo--contain .photo__img {
	max-height: clamp(240px, calc(100dvh - 414px), 660px);
}

.photo--contain .share {
	justify-content: center;
	padding-top: 10px;
}

/* --------------------------------------------------------------------------
   11. Share
   -------------------------------------------------------------------------- */

.share {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	padding-top: 12px;
}

.share__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	margin-inline-end: 2px;
}

.share--photo .share__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-pill);
	background: var(--bg-2);
	border: 1px solid var(--border);
	color: var(--muted);
	transition: color 0.15s, background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.share__btn .icon { width: 17px; height: 17px; }

.share__btn:hover {
	color: var(--text-strong);
	border-color: var(--border-strong);
	background: var(--bg-3);
	transform: translateY(-2px);
}

.share__btn--x:hover { background: #000; border-color: #000; color: #fff; }
.share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share__btn--reddit:hover { background: #ff4500; border-color: #ff4500; color: #fff; }
.share__btn--native { display: none; }

.share__btn--copy .icon--check { display: none; }
.share__btn--copy.is-copied {
	background: #17a673;
	border-color: #17a673;
	color: #fff;
}
.share__btn--copy.is-copied .icon--link { display: none; }
.share__btn--copy.is-copied .icon--check { display: block; }

.share--post {
	justify-content: center;
	padding-top: 0;
}

.entry__foot--tight {
	margin-top: 16px;
	padding: 14px;
}

.entry__foot {
	margin-top: clamp(34px, 6vw, 60px);
	padding: clamp(22px, 4vw, 32px);
	border-radius: var(--radius-lg);
	background: var(--bg-2);
	border: 1px solid var(--border);
	text-align: center;
}

.entry__foot-title {
	font-weight: 800;
	font-size: 18px;
	color: var(--text-strong);
	margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   12. Slideshow
   -------------------------------------------------------------------------- */

/* Centre column with an ad rail either side. The rails drop out below 1180px
   rather than squeezing the photo. */
.showgrid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.showgrid__main {
	min-width: 0;
	width: 100%;
	max-width: 1040px;
	margin-inline: auto;
}

.showgrid__rail { display: none; }

@media (min-width: 1180px) {
	.showgrid {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 24px;
	}

	.showgrid__rail { display: block; width: 300px; }

	/* An unsold rail collapses rather than leaving a blank gutter. */
	.showgrid__rail.is-empty { width: 0; }

	.showgrid__rail .ad-wrap { margin: 0; }
}

.entry--slideshow .ad-wrap { margin: 10px 0; }

/* The pill bar duplicates the header nav, and on a slideshow every pixel above
   the Next button costs a click. */
.layout-slideshow .pillbar { display: none; }

.entry__head--tight {
	padding: 10px 0 12px;
}

.entry__head--tight .entry__title {
	font-size: clamp(21px, 2.4vw, 31px);
}

.entry__head--tight .entry__meta {
	margin-top: 9px;
	font-size: 13px;
}

.entry--slideshow .slidenav { margin-top: 10px; }

.slidenav__top {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.share--inline {
	padding-top: 0;
	gap: 6px;
}

.share--inline .share__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.share--inline .share__btn {
	width: 32px;
	height: 32px;
}

.share--inline .share__btn .icon {
	width: 15px;
	height: 15px;
}

.slidenav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
}

.slidenav__count {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.slidenav__count strong { color: var(--text-strong); font-weight: 900; }

.slidenav__track {
	width: min(100%, 460px);
	height: 6px;
	border-radius: var(--radius-pill);
	background: var(--bg-3);
	overflow: hidden;
}

.slidenav__fill {
	display: block;
	height: 100%;
	border-radius: var(--radius-pill);
	background: linear-gradient(90deg, var(--brand-deep), var(--brand));
	transition: width 0.3s var(--ease);
}

.slidenav__buttons {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 10px;
	width: min(100%, 520px);
}

.btn--nav {
	padding: 13px 20px;
	font-size: 16px;
	font-weight: 800;
}

.btn--next {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--ink);
}

.btn--next:hover { border-color: var(--brand-deep); filter: brightness(1.06); background: var(--brand); }

.slidenav__hint {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.thumbs { margin-top: clamp(24px, 4vw, 36px); }

.entry--slideshow .thumbs { margin-top: 14px; }

.thumbs__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 4px 0 10px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.thumbs__item { flex: none; }

.thumbs__item a {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid transparent;
	background: var(--bg-3);
	opacity: 0.55;
	transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
}

.thumbs__item a:hover { opacity: 1; transform: translateY(-2px); }

.thumbs__item.is-active a {
	opacity: 1;
	border-color: var(--brand);
}

.thumbs__item img { width: 100%; height: 100%; object-fit: cover; }

.thumbs__num {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-weight: 800;
	color: var(--muted);
}

/* Reading progress -------------------------------------------------------- */

.progress {
	position: fixed;
	top: 0;
	inset-inline: 0;
	height: 3px;
	z-index: 80;
	pointer-events: none;
}

.progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--brand-deep), var(--pop));
	transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   13. Tags and related
   -------------------------------------------------------------------------- */

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: clamp(24px, 4vw, 34px);
	justify-content: center;
}

.tag {
	padding: 5px 13px;
	border-radius: var(--radius-pill);
	background: var(--bg-2);
	border: 1px solid var(--border);
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	transition: color 0.15s, border-color 0.15s;
}

.tag:hover { color: var(--text-strong); border-color: var(--border-strong); }

.related { margin-top: clamp(22px, 3vw, 38px); }
.layout-slideshow .site-main { padding-bottom: clamp(28px, 4vw, 48px); }

.related {
	margin-top: clamp(40px, 7vw, 76px);
	padding-top: clamp(10px, 2vw, 20px);
	border-top: 1px solid var(--border);
}

.ad-wrap {
	margin: clamp(22px, 4vw, 34px) 0;
	display: flex;
	justify-content: center;
}

.ad-slot__label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	text-align: center;
	margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   14. Empty states
   -------------------------------------------------------------------------- */

.empty {
	text-align: center;
	padding: clamp(48px, 10vw, 110px) 0;
	max-width: 560px;
	margin-inline: auto;
	color: var(--muted);
}

.empty__code {
	font-size: clamp(72px, 18vw, 150px);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.05em;
	margin: 0 0 8px;
	background: linear-gradient(140deg, var(--brand), var(--pop));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.empty__title {
	font-size: clamp(21px, 4vw, 28px);
	font-weight: 800;
	color: var(--text-strong);
	margin-bottom: 8px;
}

.empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
}

.empty__actions .btn--random .btn__text,
.empty .btn--random .btn__text { display: inline; }
.empty .btn--random { padding-inline: 18px; }

.empty__search { margin-top: 22px; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.footer {
	background: var(--bg-2);
	border-top: 1px solid var(--border);
	margin-top: auto;
}

.footer__widgets {
	display: grid;
	gap: 24px;
	padding-block: clamp(28px, 5vw, 44px);
	border-bottom: 1px solid var(--border);
}

@media (min-width: 760px) {
	.footer__widgets { grid-template-columns: repeat(3, 1fr); }
}

.footer__widget-title,
.footer-widget__title { font-size: 16px; margin-bottom: 10px; }

.footer__inner {
	display: grid;
	gap: 26px;
	padding-block: clamp(30px, 5vw, 50px);
}

@media (min-width: 760px) {
	.footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
}

.brand--footer { font-size: 26px; }

.footer__tagline {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 15px;
	max-width: 34ch;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--muted);
	transition: color 0.15s, background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.social__link .icon { width: 18px; height: 18px; }

.social__link:hover {
	color: var(--text-strong);
	border-color: var(--border-strong);
	transform: translateY(-2px);
}

.social__link--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.social__link--x:hover { background: #000; border-color: #000; color: #fff; }
.social__link--instagram:hover { background: #d62976; border-color: #d62976; color: #fff; }
.social__link--youtube:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.social__link--tiktok:hover { background: #010101; border-color: #010101; color: #fff; }
.social__link--pinterest:hover { background: #e60023; border-color: #e60023; color: #fff; }
.social__link--reddit:hover { background: #ff4500; border-color: #ff4500; color: #fff; }

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__list a {
	color: var(--muted);
	font-weight: 600;
	font-size: 15px;
	transition: color 0.15s;
}

.footer__list a:hover { color: var(--text-strong); }

.footer__legal {
	padding-block: 20px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.footer__legal p { margin: 0; }

/* --------------------------------------------------------------------------
   16. Floating bits
   -------------------------------------------------------------------------- */

.to-top {
	position: fixed;
	inset-block-end: 20px;
	inset-inline-end: 20px;
	z-index: 70;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--border-strong);
	color: var(--text);
	box-shadow: var(--shadow-md);
	animation: pop-in 0.2s var(--ease);
	transition: transform 0.15s, background-color 0.15s;
}

.to-top[hidden] { display: none; }
.to-top:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.to-top:active { transform: scale(0.93); }

@keyframes pop-in { from { opacity: 0; transform: scale(0.8); } }

.toast {
	position: fixed;
	inset-block-end: 24px;
	inset-inline: 0;
	z-index: 100;
	margin-inline: auto;
	width: fit-content;
	max-width: calc(100% - 32px);
	padding: 11px 20px;
	border-radius: var(--radius-pill);
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	box-shadow: var(--shadow-lg);
	animation: pop-in 0.2s var(--ease);
}

.toast[hidden] { display: none; }

:root[data-theme="dark"] .toast { background: var(--surface-2); border: 1px solid var(--border-strong); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .toast { background: var(--surface-2); border: 1px solid var(--border-strong); }
}

/* --------------------------------------------------------------------------
   17. Larger screens
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
	:root { --header-h: 68px; }

	.btn--random .btn__text { display: inline; }
	.btn--random { padding-inline: 18px; }

	.share--photo { opacity: 0.55; transition: opacity 0.2s; }
	.photo:hover .share--photo,
	.share--photo:focus-within { opacity: 1; }
}

@media (min-width: 1000px) {
	body { font-size: 18px; }

	.nav--desktop { display: block; }
	.header__menu { display: none; }

	.slidenav__buttons { grid-template-columns: 1fr 1.6fr; }
}

/* --------------------------------------------------------------------------
   18. Motion and print
   -------------------------------------------------------------------------- */

@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;
	}
}

@media print {
	.header, .footer, .to-top, .share, .slidenav, .thumbs, .related,
	.progress, .feed__foot { display: none !important; }

	body { background: #fff; color: #000; font-size: 12pt; }
	.photo { break-inside: avoid; }
}
