/* GlidePress Slider website. System fonts only: the site makes no outside requests. */

:root {
	--indigo-950: #1e1b4b;
	--indigo-900: #312e81;
	--blue-600: #2563eb;
	--sky-400: #38bdf8;

	--bg: #ffffff;
	--surface: #f5f7ff;
	--text: #0f172a;
	--muted: #475569;
	--border: #e2e8f0;
	--link: #1d4ed8;
	--code-bg: #eef2ff;
	--shadow: 0 24px 60px -24px rgb(30 27 75 / 0.35);

	--radius: 16px;
	--wrap: 1200px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b1020;
		--surface: #111734;
		--text: #e2e8f0;
		--muted: #94a3b8;
		--border: #1f2a4a;
		--link: #7dd3fc;
		--code-bg: #18204a;
		--shadow: 0 24px 60px -24px rgb(0 0 0 / 0.6);
	}
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 1.0625rem/1.65 var(--font);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--link);
	text-underline-offset: 0.18em;
}

:focus-visible {
	outline: 3px solid var(--sky-400);
	outline-offset: 2px;
}

.wrap {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}

.narrow {
	max-width: 760px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	background: var(--text);
	color: var(--bg);
}

.skip-link:focus {
	top: 1rem;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--border);
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
	letter-spacing: -0.01em;
}

