/*
Theme Name: Origami Squad
Theme URI: https://origamisquad.com
Author: Origami Squad
Description: Paper-design block theme for origamisquad.com (fold-crease). Presentation only; all data lives in the fold-core plugin.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fold-crease
*/

/* ------------------------------------------------------------------ *
 * Tokens and base
 * ------------------------------------------------------------------ */
:root {
	--paper: var(--wp--preset--color--paper, #F7F3EA);
	--sheet: var(--wp--preset--color--sheet, #FFFFFF);
	--crease: var(--wp--preset--color--crease, #E4DCCB);
	--ink: var(--wp--preset--color--ink, #1F1B16);
	--ink-soft: var(--wp--preset--color--ink-soft, #5B544A);
	--red: var(--wp--preset--color--crane-red, #C8402A);
	--red-text: var(--wp--preset--color--crane-red-text, #B23A24);
	--indigo: var(--wp--preset--color--indigo, #2E3A87);
	--mustard: var(--wp--preset--color--mustard, #E3A92B);
	--sage: var(--wp--preset--color--sage, #2F6B4F);
	--lift: 1px 2px 0 rgba(31, 27, 22, .06), 4px 8px 16px rgba(31, 27, 22, .06);
	--heading: "Fraunces", Georgia, "Times New Roman", serif;
	--gutter: clamp(1rem, 4vw, 2rem);
	--wide: 1200px;
	--fold: 22px;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a, button, input, summary, select, textarea):focus-visible {
	outline: 2px solid var(--indigo);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	margin: -1px;
	padding: 0;
	border: 0;
}

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

[hidden] {
	display: none !important;
}

html.fold-lock {
	overflow: hidden;
}

.fold-wrap,
.fold-main > .wp-block-group.alignwide,
.fold-section {
	max-width: var(--wide);
	margin-inline: auto;
}

.fold-main {
	padding-inline: var(--gutter);
	padding-bottom: 4rem;
}

.fold-main > * + * {
	margin-top: 0;
}

.fold-kicker {
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--red-text);
	margin: 0 0 .5rem;
}

/* Crease divider: a valley-fold dash line. */
.wp-block-separator,
hr {
	border: 0;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--crease) 0 10px, transparent 10px 16px);
	margin: 2.5rem auto;
	opacity: 1;
}

/* ------------------------------------------------------------------ *
 * Buttons, chips, badges
 * ------------------------------------------------------------------ */
.fold-btn,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	min-height: 44px;
	padding: .55rem 1.1rem;
	border: 1.5px solid var(--red);
	border-radius: 2px;
	background: var(--red);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.fold-btn:hover {
	background: var(--red-text);
	border-color: var(--red-text);
	color: #fff;
}

.fold-btn--ghost {
	background: var(--sheet);
	color: var(--ink);
	border-color: var(--ink);
}

.fold-btn--ghost:hover {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--ink);
}

.fold-btn--mustard {
	background: var(--mustard);
	border-color: var(--mustard);
	color: var(--ink);
}

.fold-btn--mustard:hover {
	background: #F0BD4E;
	border-color: #F0BD4E;
	color: var(--ink);
}

.fold-btn--ink {
	background: var(--ink);
	border-color: var(--ink);
}

.fold-chip,
.fold-hero__chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1rem;
	background: var(--sheet);
	border: 1px solid var(--crease);
	border-radius: 2px;
	color: var(--ink);
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
	box-shadow: 1px 2px 0 rgba(31, 27, 22, .06);
	cursor: pointer;
}

.fold-chip:hover,
.fold-hero__chips a:hover,
.fold-chip.is-active {
	border-color: var(--ink);
}

.fold-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fold-badge {
	display: inline-block;
	padding: .15rem .5rem;
	border-radius: 2px;
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	background: var(--ink-soft);
}

.fold-badge--easy { background: var(--sage); }
.fold-badge--intermediate { background: var(--mustard); color: var(--ink); }
.fold-badge--advanced { background: var(--red); }

/* ------------------------------------------------------------------ *
 * Seasonal ribbon and header
 * ------------------------------------------------------------------ */
.fold-ribbon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: .35rem 3rem;
	background: var(--indigo);
	color: #fff;
	font-size: .9375rem;
	text-align: center;
}

.fold-ribbon p {
	margin: 0;
}

.fold-ribbon a {
	color: #fff;
	font-weight: 700;
}

.fold-ribbon__close {
	position: absolute;
	right: .25rem;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.site-header {
	position: relative;
	z-index: 50;
	background: var(--sheet);
	border-bottom: 1px solid var(--crease);
}

.fold-header {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	grid-template-areas: "menu logo search";
	align-items: center;
	max-width: var(--wide);
	min-height: 56px;
	margin-inline: auto;
	padding-inline: .5rem;
}

.fold-logo {
	grid-area: logo;
	justify-self: center;
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--heading);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.fold-logo svg {
	width: 30px;
	height: 30px;
	flex: none;
}

.fold-nav {
	display: contents;
}

.fold-nav__menu,
.fold-nav__search {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	padding: 0;
}

.fold-nav__menu { grid-area: menu; }
.fold-nav__search { grid-area: search; justify-self: end; }

/* Mobile drawer */
.fold-nav__drawer {
	display: none;
	position: fixed;
	inset: 56px 0 0 0;
	z-index: 60;
	overflow-y: auto;
	background: var(--sheet);
	padding: 1rem var(--gutter) 3rem;
	border-top: 1px solid var(--crease);
}

.fold-nav.is-open .fold-nav__drawer {
	display: block;
}

.fold-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fold-mega__item {
	display: grid;
	grid-template-columns: 1fr 44px;
	align-items: center;
	border-bottom: 1px solid var(--crease);
}

.fold-mega__top {
	display: flex;
	align-items: center;
	min-height: 48px;
	color: var(--ink);
	font-weight: 600;
	font-size: 1.0625rem;
	text-decoration: none;
}

.fold-mega__toggle {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.fold-mega__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.fold-mega__panel {
	grid-column: 1 / -1;
	padding: 0 0 1rem;
}

.fold-mega__inner {
	display: grid;
	gap: 1rem;
}

.fold-mega__coltitle {
	margin: 0 0 .25rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.fold-mega__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fold-mega__col a {
	display: block;
	padding: .45rem 0;
	color: var(--ink);
	text-decoration: none;
}

.fold-mega__col a:hover {
	color: var(--indigo);
	text-decoration: underline;
}

.fold-mega__feature {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	padding: 1rem;
	background: var(--paper);
	border: 1px solid var(--crease);
	color: var(--ink);
	text-decoration: none;
	clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}

.fold-mega__kicker {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--red-text);
}

.fold-mega__ftitle {
	font-family: var(--heading);
	font-size: 1.25rem;
	font-weight: 600;
}

.fold-mega__fmeta {
	font-size: .875rem;
	color: var(--ink-soft);
}

.fold-nav__printables {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 1rem;
	padding: 0 1rem;
	border: 1.5px solid var(--ink);
	border-radius: 2px;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

/* Search panel */
.fold-search {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 55;
	background: var(--sheet);
	border-bottom: 1px solid var(--crease);
	box-shadow: var(--lift);
	padding: 1rem var(--gutter) 1.25rem;
}

.fold-search form,
.wp-block-search__inside-wrapper {
	display: flex;
	max-width: 640px;
	margin: 0 auto .75rem;
}

.fold-search input[type="search"],
.wp-block-search__input {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 0 1rem;
	border: 1.5px solid var(--ink);
	border-right: 0;
	border-radius: 2px 0 0 2px;
	background: var(--sheet);
	font: inherit;
	color: var(--ink);
}

.fold-search .fold-btn,
.wp-block-search__button {
	min-height: 52px;
	margin: 0;
	border-radius: 0 2px 2px 0;
}

.fold-search .fold-chips {
	max-width: 640px;
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.site-header {
		position: sticky;
		top: 0;
	}

	.admin-bar .site-header {
		top: 32px;
	}

	.fold-header {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "logo nav search";
		min-height: 64px;
		padding-inline: var(--gutter);
		gap: 1.5rem;
	}

	.fold-logo {
		justify-self: start;
	}

	.fold-nav__menu {
		display: none;
	}

	.fold-nav__drawer {
		grid-area: nav;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 1rem;
		position: static;
		inset: auto;
		overflow: visible;
		padding: 0;
		border: 0;
		background: none;
	}

	.fold-mega__list {
		display: flex;
		align-items: center;
		gap: .1rem;
	}

	.fold-mega__item {
		position: static;
		display: flex;
		align-items: center;
		border: 0;
	}

	.fold-mega__top {
		min-height: 64px;
		padding: 0 .1rem 0 .55rem;
		font-size: .9375rem;
	}

	.fold-mega__toggle {
		width: 26px;
		height: 44px;
	}

	.fold-mega__panel {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 0;
		background: var(--sheet);
		border-top: 1px solid var(--crease);
		border-bottom: 1px solid var(--crease);
		box-shadow: var(--lift);
	}

	.fold-mega__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr);
		gap: 2rem;
		max-width: var(--wide);
		margin-inline: auto;
		padding: 1.75rem var(--gutter) 2rem;
	}

	.fold-nav__printables {
		margin: 0;
		min-height: 40px;
		white-space: nowrap;
	}
}

@media (min-width: 1024px) and (hover: hover) {
	.fold-mega__item:hover > .fold-mega__panel[hidden] {
		display: block !important;
	}
}

/* ------------------------------------------------------------------ *
 * Breadcrumbs
 * ------------------------------------------------------------------ */
.fold-crumbs-wrap {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 1rem 0 0;
}

.fold-crumbs p {
	margin: 0;
	font-size: .875rem;
	color: var(--ink-soft);
}

.fold-crumbs a {
	color: var(--ink-soft);
}

.fold-crumbs .separator,
.fold-crumbs [aria-hidden="true"] {
	margin: 0 .35rem;
}

/* ------------------------------------------------------------------ *
 * Sections and grids
 * ------------------------------------------------------------------ */
.fold-section {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.fold-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin-bottom: 1.5rem;
}

.fold-section__text h2 {
	margin: 0;
}

.fold-section__text p {
	margin: .4rem 0 0;
	color: var(--ink-soft);
}

.fold-section__link {
	font-weight: 700;
}

.fold-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .875rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 700px) {
	.fold-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
	.fold-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.fold-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
	.fold-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

@media (max-width: 699px) {
	.fold-grid--scroll {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: .5rem;
	}

	.fold-grid--scroll > * {
		flex: 0 0 62%;
		scroll-snap-align: start;
	}
}

/* Folded-corner card */
.fold-card {
	position: relative;
	height: 100%;
}

.fold-card__link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sheet);
	border: 1px solid var(--crease);
	color: var(--ink);
	text-decoration: none;
	box-shadow: var(--lift);
	clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
	transition: transform .15s ease;
}

.fold-card__link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: var(--fold);
	height: var(--fold);
	background: linear-gradient(225deg, transparent 50%, var(--crease) 50%);
}

.fold-card__link:hover {
	transform: translateY(-2px);
}

.fold-card__link:hover .fold-card__title {
	text-decoration: underline;
}

.fold-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper);
	border-bottom: 1px solid var(--crease);
}

