/*
Theme Name: Athena Dispatch
Theme URI: https://athenadispatch.com
Author: Gareth Wealleans
Description: One-page introduction site for Athena Dispatch. All of the text is edited under Settings, Athena Site Content. No block editor or page builder is used.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: athena-dispatch
*/

/* ------------------------------------------------------------------
   Fonts. Bundled with the theme, so visitors never call Google.
   Archivo (headings, buttons, labels) and Source Serif 4 (reading text).
   Both are open-licence fonts; licences are in assets/fonts.
------------------------------------------------------------------- */
@font-face {
	font-family: "Archivo Variable";
	src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4 Variable";
	src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4 Variable";
	src: url("assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------- */
:root {
	--night: #14233a;
	--deep: #0c1626;
	--brass: #efce81;
	--brass-deep: #c79a2e;
	--brass-ink: #7a5c12;
	--paper: #f3f5f7;
	--white: #ffffff;
	--slate: #46566b;
	--line: #d3dae3;
	--mist: #c8d3e1;
	--dim: #9fb0c6;

	--display: "Archivo Variable", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--body: "Source Serif 4 Variable", "Source Serif 4", Georgia, "Times New Roman", serif;

	--gutter: clamp(1.25rem, 4vw, 3rem);
	--wrap: 72.5rem;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--slate);
	font-family: var(--body);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
}
p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}
h1,
h2,
h3 {
	margin: 0;
	font-family: var(--display);
	color: var(--night);
	text-wrap: balance;
}
.wrap {
	width: min(var(--wrap), 100% - 2 * var(--gutter));
	margin-inline: auto;
}
.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 10;
	padding: 0.7rem 1rem;
	background: var(--brass);
	color: var(--night);
	font: 600 1rem/1 var(--display);
	border-radius: 6px;
}
.skip-link:focus {
	top: 1rem;
}
:focus-visible {
	outline: 3px solid var(--brass-deep);
	outline-offset: 3px;
}
.section--dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--brass);
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 6px;
	font: 700 1rem/1.2 var(--display);
	font-stretch: 105%;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--solid {
	background: var(--brass);
	color: var(--night);
}
.btn--solid:hover {
	background: #f6dea6;
}
.btn--line {
	border-color: var(--brass);
	color: var(--brass);
}
.btn--line:hover {
	background: var(--brass);
	color: var(--night);
}
.btn--dark {
	background: var(--night);
	color: var(--brass);
	width: 100%;
}
.btn--dark:hover {
	background: var(--deep);
}
.btn--dark[disabled] {
	opacity: 0.7;
	cursor: wait;
}
.btn--small {
	padding: 0.55rem 1.1rem;
	font-size: 0.95rem;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.site-header {
	background: var(--night);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 0.9rem;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
}
.brand__logo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
}
.brand__name {
	font: 700 1.15rem/1 var(--display);
	font-stretch: 108%;
	color: var(--white);
}
.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2rem);
}
.site-nav a:not(.btn) {
	font: 600 0.95rem/1 var(--display);
	color: var(--mist);
	text-decoration: none;
}
.site-nav a:not(.btn):hover {
	color: var(--brass);
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.hero {
	background: var(--night);
	color: var(--mist);
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}
.hero__grid {
	display: block;
}
.hero h1 {
	color: var(--white);
	font-size: clamp(2.6rem, 1.2rem + 5.2vw, 4.9rem);
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1.02;
	letter-spacing: -0.02em;
}
.hero__sub {
	max-width: 38rem;
	margin: 1.6rem 0 0;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
	line-height: 1.55;
	color: var(--mist);
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin: 2.2rem 0 0;
}
.hero__status {
	max-width: 33rem;
	margin: 2.2rem 0 0;
	padding-left: 1rem;
	border-left: 3px solid var(--brass);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--dim);
}

/* The real dispatch screen: the one memorable thing on the page. */
.screen {
	margin-top: clamp(2.25rem, 4vw, 3.25rem);
}
.screen img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}
.screen figcaption {
	margin: 1rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--dim);
}

