/* Fonts */
@font-face {
	font-family: Audiowide;
	src: url("../fonts/audiowide-latin.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

/* Tokens */
:root {
	--black: #111;
	--ink: #303030;
	--ink-soft: #555;
	--red: #dd0000;
	--red-hover: #353535;
	--red-on-dark: #ff6a5e;
	--grey: #f6f6f6;
	--dark: #444;
	--white: #fff;
	--font-body: Arial, Helvetica, sans-serif;
	--font-logo: Audiowide, Arial, sans-serif;
	--header-h: 5.5rem;
	--gutter: 1rem;
	--section-y: clamp(3rem, 6vw, 5rem);
}

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

html {
	scroll-padding-top: calc(var(--header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.75;
}

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

h1,
h2,
h3 {
	margin: 0 0 1rem;
	line-height: 1.25;
}

a {
	color: var(--red);
}

a:hover {
	color: var(--black);
}

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

.site-header :focus-visible,
.hero :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--white);
}

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

.skip-link {
	position: absolute;
	top: -4rem;
	left: 1rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--white);
	color: var(--black);
}

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

/* Layout */
.wrap {
	width: min(1100px, 100% - 2 * var(--gutter));
	margin-inline: auto;
}

.wrap--text {
	width: min(46rem, 100% - 2 * var(--gutter));
}

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

.section--dark {
	background:
		radial-gradient(ellipse at 70% 30%, rgb(255 255 255 / 7%), transparent 60%),
		var(--dark);
	color: var(--white);
}

.section__title {
	font-size: clamp(1.5rem, 3vw, 1.75rem);
	font-weight: 700;
	color: var(--black);
}

.section__title::after {
	content: "";
	display: block;
	width: 1.25rem;
	height: 2px;
	margin-top: 1.25rem;
	background: currentcolor;
}

.section__title--small {
	font-size: 1.0625rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 2.5rem;
}

.section--dark .section__title {
	color: var(--white);
}

.page-title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	color: var(--black);
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.5rem 1.25rem;
	border-radius: 4px;
	background: var(--red);
	color: var(--white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.15s;
}

.button:hover {
	background: var(--red-hover);
	color: var(--white);
}

.button--ghost {
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--white);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--black);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.custom-logo {
	display: block;
	width: auto;
	height: 4.5rem;
}