.fold-card__media img,
.fold-card__media svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fold-card__body {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	padding: .85rem .9rem 1rem;
}

.fold-card__eyebrow {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.fold-card__title {
	margin: 0;
	font-family: var(--heading);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
}

.fold-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	font-size: .875rem;
	color: var(--ink-soft);
}

/* Category tiles */
.fold-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
}

@media (min-width: 700px) { .fold-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fold-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1rem; } }

.fold-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: .75rem;
	min-height: 112px;
	padding: 1rem;
	background: var(--paper);
	border: 1px solid var(--crease);
	color: var(--ink);
	text-decoration: none;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.fold-tile:hover .fold-tile__name {
	text-decoration: underline;
}

.fold-tile__mark {
	width: 16px;
	height: 16px;
	margin-left: 3px;
	transform: rotate(45deg);
	background: var(--red);
}

.fold-tile__mark--indigo { background: var(--indigo); }
.fold-tile__mark--mustard { background: var(--mustard); }
.fold-tile__mark--sage { background: var(--sage); }

.fold-tile__name {
	font-family: var(--heading);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.15;
}

.fold-tile__count {
	font-size: .8125rem;
	color: var(--ink-soft);
}

/* Link cards (start here, learn, printables) */
.fold-lcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: 1.25rem;
	background: var(--sheet);
	border: 1px solid var(--crease);
	color: var(--ink);
	text-decoration: none;
	box-shadow: var(--lift);
	clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.fold-lcard:hover .fold-lcard__title {
	text-decoration: underline;
}

