/*
 * Cucos Crafts
 * An adventurer's handbook: parchment pages, red tapered rules, item entries.
 * Colours are taken from the workshop's own pieces.
 */

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Nodesto Caps Condensed";
	src: url("../fonts/nodesto-caps-condensed.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Alegreya";
	src: url("../fonts/alegreya-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Alegreya";
	src: url("../fonts/alegreya-latin-wght-italic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Alegreya";
	src: url("../fonts/alegreya-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Alegreya";
	src: url("../fonts/alegreya-greek-wght-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
	font-family: "Alegreya";
	src: url("../fonts/alegreya-greek-wght-italic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* ---------- Tokens ---------- */

:root {
	--parchment: #e4d09e;
	--vellum: #f6ecd3;
	--ink: #26180e;
	--ink-soft: #57432f;
	--oxblood: #8c1111;
	--oxblood-deep: #6a0b0b;
	--walnut: #2e1c11;
	--brass: #a9802f;
	--felt: #15514f;
	--felt-deep: #0d3a39;

	--display: "Nodesto Caps Condensed", "Alegreya", Georgia, serif;
	--body: "Alegreya", Georgia, "Times New Roman", serif;

	--wrap: 76rem;
	--measure: 44rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--parchment) url("../img/parchment.webp") repeat;
	background-size: 1600px 1066px;
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-variant-numeric: oldstyle-nums;
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 0.4em;
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--oxblood);
	text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.125rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* The display face needs room. Below heading two, the reading face takes over. */
h3,
h4 {
	font-family: var(--body);
	line-height: 1.25;
	letter-spacing: 0;
}

p,
ul,
ol,
dl,
figure,
blockquote {
	margin: 0 0 1.2em;
}

a {
	color: var(--oxblood);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--oxblood-deep);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--felt);
	outline-offset: 3px;
}

::selection {
	background: var(--oxblood);
	color: var(--vellum);
}

blockquote {
	padding-left: 1.25rem;
	border-left: 3px solid var(--brass);
	font-style: italic;
}

hr {
	border: 0;
	height: 5px;
	margin: 2.5rem 0;
	background: var(--oxblood);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 0.6rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid rgba(38, 24, 14, 0.2);
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--vellum);
}

/* The handbook's tapered rule. Sits under headings that open a section. */
.rule {
	width: min(100%, 26rem);
	height: 5px;
	margin: 0.35rem 0 1.5rem;
	background: var(--oxblood);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Buttons and links ---------- */

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	padding: 0.7em 1.5em;
	border: 2px solid var(--ink);
	border-radius: 2px;
	background: transparent;
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.button:hover,
.wp-block-button__link:hover {
	background: var(--ink);
	color: var(--vellum);
}

.button--primary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	border-color: var(--oxblood);
	background: var(--oxblood);
	color: var(--vellum);
}

.button--primary:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	border-color: var(--oxblood-deep);
	background: var(--oxblood-deep);
	color: #fff;
}

.button--light {
	border-color: var(--vellum);
	background: var(--vellum);
	color: var(--felt-deep);
}

.button--light:hover {
	border-color: #fff;
	background: #fff;
	color: var(--felt-deep);
}

.text-link {
	font-style: italic;
	font-weight: 500;
}

/* ---------- Header ---------- */

.announcement {
	margin: 0;
	padding: 0.4rem var(--gutter);
	background: var(--walnut);
	color: var(--vellum);
	font-size: 1rem;
	text-align: center;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--vellum);
	box-shadow: 0 1px 0 var(--ink), 0 4px 0 var(--brass), 0 5px 0 var(--ink);
}

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

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem 2.5rem;
	min-height: 4.5rem;
}

.site-logo,
.custom-logo-link {
	display: block;
	flex: none;
	width: 9.5rem;
	color: var(--oxblood);
}

.site-logo svg {
	width: 100%;
	height: auto;
}

