/* ==========================================================================
   Lyceum — front page
   Written almost entirely against the variation tokens, so switching variation
   restyles this page without any per-variation work. The blocks at the bottom
   are the exceptions: places where a variation's identity needs a specific move
   rather than a recoloured default.
   ========================================================================== */

.front__inner {
	max-width: var(--wrap-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.front > section {
	padding-block: var(--space-2xl);
}

.front > section + section {
	border-top: var(--rule-width) solid var(--color-rule);
}

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

.front-hero {
	padding-block: clamp(3rem, 8vw, 6rem) var(--space-2xl);
}

.front-hero__inner {
	display: grid;
	gap: var(--space-xl);
	align-items: end;
}

@media (min-width: 56em) {
	.front-hero__inner {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		gap: var(--space-2xl);
	}
}

.front-hero__heading {
	font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4rem);
	max-width: 16ch;
	margin-bottom: var(--space-m);
}

.front-hero__standfirst {
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--color-ink-muted);
	max-width: 52ch;
	margin-bottom: var(--space-l);
}

.front-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-m);
	margin: 0;
}

.front-hero__actions .button {
	text-decoration: none;
	display: inline-block;
	font-size: var(--step-0);
	padding: var(--space-s) var(--space-l);
}

.front-hero__secondary {
	font-size: var(--step-0);
}

.front-hero__aside .search-form {
	margin: 0;
}

/* Section furniture ------------------------------------------------------- */

.front-section__header {
	margin-bottom: var(--space-xl);
	max-width: 56ch;
}

.front-section__heading {
	font-size: var(--step-3);
	margin-bottom: var(--space-s);
}

.front-section__intro {
	color: var(--color-ink-muted);
	margin: 0;
}

.front-section__more {
	margin: var(--space-l) 0 0;
	font-size: var(--step-0);
}

/* The path — a real sequence, which is what earns the numbering ----------- */

.path-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-xl);
	counter-reset: path;
}

@media (min-width: 52em) {
	.path-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-l);
	}
}

.path-step {
	position: relative;
	padding-top: var(--space-m);
	border-top: 3px solid var(--color-accent);
}

.path-step__number {
	display: block;
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: var(--weight-display);
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: var(--space-xs);
}

.path-step__title {
	font-size: var(--step-1);
	margin-bottom: var(--space-xs);
}

.path-step__body {
	color: var(--color-ink-muted);
	margin-bottom: var(--space-s);
}

.path-step__link {
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--step--1);
}

/* Editor content ---------------------------------------------------------- */

.front-editor .entry-content {
	max-width: var(--measure);
}

/* Topics ------------------------------------------------------------------ */

.topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-l);
}

@media (min-width: 40em) {
	.topic-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.topic-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-l) var(--space-xl);
	}
}

.topic {
	padding-bottom: var(--space-m);
	border-bottom: var(--rule-width) solid var(--color-rule);
}

.topic__title {
	font-size: var(--step-1);
	margin-bottom: var(--space-2xs);
}

.topic__title a {
	color: var(--color-ink);
	text-decoration: none;
}

.topic__title a:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

.topic__body {
	color: var(--color-ink-muted);
	font-size: var(--step--1);
	margin-bottom: var(--space-xs);
}

.topic__count {
	font-size: var(--step--1);
	color: var(--color-ink-muted);
	margin: 0;
}

/* Latest ------------------------------------------------------------------ */

.latest-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-l);
}

@media (min-width: 44em) {
	.latest-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-xl);
	}
}

.latest__title {
	font-size: var(--step-1);
	margin-bottom: var(--space-xs);
}

.latest__title a {
	color: var(--color-ink);
	text-decoration: none;
}

.latest__title a:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

.latest__excerpt {
	color: var(--color-ink-muted);
	margin-bottom: var(--space-xs);
	max-width: 54ch;
}

.latest__meta {
	font-size: var(--step--1);
	color: var(--color-ink-muted);
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-m);
	margin: 0;
}

/* FAQ --------------------------------------------------------------------- */

.faq-list {
	display: grid;
	gap: var(--space-l);
}

@media (min-width: 52em) {
	.faq-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-l) var(--space-2xl);
	}
}

.faq__question {
	font-size: var(--step-1);
	margin-bottom: var(--space-xs);
}

.faq__answer {
	color: var(--color-ink-muted);
	margin: 0;
	max-width: 54ch;
}

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

.front-about__inner {
	max-width: 60ch;
}

.front-about__body {
	font-size: var(--step-1);
	line-height: 1.55;
	margin-bottom: var(--space-m);
}