.fold-lcard__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--red);
	color: #fff;
	font-family: var(--heading);
	font-size: 1.25rem;
	font-weight: 700;
}

.fold-lcard:nth-child(3n + 2) .fold-lcard__num { background: var(--indigo); }
.fold-lcard:nth-child(3n) .fold-lcard__num { background: var(--sage); }

.fold-lcard__title {
	font-family: var(--heading);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
}

.fold-lcard__text {
	color: var(--ink-soft);
	font-size: .9375rem;
}

.fold-lcard--printable {
	background: var(--paper);
	border: 1px dashed var(--ink-soft);
	box-shadow: none;
	clip-path: none;
}

.fold-lcard__kicker {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--red-text);
}

.fold-inline-links {
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Homepage
 * ------------------------------------------------------------------ */
.fold-hero {
	display: grid;
	gap: 2rem;
	align-items: center;
	max-width: var(--wide);
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.fold-hero-bg {
	background-color: var(--paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 56 56 0' stroke='%23E4DCCB' stroke-opacity='.55' stroke-width='1'/%3E%3C/svg%3E");
}

.fold-hero h1 {
	margin: 0;
	font-size: clamp(2.25rem, 5.5vw, 4rem);
	line-height: 1.04;
	letter-spacing: -.02em;
}

.fold-hero__lead {
	font-size: clamp(1.0625rem, 2vw, 1.3rem);
	color: var(--ink-soft);
	max-width: 34rem;
}

.fold-hero .wp-block-search {
	max-width: 560px;
}

.fold-hero .wp-block-search__inside-wrapper {
	margin: 0;
}

.fold-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
}

.fold-hero__chips [aria-hidden="true"] {
	display: none;
}

.fold-hero__trust {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: var(--ink-soft);
	font-size: .9375rem;
}

.fold-hero__trust::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l6 6L20 6' fill='none' stroke='%232F6B4F' stroke-width='2.6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.fold-hero__art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

@media (max-width: 899px) {
	.fold-hero__art::before,
	.fold-hero__art::after {
		width: min(56%, 240px);
	}

	.fold-hero__art svg {
		width: min(70%, 300px);
	}
}

.fold-hero__art::before,
.fold-hero__art::after {
	content: "";
	position: absolute;
	width: min(70%, 380px);
	aspect-ratio: 1;
	box-shadow: var(--lift);
}

.fold-hero__art::before {
	background: var(--mustard);
	transform: rotate(8deg);
}

.fold-hero__art::after {
	background: var(--sheet);
	border: 1px solid var(--crease);
	transform: rotate(-4deg);
	clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
}

.fold-hero__art svg {
	position: relative;
	z-index: 1;
	width: min(88%, 420px);
}

@media (min-width: 900px) {
	.fold-hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 3rem;
	}

	.fold-hero__art {
		min-height: 420px;
	}
}

.fold-seasonal {
	display: grid;
	gap: 1.25rem;
	max-width: var(--wide);
	margin: 2.5rem auto 0;
	padding: 1.5rem;
	background: var(--sheet);
	border: 1px solid var(--crease);
}

.fold-seasonal h2 {
	margin: 0 0 .5rem;
}

.fold-seasonal__intro p:last-child {
	margin: 0;
}

@media (min-width: 900px) {
	.fold-seasonal {
		grid-template-columns: 260px minmax(0, 1fr);
		align-items: center;
		padding: 2rem;
	}
}

.fold-board {
	display: grid;
	gap: 1.5rem;
	max-width: var(--wide);
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--indigo);
	color: #fff;
}

