/*
 * Tokens copied from WordPress/wporg-parent-2021's theme.json under the names
 * it generates, and measurements taken from wordpress.org's own pages, so
 * this page can move into a WordPress.org theme unchanged.
 */

@font-face {
	font-family: Inter;
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	src: url(fonts/Inter-latin.woff2) format("woff2");
}

@font-face {
	font-family: "EB Garamond";
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	src: url(fonts/EBGaramond-latin.woff2) format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url(fonts/IBMPlexMono-Regular-latin.woff2) format("woff2");
}

:root {
	--wp--preset--color--charcoal-1: #1e1e1e;
	--wp--preset--color--charcoal-2: #23282d;
	--wp--preset--color--charcoal-3: #40464d;
	--wp--preset--color--charcoal-4: #656a71;
	--wp--preset--color--light-grey-1: #d9d9d9;
	--wp--preset--color--light-grey-2: #f6f6f6;
	--wp--preset--color--white: #fff;
	--wp--preset--color--deep-blueberry: #213fd4;
	--wp--preset--color--blueberry-1: #3858e9;
	--wp--preset--color--blueberry-4: #eff2ff;

	--wp--preset--font-family--inter: inter, sans-serif;
	--wp--preset--font-family--eb-garamond: "EB Garamond", serif;
	--wp--preset--font-family--monospace: "IBM Plex Mono", monospace;

	--wp--preset--font-size--small: 14px;
	--wp--preset--font-size--normal: 16px;
	--wp--preset--font-size--extra-large: 24px;
	--wp--preset--font-size--heading-5: 26px;
	--wp--preset--font-size--heading-4: 30px;
	--wp--preset--font-size--heading-2: 50px;
	--wp--preset--font-size--heading-1: 70px;

	--wp--preset--spacing--10: 10px;
	--wp--preset--spacing--20: 20px;
	--wp--preset--spacing--30: 30px;
	--wp--preset--spacing--40: clamp(30px, 5vw, 50px);
	--wp--preset--spacing--50: clamp(40px, calc(5vw + 10px), 60px);
	--wp--preset--spacing--60: clamp(20px, calc(10vw - 40px), 80px);
	--wp--preset--spacing--80: clamp(80px, calc(6.67vw + 40px), 120px);
	--wp--preset--spacing--edge-space: 80px;

	--wp--style--global--content-size: 680px;
	--wp--style--global--wide-size: 1160px;
}

@media (max-width: 781px) {

	:root {
		--wp--preset--spacing--edge-space: 20px;
	}
}

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

body {
	margin: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal-1);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--normal);
	line-height: 1.875;
	text-wrap: pretty;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--wp--preset--color--blueberry-1);
}

a:hover {
	text-decoration: none;
}

:focus-visible {
	outline: 1.5px solid var(--wp--preset--color--blueberry-1);
	outline-offset: 2px;
}

h1,
h2,
h3,
p,
ul,
figure {
	margin: 0;
}

h1,
h2,
h3 {
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-weight: 400;
	text-wrap: balance;
}

h1 {
	font-size: var(--wp--preset--font-size--heading-1);
	line-height: 1.05;
}

h2 {
	font-size: var(--wp--preset--font-size--heading-2);
	line-height: 1.2;
}

h3 {
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: 1.33;
}

@media (max-width: 599px) {

	h1 {
		font-size: 52px;
		line-height: 1.08;
	}

	h2 {
		font-size: 30px;
		line-height: 1.07;
	}

	h3 {
		font-size: 26px;
		line-height: 1.15;
	}
}

ul {
	padding: 0;
	list-style: none;
}

code,
pre {
	font-family: var(--wp--preset--font-family--monospace);
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--wp--preset--spacing--20);
	z-index: 10;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blueberry-1);
}

.skip-link:focus {
	top: var(--wp--preset--spacing--10);
}

/* Shared pieces */

.split p,
.feature__text p,
.hosting__intro p,
.developers__intro p,
.involved__intro p {
	max-width: 65ch;
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10);
	margin-top: var(--wp--preset--spacing--30);
}