/* An uploaded logo is often a JPG on white. Multiply drops the white into the
   header colour, so it never sits in a box. */
.custom-logo-link img {
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

.site-nav {
	margin-left: auto;
}

.site-nav__list,
.site-nav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list {
	display: flex;
	gap: 0.25rem 2rem;
}

.site-nav__list a,
.header-account,
.header-cart {
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.site-nav__list a {
	display: block;
	padding: 0.35rem 0;
	border-bottom: 3px solid transparent;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_parent > a {
	color: var(--oxblood);
	border-bottom-color: var(--oxblood);
}

.site-nav__list li {
	position: relative;
}

.site-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 13rem;
	padding: 0.5rem 1rem;
	background: var(--vellum);
	border: 1px solid var(--ink);
	display: none;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
	display: block;
}

.site-header__shop {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-left: 2rem;
	border-left: 1px solid rgba(38, 24, 14, 0.25);
}

.header-account:hover,
.header-cart:hover {
	color: var(--oxblood);
}

.header-cart__count {
	display: inline-block;
	min-width: 1.6em;
	padding: 0 0.35em;
	border-radius: 1em;
	background: var(--oxblood);
	color: var(--vellum);
	font-family: var(--body);
	font-size: 0.9375rem;
	font-variant-numeric: lining-nums;
	line-height: 1.6;
	text-align: center;
	vertical-align: 0.15em;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	padding: 0.4rem 0.75rem;
	border: 2px solid var(--ink);
	border-radius: 2px;
	background: transparent;
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
}

@media (max-width: 860px) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: 0 1rem;
		padding-block: 0.6rem;
		min-height: 0;
	}

	.site-logo,
	.custom-logo-link {
		width: 7.5rem;
	}

	.nav-toggle {
		display: block;
		order: 3;
		margin-left: 0;
	}

	.site-header__shop {
		order: 2;
		margin-left: auto;
		padding-left: 0;
		border-left: 0;
		gap: 1rem;
	}

	.site-nav {
		order: 4;
		flex-basis: 100%;
		margin: 0;
		display: none;
	}

	.site-nav.is-open {
		display: block;
		padding: 0.5rem 0 0.25rem;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list a {
		padding: 0.6rem 0;
		border-bottom: 1px solid rgba(38, 24, 14, 0.18);
		font-size: 1.25rem;
	}

	.site-nav__list .sub-menu {
		position: static;
		display: block;
		border: 0;
		padding: 0 0 0 1rem;
	}
}

/* Language switcher: EN | ΕΛ */

.lang-switch ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switch li + li::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 0.9em;
	margin-inline: 0.55rem;
	background: rgba(38, 24, 14, 0.35);
	vertical-align: -0.08em;
}

.lang-switch a {
	color: var(--ink-soft);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.lang-switch a:hover {
	color: var(--oxblood);
	text-decoration: underline;
}

.lang-switch a[aria-current] {
	color: var(--oxblood);
}

.site-nav__list .menu-item--lang {
	display: none;
}

@media (max-width: 860px) {
	.site-header__inner > .lang-switch {
		display: none;
	}

	.site-nav__list .menu-item--lang {
		display: block;
		padding: 0.9rem 0 0.4rem;
	}

	.site-nav__list .menu-item--lang a {
		display: inline;
		padding: 0;
		border: 0;
		font-size: 1.125rem;
	}
}

/* Greek. Nodesto has no Greek letters, so headings would fall back glyph by glyph
   and mix two faces in one line. Greek pages set headings in the reading face
   instead, a little smaller because it is not condensed. */

html[lang|="el"] h1,
html[lang|="el"] h2 {
	font-family: var(--body);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.005em;
}

html[lang|="el"] h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); }
html[lang|="el"] h2 { font-size: clamp(1.75rem, 3.1vw, 2.375rem); }

html[lang|="el"] .hero__title {
	font-size: clamp(2.25rem, 5.4vw, 4.25rem);
	line-height: 1.08;
}