.fold-board h2 {
	color: #fff;
	margin: 0 0 .75rem;
}

.fold-board .fold-kicker {
	color: var(--mustard);
}

.fold-board__intro p {
	color: #DCE0F5;
}

.fold-board__table {
	width: 100%;
	border-collapse: collapse;
	background: var(--sheet);
	color: var(--ink);
	box-shadow: 4px 6px 0 rgba(0, 0, 0, .15);
}

.fold-board__table th,
.fold-board__table td {
	padding: .75rem 1rem;
	border-bottom: 1px solid var(--crease);
	text-align: left;
}

.fold-board__table thead th {
	font-size: .75rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.fold-board__note {
	margin: .5rem 0 0;
	font-size: .875rem;
	color: #DCE0F5;
}

@media (min-width: 900px) {
	.fold-board {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
	}
}

.fold-whatis {
	position: relative;
	max-width: var(--wide);
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: var(--sheet);
	border: 1px solid var(--crease);
	clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}

.fold-whatis::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	background: linear-gradient(225deg, transparent 50%, var(--crease) 50%);
}

.fold-whatis h2 {
	margin-top: 0;
}

.fold-whatis p {
	font-size: 1.125rem;
}

.fold-howtest {
	max-width: var(--wide);
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

.fold-howtest .fold-kicker {
	color: var(--sage);
}

.fold-howtest__steps {
	gap: 1rem !important;
}

.fold-howtest__step {
	height: 100%;
	padding: 1.25rem;
	background: var(--sheet);
	border: 1px solid var(--crease);
}

.fold-howtest__step h3 {
	margin: .75rem 0 .35rem;
	font-size: 1.2rem;
}

.fold-howtest__step p {
	margin: 0;
	color: var(--ink-soft);
	font-size: .9375rem;
}

.fold-howtest__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	border: 1.5px solid var(--ink);
	background: var(--paper);
	font-family: var(--heading);
	font-weight: 700;
}