.brand img {
	border-radius: 8px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem 1.25rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.site-nav a:not(.button) {
	color: var(--muted);
	font-weight: 500;
	text-decoration: none;
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] {
	color: var(--text);
}

@media (max-width: 640px) {
	.brand span,
	.site-nav a[href="/docs/#extending-the-plugin"] {
		display: none;
	}
}

/* Buttons */

.button,
.wp-block-button__link {
	display: inline-block;
	padding: 0.8rem 1.3rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--blue-600);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover,
.wp-block-button__link:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

.button--small {
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
}

.button--ghost {
	border-color: currentColor;
	background: transparent;
	color: inherit;
}

.button--ghost:hover {
	background: rgb(255 255 255 / 0.12);
}

@media (prefers-reduced-motion: reduce) {
	.button,
	.wp-block-button__link {
		transition: none;
	}

	.button:hover,
	.wp-block-button__link:hover {
		transform: none;
	}
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 2rem 0 0;
}

/* Hero */

.hero {
	position: relative;
	padding: 5.5rem 0 9rem;
	overflow: hidden;
	background:
		radial-gradient(60% 80% at 80% 20%, rgb(56 189 248 / 0.28), transparent 70%),
		linear-gradient(135deg, var(--indigo-950) 0%, var(--indigo-900) 55%, var(--blue-600) 100%);
	color: #fff;
}

.hero__inner {
	max-width: 880px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 1rem;
	color: #c7d2fe;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.4rem, 6vw, 4.25rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.lede {
	max-width: 42rem;
	margin: 1.5rem auto 0;
	color: #dbeafe;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero .actions {
	justify-content: center;
}

.hero .button:not(.button--ghost) {
	background: #fff;
	color: var(--indigo-950);
}

/* Live sliders */

.demo--hero {
	width: min(100% - 2.5rem, var(--wrap));
	margin: -6rem auto 0;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.demo .wp-block-glidepress-slide h2,
.demo .wp-block-glidepress-slide h3 {
	margin: 0 0 0.5rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.demo--hero .wp-block-glidepress-slide {
	padding: clamp(1.75rem, 5vw, 3rem) clamp(1.5rem, 8vw, 5rem) !important;
}

.demo--hero .wp-block-glidepress-slide h2 {
	font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.demo--hero .wp-block-glidepress-slide p {
	max-width: 34rem;
	margin: 0 0 1.5rem;
	font-size: 1.125rem;
	opacity: 0.92;
}

.demo--hero .wp-block-button__link {
	background: #fff;
	color: var(--indigo-950);
}

.demo--carousel {
	margin-top: 2.5rem;
}

.demo--carousel .wp-block-glidepress-slide {
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.demo--carousel .wp-block-glidepress-slide p {
	margin: 0;
	opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
	.demo--carousel .wp-block-glidepress-slide {
		background: var(--surface) !important;
		color: var(--text) !important;
	}
}

.demo--ticker {
	margin-top: 3rem;
	padding: 1.25rem 0;
	border-block: 1px solid var(--border);
}

.demo--ticker .wp-block-glidepress-slide p {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	opacity: 0.75;
}

@media (prefers-color-scheme: dark) {
	.demo--ticker .wp-block-glidepress-slide {
		color: #c7d2fe !important;
	}
}

.caption {
	margin: 0.75rem 0 0;
	color: var(--muted);
	font-size: 0.9375rem;
	text-align: center;
}

/* Sections */

.section {
	padding: 6rem 0;
}

.section--alt {
	background: var(--surface);
}

.section__title {
	max-width: 760px;
	margin: 0 auto;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-align: center;
}

.section__lede {
	max-width: 640px;
	margin: 1rem auto 0;
	color: var(--muted);
	font-size: 1.125rem;
	text-align: center;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 1.25rem;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.features li {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
}

.features h3 {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	letter-spacing: -0.01em;
}

.features p {
	flex: 1;
	margin: 0 0 1rem;
	color: var(--muted);
}

.features a {
	font-weight: 600;
}

.cta {
	background: linear-gradient(135deg, var(--indigo-950), var(--blue-600));
	color: #fff;
	text-align: center;
}

.cta h2 {
	margin: 0;
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	letter-spacing: -0.03em;
}

.cta p {
	color: #dbeafe;
	font-size: 1.125rem;
}

.cta .actions {
	justify-content: center;
}

.cta .button:not(.button--ghost) {
	background: #fff;
	color: var(--indigo-950);
}

/* Docs */

.docs {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr) 200px;
	gap: 3rem;
	padding: 3rem 0 5rem;
}

.docs-nav,
.toc {
	position: sticky;
	top: 5.5rem;
	align-self: start;
	max-height: calc(100vh - 7rem);
	overflow: auto;
	font-size: 0.9375rem;
}

.docs-nav__home {
	display: block;
	margin-bottom: 1rem;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
}

.docs-nav__group,
.toc p {
	margin: 1.25rem 0 0.4rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.docs-nav ul,
.toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.docs-nav li a,
.toc a {
	display: block;
	padding: 0.3rem 0.6rem;
	border-radius: 8px;
	color: var(--muted);
	text-decoration: none;
}

.docs-nav li a:hover,
.toc a:hover {
	color: var(--text);
}

.docs-nav a[aria-current="page"] {
	background: var(--code-bg);
	color: var(--text);
	font-weight: 600;
}

@media (max-width: 1100px) {
	.docs {
		grid-template-columns: 210px minmax(0, 1fr);
	}

	.toc {
		display: none;
	}
}

@media (max-width: 800px) {
	.docs {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
		padding-top: 1.5rem;
	}

	.docs-nav {
		position: static;
		max-height: none;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--border);
	}
}

/* Prose */

.prose {
	min-width: 0;
	max-width: 72ch;
}

.wrap.narrow .prose,
.wrap.narrow.prose {
	padding: 3rem 0 5rem;
}

.prose h1 {
	margin: 0 0 1.5rem;
	font-size: clamp(2rem, 4vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.prose h2 {
	margin: 2.75rem 0 0.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	font-size: 1.5rem;
	letter-spacing: -0.02em;
}

.prose h3 {
	margin: 2rem 0 0.5rem;
	font-size: 1.2rem;
}

.prose h2,
.prose h3 {
	position: relative;
}

.anchor {
	position: absolute;
	left: -1.2em;
	color: var(--muted);
	text-decoration: none;
	opacity: 0;
}

.prose h2:hover .anchor,
.prose h3:hover .anchor {
	opacity: 1;
}

.prose code {
	padding: 0.1em 0.35em;
	border-radius: 6px;
	background: var(--code-bg);
	font: 0.875em var(--mono);
}

.prose pre {
	overflow-x: auto;
	padding: 1.1rem 1.25rem;
	border-radius: 12px;
	background: #0f172a;
	color: #e2e8f0;
	font-size: 0.875rem;
	line-height: 1.55;
	tab-size: 4;
}

.prose pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.prose table {
	display: block;
	overflow-x: auto;
	width: 100%;
	margin: 1.25rem 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.prose th,
.prose td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.prose th {
	color: var(--muted);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.prose li + li {
	margin-top: 0.35rem;
}

/* Footer */

.site-footer {
	padding: 2.5rem 0;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.9375rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-footer p {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}

.site-footer nav {
	display: flex;
	gap: 1.25rem;
}

.site-footer a {
	color: var(--muted);
}