html[lang|="el"] .entry-content h2 {
	font-size: clamp(1.625rem, 2.8vw, 2.125rem);
}

/* On a phone the account link moves into the menu so the header stays one row. */
.site-nav__list .menu-item--account {
	display: none;
}

@media (max-width: 480px) {
	.header-account {
		display: none;
	}

	.site-nav__list .menu-item--account {
		display: block;
	}
}

/* ---------- Sections ---------- */

.section {
	padding-block: var(--section);
}

.section__head {
	margin-bottom: 1rem;
}

.section__head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0 2rem;
}

.section__head--row .text-link {
	margin-bottom: 1.6rem;
}

/* Plates: photographs mounted on the page like book illustrations. */
.plate {
	margin: 0;
	padding: 0.5rem;
	background: var(--vellum);
	border: 1px solid var(--ink-soft);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0.4rem 0.5rem 0 rgba(38, 24, 14, 0.12);
}

.plate img,
.plate video {
	width: 100%;
}

.plate figcaption,
.wp-block-image figcaption {
	padding: 0.6rem 0.25rem 0.15rem;
	color: var(--ink-soft);
	font-size: 1rem;
	font-style: italic;
	line-height: 1.4;
}

/* Note boxes: the handbook's green sidebar, in the felt of our dice trays. */
.note-box {
	position: relative;
	padding: 1.5rem 1.75rem;
	background: #dfe3cd;
	background: color-mix(in srgb, var(--felt) 13%, var(--vellum));
	border-block: 3px solid var(--felt-deep);
	box-shadow: 0.3rem 0.4rem 0 rgba(38, 24, 14, 0.1);
}

.note-box h2,
.note-box h3 {
	color: var(--felt-deep);
	font-size: 1.375rem;
}