.fold-follow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	max-width: var(--wide);
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--mustard);
}

.fold-follow h2 {
	margin: 0 0 .35rem;
}

.fold-follow p {
	margin: 0;
}

.fold-follow__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

/* ------------------------------------------------------------------ *
 * Single posts and pages
 * ------------------------------------------------------------------ */
.fold-article {
	max-width: 720px;
	margin: 0 auto;
}

.fold-article > .wp-block-post-title {
	margin: 1.25rem 0 .75rem;
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	line-height: 1.08;
	letter-spacing: -.015em;
}

.fold-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .6rem;
	margin: 0 0 1rem;
	font-size: .9375rem;
	color: var(--ink-soft);
}

.fold-byline > span {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}

.fold-byline__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.fold-intro {
	font-size: 1.1875rem;
	line-height: 1.55;
	margin: 0 0 1.25rem;
}

.fold-article .wp-block-post-featured-image {
	margin: 0 0 1.5rem;
}

.fold-article .wp-block-post-featured-image img {
	width: 100%;
	border: 1px solid var(--crease);
}

.fold-article .wp-block-post-content > h2,
.fold-article .entry-content > h2 {
	margin-top: 2.5rem;
	scroll-margin-top: 80px;
}

.fold-article .wp-block-post-content > h3 {
	margin-top: 1.75rem;
}

.fold-article .wp-block-post-content li + li {
	margin-top: .3rem;
}

/* Project card */
.fold-pc {
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	background: var(--sheet);
	border: 1px solid var(--crease);
	box-shadow: var(--lift);
}

.fold-pc__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .9rem 1.25rem;
	margin: 0;
}

@media (min-width: 600px) {
	.fold-pc__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fold-pc__row dt {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.fold-pc__row dd {
	margin: .15rem 0 0;
	font-weight: 600;
}

.fold-pc__sub {
	display: block;
	font-weight: 400;
	font-size: .875rem;
	color: var(--ink-soft);
}

.fold-pc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--crease);
}

/* Jump links */
.fold-jump ul {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.fold-jump a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 .9rem;
	border: 1px solid var(--crease);
	background: var(--sheet);
	color: var(--ink);
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
}

/* Steps: photo and text stay in one figure */
.fold-step {
	margin: 1.75rem 0;
	background: var(--sheet);
	border: 1px solid var(--crease);
	scroll-margin-top: 80px;
}

.fold-step__media img,
.fold-step__media video {
	display: block;
	width: 100%;
	height: auto;
	border-bottom: 1px solid var(--crease);
}

.fold-step__text {
	padding: 1rem 1.1rem 1.15rem;
	font-size: 1rem;
	color: var(--ink);
	text-align: left;
}

