/*
Theme Name: Svava Icelandic
Theme URI: https://www.icelandic-lessons.com/
Author: Svava Skuladottir
Description: A welcoming, responsive home for online Icelandic lessons and learning resources.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: svava-icelandic
*/

:root {
	--ink: #304031;
	--muted: #586557;
	--teal: #304031;
	--teal-dark: #253729;
	--cream: #faf3eb;
	--sand: #e5d6c4;
	--mist: #e0e3e6;
	--mist-deep: #bcc3ca;
	--home-banner-option-1: #ddd3e0;
	--home-banner: #f4d35e;
	--coral: #99943d;
	--line: #e1d8d1;
	--white: #fffefb;
	--shadow: 0 24px 60px rgba(48, 64, 49, .10);
	--radius: 24px;
	--content-width: 1160px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--cream);
	background-image: url("assets/images/jumper-background.svg");
	background-size: 100% 1800px;
	background-repeat: repeat-y;
	color: var(--ink);
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

a {
	color: var(--teal);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--coral);
	outline-offset: 4px;
}

::selection {
	background: var(--mist-deep);
	color: var(--ink);
}

.skip-link {
	position: fixed;
	z-index: 1000;
	top: 1rem;
	left: 1rem;
	padding: .7rem 1rem;
	transform: translateY(-180%);
	border-radius: 8px;
	background: var(--ink);
	color: var(--white);
}

.skip-link:focus {
	transform: translateY(0);
	color: var(--white);
}

.site-header {
	position: sticky;
	z-index: 50;
	top: 0;
	border-bottom: 1px solid rgba(32, 56, 57, .08);
	background: rgba(251, 249, 244, .94);
	backdrop-filter: blur(16px);
}