/* The allocation diagram, beside the closing line of the allocation section. */
.how__end {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	margin-top: clamp(2rem, 4vw, 3.25rem);
}
.how__end .closing {
	margin: 0;
}
.board {
	margin: 0;
	padding: 1.25rem 1.25rem 1rem;
	background: var(--night);
	border-radius: 10px;
}
.board__svg {
	display: block;
	width: 100%;
}
.board figcaption {
	margin: 0.9rem 0 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--dim);
}
.board .link {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	animation: board-draw 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) backwards;
	animation-delay: calc(0.5s + var(--i, 0) * 0.22s);
}
@keyframes board-draw {
	from {
		stroke-dashoffset: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	.board .link {
		animation: none;
	}
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.section {
	padding-block: clamp(4rem, 8vw, 7rem);
	scroll-margin-top: 0;
}
.section--light {
	background: var(--paper);
}
.section--white {
	background: var(--white);
}
.section--dark {
	background: var(--night);
	color: var(--mist);
}
.section h2 {
	font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3rem);
	font-weight: 800;
	font-stretch: 108%;
	line-height: 1.08;
	letter-spacing: -0.015em;
}
.section--dark h2,
.section--dark h3 {
	color: var(--white);
}
.section-head {
	max-width: 44rem;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head p {
	margin: 1.1rem 0 0;
}

/* Why I built it */
.split {
	display: grid;
	grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: start;
}
.letter p {
	max-width: 36rem;
	font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.3rem);
	line-height: 1.7;
	color: #2b3a4f;
}
.beliefs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin-top: 1.75rem;
}
.belief {
	margin: 0;
	padding-top: 1.1rem;
	border-top: 4px solid var(--brass-deep);
	font: 700 clamp(1.2rem, 1rem + 0.9vw, 1.55rem) / 1.25 var(--display);
	font-stretch: 104%;
	color: var(--night);
	text-wrap: balance;
}

/* How a job gets allocated: a true sequence, so numbered. */
.steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.steps li {
	position: relative;
	padding: 3.6rem 0.5rem 0 0;
	counter-increment: step;
}
.steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: var(--night);
	color: var(--brass);
	font: 700 1.05rem/1 var(--display);
}
.steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: 3.2rem;
	right: -0.5rem;
	height: 2px;
	background: var(--line);
}
.steps h3 {
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
	font-weight: 700;
	font-stretch: 104%;
}
.steps p {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.55;
}
.closing {
	max-width: 40rem;
	margin: clamp(2rem, 4vw, 3.25rem) 0 0;
	font: 700 clamp(1.25rem, 1rem + 1vw, 1.7rem) / 1.3 var(--display);
	font-stretch: 104%;
	color: var(--night);
	text-wrap: balance;
}

/* Built differently */
.built p {
	max-width: 36rem;
	margin: 0 0 1.2rem;
	font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.3rem);
	line-height: 1.7;
	color: #2b3a4f;
}
.built p:first-child {
	font-weight: 600;
	color: var(--night);
}

/* What you get */
.means {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
}
.means__item {
	padding-top: 1.25rem;
	border-top: 1px solid var(--slate);
}
.means h3 {
	margin-bottom: 0.6rem;
	font-size: 1.6rem;
	font-weight: 800;
	font-stretch: 106%;
}
.means p {
	margin: 0;
	font-size: 1.1rem;
}

/* What the platform covers */
.features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(1.5rem, 4vw, 3rem);
	margin: 0;
	border-bottom: 1px solid var(--line);
}
.features__item {
	padding-block: 1.25rem;
	border-top: 1px solid var(--line);
}
.features dt {
	margin: 0 0 0.35rem;
	font: 700 1.25rem/1.3 var(--display);
	font-stretch: 104%;
	color: var(--night);
}
.features dd {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.55;
}
@media (max-width: 46rem) {
	.features {
		grid-template-columns: minmax(0, 1fr);
	}
	.features__item:last-child {
		border-bottom: 0;
	}
}

/* Current timeline */
.section-head .bigline {
	margin: 1.4rem 0 0;
	font: 800 clamp(1.5rem, 1rem + 1.8vw, 2.2rem) / 1.1 var(--display);
	font-stretch: 108%;
	color: var(--brass-ink);
}
.roadmap {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--line);
}
.roadmap__row {
	display: grid;
	grid-template-columns: 13rem minmax(0, 1fr) 14rem;
	gap: 1.5rem;
	align-items: baseline;
	padding-block: 1.3rem;
	border-top: 1px solid var(--line);
}
.roadmap__when {
	font: 700 1.05rem/1.3 var(--display);
	color: var(--brass-ink);
}
.roadmap__what {
	font: 700 1.3rem/1.3 var(--display);
	font-stretch: 104%;
	color: var(--night);
}
.roadmap__status {
	position: relative;
	padding-left: 1.4rem;
	font: 600 1rem/1.3 var(--display);
	color: var(--slate);
}
.roadmap__status::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 0.8rem;
	height: 0.8rem;
	border: 2px solid var(--brass-ink);
	border-radius: 50%;
	background: var(--brass-ink);
}
.roadmap__row.is-planned .roadmap__status::before {
	background: transparent;
}
.roadmap__note {
	max-width: 44rem;
	margin: 1.6rem 0 0;
	padding-left: 1rem;
	border-left: 3px solid var(--brass-deep);
	font-size: 1.02rem;
	line-height: 1.55;
}