.note-box > :last-child {
	margin-bottom: 0;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: min(78vh, 46rem);
	padding-block: clamp(4rem, 9vw, 7rem);
	overflow: hidden;
	isolation: isolate;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: url("../img/hero-sketches.webp") center / cover no-repeat;
	-webkit-mask-image: linear-gradient(#000 78%, transparent);
	mask-image: linear-gradient(#000 78%, transparent);
}

.hero__sketch {
	display: none;
}

.hero__inner {
	max-width: 48rem;
	text-align: center;
}

.hero__bird {
	display: block;
	width: clamp(5rem, 9vw, 7rem);
	margin: 0 auto 1.25rem;
	color: var(--oxblood);
}

.hero__title {
	margin-bottom: 0.3em;
	font-size: clamp(3rem, 8.2vw, 6.25rem);
	line-height: 0.95;
	color: var(--ink);
}

.hero__text {
	max-width: 34rem;
	margin-inline: auto;
	font-size: clamp(1.25rem, 2vw, 1.4375rem);
	line-height: 1.5;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1rem;
	margin: 2rem 0 0;
}

/* One entrance, once: the sketch sheet settles into place. Movement only, never
   opacity: the headline and the sheet are the page's largest paint, and fading
   them in would delay it. */
@media (prefers-reduced-motion: no-preference) {
	.hero::before {
		animation: hero-settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}

@keyframes hero-settle {
	from { transform: scale(1.05); }
}

@media (max-width: 700px) {
	.hero {
		min-height: 0;
		padding-block: 0 3.5rem;
	}

	.hero::before {
		display: none;
	}

	/* On a phone the wide sketch sheet would crop to blank paper, so the
	   sketches are shown as a strip above the headline instead. */
	.hero__sketch--left {
		display: block;
		height: 58vw;
		margin-bottom: 1.5rem;
		background: url("../img/sketches-left.webp") left top / cover no-repeat;
		-webkit-mask-image: linear-gradient(#000 70%, transparent);
		mask-image: linear-gradient(#000 70%, transparent);
	}

	.hero__bird {
		display: none;
	}
}

/* ---------- Catalogue ---------- */

.catalogue {
	padding-top: clamp(2rem, 4vw, 3rem);
}

.catalogue__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1rem, 2.4vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalogue__item a {
	position: relative;
	display: block;
	color: var(--ink);
	text-decoration: none;
	border: 1px solid var(--ink-soft);
	background: var(--walnut);
	box-shadow: 0.35rem 0.45rem 0 rgba(38, 24, 14, 0.14);
}

.catalogue__image {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.catalogue__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.catalogue__item a:hover img {
	transform: scale(1.045);
}

.catalogue__name {
	position: absolute;
	left: 0.6rem;
	right: 0.6rem;
	bottom: 0.6rem;
	padding: 0.5rem;
	background: var(--vellum);
	border-block: 3px solid var(--brass);
	font-family: var(--body);
	font-size: clamp(1rem, 1.5vw, 1.1875rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
}

.catalogue__item a:hover .catalogue__name {
	color: var(--oxblood);
}

@media (max-width: 900px) {
	.catalogue__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- About strip ---------- */

.about-strip__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.traits-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem 2rem;
	margin: 2rem 0;
}

.traits-list dt {
	font-family: var(--body);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--oxblood);
}

.traits-list dd {
	margin: 0.2rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.5;
}

@media (max-width: 800px) {
	.about-strip__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.traits-list {
		grid-template-columns: 1fr;
	}
}

/* ---------- Reviews ---------- */

.reviews {
	padding-top: 0;
}

.reviews__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.reviews__line {
	font-size: 1.3125rem;
	font-weight: 500;
	line-height: 1.45;
}

.reviews__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.review {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.4rem;
	background: var(--vellum);
	border-block: 4px solid var(--brass);
	box-shadow: 0 0 0 1px rgba(38, 24, 14, 0.28), 0.35rem 0.45rem 0 rgba(38, 24, 14, 0.12);
}

.review__stars {
	color: var(--brass);
	font-size: 1.125rem;
	letter-spacing: 0.15em;
}

.review__quote {
	margin: 0.5rem 0 1rem;
	padding: 0;
	border: 0;
	font-size: 1.1875rem;
	font-style: italic;
	line-height: 1.5;
}

.review__by {
	margin: auto 0 0;
	padding-top: 0.6rem;
	border-top: 1px solid rgba(140, 17, 17, 0.45);
	font-weight: 700;
	line-height: 1.35;
}

.review__by span {
	display: block;
	color: var(--ink-soft);
	font-size: 1rem;
	font-weight: 400;
}

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

/* ---------- Process ---------- */

.process {
	background: rgba(246, 236, 211, 0.6);
	border-block: 1px solid rgba(38, 24, 14, 0.2);
}

.process__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}

.process__intro {
	max-width: 36rem;
}

.steps {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	position: relative;
	min-height: 3.5rem;
	margin: 0;
	padding: 0.85rem 0 0.85rem 4rem;
	border-top: 1px solid rgba(38, 24, 14, 0.2);
	counter-increment: step;
}

.steps li:last-child {
	border-bottom: 1px solid rgba(38, 24, 14, 0.2);
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0.25rem;
	top: 0.35rem;
	font-family: var(--display);
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	color: var(--oxblood);
}

.steps strong {
	font-weight: 700;
}

.process__video {
	position: relative;
}

.video-toggle {
	position: absolute;
	left: 1.1rem;
	top: 1.1rem;
	padding: 0.4rem 0.8rem;
	border: 0;
	border-radius: 2px;
	background: rgba(38, 24, 14, 0.78);
	color: var(--vellum);
	font-family: var(--body);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
}

.video-toggle:hover {
	background: var(--oxblood);
}

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

	.process__video {
		max-width: 24rem;
	}
}

/* ---------- Commission band: the lining of a dice tray ---------- */

.commission {
	position: relative;
	padding-block: clamp(3rem, 6vw, 4.5rem);
	background: var(--felt) radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.09), transparent 60%);
	color: var(--vellum);
}

.commission::before {
	content: "";
	position: absolute;
	inset: 0.75rem;
	border: 1px dashed rgba(246, 236, 211, 0.4);
	pointer-events: none;
}

.commission__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 4rem;
}

.commission__inner > div {
	flex: 1 1 28rem;
	max-width: 42rem;
}

.commission h2 {
	color: var(--vellum);
}

.commission p {
	margin: 0;
}

/* ---------- Bench gallery ---------- */

.bench__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: clamp(9rem, 17vw, 15rem);
	grid-auto-flow: dense;
	gap: clamp(0.6rem, 1.4vw, 1.1rem);
}

