/* Alexandra Stevenson – site styles */

:root {
	--navy: #2b4162;
	--teal: #385f71;
	--ink: #233033;
	--light: #f5f0f6;
	--muted: #bbb;
	--grey: #9d9d9d;
	--blue: #066aab;
	--width: 1100px;
	--header-height: 100px;
}

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

body {
	margin: 0;
	background: var(--navy);
	color: var(--light);
	font: 400 14px/26px Raleway, sans-serif;
	-webkit-font-smoothing: antialiased;
}

img,
video,
audio {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

h1,
h2,
h3,
p {
	margin: 0;
}

.container {
	width: min(var(--width), 100% - 40px);
	margin-inline: auto;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: 10px;
	top: 10px;
	z-index: 100;
	background: #fff;
	color: var(--ink);
	padding: 8px 12px;
}

/* ---------- Header & navigation ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-height);
	background: var(--teal);
}

.site-nav {
	height: 100%;
}

.site-nav ul {
	display: flex;
	justify-content: center;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 0 17px;
	color: var(--grey);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: var(--header-height);
	text-decoration: none;
	transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--light);
}

.nav-toggle {
	display: none;
	position: absolute;
	top: 0;
	left: 10px;
	width: 56px;
	height: var(--header-height);
	padding: 0;
	border: 0;
	background: none;
	color: var(--light);
	cursor: pointer;
}

.nav-toggle svg {
	width: 24px;
	height: 24px;
	margin: auto;
	fill: currentColor;
}

@media (max-width: 1000px) {
	.site-header {
		height: 60px;
	}
	.nav-toggle {
		display: flex;
		height: 60px;
	}
	.site-nav {
		display: none;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		height: auto;
		background: var(--teal);
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}
	.site-nav.is-open {
		display: block;
	}
	.site-nav ul {
		display: block;
	}
	.site-nav a {
		padding: 0 20px;
		line-height: 48px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
}

/* ---------- Page layout ---------- */

main {
	min-height: calc(100vh - var(--header-height) - 380px);
	padding-bottom: 60px;
}

.page-title {
	margin: 60px 0 0;
	color: var(--light);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.385;
}

.page-title--caps {
	margin-top: 23px;
	text-transform: uppercase;
}

.lede {
	color: var(--muted);
}

/* ---------- Home ---------- */

.hero {
	margin-top: 60px;
	padding: 260px 40px 200px;
	background:
		linear-gradient(rgba(43, 65, 98, 0.5), rgba(43, 65, 98, 0.5)),
		url("/assets/img/hero.jpg") center / cover;
	box-shadow: inset 0 0 25px 25px var(--navy);
	animation: fade-in 1.2s ease both;
}

.hero-title {
	color: #fff;
	font-size: 4.4rem;
	font-weight: 600;
	letter-spacing: -1.4px;
	line-height: 1.1;
}

.hero-subtitle {
	margin-top: 20px;
	color: #ccc;
	font-size: 2.2rem;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1;
}

@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.quotes {
	position: relative;
	height: 130px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: center;
}

.quote {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.8s;
	pointer-events: none;
}

.quote.is-active {
	opacity: 1;
}

.quote-text {
	color: #ccc;
	font-size: 28px;
	line-height: 1.67;
}

.quote-author {
	color: var(--muted);
	font-size: 16px;
}

.about {
	width: min(1050px, 100% - 40px);
	margin: 0 auto;
	padding: 30px 40px 60px;
	background: #fff;
	color: var(--ink);
}

.about h2 {
	color: var(--navy);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1;
}

.about p {
	margin-top: 20px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.9;
}

.about-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-top: 10px;
}

.about-columns p {
	margin-top: 10px;
	font-size: 14px;
	line-height: 26px;
}

.about-columns p + p {
	margin-top: 16px;
}

@media (max-width: 1220px) {
	.hero-title { font-size: 3.4rem; }
	.hero-subtitle { font-size: 1.8rem; }
}

@media (max-width: 1024px) {
	.hero-title { font-size: 2.8rem; }
	.hero-subtitle { font-size: 1.6rem; }
}

@media (max-width: 767px) {
	.hero {
		padding: 100px 30px;
	}
	.hero-title { font-size: 2.4rem; }
	.hero-title span { display: block; }
	.about { padding: 24px 20px 40px; }
	.about-columns { grid-template-columns: 1fr; gap: 0; }
	.quote-text { font-size: 22px; line-height: 1.4; }
}

/* ---------- Performances ---------- */

.events {
	margin-top: 30px;
	font-size: 1.4em;
	color: #f0f2f6;
}

.event {
	display: grid;
	grid-template-columns: 120px 1fr 240px;
	align-items: start;
	gap: 0 16px;
	padding: 24px 0;
	border-bottom: 2px solid var(--muted);
	line-height: 1.2;
}

.event-date {
	padding: 4px 8px;
	border-top: 4px solid red;
	background: #ddd;
	color: var(--ink);
}

.event-day {
	display: block;
	margin-bottom: 5px;
	font-size: 1.75em;
	font-weight: 700;
}

.event-month,
.event-year {
	display: block;
	margin-bottom: 5px;
	font-size: 0.75em;
}

.event-title {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 700;
}

.event-description,
.event-time,
.event-location {
	display: block;
	font-size: 0.75em;
}

.event-description {
	line-height: 1.476;
	white-space: pre-line;
}

.event-time {
	margin-bottom: 0.5em;
	font-weight: 700;
}

.event-details {
	text-align: right;
}

@media (max-width: 767px) {
	.event {
		grid-template-columns: 80px 1fr;
		gap: 12px 16px;
	}
	.event-details {
		grid-column: 2;
		text-align: left;
	}
}

/* ---------- Media ---------- */