.button {
	display: inline-block;
	padding: 15px 33px;
	border-radius: 2px;
	background: var(--wp--preset--color--blueberry-1);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.button:hover {
	background: var(--wp--preset--color--deep-blueberry);
	color: var(--wp--preset--color--white);
}

.button--outline {
	padding: 14px 32px;
	border: 1px solid var(--wp--preset--color--blueberry-1);
	background: transparent;
	color: var(--wp--preset--color--blueberry-1);
}

.button--outline:hover {
	background: var(--wp--preset--color--blueberry-4);
	color: var(--wp--preset--color--blueberry-1);
}


/* Local navigation bar */

.local-nav {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 var(--wp--preset--spacing--30);
	min-height: 60px;
	padding: 0 var(--wp--preset--spacing--edge-space);
	background: var(--wp--preset--color--charcoal-2);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
}

.local-nav a {
	color: inherit;
	text-decoration: none;
}

.local-nav__logo {
	display: flex;
}

.local-nav__title {
	margin-right: auto;
}

.local-nav a:hover {
	text-decoration: underline;
}

.local-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--wp--preset--spacing--30);
}

@media (max-width: 599px) {

	.local-nav {
		position: static;
		padding-bottom: var(--wp--preset--spacing--10);
	}

	/* One row that scrolls, so the links never stack over the page. */
	.local-nav ul {
		flex-wrap: nowrap;
		width: 100%;
		overflow-x: auto;
		gap: 0 var(--wp--preset--spacing--20);
		white-space: nowrap;
	}
}

/* Hero */

.hero {
	padding: var(--wp--preset--spacing--edge-space) var(--wp--preset--spacing--edge-space) var(--wp--preset--spacing--30);
	text-align: center;
}

.hero h1,
.hero__lede {
	max-width: var(--wp--style--global--content-size);
	margin-right: auto;
	margin-left: auto;
}

.hero__buttons {
	justify-content: center;
	margin-top: var(--wp--preset--spacing--40);
}

.hero__lede {
	margin-top: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-size: var(--wp--preset--font-size--heading-5);
	line-height: 1.3;
}

.showcase-image {
	max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--wp--preset--spacing--edge-space));
	margin: 0 auto;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--edge-space) var(--wp--preset--spacing--80);
}

.showcase-image img {
	border: 1px solid var(--wp--preset--color--light-grey-1);
}

.showcase-image figcaption {
	max-width: var(--wp--style--global--content-size);
	margin: var(--wp--preset--spacing--20) auto 0;
	color: var(--wp--preset--color--charcoal-4);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.714;
	text-align: center;
}

/* Quote */

.quote {
	max-width: calc(var(--wp--style--global--content-size) + 2 * var(--wp--preset--spacing--edge-space));
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--edge-space) var(--wp--preset--spacing--80);
}

.quote blockquote {
	margin: 0;
}

.quote p {
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: 1.4;
}

.quote cite {
	display: block;
	margin-top: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
}

/* Two columns with a rule between, as on wordpress.org/download */

.split {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--wp--preset--color--light-grey-1);
	border-bottom: 1px solid var(--wp--preset--color--light-grey-1);
}

.split__column {
	padding: var(--wp--preset--spacing--edge-space);
}

.split__column + .split__column {
	border-top: 1px solid var(--wp--preset--color--light-grey-1);
}

.split h2 {
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: 1.33;
}

.split p {
	margin-top: var(--wp--preset--spacing--20);
}

@media (min-width: 782px) {

	.split {
		grid-template-columns: 1fr 1fr;
		padding: 0 var(--wp--preset--spacing--edge-space);
	}

	.split__column {
		padding: 80px 80px 80px 0;
	}

	.split__column + .split__column {
		padding: 80px 0 80px 80px;
		border-top: 0;
		border-left: 1px solid var(--wp--preset--color--light-grey-1);
	}
}

/* Features, as on the release pages */

.feature-list {
	max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--wp--preset--spacing--edge-space));
	margin: 0 auto;
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--edge-space);
}

.feature {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
}