.bench__item {
	margin: 0;
	border: 1px solid var(--ink-soft);
	background: var(--walnut);
	overflow: hidden;
}

.bench__item--tall { grid-row: span 2; }
.bench__item--wide { grid-column: span 2; }

.bench__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 700px) {
	.bench__grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 42vw;
	}
}

/* ---------- Inner pages ---------- */

.page-head {
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.page-head .rule {
	margin-bottom: 2rem;
}

.page-head__meta {
	margin-top: -1rem;
	color: var(--ink-soft);
	font-style: italic;
}

.page-article,
.post-list,
.shelf-empty {
	margin-bottom: var(--section);
}

.entry-content > * {
	max-width: var(--measure);
}

.entry-content > .wp-block-columns,
.entry-content > .wp-block-gallery,
.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > .woocommerce,
.entry-content > .wp-block-woocommerce-cart,
.entry-content > .wp-block-woocommerce-checkout,
.page-article--wide .entry-content > * {
	max-width: none;
}

.entry-content h2 {
	margin-top: 1.6em;
	font-size: clamp(2rem, 3.4vw, 2.625rem);
}

/* The rule follows section headings inside page content too. */
.entry-content > h2::after {
	content: "";
	display: block;
	width: min(100%, 22rem);
	height: 5px;
	margin-top: 0.3rem;
	background: var(--oxblood);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.entry-content h3 {
	margin-top: 1.2em;
}

.entry-content .wp-block-column > h3:first-child {
	margin-top: 0;
}

.lead {
	font-size: clamp(1.375rem, 2.4vw, 1.625rem);
	line-height: 1.45;
}

.entry-content .wp-block-columns {
	gap: clamp(1.5rem, 4vw, 3.5rem);
	margin-bottom: 1.5rem;
}

.entry-content .wp-block-columns.split {
	align-items: center;
	margin-block: 2rem 3rem;
}

.entry-content .wp-block-columns.split--form,
.entry-content .wp-block-columns.split--steps {
	align-items: flex-start;
	margin-top: 0.5rem;
}

.entry-content .split--steps .steps {
	margin-top: 0;
}

.entry-content .split--form .note-box {
	margin-top: 0;
}

.entry-content .wp-block-columns.split--form > .wp-block-column:first-child,
.entry-content .wp-block-columns.split--steps > .wp-block-column:first-child {
	flex: 3 1 0;
}

.entry-content .wp-block-columns.split--form > .wp-block-column:last-child,
.entry-content .wp-block-columns.split--steps > .wp-block-column:last-child {
	flex: 2 1 0;
}

.wp-block-image.plate {
	padding: 0.5rem;
}

.entry-content > .wp-block-image.plate {
	margin-block: 2.5rem;
}

.entry-content .note-box {
	margin-block: 2.5rem;
}

.wp-block-gallery.bench {
	margin-block: 1.5rem 3rem;
}

.wp-block-gallery.bench .wp-block-image img {
	border: 1px solid var(--ink-soft);
}

.entry-thumb {
	max-width: 56rem;
	margin-bottom: 2.5rem;
}

.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: 2.5rem;
}

.post-card__title {
	margin-bottom: 0.1em;
	font-size: 2rem;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__thumb {
	display: block;
	margin-bottom: 1rem;
	border: 1px solid var(--ink-soft);
}

.item-type {
	margin: 0 0 0.5rem;
	color: var(--ink-soft);
	font-style: italic;
	line-height: 1.3;
}

.post-navigation .nav-links,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-block: 3rem;
}

.post-navigation span {
	display: block;
	color: var(--ink-soft);
	font-style: italic;
}

.contact-details dl {
	margin-bottom: 1rem;
}

.contact-details dt {
	margin-top: 0.9rem;
	color: var(--felt-deep);
	font-weight: 700;
}

.contact-details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.business-details {
	margin: 1.5rem 0 2rem;
	padding: 1.25rem 1.5rem;
	background: var(--vellum);
	border-block: 4px solid var(--brass);
	box-shadow: 0 0 0 1px rgba(38, 24, 14, 0.28);
}

.business-details > div {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 0.25rem 1rem;
	padding-block: 0.35rem;
}

.business-details > div + div {
	border-top: 1px solid rgba(38, 24, 14, 0.15);
}

.business-details dt {
	color: var(--oxblood);
	font-weight: 700;
}

.business-details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 480px) {
	.business-details > div {
		grid-template-columns: 1fr;
	}
}