.media-block {
	margin-top: 20px;
	padding: 0 10px;
}

.media-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: center;
}

.media-row--top {
	padding-top: 10px;
}

.media-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 30px;
}

.media-grid--three {
	grid-template-columns: repeat(3, 1fr);
}

.media-grid p {
	margin-top: 6px;
}

.media-item strong,
.media-block strong {
	font-weight: 700;
}

.media-item {
	min-width: 0;
}

.media-block > .media-item {
	margin-top: 30px;
}

.caption {
	margin-top: 14px;
}

.video-portrait,
.video-wide {
	width: 100%;
	height: auto;
	background: #000;
	object-fit: cover;
}

.video-portrait {
	aspect-ratio: 9 / 16;
}

.video-wide {
	aspect-ratio: 16 / 9;
}

.media-block audio {
	width: 100%;
	margin: 14px 0 0;
}

.divider {
	margin: 40px 0;
	border: 0;
	border-top: 3px solid var(--light);
}

.centered {
	margin-top: 14px;
	text-align: center;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-flow: dense;
	gap: 20px;
	margin-top: 40px;
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 1;
}

.gallery .tall {
	grid-row: span 2;
}

.gallery .tall img {
	aspect-ratio: auto;
}

.gallery .large {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery .large img {
	aspect-ratio: auto;
}

.credit {
	margin-top: 14px;
	text-align: right;
}

@media (max-width: 767px) {
	.media-row,
	.media-grid,
	.media-grid--three {
		grid-template-columns: 1fr;
	}
	.gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

/* ---------- Contact form ---------- */

.contact-form {
	max-width: 720px;
	margin-top: 30px;
}

.field {
	margin-bottom: 30px;
}

.field label {
	display: block;
	margin-bottom: 15px;
	font-size: 16px;
	font-weight: 700;
	line-height: 19px;
}

.field .required {
	color: #d63637;
}

.field input,
.field textarea {
	display: block;
	width: 100%;
	padding: 0 14px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 3px;
	background: #fff;
	color: rgba(0, 0, 0, 0.7);
	font: 400 16px Raleway, sans-serif;
}

.field input {
	max-width: 60%;
	height: 43px;
}

.field textarea {
	height: 120px;
	padding: 14px;
	resize: vertical;
}

.honeypot {
	display: none;
}

.button {
	height: 41px;
	padding: 0 15px;
	border: 0;
	border-radius: 3px;
	background: var(--blue);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	color: #fff;
	font: 500 17px Raleway, sans-serif;
	cursor: pointer;
}

.button:hover:not(:disabled) {
	filter: brightness(1.15);
}

.button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.form-actions {
	margin-top: 25px;
}

.form-status {
	margin-top: 16px;
	font-size: 16px;
}

.form-status--success {
	color: #8fd19e;
}

.form-status--error {
	color: #ff9b9b;
}

@media (max-width: 767px) {
	.field input {
		max-width: 100%;
	}
}

/* ---------- 404 ---------- */

.error-hero {
	margin-top: 60px;
	padding: 140px 40px 120px;
	background:
		linear-gradient(rgba(43, 65, 98, 0.5), rgba(43, 65, 98, 0.5)),
		url("/assets/img/hero.jpg") center / cover;
	box-shadow: inset 0 0 25px 25px var(--navy);
}

.error-number {
	margin-bottom: -20px;
	color: rgba(255, 255, 255, 0.15);
	font-size: 9rem;
	font-weight: 700;
	letter-spacing: -4px;
	line-height: 1;
}

.error-hero h1 {
	color: #fff;
	font-size: 4.4rem;
	font-weight: 600;
	letter-spacing: -1.4px;
	line-height: 1.1;
}

.error-panel {
	width: min(1050px, 100% - 40px);
	margin: 0 auto;
	padding: 60px 40px 80px;
	background: #fff;
	color: var(--ink);
}

.error-panel h2 {
	margin-bottom: 16px;
	color: var(--navy);
	font-size: 1.6rem;
	font-weight: 600;
}

.error-panel p {
	margin-bottom: 30px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.9;
}

.error-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.error-links a {
	padding: 12px 28px;
	border: 2px solid var(--navy);
	border-radius: 2px;
	background: var(--navy);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.error-links a:hover {
	background: var(--teal);
	border-color: var(--teal);
}

.error-links a.secondary {
	background: transparent;
	color: var(--navy);
}

.error-links a.secondary:hover {
	background: var(--navy);
	color: #fff;
}

@media (max-width: 767px) {
	.error-hero { padding: 90px 30px; }
	.error-hero h1 { font-size: 2.8rem; }
	.error-number { font-size: 6rem; }
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--teal);
}

.footer-columns {
	display: flex;
	gap: 60px;
	padding: 72px 0 52px;
}

.footer-columns > div {
	min-width: 235px;
}

.site-footer h2 {
	margin-bottom: 22px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.57;
	text-transform: uppercase;
}

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

.site-footer li + li {
	margin-top: 10px;
}

.site-footer a {
	line-height: 22px;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.footer-label {
	display: block;
	margin-top: 15px;
	font-weight: 700;
	color: #fff;
}

.social {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.social a {
	display: block;
	width: 24px;
	height: 24px;
	color: #fff;
}

.social svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.footer-bottom {
	padding: 15px 0;
	background: var(--navy);
	color: var(--muted);
	font-size: 12px;
	line-height: 22px;
	text-align: center;
}

@media (max-width: 767px) {
	.footer-columns {
		flex-direction: column;
		gap: 30px;
		padding: 40px 0 30px;
	}
}

/* ---------- Back to top ---------- */

.back-to-top {
	position: fixed;
	right: 25px;
	bottom: 25px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--teal);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.hero,
	.quote {
		animation: none;
		transition: none;
	}
}