.fold-step__title {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0 0 .4rem;
	font-size: 1.2rem;
}

.fold-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	min-width: 34px;
	height: 34px;
	padding: 0 .3rem;
	background: var(--paper);
	border: 1.5px solid var(--ink);
	font-family: var(--heading);
	font-size: 1.05rem;
	font-weight: 700;
}

.fold-step__text p {
	margin: 0;
}

/* Video facade */
.fold-video {
	margin: 1.25rem 0 2rem;
	scroll-margin-top: 80px;
}

.fold-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--ink);
	overflow: hidden;
}

.fold-video__btn {
	position: absolute;
	inset: 0;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--ink);
	cursor: pointer;
}

.fold-video__btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .92;
}

.fold-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.fold-video__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Printable, test notes, author, more */
.fold-printable {
	margin: 2rem 0;
	padding: 1.25rem;
	background: var(--paper);
	border: 1px dashed var(--ink-soft);
}

.fold-printable__kicker {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--red-text);
}

.fold-printable__title {
	margin: .25rem 0;
	font-family: var(--heading);
	font-size: 1.3rem;
	font-weight: 600;
}

.fold-printable__note {
	margin: 0 0 1rem;
	color: var(--ink-soft);
	font-size: .9375rem;
}

.fold-test-notes {
	margin: 2rem 0;
	padding: 1rem 1.1rem;
	border-left: 4px solid var(--sage);
	background: var(--sheet);
	font-size: .9375rem;
	color: var(--ink-soft);
}

.fold-test-notes p {
	margin: 0;
}

.fold-next {
	margin-top: 3rem;
}

.fold-next .fold-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fold-more {
	margin: 2rem 0;
	font-weight: 700;
}

.fold-author {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin: 2.5rem 0 0;
	padding: 1.25rem;
	background: var(--sheet);
	border: 1px solid var(--crease);
}

.fold-author__avatar {
	border-radius: 50%;
	flex: none;
}

.fold-author__name {
	margin: 0 0 .25rem;
	font-family: var(--heading);
	font-size: 1.2rem;
	font-weight: 600;
}

.fold-author p:last-child {
	margin-bottom: 0;
	color: var(--ink-soft);
}

.fold-disclosure {
	padding: .75rem 1rem;
	background: var(--sheet);
	border: 1px solid var(--crease);
	font-size: .9375rem;
	color: var(--ink-soft);
}

/* Data tables */
.fold-data {
	margin: 2rem 0;
}

.fold-data__scroll,
.wp-block-table {
	overflow-x: auto;
}

.fold-data table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	background: var(--sheet);
	font-size: .9375rem;
}

.fold-data th,
.fold-data td,
.wp-block-table th,
.wp-block-table td {
	padding: .6rem .75rem;
	border: 1px solid var(--crease);
	text-align: left;
	vertical-align: top;
}

.fold-data thead th,
.wp-block-table thead th {
	background: var(--paper);
}

.fold-data caption {
	caption-side: top;
	text-align: left;
	font-weight: 700;
	padding-bottom: .5rem;
}

/* ------------------------------------------------------------------ *
 * Archives
 * ------------------------------------------------------------------ */
.fold-archive-head {
	max-width: var(--wide);
	margin: 1.25rem auto 1.5rem;
}

.fold-archive-head h1 {
	margin: 0 0 .75rem;
}

.fold-archive-head__page {
	font-size: .5em;
	color: var(--ink-soft);
}

.fold-archive-head__intro {
	max-width: 760px;
	font-size: 1.0625rem;
}

.fold-subcats ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	list-style: none;
	margin: 1.5rem 0;
	padding: 0;
}