.header-inner {
	display: flex;
	width: min(100% - 3rem, 1280px);
	min-height: 88px;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.brand {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: .8rem;
	color: var(--ink);
	text-decoration: none;
}

.brand:hover {
	color: var(--ink);
}

.brand-mark {
	display: grid;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	place-items: center;
	border-radius: 50%;
	background: var(--teal);
	color: var(--white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.65rem;
	font-style: italic;
}

.brand-copy {
	display: grid;
	line-height: 1.2;
}

.brand-copy strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.12rem;
	font-weight: 600;
	letter-spacing: -.02em;
}

.brand-copy small {
	margin-top: .3rem;
	color: var(--muted);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .14em;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	padding: .65rem .85rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
}

.menu-toggle svg {
	width: 19px;
	height: 19px;
}

.primary-nav .menu {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: .15rem;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
}

.primary-nav .menu a {
	display: inline-flex;
	min-height: 44px;
	padding: .6rem .72rem;
	align-items: center;
	border-radius: 999px;
	color: var(--ink);
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	transition: color .18s ease, background-color .18s ease;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a,
.primary-nav .menu .current-menu-ancestor > a {
	background: var(--mist);
	color: var(--teal-dark);
}

.primary-nav .menu > li:last-child > a {
	border: 1px solid var(--teal);
	background: var(--teal);
	color: var(--white);
}

.primary-nav .menu > li:last-child > a:hover {
	border-color: var(--teal-dark);
	background: var(--teal-dark);
	color: var(--white);
}

.primary-nav .sub-menu {
	position: absolute;
	z-index: 10;
	top: 100%;
	left: 0;
	display: none;
	min-width: 210px;
	margin: 0;
	padding: .5rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--white);
	box-shadow: var(--shadow);
	list-style: none;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.primary-nav .sub-menu a {
	width: 100%;
	border-radius: 9px;
}

.site-main {
	min-height: 65vh;
}

.entry-content,
.page-heading,
.post-list {
	width: min(100% - 3rem, var(--content-width));
	margin-right: auto;
	margin-left: auto;
}

.entry-content {
	padding-top: clamp(2.5rem, 6vw, 5.5rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.page-reveal {
	opacity: 1;
	transition: opacity 1.1s ease-out;
}

html.page-loading .page-reveal {
	opacity: 0;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.page-reveal,
	html.page-loading .page-reveal {
		opacity: 1;
		transition: none;
	}
}

.home .entry-content {
	width: min(100% - 3rem, 1240px);
	padding-top: 2rem;
}

.entry-content > * + * {
	margin-top: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.page-heading h1,
.post-list h2 {
	margin-bottom: .65em;
	color: var(--ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: 1.12;
}

.entry-content h1,
.page-heading h1 {
	font-size: clamp(2.5rem, 5vw, 4.65rem);
}

.entry-content h2 {
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
	font-size: clamp(1.9rem, 3.2vw, 2.85rem);
}

.entry-content h3 {
	font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.entry-content p,
.entry-content li {
	color: var(--muted);
}

.entry-content strong {
	color: var(--ink);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35rem;
}

.entry-content li + li {
	margin-top: .45rem;
}

.entry-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border-left: 3px solid var(--coral);
	color: var(--ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.22rem;
}

.entry-content blockquote p {
	color: var(--ink);
}

.entry-content [style*="#db003c"],
.entry-content [style*="#00064b"] {
	color: var(--teal-dark) !important;
}

.page-heading {
	padding-top: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
	margin: 0 0 1rem;
	color: var(--teal);
	font-size: .73rem;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.lead {
	max-width: 690px;
	font-size: clamp(1.15rem, 1.8vw, 1.35rem);
	line-height: 1.65;
}

.home-hero {
	position: relative;
	display: grid;
	min-height: 510px;
	padding: clamp(2rem, 6vw, 5.5rem);
	overflow: hidden;
	align-items: center;
	grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
	gap: clamp(2rem, 5vw, 5rem);
	border: 1px solid rgba(40, 109, 104, .1);
	border-radius: 32px;
	background:
		radial-gradient(ellipse at 87% 8%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 37%),
		linear-gradient(125deg, #eaf2ef 0%, #e8f1ef 56%, #f2ece1 100%);
}

.home-hero::before {
	position: absolute;
	right: 31%;
	bottom: -230px;
	width: 440px;
	height: 440px;
	border: 1px solid rgba(40, 109, 104, .12);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.hero-copy,
.hero-portrait-wrap {
	position: relative;
	z-index: 1;
}

.hero-copy h1 {
	max-width: 680px;
	margin: 0;
	font-size: clamp(3rem, 5.5vw, 5.55rem);
}

.hero-copy h1 em {
	color: var(--teal);
	font-weight: 400;
}

.hero-copy .lead {
	max-width: 590px;
	margin: 1.45rem 0 0;
	font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.hero-actions {
	display: flex;
	margin-top: 2rem;
	align-items: center;
	flex-wrap: wrap;
	gap: .85rem;
}

.button,
.button-secondary {
	display: inline-flex;
	min-height: 50px;
	padding: .78rem 1.25rem;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .94rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.button {
	background: var(--teal);
	color: var(--white);
	box-shadow: 0 8px 18px rgba(40, 109, 104, .16);
}

.button:hover {
	transform: translateY(-2px);
	background: var(--teal-dark);
	color: var(--white);
	box-shadow: 0 12px 24px rgba(40, 109, 104, .2);
}

.button-secondary {
	border-color: rgba(32, 56, 57, .18);
	background: rgba(255, 255, 255, .65);
	color: var(--ink);
}

.button-secondary:hover {
	transform: translateY(-2px);
	background: var(--white);
	color: var(--teal-dark);
}

.hero-note {
	display: flex;
	margin: 1.5rem 0 0;
	align-items: center;
	gap: .65rem;
	font-size: .88rem;
}

.hero-note::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--coral);
	content: "";
}

.hero-portrait-wrap {
	min-height: 355px;
}

.hero-portrait {
	width: min(100%, 390px);
	height: 400px;
	margin-left: auto;
	border: 8px solid rgba(255, 255, 255, .82);
	border-radius: 46% 46% 28px 28px;
	object-fit: cover;
	object-position: center 35%;
	box-shadow: var(--shadow);
}

.portrait-note {
	position: absolute;
	right: -1rem;
	bottom: 1.4rem;
	max-width: 225px;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 16px;
	background: rgba(255, 255, 255, .94);
	box-shadow: var(--shadow);
	color: var(--ink);
	font-size: .9rem;
	line-height: 1.45;
}

.portrait-note strong {
	display: block;
	margin-bottom: .2rem;
	color: var(--teal-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
	font-weight: 600;
}

.section-intro {
	max-width: 720px;
	margin: 0 auto clamp(1.5rem, 3vw, 2.4rem);
	text-align: center;
}

.section-intro h2 {
	margin-top: .35rem;
}

.path-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.2rem;
}

.path-card {
	position: relative;
	display: flex;
	min-height: 265px;
	padding: clamp(1.4rem, 2.6vw, 2rem);
	flex-direction: column;
	align-items: flex-start;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--white);
	box-shadow: 0 10px 28px rgba(32, 56, 57, .045);
	transition: transform .2s ease, box-shadow .2s ease;
}

.path-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
}

.path-card:nth-child(2) {
	background: var(--mist);
}

.path-card:nth-child(3) {
	background: var(--sand);
}

.path-number {
	display: grid;
	width: 38px;
	height: 38px;
	margin-bottom: 1.3rem;
	place-items: center;
	border: 1px solid rgba(40, 109, 104, .18);
	border-radius: 50%;
	color: var(--teal);
	font-size: .78rem;
	font-weight: 800;
}

.path-card h3 {
	margin: 0 0 .45rem;
}

.path-card p {
	margin: 0 0 1.1rem;
	font-size: .97rem;
}

.text-link {
	display: inline-flex;
	margin-top: auto;
	align-items: center;
	gap: .45rem;
	font-weight: 700;
	text-decoration: none;
}

.text-link::after {
	content: "→";
	transition: transform .18s ease;
}

.text-link:hover::after {
	transform: translateX(4px);
}

.teacher-strip,
.quote-panel,
.cta-panel,
.info-panel {
	padding: clamp(1.6rem, 4vw, 3rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.teacher-strip {
	display: grid;
	align-items: center;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	background: var(--sand);
}

.teacher-strip h2,
.quote-panel h2,
.cta-panel h2 {
	margin-top: .3rem;
}

.teacher-strip p {
	max-width: 760px;
}

.quote-panel {
	position: relative;
	overflow: hidden;
	background: var(--mist);
}

.quote-panel::after {
	position: absolute;
	top: -2.2rem;
	right: 1rem;
	color: rgba(40, 109, 104, .11);
	content: "“";
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13rem;
	line-height: 1;
	pointer-events: none;
}

.quote-panel blockquote {
	position: relative;
	z-index: 1;
	max-width: 880px;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.35rem, 2.5vw, 2.05rem);
	line-height: 1.45;
}

.quote-panel blockquote p {
	color: var(--ink);
	font-family: Georgia, "Times New Roman", serif;
}

.quote-credit {
	margin: .75rem 0 0;
	font-size: .9rem;
	font-weight: 700;
}

.cta-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	background: var(--teal-dark);
	color: var(--white);
}

.cta-panel h2,
.cta-panel p,
.cta-panel .eyebrow {
	color: var(--white);
}

.cta-panel .button {
	flex: 0 0 auto;
	background: var(--white);
	color: var(--teal-dark);
}

.cta-panel .button:hover {
	background: var(--sand);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.feature-card {
	padding: 1.4rem;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--white);
}

.entry-content figure.feature-card {
	margin: 0;
}

.feature-card h2 {
	margin-top: 0;
}

.feature-card h3 {
	margin: 0 0 .45rem;
}

.feature-card p {
	margin: 0;
}

.page-hero {
	margin-bottom: 2.5rem;
	padding: clamp(1.7rem, 4vw, 3.2rem);
	border: 1px solid rgba(40, 109, 104, .1);
	border-radius: var(--radius);
	background: linear-gradient(125deg, var(--mist), #f4eee4);
}

.page-hero h1 {
	max-width: 850px;
	margin: 0;
	color: #39364d;
}

.page-hero .lead {
	margin-bottom: 0;
}

.content-section {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.content-section > h2:first-child {
	margin-top: 0;
}

.faq-list {
	display: grid;
	gap: .8rem;
}

.faq-item {
	padding: 1.1rem 1.3rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--white);
}

.faq-item summary {
	color: var(--ink);
	font-size: 1.04rem;
	font-weight: 700;
	cursor: pointer;
}

.faq-item p {
	margin-bottom: 0;
}

.contact-card {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--radius);
	background: var(--mist);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	overflow: hidden;
}

.entry-content th,
.entry-content td {
	padding: .85rem 1rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	background: var(--mist);
	color: var(--ink);
	font-weight: 700;
}

.entry-content tr:last-child td {
	border-bottom: 0;
}

.entry-content .tablepress {
	margin: 1.2rem 0;
}

.site-footer {
	padding: 3.5rem 1.5rem 1.25rem;
	background: var(--ink);
	color: rgba(255, 255, 255, .78);
}

.footer-inner {
	display: grid;
	width: min(100%, 1160px);
	margin: 0 auto;
	align-items: start;
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem;
}

.footer-brand {
	color: var(--white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
}

.footer-inner p {
	max-width: 440px;
	margin: .5rem 0 0;
}

.footer-links {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: .7rem 1.2rem;
}

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

.footer-bottom {
	width: min(100%, 1160px);
	margin: 2rem auto 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: .82rem;
}

.post-list article {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}

.post-list h2 {
	margin: 0 0 .4rem;
	font-size: 2rem;
}

@media (max-width: 1000px) {
	.header-inner {
		width: min(100% - 2rem, 1280px);
		min-height: 78px;
		gap: 1rem;
	}

	.primary-nav .menu a {
		padding-right: .55rem;
		padding-left: .55rem;
		font-size: .82rem;
	}

	.home-hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(245px, .8fr);
		gap: 2rem;
	}

	.hero-portrait {
		height: 350px;
	}
}

@media (max-width: 820px) {
	.header-inner {
		position: relative;
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.site-navigation {
		position: absolute;
		top: calc(100% - .1rem);
		right: 0;
		left: 0;
		display: none;
		padding: .7rem;
		border: 1px solid var(--line);
		border-radius: 16px;
		background: var(--cream);
		box-shadow: var(--shadow);
	}

	.site-navigation.is-open {
		display: block;
	}

	.primary-nav .menu {
		display: grid;
		gap: .1rem;
	}

	.primary-nav .menu a {
		width: 100%;
		padding: .7rem .85rem;
		font-size: .95rem;
	}

	.primary-nav .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin: 0 0 .3rem .8rem;
		padding: 0 0 0 .55rem;
		border: 0;
		border-left: 1px solid var(--line);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.home-hero {
		grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr);
	}

	.hero-copy h1 {
		font-size: clamp(2.8rem, 7vw, 4.5rem);
	}

	.path-grid {
		grid-template-columns: 1fr;
	}

	.path-card {
		min-height: 0;
	}
}

@media (max-width: 620px) {
	body {
		font-size: 16px;
	}

	.header-inner,
	.entry-content,
	.page-heading,
	.post-list {
		width: min(100% - 2rem, var(--content-width));
	}

	.brand-mark {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.brand-copy strong {
		font-size: 1rem;
	}

	.brand-copy small {
		font-size: .58rem;
	}

	.home .entry-content {
		width: min(100% - 1.25rem, 1240px);
		padding-top: .7rem;
	}

	.home-hero {
		min-height: 0;
		padding: 1.6rem;
		grid-template-columns: 1fr;
		gap: 1.5rem;
		border-radius: 24px;
	}

	.hero-copy h1 {
		font-size: clamp(2.65rem, 12vw, 4rem);
	}

	.hero-portrait-wrap {
		min-height: 0;
		padding: 0 .35rem 1.5rem 0;
	}

	.hero-portrait {
		width: 100%;
		height: min(96vw, 390px);
		margin: 0 auto;
		border-radius: 42% 42% 22px 22px;
	}

	.portrait-note {
		right: -.2rem;
		bottom: 0;
		max-width: 200px;
		padding: .75rem .9rem;
		font-size: .82rem;
	}

	.teacher-strip,
	.cta-panel {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}

	.entry-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.entry-content th,
	.entry-content td {
		padding: .7rem .75rem;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.footer-links {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

body:not(.home) .teacher-strip {
	background: var(--sand);
}

body:not(.home) .quote-panel,
body:not(.home) .contact-card {
	background: var(--mist);
}

body:not(.home) .cta-panel {
	border-color: rgba(48, 64, 49, .12);
	background: var(--mist);
	color: var(--ink);
}

body:not(.home) .cta-panel h2,
body:not(.home) .cta-panel p,
body:not(.home) .cta-panel .eyebrow {
	color: var(--ink);
}

body:not(.home) .cta-panel .button {
	background: var(--ink);
	color: var(--cream);
}

body:not(.home) .cta-panel .button:hover {
	background: var(--teal-dark);
	color: var(--cream);
}

body.page-id-1032 .faq-list {
	margin-top: 2rem;
	gap: .7rem;
	counter-reset: faq;
}

body.page-id-1032 .faq-item {
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(48, 64, 49, .12);
	border-radius: 12px;
	background: var(--white);
}

body.page-id-1032 .faq-item:nth-child(3n + 1) {
	border-left: 3px solid var(--coral);
}

body.page-id-1032 .faq-item:nth-child(3n + 2) {
	border-left: 3px solid var(--mist-deep);
}

body.page-id-1032 .faq-item:nth-child(3n) {
	border-left: 3px solid var(--sand);
}

body.page-id-1032 .faq-item h2 {
	display: grid;
	min-height: 74px;
	margin: 0;
	padding: 1rem 1.25rem;
	align-items: center;
	grid-template-columns: 2.4rem minmax(0, 1fr);
	gap: .8rem;
	color: var(--ink);
	font-size: 1.04rem;
	font-weight: 700;
}

body.page-id-1032 .faq-item h2::before {
	color: var(--coral);
	content: counter(faq, decimal-leading-zero);
	counter-increment: faq;
	font-family: Georgia, "Times New Roman", serif;
	font-size: .95rem;
	font-weight: 500;
	letter-spacing: .04em;
}

body.page-id-1032 .faq-item > p {
	max-width: 700px;
	margin: 0 1.25rem 1.4rem 4.45rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(48, 64, 49, .1);
	font-size: .97rem;
	line-height: 1.75;
}

body.page-id-1032 .entry-content > p:last-child {
	margin-top: 1.2rem;
	padding: 1.15rem 1.35rem;
	border-radius: 10px;
	background: var(--mist);
}

body.page-id-1032 .entry-content > p:last-child a {
	font-weight: 700;
}

body.testimonials-layout .entry-content {
	display: grid;
	align-items: stretch;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.2rem;
}

body.testimonials-layout .entry-content > * + * {
	margin-top: 0;
}

body.testimonials-layout .entry-content > .page-hero {
	grid-column: 1 / -1;
}

body.testimonials-layout .entry-content > p:first-of-type {
	display: none;
}

body.testimonials-layout .entry-content > p:nth-of-type(n + 2):nth-of-type(-n + 6) {
	position: relative;
	margin: 0;
	padding: 2.8rem clamp(1.35rem, 2.4vw, 2rem) 1.5rem;
	border: 1px solid rgba(48, 64, 49, .12);
	border-radius: 12px;
	background: var(--white);
	color: var(--muted);
	font-family: Georgia, "Times New Roman", Arial, sans-serif;
	font-size: .97rem;
	line-height: 1.8;
	box-shadow: 0 12px 30px rgba(48, 64, 49, .045);
}

body.testimonials-layout .entry-content > p:nth-of-type(n + 2):nth-of-type(-n + 6)::before {
	position: absolute;
	top: .15rem;
	left: 1.25rem;
	color: rgba(153, 148, 61, .52);
	content: "“";
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4rem;
	line-height: 1;
}

body.testimonials-layout .entry-content > p:nth-of-type(n + 2):nth-of-type(-n + 6) span[style*="#db003c"] {
	color: var(--ink) !important;
}

body.testimonials-layout .entry-content > p:nth-of-type(n + 2):nth-of-type(-n + 6) span[style*="#db003c"]:has(strong) {
	display: inline-block;
	margin-top: .75rem;
	font-size: .91rem;
}

body.testimonials-layout .entry-content > p:nth-of-type(n + 2):nth-of-type(-n + 6) span[style*="#db003c"]:has(em) {
	color: #777337 !important;
	font-size: .82rem;
}

body.testimonials-layout .entry-content > p:last-child {
	grid-column: 1 / -1;
	margin: .4rem 0 0;
	padding: 1.2rem 1.4rem;
	border-radius: 10px;
	background: var(--sand);
	text-align: center;
}

body.testimonials-layout .entry-content > p:last-child a {
	color: var(--ink);
}

@media (max-width: 620px) {
	body.page-id-1032 .faq-item h2 {
		min-height: 68px;
		padding: .85rem;
		grid-template-columns: 2rem minmax(0, 1fr);
		gap: .55rem;
		font-size: .97rem;
	}

	body.page-id-1032 .faq-item > p {
		margin: 0 1rem 1.1rem 3.4rem;
		font-size: .92rem;
	}

	body.testimonials-layout .entry-content {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	body.testimonials-layout .entry-content > section,
	body.testimonials-layout .entry-content > p:last-child {
		grid-column: 1;
	}
}

/* Homepage: a quieter, more editorial introduction. */
body.home .entry-content {
	width: min(100% - 3rem, 1320px);
	padding-top: 1.25rem;
}

body.home .home-hero {
	min-height: 610px;
	padding: clamp(2.5rem, 6vw, 5.75rem);
	grid-template-columns: minmax(0, 1.12fr) minmax(310px, .78fr);
	gap: clamp(2rem, 5vw, 5rem);
	border: 0;
	border-radius: 4px;
	background:
		radial-gradient(ellipse at 86% 16%, rgba(255, 255, 255, .82), transparent 35%),
		linear-gradient(112deg, #f1eee5 0%, #edf1eb 52%, #e0ece9 100%);
}

body.home .home-hero::before {
	right: 2%;
	bottom: -305px;
	width: 560px;
	height: 560px;
	border-color: rgba(40, 109, 104, .1);
}

body.home .hero-copy {
	max-width: 700px;
}

body.home .hero-copy .eyebrow {
	margin-bottom: 1.6rem;
	font-size: .68rem;
	letter-spacing: .19em;
}

body.home .hero-copy h1 {
	max-width: 680px;
	font-size: clamp(3.75rem, 6.4vw, 6.35rem);
	font-weight: 400;
	letter-spacing: -.065em;
	line-height: .99;
}

body.home .hero-copy h1 em {
	display: block;
	margin-top: .12em;
	color: var(--teal-dark);
	font-style: italic;
	font-weight: 400;
}

body.home .hero-copy .lead {
	max-width: 545px;
	margin-top: 1.75rem;
	font-size: clamp(1.05rem, 1.45vw, 1.23rem);
	line-height: 1.78;
}

body.home .hero-actions {
	margin-top: 2rem;
	gap: 1.15rem;
}

body.home .hero-actions .button {
	padding-right: 1.45rem;
	padding-left: 1.45rem;
}

body.home .hero-actions .button-secondary {
	border-color: transparent;
	background: transparent;
	text-decoration: underline;
	text-decoration-color: rgba(32, 56, 57, .3);
	text-underline-offset: .3em;
}

body.home .hero-actions .button-secondary:hover {
	color: var(--teal-dark);
	text-decoration-color: currentColor;
}

body.home .hero-note {
	margin-top: 1.65rem;
	color: var(--muted);
	font-size: .81rem;
	letter-spacing: .015em;
}

body.home .hero-portrait-wrap {
	display: flex;
	min-height: 0;
	align-items: center;
	justify-content: center;
}

body.home .hero-portrait {
	width: min(100%, 435px);
	height: clamp(390px, 43vw, 525px);
	margin: 0;
	border: 8px solid rgba(255, 255, 255, .74);
	border-radius: 49% 49% 3px 3px;
	object-position: center 33%;
	box-shadow: 0 30px 75px rgba(32, 56, 57, .13);
}

body.home .portrait-note {
	right: -.75rem;
	bottom: 3.3rem;
	display: grid;
	min-width: 215px;
	gap: .12rem;
	padding: 1rem 1.3rem;
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: 2px;
	box-shadow: 0 16px 38px rgba(32, 56, 57, .1);
}

body.home .portrait-note strong {
	margin: .1rem 0;
	font-size: 1.2rem;
}

body.home .portrait-note span {
	color: var(--muted);
	font-size: .77rem;
}

body.home .home-note-strip {
	display: grid;
	margin-top: 2.2rem;
	padding: 1.25rem 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

body.home .home-note-strip p {
	margin: 0;
	padding: .2rem 1.5rem;
	color: var(--muted);
	font-size: .88rem;
	text-align: center;
}

body.home .home-note-strip p + p {
	border-left: 1px solid var(--line);
}

body.home .home-note-strip strong {
	color: var(--ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.18rem;
	font-weight: 500;
}

body.home .home-learning {
	margin-top: clamp(5rem, 10vw, 8rem);
}

body.home .home-learning-heading {
	display: grid;
	margin-bottom: 2.1rem;
	align-items: end;
	grid-template-columns: minmax(0, 1.15fr) minmax(240px, .65fr);
	gap: 3rem;
}

body.home .home-learning-heading .eyebrow {
	margin-bottom: .85rem;
}

body.home .home-learning-heading h2 {
	max-width: 680px;
	margin: 0;
	font-size: clamp(2.65rem, 4.5vw, 4.4rem);
	line-height: 1.04;
}

body.home .home-learning-heading > p {
	margin: 0 0 .25rem;
	font-size: 1rem;
}

body.home .home-path-list {
	border-top: 1px solid var(--line);
}

body.home .home-path-row {
	display: grid;
	padding: 1.6rem .25rem;
	align-items: center;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	gap: 1.2rem;
	border-bottom: 1px solid var(--line);
	transition: padding .2s ease, background-color .2s ease;
}

body.home .home-path-row:hover {
	padding-right: .9rem;
	padding-left: .9rem;
	background: rgba(232, 241, 239, .52);
}

body.home .home-path-number {
	color: var(--coral);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.16rem;
	font-style: italic;
}

body.home .home-path-row h3 {
	margin: 0;
	font-size: clamp(1.45rem, 2.3vw, 1.9rem);
}

body.home .home-path-row p {
	max-width: 670px;
	margin: .3rem 0 0;
	font-size: .96rem;
}

body.home .home-path-row .text-link {
	margin-top: 0;
	white-space: nowrap;
}

body.home .home-teacher-note {
	display: grid;
	margin-top: clamp(5rem, 9vw, 7rem);
	padding: clamp(2rem, 5vw, 4.3rem);
	align-items: center;
	grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	background: #f1e9dc;
}

body.home .home-teacher-note h2 {
	max-width: 570px;
	margin: .3rem 0 1rem;
	font-size: clamp(2.5rem, 4.4vw, 4.15rem);
	line-height: 1.04;
}

body.home .home-teacher-note p {
	max-width: 570px;
}

body.home .home-teacher-quote {
	margin: 0;
	padding: .4rem 0 .4rem 1.8rem;
	border-left: 1px solid rgba(40, 109, 104, .45);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.25vw, 1.9rem);
	line-height: 1.5;
}

body.home .home-teacher-quote p {
	color: var(--ink);
}

body.home .home-teacher-quote cite {
	display: block;
	margin-top: 1rem;
	color: var(--muted);
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: .78rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .04em;
}

body.home .home-invitation {
	display: flex;
	margin-top: clamp(4rem, 8vw, 6rem);
	padding-bottom: 1.5rem;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

body.home .home-invitation h2 {
	margin: .25rem 0 .6rem;
	font-size: clamp(2.2rem, 3.8vw, 3.5rem);
}

body.home .home-invitation p {
	max-width: 610px;
	margin: 0;
}

@media (max-width: 1000px) {
	body.home .home-hero {
		min-height: 540px;
		grid-template-columns: minmax(0, 1.05fr) minmax(255px, .78fr);
		gap: 2rem;
	}

	body.home .hero-copy h1 {
		font-size: clamp(3.5rem, 7vw, 5rem);
	}

	body.home .hero-portrait {
		height: 420px;
	}

	body.home .portrait-note {
		right: -.2rem;
	}
}

@media (max-width: 820px) {
	body.home .home-hero {
		min-height: 0;
		grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr);
	}

	body.home .hero-copy h1 {
		font-size: clamp(3.15rem, 8vw, 4.5rem);
	}

	body.home .hero-portrait {
		height: 380px;
	}

	body.home .home-learning-heading {
		grid-template-columns: 1fr;
		gap: .8rem;
	}

	body.home .home-teacher-note {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 620px) {
	body.home .entry-content {
		width: min(100% - 1.25rem, 1240px);
		padding-top: .65rem;
	}

	body.home .home-hero {
		padding: 2rem 1.3rem 1.5rem;
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	body.home .hero-copy .eyebrow {
		margin-bottom: 1rem;
		font-size: .6rem;
		letter-spacing: .13em;
	}

	body.home .hero-copy h1 {
		font-size: clamp(3.1rem, 14vw, 4.4rem);
	}

	body.home .hero-copy .lead {
		margin-top: 1.2rem;
		font-size: 1rem;
	}

	body.home .hero-actions {
		align-items: flex-start;
		flex-direction: column;
		gap: .35rem;
	}

	body.home .hero-note {
		margin-top: 1rem;
		font-size: .75rem;
	}

	body.home .hero-portrait-wrap {
		padding: 0 .25rem 1.8rem 0;
	}

	body.home .hero-portrait {
		width: min(100%, 420px);
		height: min(105vw, 440px);
		border-radius: 49% 49% 2px 2px;
	}

	body.home .portrait-note {
		right: -.1rem;
		bottom: 0;
		min-width: 195px;
		padding: .8rem 1rem;
	}

	body.home .home-note-strip {
		margin-top: 1.4rem;
		grid-template-columns: 1fr;
	}

	body.home .home-note-strip p {
		padding: .65rem .3rem;
		text-align: left;
	}

	body.home .home-note-strip p + p {
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	body.home .home-learning {
		margin-top: 4rem;
	}

	body.home .home-learning-heading h2 {
		font-size: 2.8rem;
	}

	body.home .home-path-row {
		padding: 1.2rem .1rem;
		grid-template-columns: 34px minmax(0, 1fr);
		gap: .7rem;
	}

	body.home .home-path-row:hover {
		padding-right: .4rem;
		padding-left: .4rem;
	}

	body.home .home-path-row .text-link {
		grid-column: 2;
	}

	body.home .home-teacher-note {
		margin-top: 4rem;
		padding: 1.6rem 1.3rem;
	}

	body.home .home-teacher-note h2 {
		font-size: 2.65rem;
	}

	body.home .home-teacher-quote {
		padding-left: 1rem;
	}

	body.home .home-invitation {
		margin-top: 3.5rem;
		align-items: flex-start;
		flex-direction: column;
		gap: 1.2rem;
	}
}

/* Homepage: an image-led, editorial direction inspired by Verso. */
body.home {
	color: #304031;
}

.site-header {
	position: sticky;
	top: 0;
	right: 0;
	left: 0;
	border: 0;
	background: var(--cream);
	backdrop-filter: none;
}

body.home .site-header {
	position: sticky;
}

.header-topbar > span {
	flex: 1 1 auto;
	min-width: 0;
}

.header-topbar {
	display: flex;
	min-height: 31px;
	padding: .35rem 1rem;
	gap: .5rem;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	background: #304031;
	color: #faf3eb;
	font-size: .59rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-align: center;
	text-transform: uppercase;
}

/* Top banner: "Hi Anna" and Log out (or Students · Log in). */
.header-topbar > .topbar-account {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	min-width: 0;
}

.topbar-greeting {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: .04em;
	font-size: 1.15em;
}

.header-topbar .topbar-button {
	flex: none;
	padding: .2em .9em;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	line-height: 1.5;
	transition: background-color .15s ease;
}

.header-topbar .topbar-button:hover,
.header-topbar .topbar-button:focus-visible {
	background: color-mix(in srgb, currentColor 18%, transparent);
	color: inherit;
}

.header-topbar .topbar-account:empty {
	display: none;
}

.header-inner {
	width: min(100% - 3rem, 1440px);
	min-height: 88px;
	border-bottom: 1px solid rgba(48, 64, 49, .2);
}

.brand,
.brand:hover,
.primary-nav .menu a {
	color: #304031;
}

.brand-copy small {
	color: rgba(48, 64, 49, .72);
}

.brand-mark {
	border: 1px solid #304031;
	background: #304031;
	color: #faf3eb;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a,
.primary-nav .menu .current-menu-ancestor > a {
	background: rgba(188, 195, 202, .72);
	color: #304031;
}

.primary-nav .menu > li:last-child > a {
	border: 1px solid #304031;
	border-radius: 2px;
	background: #304031;
	color: #faf3eb;
}

.menu-toggle {
	border-color: rgba(48, 64, 49, .38);
	background: #faf3eb;
	color: #304031;
}

body.home .entry-content {
	width: 100%;
	padding: 0;
}

body.home .entry-content > * + * {
	margin-top: 0;
}

body.home .home-hero {
	position: relative;
	display: grid;
	width: 100%;
	max-width: 2560px;
	margin-right: auto;
	margin-left: auto;
	min-height: min(860px, max(700px, calc(100svh - 31px)));
	padding: clamp(11rem, 21vh, 15rem) clamp(1.5rem, 9vw, 9rem) clamp(4rem, 8vh, 6rem);
	align-content: center;
	grid-template-columns: minmax(0, 800px);
	gap: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #304031;
}

body.home .home-hero::before {
	display: none;
}

body.home .home-hero::after {
	display: none;
}

body.home .hero-copy {
	position: relative;
	z-index: 2;
	max-width: 800px;
	color: #39364d;
}

body.home .hero-copy .eyebrow {
	margin-bottom: 1.5rem;
	color: #777337;
	font-size: .69rem;
	letter-spacing: .2em;
}

body.home .hero-copy h1 {
	max-width: 790px;
	margin: 0;
	color: #304031;
	font-size: clamp(4rem, 8.5vw, 8.4rem);
	font-weight: 400;
	letter-spacing: -.065em;
	line-height: .91;
}

body.home .hero-copy h1 em {
	margin-top: .08em;
	color: #99943d;
}

body.home .hero-copy .lead {
	max-width: 520px;
	margin-top: 1.6rem;
	color: #485849;
	font-size: clamp(1.04rem, 1.35vw, 1.2rem);
	line-height: 1.75;
}

body.home .hero-actions {
	margin-top: 1.8rem;
	gap: .8rem;
}

body.home .hero-actions .button {
	border: 1px solid #304031;
	border-radius: 2px;
	background: #304031;
	color: #faf3eb;
}

body.home .hero-actions .button:hover {
	border-color: #777337;
	background: #777337;
}

body.home .hero-actions .button-secondary {
	border: 1px solid rgba(48, 64, 49, .58);
	border-radius: 2px;
	background: transparent;
	color: #304031;
	text-decoration: none;
}

body.home .hero-actions .button-secondary:hover {
	border-color: #304031;
	background: rgba(188, 195, 202, .55);
	color: #304031;
}

body.home .hero-note {
	margin-top: 1.4rem;
	color: #485849;
	font-size: .8rem;
	letter-spacing: .04em;
}

body.home .hero-portrait-wrap {
	position: absolute;
	z-index: 2;
	right: clamp(3rem, 9vw, 9rem);
	bottom: 3.5rem;
	display: block;
	width: min(32vw, 320px);
	min-height: 0;
	margin: 0;
	padding: 0;
}

body.home .hero-portrait {
	width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	aspect-ratio: 276 / 320;
	object-fit: cover;
	object-position: center 30%;
	box-shadow: 0 20px 55px rgba(48, 64, 49, .16);
}

body.home .portrait-note {
	position: relative;
	right: auto;
	bottom: auto;
	z-index: 2;
	width: max-content;
	max-width: min(225px, 100%);
	margin: -1.2rem 0 0 auto;
	padding: .8rem 1rem;
	border: 1px solid rgba(48, 64, 49, .12);
	border-radius: 2px;
	background: #faf3eb;
	box-shadow: none;
	color: #304031;
}

body.home .portrait-note .eyebrow,
body.home .portrait-note strong,
body.home .portrait-note span {
	color: #304031;
}

body.home .home-note-strip {
	margin: 0;
	padding: 1.3rem max(1.5rem, calc((100% - 1200px) / 2));
	border: 0;
	background: var(--home-banner);
	animation: banner-colours 100s linear infinite;
}

@keyframes banner-colours {
	0%, 100% { background-color: #f4d35e; }
	5% { background-color: #e5ed8b; }
	10% { background-color: #b9e8a2; }
	15% { background-color: #93e8bd; }
	20% { background-color: #87e2d5; }
	25% { background-color: #8edfea; }
	30% { background-color: #a4d8fa; }
	35% { background-color: #bed0fc; }
	40% { background-color: #d0c4fa; }
	45% { background-color: #e6bdf2; }
	50% { background-color: #f5bce0; }
	55% { background-color: #fac1cf; }
	60% { background-color: #f7c89c; }
	65% { background-color: #f5d892; }
	70% { background-color: #eee8b0; }
	75% { background-color: #cce69a; }
	80% { background-color: #a5e3cb; }
	85% { background-color: #acdfe6; }
	90% { background-color: #d9caf2; }
	95% { background-color: #efcfb6; }
}

body.home .home-note-strip:hover,
body.home .home-note-strip:focus-within {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	body.home .home-note-strip {
		animation: none;
	}
}

body.home .home-note-strip p {
	color: #485849;
}

body.home .home-note-strip p + p {
	border-color: rgba(48, 64, 49, .16);
}

body.home .home-note-strip strong {
	color: #304031;
}

body.home .home-learning,
body.home .home-teacher-note,
body.home .home-invitation {
	width: min(100% - 3rem, 1200px);
	margin-right: auto;
	margin-left: auto;
}

body.home .entry-content > .home-learning {
	margin-top: clamp(4.5rem, 8vw, 7rem);
}

body.home .home-learning-heading h2 {
	color: #304031;
}

body.home .entry-content a {
	color: #304031;
}

body.home .entry-content a:hover {
	color: #777337;
}

body.home .home-path-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	border: 0;
}

body.home .home-path-row {
	display: flex;
	min-height: 270px;
	padding: clamp(1.35rem, 2.4vw, 2rem);
	flex-direction: column;
	align-items: flex-start;
	gap: .65rem;
	border: 1px solid rgba(48, 64, 49, .12);
	background: #faf3eb;
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body.home .home-path-row:nth-child(2) {
	background: var(--mist);
}

body.home .home-path-row:nth-child(3) {
	background: var(--sand);
}

body.home .home-path-row:hover {
	padding: clamp(1.35rem, 2.4vw, 2rem);
	transform: translateY(-4px);
	border-color: rgba(48, 64, 49, .34);
	background: #fff;
}

body.home .home-path-number {
	color: #777337;
	font-size: .86rem;
	letter-spacing: .12em;
}

body.home .home-path-row h3 {
	margin: .6rem 0 0;
	color: #304031;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	font-weight: 600;
	letter-spacing: -.035em;
}

body.home .home-path-row p {
	color: #485849;
	font-size: .92rem;
}

body.home .home-path-row .text-link {
	margin-top: auto;
	color: #304031;
	font-size: .84rem;
}

body.home .entry-content > .home-teacher-note {
	margin-top: clamp(4rem, 8vw, 6.5rem);
	padding: clamp(2rem, 5vw, 4rem);
	background: var(--sand);
}

body.home .home-teacher-note h2 {
	color: #304031;
}

body.home .home-teacher-note p {
	color: #485849;
}

body.home .home-teacher-quote {
	border-color: #99943d;
	color: #304031;
}

body.home .home-teacher-quote p {
	color: #304031;
}

body.home .home-teacher-quote cite {
	color: #485849;
}

body.home .entry-content > .home-invitation {
	width: 100%;
	margin-top: clamp(4rem, 8vw, 6rem);
	padding: clamp(2.5rem, 6vw, 5rem) max(1.5rem, calc((100% - 1200px) / 2));
	background: var(--mist);
	color: #304031;
}

body.home .home-invitation h2 {
	color: #304031;
}

body.home .home-invitation p {
	color: #485849;
}

body.home .home-invitation .eyebrow {
	color: #777337;
}

body.home .home-invitation .button {
	border-radius: 2px;
	background: #304031;
	color: #faf3eb;
}

body.home .home-invitation .button:hover {
	background: #777337;
	color: #faf3eb;
}

@media (max-width: 1100px) {
	body.home .hero-copy {
		max-width: 60%;
	}

	body.home .hero-copy h1 {
		font-size: clamp(3.75rem, 7vw, 5.25rem);
	}

	body.home .hero-portrait-wrap {
		right: 2.5rem;
		width: min(30vw, 290px);
	}
}

@media (max-width: 900px) {
	body.home .hero-copy {
		max-width: 62%;
	}

	body.home .hero-portrait-wrap {
		right: 2rem;
		width: min(34vw, 290px);
	}

	body.home .home-path-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.home .home-path-row:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 820px) {
	body.home .hero-copy {
		max-width: 57%;
	}

	body.home .hero-portrait-wrap {
		right: 1.5rem;
		width: min(37vw, 270px);
	}

	.primary-nav .menu a {
		color: #304031;
	}

	.primary-nav .menu a:hover,
	.primary-nav .menu .current-menu-item > a,
	.primary-nav .menu .current_page_item > a,
	.primary-nav .menu .current-menu-ancestor > a {
		background: var(--mist);
		color: #304031;
	}
}

@media (max-width: 620px) {
	.header-inner {
		width: min(100% - 2rem, 1440px);
		min-height: 76px;
	}

	body.home .home-hero {
		min-height: min(920px, max(760px, 100svh));
		padding: 28rem 1.4rem 2.4rem;
		align-content: end;
	}

	body.home .home-hero::after {
		background: linear-gradient(180deg, rgba(221, 211, 224, .04), rgba(250, 243, 235, .2));
	}

	body.home .hero-copy {
		max-width: 100%;
	}

	body.home .hero-copy .eyebrow {
		margin-bottom: 1rem;
		font-size: .59rem;
		letter-spacing: .15em;
	}

	body.home .hero-copy h1 {
		font-size: clamp(3.35rem, 14vw, 5rem);
	}

	body.home .hero-copy .lead {
		margin-top: 1.1rem;
		font-size: 1rem;
	}

	body.home .hero-actions {
		align-items: flex-start;
		flex-direction: column;
		gap: .55rem;
	}

	body.home .hero-note {
		max-width: 330px;
		margin-top: 1rem;
		font-size: .72rem;
	}

	body.home .hero-portrait {
		object-position: center 30%;
	}

	body.home .hero-portrait-wrap {
		top: 7.25rem;
		right: max(1.4rem, calc((100% - 276px) / 2));
		bottom: auto;
		width: min(72vw, 276px);
	}

	body.home .portrait-note {
		display: none;
	}

	body.home .home-note-strip {
		grid-template-columns: 1fr;
	}

	body.home .home-note-strip p {
		padding: .7rem .2rem;
		text-align: left;
	}

	body.home .home-note-strip p + p {
		border-top: 1px solid rgba(48, 64, 49, .16);
		border-left: 0;
	}

	body.home .home-learning,
	body.home .home-teacher-note {
		width: min(100% - 2rem, 1200px);
	}

	body.home .home-path-list {
		grid-template-columns: 1fr;
	}

	body.home .home-path-row,
	body.home .home-path-row:hover {
		min-height: 0;
		padding: 1.4rem;
	}

	body.home .home-path-row:last-child {
		grid-column: auto;
	}

	body.home .entry-content > .home-invitation {
		padding: 2.5rem 1.25rem;
	}
}

/* Shared navigation: quiet, editorial details. */
.header-inner {
	min-height: 100px;
}

.primary-nav .menu {
	gap: .4rem;
}

.primary-nav .menu a {
	position: relative;
	padding: .75rem .8rem;
	border-radius: 6px;
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .035em;
}

.primary-nav .menu > li > a::before {
	position: absolute;
	right: .8rem;
	bottom: .45rem;
	left: .8rem;
	height: 1px;
	background: currentColor;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s ease;
}

.primary-nav .menu > li > a:hover,
.primary-nav .menu > li > a:focus-visible,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current_page_item > a,
.primary-nav .menu > .current-menu-ancestor > a {
	background: transparent;
}

.primary-nav .menu > li > a:hover::before,
.primary-nav .menu > li > a:focus-visible::before,
.primary-nav .menu > .current-menu-item > a::before,
.primary-nav .menu > .current_page_item > a::before,
.primary-nav .menu > .current-menu-ancestor > a::before {
	transform: scaleX(1);
}

.primary-nav .menu-item-has-children > a::after {
	width: 5px;
	height: 5px;
	margin: -.2rem 0 0 .6rem;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	content: "";
	transform: rotate(45deg);
}

.primary-nav .menu > li:last-child > a {
	margin-left: .75rem;
	padding: .7rem 1.4rem;
	border-radius: 999px;
	background: var(--ink);
	color: var(--cream);
	box-shadow: 0 4px 12px rgba(48, 64, 49, .08);
}

.primary-nav .menu > li:last-child > a::before {
	content: none;
}

.primary-nav .menu > li:last-child > a:hover,
.primary-nav .menu > li:last-child > a:focus-visible {
	background: var(--teal-dark);
	color: var(--cream);
}

.primary-nav .sub-menu {
	min-width: 245px;
	padding: .65rem;
	border-color: rgba(48, 64, 49, .12);
	border-radius: 16px;
	background: rgba(255, 254, 251, .97);
	box-shadow: 0 18px 45px rgba(48, 64, 49, .12);
	backdrop-filter: blur(16px);
}

.primary-nav .sub-menu a {
	min-height: 48px;
	padding: .7rem 1rem;
	border-radius: 9px;
	transition: background-color .2s ease, color .2s ease;
}

.menu-toggle {
	padding: .7rem 1rem;
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .06em;
}

@media (min-width: 821px) and (max-width: 1100px) {
	.header-inner {
		gap: .75rem;
	}

	.primary-nav .menu {
		gap: 0;
	}

	.primary-nav .menu a {
		padding-right: .5rem;
		padding-left: .5rem;
		font-size: .76rem;
		letter-spacing: 0;
	}

	.primary-nav .menu > li:last-child > a {
		margin-left: .35rem;
		padding-right: .9rem;
		padding-left: .9rem;
	}
}

@media (max-width: 820px) {
	.site-navigation {
		max-height: calc(100svh - 140px);
		padding: 1rem;
		overflow-y: auto;
		border-color: rgba(48, 64, 49, .12);
		border-radius: 18px;
		background: var(--white);
	}

	.primary-nav .menu {
		gap: .35rem;
	}

	.primary-nav .menu a {
		min-height: 48px;
		padding: .75rem 1rem;
		font-size: .95rem;
	}

	.primary-nav .menu > li > a::before {
		content: none;
	}

	.primary-nav .menu > li > a:hover,
	.primary-nav .menu > li > a:focus-visible,
	.primary-nav .menu > .current-menu-item > a,
	.primary-nav .menu > .current_page_item > a,
	.primary-nav .menu > .current-menu-ancestor > a {
		background: var(--mist);
	}

	.primary-nav .sub-menu {
		min-width: 0;
		margin: .15rem 0 .5rem 1rem;
		padding: 0 0 0 .6rem;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
	}

	.primary-nav .sub-menu a {
		font-size: .86rem;
	}

	.primary-nav .menu > li:last-child > a {
		margin: .4rem 0 0;
		justify-content: center;
		background: var(--ink);
		color: var(--cream);
	}
}

@media (prefers-reduced-motion: reduce) {
	.primary-nav .menu a,
	.primary-nav .menu > li > a::before {
		transition: none;
	}
}

body.home .hero-copy .eyebrow,
body.home .hero-copy h1,
body.home .hero-copy h1 em,
body.home .hero-copy .lead,
body.home .hero-copy .hero-note {
	color: #39364d;
}

body.home .hero-portrait-wrap {
	padding: 1rem;
	border: 1px solid rgba(40, 109, 104, .1);
	border-radius: var(--radius);
	background: linear-gradient(125deg, var(--mist), #f4eee4);
}

body.home .hero-portrait {
	border-radius: 12px;
	box-shadow: none;
}

body.home .portrait-note {
	min-width: min(215px, 100%);
	border-radius: 10px;
}

@media (min-width: 1101px) {
	body.home .home-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	body.home .hero-copy {
		max-width: min(800px, calc(100% - clamp(320px, 32vw, 560px) - 3rem));
	}

	body.home .hero-portrait-wrap {
		top: 10rem;
		bottom: 3rem;
		display: flex;
		width: clamp(320px, 32vw, 560px);
		padding: clamp(1.5rem, 3vw, 3rem);
		flex-direction: column;
		align-items: flex-end;
		justify-content: flex-end;
	}

	body.home .hero-portrait {
		width: min(100%, 320px);
		height: auto;
		min-height: 0;
		flex: 0 0 auto;
		aspect-ratio: 276 / 320;
	}

	body.home .portrait-note {
		align-self: flex-end;
		flex: 0 0 auto;
		margin-right: 0;
		margin-left: 0;
	}
}

/* Temporary homepage palette chooser and its scoped design tokens. */
.palette-picker {
	position: relative;
	z-index: 100;
	flex: 0 0 auto;
	width: max-content;
	max-width: calc(100% - 2rem);
	margin: 0;
}

.palette-picker summary {
	display: flex;
	min-height: 20px;
	padding: 0 .45rem;
	align-items: center;
	gap: .35rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	box-shadow: none;
	font-size: .62rem;
	line-height: 18px;
	letter-spacing: .02em;
	text-transform: none;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

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

.palette-picker summary::after {
	content: "+";
}

.palette-picker[open] summary::after {
	content: "-";
}

.palette-panel {
	position: absolute;
	top: calc(100% + .5rem);
	right: 0;
	width: min(620px, calc(100vw - 2rem));
	max-height: calc(100svh - 5rem);
	padding: 1.25rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--white);
	color: var(--ink);
	box-shadow: var(--shadow);
	text-align: left;
	letter-spacing: normal;
	text-transform: none;
	font-weight: 400;
}

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

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

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

	.palette-panel {
		position: fixed;
		top: 40px;
		right: 1rem;
		max-height: calc(100svh - 60px);
	}
}

.palette-status {
	margin: .6rem 0 1.2rem;
	font-size: .88rem;
}

.palette-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
	gap: .75rem;
}

.palette-option,
.palette-reset {
	min-height: 44px;
	padding: .7rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: .85rem;
	cursor: pointer;
}

.palette-option {
	display: grid;
	gap: .55rem;
	text-align: left;
}

.palette-option:hover,
.palette-option[aria-pressed="true"] {
	border-color: var(--ink);
	outline: 1px solid var(--ink);
}

.palette-option[aria-pressed="true"] > span:last-child::after {
	content: " / Selected";
	font-weight: 700;
}

.palette-swatches {
	display: flex;
	height: 28px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 5px;
}

.palette-swatches > span {
	flex: 1;
}

.palette-reset {
	margin-top: 1rem;
	text-decoration: underline;
	text-underline-offset: .2em;
}

body.home[data-palette] {
	--ink: var(--palette-ink);
	--muted: var(--palette-ink);
	--teal: var(--palette-primary);
	--teal-dark: var(--palette-primary);
	--cream: var(--palette-canvas);
	--white: var(--palette-canvas);
	--mist: var(--palette-cool);
	--mist-deep: var(--palette-accent);
	--sand: var(--palette-warm);
	--coral: var(--palette-accent);
	--line: var(--palette-accent);
	--home-banner: var(--palette-warm);
	background-color: var(--palette-canvas);
	background-image: linear-gradient(125deg, var(--palette-canvas), var(--palette-cool));
	background-size: 100% 100%;
	background-repeat: no-repeat;
	color: var(--palette-ink);
}

body.home[data-palette] .home-hero,
body.home[data-palette] .hero-copy,
body.home[data-palette] .hero-copy .eyebrow,
body.home[data-palette] .hero-copy h1,
body.home[data-palette] .hero-copy h1 em,
body.home[data-palette] .hero-copy .lead,
body.home[data-palette] .hero-copy .hero-note,
body.home[data-palette] .portrait-note,
body.home[data-palette] .portrait-note .eyebrow,
body.home[data-palette] .portrait-note strong,
body.home[data-palette] .portrait-note span,
body.home[data-palette] .home-note-strip p,
body.home[data-palette] .home-note-strip strong,
body.home[data-palette] .home-learning-heading h2,
body.home[data-palette] .home-path-number,
body.home[data-palette] .home-path-row h3,
body.home[data-palette] .home-path-row p,
body.home[data-palette] .home-path-row .text-link,
body.home[data-palette] .home-teacher-note h2,
body.home[data-palette] .home-teacher-note p,
body.home[data-palette] .home-teacher-quote,
body.home[data-palette] .home-teacher-quote p,
body.home[data-palette] .home-teacher-quote cite,
body.home[data-palette] .home-invitation,
body.home[data-palette] .home-invitation h2,
body.home[data-palette] .home-invitation p,
body.home[data-palette] .home-invitation .eyebrow,
body.home[data-palette] .entry-content a,
body.home[data-palette] .entry-content a:hover,
body.home[data-palette] .brand,
body.home[data-palette] .brand:hover,
body.home[data-palette] .brand-copy small,
body.home[data-palette] .primary-nav .menu a {
	color: var(--palette-ink);
}

body.home[data-palette] .header-topbar,
body.home[data-palette] .brand-mark,
body.home[data-palette] .primary-nav .menu > li:last-child > a,
body.home[data-palette] .primary-nav .menu > li:last-child > a:hover,
body.home[data-palette] .primary-nav .menu > li:last-child > a:focus-visible,
body.home[data-palette] .entry-content .button,
body.home[data-palette] .entry-content .button:hover,
body.home[data-palette] .site-footer {
	border-color: var(--palette-primary);
	background: var(--palette-primary);
	color: var(--palette-on-primary);
}

body.home[data-palette] .entry-content .button-secondary,
body.home[data-palette] .menu-toggle {
	border-color: var(--palette-ink);
	background: var(--palette-canvas);
	color: var(--palette-ink);
}

body.home[data-palette] .entry-content .button-secondary:hover {
	background: var(--palette-cool);
	color: var(--palette-ink);
}

body.home[data-palette] .entry-content .button:hover,
body.home[data-palette] .primary-nav .menu > li:last-child > a:hover {
	text-decoration: underline;
	text-underline-offset: .25em;
}

body.home[data-palette] .primary-nav .sub-menu,
body.home[data-palette] .site-navigation.is-open,
body.home[data-palette] .portrait-note,
body.home[data-palette] .home-path-row,
body.home[data-palette] .home-path-row:hover {
	background: var(--palette-canvas);
}

body.home[data-palette] .primary-nav .sub-menu a:hover,
body.home[data-palette] .primary-nav .menu .current-menu-item > a,
body.home[data-palette] .primary-nav .menu .current_page_item > a,
body.home[data-palette] .primary-nav .menu .current-menu-ancestor > a,
body.home[data-palette] .home-path-row:nth-child(2),
body.home[data-palette] .entry-content > .home-invitation {
	background: var(--palette-cool);
}

body.home[data-palette] .home-path-row:nth-child(3),
body.home[data-palette] .entry-content > .home-teacher-note,
body.home[data-palette] .home-note-strip {
	background: var(--palette-warm);
}

body.home[data-palette] .home-note-strip {
	background: var(--palette-banner);
	animation: none;
}

body.home[data-palette] .home-note-strip,
body.home[data-palette] .home-note-strip p,
body.home[data-palette] .home-note-strip strong {
	color: var(--palette-banner-ink);
}

body.home[data-palette] .home-note-strip p + p {
	border-color: var(--palette-banner-ink);
}

body.home[data-palette] .hero-portrait-wrap {
	background: linear-gradient(125deg, var(--palette-canvas), var(--palette-cool));
}

body.home[data-palette] .header-inner,
body.home[data-palette] .primary-nav .sub-menu,
body.home[data-palette] .site-navigation,
body.home[data-palette] .portrait-note,
body.home[data-palette] .hero-portrait-wrap,
body.home[data-palette] .home-path-row,
body.home[data-palette] .home-path-row:hover,
body.home[data-palette] .home-teacher-quote {
	border-color: var(--palette-accent);
}

body.home[data-palette] .site-footer a,
body.home[data-palette] .site-footer a:hover,
body.home[data-palette] .footer-bottom {
	color: var(--palette-on-primary);
	border-color: var(--palette-on-primary);
}

body.home[data-palette] a:focus-visible,
body.home[data-palette] button:focus-visible,
body.home[data-palette] summary:focus-visible {
	outline-color: var(--palette-ink);
}

@media (max-width: 820px) {
	body.home[data-palette] .primary-nav .sub-menu {
		background: transparent;
	}
}

body.home[data-palette="thyme-garden"] .site-footer::before {
	display: block;
	height: clamp(100px, 7.5vw, 190px);
	margin: -3.5rem -1.5rem 3.5rem;
	background: #d8d6db url("assets/images/arctic-thyme-banner.png") repeat-x center bottom / auto 100%;
	content: "";
}

body.home[data-palette="thyme-garden"] {
	background: var(--palette-canvas);
}

body.home[data-palette="thyme-garden"] .header-topbar,
body.home[data-palette="thyme-garden"] .entry-content > .home-teacher-note,
body.home[data-palette="thyme-garden"] .site-footer {
	background: var(--palette-ink);
	color: var(--palette-canvas);
}

body.home[data-palette="thyme-garden"] .hero-copy h1 em,
body.home[data-palette="thyme-garden"] .home-path-number {
	color: var(--palette-accent);
}

body.home[data-palette="thyme-garden"] .hero-portrait-wrap {
	background: var(--palette-primary);
	border-color: var(--palette-primary);
	box-shadow: -10px 10px 0 var(--palette-warm);
}

body.home[data-palette="thyme-garden"] .home-path-row,
body.home[data-palette="thyme-garden"] .home-path-row:nth-child(2),
body.home[data-palette="thyme-garden"] .home-path-row:nth-child(3) {
	border-color: #d7d3d9;
	background: #ffffff;
}

body.home[data-palette="thyme-garden"] .home-teacher-note h2,
body.home[data-palette="thyme-garden"] .home-teacher-note p,
body.home[data-palette="thyme-garden"] .home-teacher-quote,
body.home[data-palette="thyme-garden"] .home-teacher-quote p,
body.home[data-palette="thyme-garden"] .home-teacher-quote cite {
	color: var(--palette-canvas);
}

body.home[data-palette="thyme-garden"] .home-teacher-note .eyebrow {
	color: var(--palette-warm);
}

body.home[data-palette="thyme-garden"] .home-teacher-note a {
	color: var(--palette-warm);
}

body.home[data-palette="thyme-garden"] .home-teacher-note .button {
	background: var(--palette-warm);
	color: var(--palette-ink);
}

/* Menu links that need a login (the exercise lists): a small key after the label. */
.primary-nav .menu-item.needs-login > a::after {
	display: inline-block;
	width: 1.25em;
	height: 1em;
	margin: 0 0 -.15em .45em;
	border: 0;
	background: currentColor;
	content: "" / "(log in)";
	opacity: .75;
	transform: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='12' r='4.5'/%3E%3Cpath d='M11 12h11.5M18.5 12v4M22 12v3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='12' r='4.5'/%3E%3Cpath d='M11 12h11.5M18.5 12v4M22 12v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