.feature + .feature {
	margin-top: var(--wp--preset--spacing--80);
}

.feature h2 {
	color: var(--wp--preset--color--charcoal-3);
}

.feature p {
	color: var(--wp--preset--color--charcoal-3);
}

.feature__lead {
	margin-top: var(--wp--preset--spacing--30);
	font-weight: 600;
}

.feature__lead + p {
	margin-top: var(--wp--preset--spacing--10);
}

.feature img {
	border: 1px solid var(--wp--preset--color--light-grey-1);
}

@media (min-width: 782px) {

	.feature {
		grid-template-columns: 5fr 7fr;
		gap: var(--wp--preset--spacing--60);
	}

	.feature:nth-child(even) {
		grid-template-columns: 7fr 5fr;
	}

	.feature:nth-child(even) .feature__text {
		order: 2;
	}
}

/* More details */

.details {
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--edge-space);
	background: var(--wp--preset--color--light-grey-2);
}

.details > h2 {
	text-align: center;
}

.details__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--50);
	max-width: var(--wp--style--global--wide-size);
	margin: var(--wp--preset--spacing--50) auto 0;
}

.details__grid h3 {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 600;
	line-height: 1.875;
}

.details__grid p {
	margin-top: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.714;
}

@media (min-width: 782px) {

	.details__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--wp--preset--spacing--60);
	}
}

/* Hosting */

.hosting,
.developers {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--wp--preset--spacing--edge-space));
	margin: 0 auto;
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--edge-space);
}

.developers {
	border-top: 1px solid var(--wp--preset--color--light-grey-1);
}

.hosting__intro p,
.developers__intro p {
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--charcoal-3);
}

.hosting__grid {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.hosting__grid li {
	padding-top: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--light-grey-1);
}

.hosting__grid p {
	margin-top: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--charcoal-3);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.714;
}

@media (min-width: 782px) {

	.hosting,
	.developers {
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--60);
	}
}

/* Developers */

.developers__code {
	min-width: 0;
}

.code {
	margin: 0;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	overflow-x: auto;
	tab-size: 4;
	background: var(--wp--preset--color--light-grey-2);
	color: var(--wp--preset--color--charcoal-1);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.714;
}

.code + .code {
	margin-top: var(--wp--preset--spacing--10);
}

.code .comment {
	color: var(--wp--preset--color--charcoal-4);
}

@media (max-width: 599px) {

	/* Short enough to wrap, which beats a scroll a phone gives no sign of. */
	.code {
		padding: var(--wp--preset--spacing--20);
		white-space: pre-wrap;
		overflow-wrap: anywhere;
	}
}

/* Get involved, as on wordpress.org/download */

.involved {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--edge-space);
	background: var(--wp--preset--color--blueberry-1);
	color: var(--wp--preset--color--white);
}

.involved__intro p {
	margin-top: var(--wp--preset--spacing--30);
}

.involved__links li {
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: var(--wp--preset--font-size--extra-large);
	line-height: 1.125;
}

.involved__links li:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.involved__links a {
	color: inherit;
	text-decoration: none;
}

.involved__links a::after {
	content: " ↗";
}

.involved__links a:hover {
	text-decoration: underline;
}

.involved :focus-visible {
	outline-color: var(--wp--preset--color--white);
}

@media (min-width: 782px) {

	.involved {
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--60);
		padding-right: max(var(--wp--preset--spacing--edge-space), calc((100% - var(--wp--style--global--wide-size)) / 2));
		padding-left: max(var(--wp--preset--spacing--edge-space), calc((100% - var(--wp--style--global--wide-size)) / 2));
	}
}

/* Global footer */

.global-footer {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--edge-space);
	border-top: 1px solid var(--wp--preset--color--light-grey-1);
	color: var(--wp--preset--color--charcoal-2);
}

.global-footer a {
	color: inherit;
	text-decoration: none;
}

.global-footer a:hover {
	text-decoration: underline;
}


.global-footer__logos p {
	margin-top: 4px;
	color: var(--wp--preset--color--charcoal-4);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