.site-nav__list {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	color: var(--white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav__list a:hover {
	color: var(--red-on-dark);
}

.nav-toggle {
	display: none;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.5rem;
	height: 2px;
	margin-inline: auto;
	background: var(--white);
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -7px;
}

.nav-toggle__bars::after {
	top: 7px;
}

@media (max-width: 60rem) {
	.js .nav-toggle {
		display: block;
	}

	.site-header__inner {
		flex-wrap: wrap;
		gap: 0;
	}

	.site-nav {
		width: 100%;
		padding-bottom: 1rem;
	}

	.js .site-nav {
		display: none;
	}

	.js .site-nav.is-open {
		display: block;
	}

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

	.site-nav__list a {
		display: block;
		padding-block: 0.625rem;
	}
}

/* Hero: dark timber effect drawn in CSS */
.hero {
	background:
		radial-gradient(ellipse at center, transparent 35%, rgb(0 0 0 / 65%) 100%),
		repeating-linear-gradient(to bottom, transparent 0 58px, rgb(0 0 0 / 55%) 58px 60px),
		repeating-linear-gradient(92deg, rgb(255 255 255 / 3%) 0 2px, transparent 2px 9px, rgb(255 255 255 / 2%) 9px 10px, transparent 10px 23px),
		#232323;
	color: var(--white);
	text-align: center;
}

.hero__inner {
	padding-block: clamp(4rem, 9vw, 7rem) clamp(5rem, 13vw, 11rem);
}

.hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero__title {
	margin: 0 0 1rem;
	padding: 0.25em 0.5rem;
	border: 3px solid var(--white);
	font-family: var(--font-logo);
	font-size: clamp(2.25rem, 8.5vw, 5.5rem);
	font-weight: 400;
	line-height: 1.25;
}

.hero__text {
	max-width: 62rem;
	margin: 0 auto 1rem;
	font-size: clamp(1.0625rem, 2vw, 1.5rem);
	line-height: 1.4;
}

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

/* About */
.about {
	background: var(--grey);
}

.about__body p {
	margin: 0;
}

.about__signature {
	margin: 0.5rem 0 0;
	color: var(--black);
	font-style: italic;
	font-weight: 700;
	text-align: right;
}

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 2.5rem 1rem;
	margin: 4rem 0 0;
	text-align: center;
}

.stats__item {
	display: flex;
	flex-direction: column-reverse;
}

.stats dd {
	margin: 0;
	color: var(--black);
	font-family: "Arial Black", Arial, sans-serif;
	font-size: clamp(3.5rem, 7vw, 5rem);
	font-weight: 900;
	line-height: 1.1;
}

.stats dt {
	color: var(--black);
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stats dt::before {
	content: "";
	display: block;
	width: 1.5rem;
	height: 2px;
	margin: 1.25rem auto;
	background: var(--red);
}

/* Services */
.services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 2.25rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: service;
}

.service {
	counter-increment: service;
}

.service__title {
	margin-bottom: 0.25rem;
	color: var(--red-on-dark);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
}

.service__title::before {
	content: counter(service) ". ";
	color: var(--grey);
	font-size: 1.75rem;
	line-height: 1;
}

.service__summary {
	margin: 0;
}

.service__more {
	margin-top: 0.25rem;
}

.service__more summary {
	color: var(--red-on-dark);
	cursor: pointer;
	list-style: none;
}

.service__more summary::-webkit-details-marker {
	display: none;
}

.service__more[open] summary {
	margin-bottom: 0.5rem;
}

.service__more p {
	margin: 0 0 0.75rem;
}

.service__link {
	display: inline-block;
	margin-top: 0.25rem;
	color: var(--red-on-dark);
}

.service__link:hover {
	color: var(--white);
}

/* Application and eBook */
.feature__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.feature__body p {
	margin: 0;
}

.feature__body--center {
	text-align: center;
}

.feature__body .button {
	margin-top: 1.75rem;
}

.section__title--center {
	margin-inline: auto;
	font-size: 1.25rem;
	font-weight: 400;
}

.section__title--center::after {
	margin-inline: auto;
}

.section__title--plain {
	font-size: 1.25rem;
	font-weight: 400;
}

.ebook__title {
	color: var(--black);
	font-size: clamp(1.625rem, 3vw, 2.125rem);
	font-weight: 700;
	line-height: 1.2;
}

.ebook__subtitle {
	margin-bottom: 0.75rem !important;
	color: #6e6e6e;
	font-size: clamp(2rem, 4vw, 2.875rem);
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.feature__action {
	text-align: center;
}

@media (min-width: 54rem) {
	.feature__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.button--large {
	min-height: 3rem;
	border: 1px solid transparent;
	font-size: 1.0625rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.button--green {
	background: #6f7f22;
}

.button--blue {
	background: #2d5d94;
}

.button--full {
	width: 100%;
}

/* Product images */
.feature__image {
	display: block;
	margin-inline: auto;
}

/* Education statement */
.education {
	background: var(--grey);
}

.education__text {
	max-width: 34rem;
	margin: 0;
	color: #6e6e6e;
	font-size: clamp(1.75rem, 4vw, 2.625rem);
	font-weight: 700;
	line-height: 1.2;
}

/* Form dialogs */
.dialog {
	width: min(31.25rem, 100vw - 2rem);
	max-height: calc(100dvh - 2rem);
	padding: 1.5rem;
	border: 0;
	border-radius: 10px;
	color: var(--black);
}

.dialog::backdrop {
	background: rgb(0 0 0 / 70%);
}

html:not(.js) .dialog {
	position: static;
	display: block;
	margin: 2rem auto 0;
}

.dialog__title {
	font-size: 1.375rem;
	margin-right: 2rem;
}

.dialog__intro {
	margin: 0 2rem 1rem 0;
	font-size: 1rem;
}

.dialog__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.dialog__notice {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.field {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.field label:not(fieldset label),
.field legend {
	display: block;
	margin-bottom: 0.25rem;
	padding: 0;
	font-weight: 700;
}

fieldset.field label {
	display: block;
	padding-block: 0.25rem;
}

.field input[type="text"],
.field input[type="email"] {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #767676;
	border-radius: 4px;
	font: inherit;
}

.ac-form__error {
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	background: #a50f0f;
	color: var(--white);
}

._form-thank-you {
	padding: 1rem 2rem 1rem 0;
	font-size: 1.125rem;
	text-align: center;
}

/* Footer */
.site-footer {
	background: var(--black);
	color: #bbb;
}

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

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 2rem;
	padding-block: 3rem 2rem;
}

.site-footer__name {
	margin: 0 0 0.5rem;
	color: var(--white);
	font-weight: 700;
}

.site-footer address {
	font-style: normal;
}

.site-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links li + li {
	margin-top: 0.5rem;
}

.site-footer__legal {
	padding-block: 1rem;
	border-top: 1px solid rgb(255 255 255 / 15%);
	text-align: center;
}

.site-footer__legal p {
	margin: 0;
}

/* Editor content */
.prose h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
}

.prose h3 {
	font-size: 1.25rem;
	margin-top: 2rem;
}