.front-about__link {
	margin: 0;
}

/* ==========================================================================
   Per-variation moves
   Only where the shared version would betray the variation's identity.
   ========================================================================== */

/* Marginalia — the hero standfirst is set as a note, in the display italic. */
.variation-marginalia .front-hero__standfirst {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--color-ink);
}

.variation-marginalia .path-step {
	border-top-width: 1px;
	border-top-color: var(--color-rule);
}

.variation-marginalia .path-step__number {
	font-style: italic;
	color: var(--color-ink-muted);
}

/* Blackboard — the hero is a slate panel continuous with the header. */
.variation-blackboard .front-hero {
	background-color: #26332e;
	color: #efefe9;
	border-bottom: 4px solid #e8c547;
	margin-top: calc(var(--space-s) * -1);
}

.variation-blackboard .front-hero__heading {
	color: #efefe9;
}

.variation-blackboard .front-hero__standfirst {
	color: #b9c4bc;
}

.variation-blackboard .front-hero__secondary {
	color: #e8c547;
}

.variation-blackboard .front-hero .search-form__label {
	color: #b9c4bc;
}

.variation-blackboard .front-hero .button {
	background-color: #e8c547;
	border-color: #e8c547;
	color: #1f2a25;
}

.variation-blackboard .path-step {
	border-top-color: #e8c547;
}

.variation-blackboard .path-step__number {
	color: #2f5f4a;
}

/* Fieldnotes — graph paper behind the hero, figures-first logic applied to
   the numbered steps, which get the pencil rule treatment. */
.variation-fieldnotes .front-hero {
	background-image:
		linear-gradient(to right, #e3e6e0 1px, transparent 1px),
		linear-gradient(to bottom, #e3e6e0 1px, transparent 1px);
	background-size: 1.5rem 1.5rem;
}

.variation-fieldnotes .front-hero__text,
.variation-fieldnotes .front-hero__aside {
	background-color: #f6f5f1;
	padding: var(--space-m);
	border: 1px solid #c9cdc6;
}

.variation-fieldnotes .front-hero__heading,
.variation-fieldnotes .front-section__heading {
	letter-spacing: -0.03em;
}

.variation-fieldnotes .path-step__number {
	font-size: var(--step-2);
	color: #b3453a;
}

/* Concourse — sections read as signage bands. */
.variation-concourse .front-hero {
	background-color: #0e4d50;
	color: #f4f6f5;
	border-bottom: 6px solid #e5a21a;
}

.variation-concourse .front-hero__heading {
	color: #f4f6f5;
	letter-spacing: -0.045em;
}

.variation-concourse .front-hero__standfirst {
	color: #a9c2c1;
}

.variation-concourse .front-hero__secondary {
	color: #e5a21a;
}

.variation-concourse .front-hero .search-form__label {
	color: #a9c2c1;
}

.variation-concourse .front-hero .button {
	background-color: #e5a21a;
	border-color: #e5a21a;
	color: #14201f;
}

.variation-concourse .front-section__heading {
	letter-spacing: -0.04em;
}

.variation-concourse .path-step {
	border-top-width: 6px;
	border-top-color: #e5a21a;
}

.variation-concourse .path-step__number {
	color: #0e4d50;
}

/* Pamphlet — no rules between sections, only space. */
.variation-pamphlet .front > section + section {
	border-top: none;
}

.variation-pamphlet .front-hero__heading {
	font-variation-settings: "SOFT" 40, "WONK" 1;
	max-width: 14ch;
}

.variation-pamphlet .front-hero__standfirst {
	color: var(--color-ink);
	max-width: 46ch;
}

.variation-pamphlet .path-step {
	border-top: none;
	background-color: #efe8df;
	padding: var(--space-l);
	border-radius: var(--radius-lg);
}

.variation-pamphlet .path-step__number {
	color: #6b2233;
}

.variation-pamphlet .topic {
	border-bottom-color: #e5dbcf;
}

/* Nightdesk — the hero sits on the darker panel used by the header. */
.variation-nightdesk .front-hero {
	background-color: #101216;
	border-bottom: 1px solid #2b3038;
}

.variation-nightdesk .front-hero__heading {
	color: #f0f3f7;
	letter-spacing: -0.03em;
}

.variation-nightdesk .path-step {
	border-top-color: #c9a227;
}

.variation-nightdesk .path-step__number,
.variation-nightdesk .path-step__link {
	color: #c9a227;
}

.variation-nightdesk .front-hero .button {
	background-color: #c9a227;
	border-color: #c9a227;
	color: #14161a;
}