/* Working together */
.together {
	display: grid;
	grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}
.together__copy p {
	max-width: 32rem;
}
.together__copy h2 {
	margin-bottom: 1.4rem;
}
.contact {
	margin-top: 2.2rem;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.contact p {
	margin: 0 0 0.4rem;
}
.contact__name {
	font: 700 1.5rem/1.3 var(--display);
	font-stretch: 104%;
	color: var(--white);
}
.contact__nick {
	display: block;
	margin-top: 0.15rem;
	font: 500 1rem/1.4 var(--display);
	color: var(--dim);
}
.contact__link {
	font: 600 1.35rem/1.4 var(--display);
	color: var(--brass);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}
.contact__link:hover {
	color: #f6dea6;
}

/* The form: the one card on the page. */
.form {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: 14px;
	background: var(--white);
	color: var(--slate);
}
.form .form__title {
	margin-bottom: 1.4rem;
	font-size: 1.5rem;
	font-weight: 800;
	font-stretch: 106%;
	color: var(--night);
}
.field {
	margin-bottom: 1.1rem;
}
.field label {
	display: block;
	margin-bottom: 0.35rem;
	font: 600 0.95rem/1.3 var(--display);
	color: var(--night);
}
.field input,
.field textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1.5px solid #9aa8ba;
	border-radius: 8px;
	background: var(--white);
	font: 400 1.05rem/1.5 var(--body);
	color: var(--night);
}
.field textarea {
	min-height: 9rem;
	resize: vertical;
}
.field input:focus,
.field textarea:focus {
	border-color: var(--night);
	outline: 3px solid var(--brass-deep);
	outline-offset: 1px;
}
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.form-status {
	margin-top: 1rem;
	font: 600 1rem/1.45 var(--display);
	color: var(--night);
}
.form-status:empty {
	display: none;
}
.form-status.is-success {
	padding: 0.8rem 1rem;
	border-left: 4px solid #2f7d4f;
	background: #eaf4ee;
}
.form-status.is-error {
	padding: 0.8rem 1rem;
	border-left: 4px solid #b3261e;
	background: #fbeceb;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.site-footer {
	background: var(--deep);
	color: var(--dim);
	font: 500 0.95rem/1.4 var(--display);
}
.site-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-block: 1.75rem;
}
.site-footer p {
	margin: 0;
}
.site-footer__link {
	color: var(--mist);
}
.site-footer__link:hover {
	color: var(--brass);
}

/* ------------------------------------------------------------------
   Plain pages (Privacy, 404)
------------------------------------------------------------------- */
.page {
	background: var(--paper);
	padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page__wrap {
	max-width: 44rem;
}
.page h1 {
	margin-bottom: 1.6rem;
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem);
	font-weight: 800;
	font-stretch: 108%;
	line-height: 1.08;
}
.prose h2 {
	margin: 2.2rem 0 0.6rem;
	font-size: 1.45rem;
	font-weight: 800;
	font-stretch: 104%;
}
.prose p {
	color: #2b3a4f;
}
.back {
	font: 600 1rem/1.3 var(--display);
	color: var(--night);
}

/* ------------------------------------------------------------------
   Smaller screens
------------------------------------------------------------------- */
@media (max-width: 62rem) {
	.hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.how__end {
		grid-template-columns: minmax(0, 1fr);
	}
	.board {
		max-width: 30rem;
	}
	.split,
	.together {
		grid-template-columns: minmax(0, 1fr);
	}
	.means {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}
	.roadmap__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.35rem;
	}

	/* Steps run down the page, joined by a vertical line. */
	.steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
	.steps li {
		padding: 0 0 2rem 3.6rem;
		min-height: 3rem;
	}
	.steps li:not(:last-child)::after {
		top: 2.9rem;
		bottom: 0.3rem;
		left: 1.2rem;
		right: auto;
		width: 2px;
		height: auto;
	}
}
@media (max-width: 46rem) {
	.site-nav a:not(.btn) {
		display: none;
	}
	.brand__name {
		font-size: 1.05rem;
	}
	.beliefs {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 26rem) {
	.brand__name {
		display: none;
	}
}
