﻿:root {
	--aqua: #7bdfe2;
	--green: #3c896d;
	--yellow: #e1dd8f;
	--navy: #3c4f76;
	--berry: #ba274a;
	--ink: #172033;
	--paper: #fbfcfa;
	--line: #d9e1df;
	--sans:
		system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial,
		sans-serif;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
}
a {
	color: inherit;
}
.wrap {
	width: min(1120px, calc(100% - 2rem));
	margin: auto;
}
.site-header {
	border-bottom: 1px solid var(--line);
	background: #fff;
	height: auto;
}
.masthead {
	height: 220px;
	background: url(images/Algebravo_banner.png) center no-repeat;
}
.nav {
	min-height: 72px;
	display: flex;
	align-items: center;
	gap: 2rem;
}
.brand {
	display: inherit;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--navy);
}
.brand img {
	width: 37px;
	height: 43px;
	object-fit: contain;
}
.links {
	display: flex;
	align-items: center;
	gap: 1.3rem;
	margin-left: auto;
}
.links a {
	text-decoration: none;
	font-weight: 700;
}
.links a:hover,
.links a[aria-current='page'] {
	color: var(--berry);
}
details {
	position: relative;
}
.more summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}
.more summary::-webkit-details-marker {
	display: none;
}
.more summary::after {
	content: '+';
	margin-left: 0.35rem;
	color: var(--berry);
}
.more[open] summary::after {
	content: '|';
}
.more-menu {
	position: absolute;
	right: 0;
	z-index: 3;
	min-width: 185px;
	padding: 0.55rem;
	margin-top: 0.7rem;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 12px 28px #1720331c;
}
.more-menu a {
	display: block;
	padding: 0.4rem 0.55rem;
	font-size: 0.92rem;
}
.hero {
	padding-top: 0rem;
	padding-right: 0;
	padding-left: 0;
	padding-bottom: 2rem;
	background: linear-gradient(118deg, var(--aqua) 0 60%, var(--yellow) 60%);
}
.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 600px);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
}
.hero-banner {
	display: block;
	width: 100%;
	height: auto;
	justify-self: end;
}
.eyebrow {
	margin: 0 0 0.6rem;
	color: var(--green);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.78rem;
}
.hero h1,
.page-intro h1 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 4.7rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
}
.hero p {
	max-width: 610px;
	margin-top: 0.2rem;
	margin-right: 0;
	margin-left: 0;
	margin-bottom: 1.8rem;
	font-size: 1.1rem;
}
.button {
	display: inline-block;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	background: var(--navy);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}
.button:hover {
	background: var(--berry);
}
main {
	padding-bottom: 5rem;
}
.section {
	padding-right: 0;
	padding-left: 0;
	padding-bottom: 0rem;
}
.section h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	letter-spacing: -0.03em;
}
.section-lede {
	max-width: 630px;
	margin: 0 0 1.5rem;
	color: #4b596a;
}
.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.15rem;
}
.video-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	background: #fff;
	text-decoration: none;
	transition:
		transform 0.16s,
		box-shadow 0.16s;
}
.video-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px #17203314;
}
.video-card img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	background: var(--navy);
}
.card-body {
	padding: 1rem;
}
.tag {
	display: inline-block;
	margin-bottom: 0.35rem;
	color: var(--green);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.075em;
}
.video-card h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
}
.callout {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 2rem;
	align-items: center;
	padding: 2.2rem;
	background: var(--navy);
	color: #fff;
}
.callout h2 {
	margin: 0 0 0.65rem;
	font-size: 2rem;
	line-height: 1.05;
}
.callout p {
	margin: 0 0 1rem;
}
.callout .button {
	background: var(--yellow);
	color: var(--ink);
}
.callout .button:hover {
	background: #fff;
}
.app-mark {
	justify-self: end;
	width: min(220px, 100%);
	padding: 1.5rem;
	border: 2px solid var(--aqua);
	font-weight: 850;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--aqua);
}
.page-intro {
	padding: 3.6rem 0 2rem;
	border-bottom: 1px solid var(--line);
	background: #fff;
}
.page-intro p {
	max-width: 670px;
	margin: 1rem 0 0;
	font-size: 1.1rem;
}
.filter-bar {
	display: flex;
	gap: 0.55rem;
	flex-wrap: wrap;
	margin: 2rem 0 1.5rem;
}
.filter {
	border: 1px solid var(--navy);
	border-radius: 999px;
	padding: 0.45rem 0.75rem;
	background: #fff;
	color: var(--navy);
	font: 700 0.9rem var(--sans);
	cursor: pointer;
}
.filter[aria-pressed='true'],
.filter:hover {
	background: var(--navy);
	color: #fff;
}
.catalog {
	grid-template-columns: repeat(3, 1fr);
}
.no-results {
	display: none;
	padding: 1rem;
	border: 1px dashed var(--line);
}
.app-hero {
	padding: 3.5rem 0;
	background: linear-gradient(120deg, var(--berry), var(--navy));
	color: #fff;
}
.app-hero h1 {
	margin: 0;
	max-width: 680px;
	font-size: clamp(2.8rem, 5vw, 5rem);
	line-height: 0.96;
	letter-spacing: -0.05em;
}
.app-hero p {
	max-width: 620px;
	font-size: 1.12rem;
}
.app-copy {
	max-width: 710px;
	font-size: 1.08rem;
}
.note {
	padding: 1.2rem;
	border-left: 5px solid var(--green);
	background: #edf5f1;
}
.site-footer {
	padding: 2.4rem 0;
	background: var(--ink);
	color: #dfe7ec;
}
.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.site-footer a {
	color: #fff;
}
@media (max-width: 760px) {
	.masthead {
		height: 78px;
	}
	.nav {
		min-height: 64px;
		gap: 0.7rem;
	}
	.links {
		gap: 0.85rem;
		font-size: 0.9rem;
	}
	.brand span {
		display: none;
	}
	.hero {
		padding: 3.4rem 0 3rem;
		background: linear-gradient(
			145deg,
			var(--aqua) 0 72%,
			var(--yellow) 72%
		);
	}
	.hero-inner {
		grid-template-columns: 1fr;
	}
	.hero-banner {
		width: min(100%, 600px);
		justify-self: center;
	}
	.grid,
	.catalog {
		grid-template-columns: 1fr;
	}
	.callout {
		grid-template-columns: 1fr;
	}
	.app-mark {
		justify-self: start;
	}
	.footer-inner {
		display: block;
	}
	.footer-inner p {
		margin: 0.5rem 0;
	}
	.more-menu {
		right: auto;
		left: 0;
	}
}