@media (min-width: 700px) { .fold-subcats ul { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.fold-tile--small {
	min-height: 84px;
}

.fold-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-top: 1rem;
}

.fold-filters__label {
	font-weight: 700;
	margin-right: .25rem;
}

.fold-archive-grid {
	max-width: var(--wide);
	margin-inline: auto;
}

.wp-block-post-template.fold-grid > li {
	margin: 0;
}

.wp-block-query-pagination {
	justify-content: center;
	gap: .5rem;
	margin-top: 2.5rem;
	font-weight: 600;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 .75rem;
	border: 1px solid var(--crease);
	background: var(--sheet);
	color: var(--ink);
	text-decoration: none;
}

.wp-block-query-pagination .current {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

.fold-faq {
	max-width: 760px;
	margin: 3rem auto 0;
}

.fold-faq h3 {
	font-size: 1.15rem;
	margin: 1.25rem 0 .35rem;
}

.fold-author-head {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
	max-width: var(--wide);
	margin: 1.5rem auto 2rem;
}

.fold-author-head__avatar {
	border-radius: 50%;
	border: 1px solid var(--crease);
}

.fold-author-head h1 {
	margin: 0 0 .5rem;
}

.fold-author-head__bio {
	max-width: 680px;
}

.fold-post-list__group + .fold-post-list__group {
	margin-top: 2.5rem;
}

.fold-empty {
	padding: 1.25rem;
	border: 1px dashed var(--crease);
	color: var(--ink-soft);
}

/* Trust and plain pages */
.fold-page {
	max-width: 760px;
	margin: 0 auto;
}

.fold-page > .wp-block-post-title {
	margin: 1.25rem 0 1rem;
}

.fold-hub > .wp-block-post-title,
.fold-hub .wp-block-post-content > p:first-child {
	max-width: 760px;
}

.fold-hub {
	max-width: var(--wide);
	margin: 0 auto;
}

/* 404 and search */
.fold-404,
.fold-search-page {
	max-width: var(--wide);
	margin: 0 auto;
}

.fold-404 .wp-block-search,
.fold-search-page .wp-block-search {
	max-width: 640px;
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */
.site-footer {
	margin-top: 4rem;
	background-color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 64 64 0' stroke='%23FFFFFF' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
	color: #E9E2D3;
}

.fold-footer {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 3rem var(--gutter) 2rem;
}

.fold-footer a {
	color: #E9E2D3;
}

.fold-footer a:hover {
	color: #fff;
}

.fold-footer__top {
	display: grid;
	gap: 2rem;
}

.fold-footer__brand p {
	color: #C9C0AE;
	max-width: 320px;
	font-size: .9375rem;
}

.fold-footer .fold-logo {
	color: #fff;
	justify-self: start;
}

.fold-footer__social,
.fold-footer__legal,
.fold-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fold-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	font-weight: 600;
}

.fold-footer__social a,
.fold-footer__legal a,
.fold-footer__col a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}

.fold-footer__cols {
	display: grid;
	gap: 0 2rem;
}

.fold-footer__col {
	border-top: 1px solid #4A443B;
}

.fold-footer__title {
	display: flex;
	align-items: center;
	min-height: 52px;
	cursor: pointer;
	list-style: none;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mustard);
}

.fold-footer__title::-webkit-details-marker {
	display: none;
}

.fold-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #4A443B;
	font-size: .875rem;
	color: #C9C0AE;
}

.fold-footer__copy {
	margin: 0;
}

.fold-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
}

@media (min-width: 700px) {
	.fold-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.fold-footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
		gap: 3rem;
	}

	.fold-footer__cols {
		grid-template-columns: 2.4fr 1fr 1fr 1fr;
	}

	.fold-footer__col {
		border: 0;
	}

	.fold-footer__title {
		pointer-events: none;
		min-height: 0;
		margin-bottom: .5rem;
	}

	.fold-footer__col:first-child ul {
		columns: 2;
		column-gap: 1.5rem;
	}

	.fold-footer__col a {
		min-height: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.fold-ribbon,
	.fold-jump,
	.fold-video,
	.fold-next {
		display: none !important;
	}
}

/* Layout fixes for block-generated wrappers */
.fold-header > *,
.fold-footer__top > *,
.fold-footer__bottom > * {
	margin: 0;
}

.fold-hero-bg {
	margin-inline: calc(-1 * var(--gutter));
	padding-inline: var(--gutter);
}

.fold-hero__text > * + * {
	margin-top: 1.25rem;
}

.fold-footer__bottom .fold-footer-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	width: 100%;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.fold-keyfacts {
	padding: 1.25rem 1.25rem .25rem;
	background: var(--sheet);
	border: 1px solid var(--crease);
	border-left: 4px solid var(--mustard);
}

.fold-keyfacts h2 {
	margin-top: 0;
	font-size: 1.3rem;
}