.entry-content li {
	margin-bottom: 0.45em;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Forms ---------- */

label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 700;
}

.optional {
	color: var(--ink-soft);
	font-weight: 400;
	font-style: italic;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--ink-soft);
	border-radius: 2px;
	background: var(--vellum);
	color: var(--ink);
	font: inherit;
	font-variant-numeric: lining-nums;
}

input:focus,
select:focus,
textarea:focus {
	outline: 3px solid var(--felt);
	outline-offset: 1px;
	border-color: var(--felt);
}

::placeholder {
	color: #7a6650;
	opacity: 1;
	font-style: italic;
}

.cucos-form p {
	margin-bottom: 1.25rem;
}

.cucos-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0 1.25rem;
}

.cucos-form__trap {
	position: absolute;
	left: -9999px;
}

.cucos-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.cucos-form__privacy {
	color: var(--ink-soft);
	font-size: 1rem;
	font-style: italic;
}

.form-notice {
	padding: 0.9rem 1.1rem;
	border-left: 5px solid var(--felt);
	background: #dfe3cd;
	background: color-mix(in srgb, var(--felt) 13%, var(--vellum));
	font-weight: 500;
}

.form-notice--error {
	border-left-color: var(--oxblood);
	background: #f0d4c2;
	background: color-mix(in srgb, var(--oxblood) 12%, var(--vellum));
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 30rem;
}

.search-form label {
	flex: 1;
	margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
	padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
	background: var(--walnut);
	color: #e9dcbd;
	font-size: 1.0625rem;
	box-shadow: 0 -1px 0 var(--ink), 0 -4px 0 var(--brass), 0 -5px 0 var(--ink);
}

.site-footer a {
	color: #e9dcbd;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
}

.site-footer__logo {
	display: block;
	width: 10rem;
	margin-bottom: 1.25rem;
	color: var(--vellum);
}

.site-footer__brand p {
	max-width: 22rem;
}

.site-footer h2 {
	margin-bottom: 0.6rem;
	color: #d3a94f;
	font-size: 1.1875rem;
	letter-spacing: 0.01em;
	font-family: var(--body);
	line-height: 1.3;
}

.site-footer ul {
	margin: 0 0 0.35rem;
	padding: 0;
	list-style: none;
}

.site-footer li {
	margin-bottom: 0.35rem;
}

.site-footer .social-links {
	display: block;
	margin-top: 1rem;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 2rem;
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(233, 220, 189, 0.22);
	color: #bcab88;
	font-size: 0.9375rem;
}

.site-footer__legal p {
	margin: 0;
}

@media (max-width: 860px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

/* ---------- Comments ---------- */

.comments-area {
	max-width: var(--measure);
	margin-block: 3rem;
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(38, 24, 14, 0.2);
}
