/*
 * Erti Lutaj one-pager. Mobile first; tokens from theme.json.
 * Dark by default (condensed Archivo, sunrise orange); a light theme under
 * html[data-theme="light"], switched by visitors (assets/js/site.js).
 */

/* ------------------------------------------------------------------ tokens */

:root {
	--bg: var(--wp--preset--color--base);
	--surface: var(--wp--preset--color--surface);
	--text: var(--wp--preset--color--contrast);
	--muted: var(--wp--preset--color--muted);
	--accent: var(--wp--preset--color--accent);
	--on-accent: #0c0b0a;
	--line: rgb(236 230 220 / 0.14);

	--font-display: var(--wp--preset--font-family--display);
	--font-body: var(--wp--preset--font-family--display);
	--font-meta: var(--wp--preset--font-family--mono);

	--gutter: 1rem;
	--max: 80rem;
	--header-h: 3.5rem;
	--section-pad: clamp(4.5rem, 12vw, 9rem);
}

@media (min-width: 48rem) {
	:root {
		--gutter: 2rem;
		--header-h: 4rem;
	}
}

/* Light theme (visitor switch, html[data-theme="light"]). Orange darkened
 * so text in the accent keeps 4.5:1 on the light ground. */
html[data-theme="light"] body {
	--bg: #f1ede6;
	--surface: #e5dfd5;
	--text: #141210;
	--muted: #675f56;
	--accent: #c2410c;
	--on-accent: #fff;
	--line: rgb(20 18 16 / 0.14);
}

/* -------------------------------------------------------------------- base */

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

::selection {
	background: var(--accent);
	color: var(--on-accent);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--accent);
	color: var(--on-accent);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* ----------------------------------------------------------------- buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0 1.5rem;
	border: 1px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font: 600 0.8125rem/1 var(--font-meta);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
	background: transparent;
	color: var(--accent);
}

.btn--ghost {
	border-color: currentColor;
	background: transparent;
	color: var(--text);
}

.btn--ghost:hover {
	border-color: var(--accent);
}

.btn--small {
	min-height: 2.25rem;
	padding: 0 1rem;
	font-size: 0.75rem;
}

/* ------------------------------------------------------------------ header */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	transition: background-color 0.3s, border-color 0.3s;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	border-bottom-color: var(--line);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 1rem;
	max-width: var(--max);
	min-height: var(--header-h);
	margin: 0 auto;
	padding: 0 var(--gutter);
	box-sizing: border-box;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

@media (min-width: 48rem) {
	.site-header__tools {
		order: 3;
	}
}

.theme-toggle {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--text);
	cursor: pointer;
}

.theme-toggle[hidden] {
	display: none;
}

.theme-toggle:hover {
	color: var(--accent);
}

.theme-toggle svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* Shows what you switch to: the sun on dark, the moon on light. */
.theme-toggle__moon,
[data-theme="light"] .theme-toggle__sun {
	display: none;
}

[data-theme="light"] .theme-toggle__moon {
	display: block;
}

.brand {
	margin-right: auto;
	font: 800 1.125rem/1 var(--font-display);
	font-stretch: 62%;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.nav-toggle {
	display: none;
	min-height: 2.75rem;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: var(--text);
	font: 600 0.75rem/1 var(--font-meta);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-nav__list {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	font: 500 0.75rem/1 var(--font-meta);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

/* Small screens: without JS the nav scrolls sideways; with JS it folds. */
@media (max-width: 47.99rem) {
	.site-nav {
		width: 100%;
		overflow-x: auto;
		padding-bottom: 0.75rem;
	}

	.js .nav-toggle {
		display: block;
	}

	.js .site-nav {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem;
		padding: 1.5rem 0 2rem;
		overflow: visible;
	}

	.js .site-header.is-open .site-nav {
		display: flex;
	}

	.js .site-nav__list {
		flex-direction: column;
		gap: 1.25rem;
	}

	.js .site-nav__list a {
		font: 800 2.5rem/1 var(--font-display);
		font-stretch: 62%;
		letter-spacing: 0;
	}
}

/* -------------------------------------------------------------------- hero */

.hero {
	position: relative;
	display: grid;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
}

.hero__portrait {
	position: absolute;
	inset: 0 0 auto auto;
	z-index: -1;
	width: min(100%, 44rem);
	margin: 0;
}

.hero__portrait img {
	width: 100%;
	filter: grayscale(1) contrast(1.05);
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 55% 40%, #000 45%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 55% 40%, #000 45%, transparent 75%);
}

/* Light theme: the portrait in a frame, aligned with the header (a
 * black-ground photo can't fade into a light page). */
html[data-theme="light"] .hero {
	min-height: auto;
	padding-top: calc(var(--header-h) + 1rem);
}

/* In the page flow, never layered over the name: above it on phones,
 * beside it from tablets up. */
html[data-theme="light"] .hero__portrait {
	position: static;
	width: auto;
	margin: 0 var(--gutter);
}

html[data-theme="light"] .hero__portrait img {
	aspect-ratio: 1;
	max-height: 50svh;
	object-fit: cover;
	object-position: 50% 30%;
	-webkit-mask-image: none;
	mask-image: none;
}

html[data-theme="light"] .hero__text {
	padding-top: calc(1rem + 4vw);
}

@media (min-width: 48rem) {
	html[data-theme="light"] .hero {
		grid-template-columns: minmax(0, 1fr) minmax(12rem, 34%);
		align-items: end;
		gap: 2rem;
		max-width: var(--max);
		min-height: 100svh;
		margin: 0 auto;
		padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(2rem, 6vw, 4rem);
		box-sizing: border-box;
	}

	html[data-theme="light"] .hero__portrait {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
	}

	html[data-theme="light"] .hero__portrait img {
		aspect-ratio: 4 / 5;
		max-height: calc(100svh - var(--header-h) - 6rem);
	}

	/* The name scales to its column, so it can't run under the photo. */
	html[data-theme="light"] .hero__text {
		grid-column: 1;
		grid-row: 1;
		padding: 0;
		container-type: inline-size;
	}

	html[data-theme="light"] .hero__name {
		font-size: min(21rem, 42cqi, 36svh);
	}
}

html[data-theme="light"] .hero__sun {
	opacity: 0.35;
}

.hero__sun {
	position: absolute;
	left: 50%;
	bottom: -28vmax;
	z-index: -2;
	width: 70vmax;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, var(--accent) 0%, color-mix(in srgb, var(--accent) 45%, transparent) 38%, transparent 68%);
	opacity: 0.55;
	transform: translateX(-50%);
}

.hero__text {
	align-self: end;
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(2rem, 6vw, 4rem);
	box-sizing: border-box;
}

.hero__name {
	margin: 0;
	font: 850 clamp(4rem, min(32vw, 36svh), 21rem)/0.8 var(--font-display);
	font-stretch: 62%;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.hero__name span {
	display: block;
}

.hero__tagline {
	max-width: 22ch;
	margin: 1.5rem 0 2rem;
	font-size: clamp(1.25rem, 3.5vw, 1.75rem);
	font-weight: 300;
	line-height: 1.25;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ---------------------------------------------------------------- sections */

.section {
	max-width: var(--max);
	margin: 0 auto;
	padding: var(--section-pad) var(--gutter) 0;
	box-sizing: border-box;
}

.section__head {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: end;
	gap: 0 1rem;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section__index {
	grid-row: 1;
	margin: 0;
	padding-bottom: 0.6em;
	color: var(--accent);
	font: 500 0.75rem/1 var(--font-meta);
	letter-spacing: 0.1em;
}

.section__title {
	grid-row: 1;
	margin: 0;
	font: 850 clamp(3.5rem, 15vw, 9rem)/0.85 var(--font-display);
	font-stretch: 62%;
	text-transform: uppercase;
}

.section__more {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: 1rem;
	color: var(--muted);
	font: 500 0.75rem/1 var(--font-meta);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

@media (min-width: 48rem) {
	.section__head {
		grid-template-columns: auto 1fr auto;
	}

	.section__more {
		grid-column: 3;
		grid-row: 1;
		margin: 0 0 0.6em;
	}
}

/* -------------------------------------------------------------------- sets */

.sets__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--line);
}

.set {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0.75rem 1rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--line);
}

.set__play {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid var(--accent);
	border-radius: 50%;
	background: transparent;
	color: var(--accent);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.set__play svg {
	width: 1.25rem;
	height: 1.25rem;
}

.set__play:hover,
.set.is-playing .set__play {
	background: var(--accent);
	color: var(--on-accent);
}

.set__title {
	margin: 0;
	font-size: clamp(1.125rem, 2.6vw, 1.5rem);
	font-weight: 600;
	font-stretch: 85%;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.set__title a {
	text-decoration: none;
}

.set__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.9rem;
	margin: 0.35rem 0 0;
	color: var(--muted);
	font: 400 0.75rem/1.5 var(--font-meta);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.set__player {
	grid-column: 1 / -1;
}

.set__player iframe {
	display: block;
	width: 100%;
	height: 166px;
	border: 0;
}

/* ------------------------------------------------------------------- dates */

.dates__empty {
	max-width: 36rem;
	margin: 0 0 3rem;
	font-size: clamp(1.25rem, 3vw, 1.625rem);
	font-weight: 300;
	line-height: 1.35;
}

.dates__sub {
	margin: 0 0 1rem;
	color: var(--muted);
	font: 500 0.75rem/1 var(--font-meta);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.dates__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--line);
}

.event {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 0.15rem 1rem;
	padding: 1rem 0;
	border-top: 1px solid var(--line);
}

.event__date {
	grid-row: span 2;
	display: flex;
	flex-direction: column;
	font-family: var(--font-meta);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.event__day {
	color: var(--accent);
	font-size: 0.9375rem;
	font-weight: 600;
}

.event__year {
	color: var(--muted);
	font-size: 0.75rem;
}

.event__title,
.event__place {
	margin: 0;
}

.event__title {
	font-size: 1.125rem;
	font-weight: 600;
	font-stretch: 85%;
	line-height: 1.25;
}

.event__title a {
	text-decoration: none;
}

.event__place {
	color: var(--muted);
	font-size: 0.9375rem;
}

.dates__list--past .event__day {
	color: var(--text);
}

@media (min-width: 48rem) {
	.event {
		grid-template-columns: 9rem 1fr 1fr;
		align-items: baseline;
	}

	.event__date {
		grid-row: auto;
		flex-direction: row;
		gap: 0.6rem;
	}
}

/* ------------------------------------------------------------- all shadows */

.shadows {
	position: relative;
	max-width: none;
	margin-top: var(--section-pad);
	padding-bottom: clamp(8rem, 22vw, 16rem);
	overflow: hidden;
	background: var(--surface);
	isolation: isolate;
}

.shadows__inner {
	max-width: var(--max);
	margin: 0 auto;
}

.shadows__alias {
	margin: -1rem 0 2rem;
	color: var(--accent);
	font: 500 0.8125rem/1 var(--font-meta);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.shadows__quote {
	max-width: 46rem;
	margin: 0 0 2.5rem;
}

.shadows__quote p {
	margin: 0;
	font-size: clamp(1.375rem, 3.6vw, 2.25rem);
	font-weight: 300;
	line-height: 1.3;
}

.shadows__members,
.shadows__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.shadows__members li {
	font: 800 clamp(1.75rem, 6vw, 3rem)/1 var(--font-display);
	font-stretch: 62%;
	text-transform: uppercase;
}

.shadows__links a {
	color: var(--muted);
	font: 500 0.75rem/1 var(--font-meta);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

/* The sun coming up under the band: "til they face the sun". */
.shadows__horizon {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: -1;
	width: 100%;
	height: 70%;
	background: radial-gradient(ellipse 50% 70% at 50% 100%, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent) 40%, transparent 75%);
	opacity: 0.5;
	transform: translateX(-50%);
}

/* ------------------------------------------------------------------- about */

.about__body {
	max-width: 42rem;
}

.about__body p {
	margin: 0 0 1.25em;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.about__body p:first-child {
	font-size: clamp(1.25rem, 2.8vw, 1.625rem);
	font-weight: 300;
	line-height: 1.4;
}

.about__body .about__sign {
	margin-top: 2rem;
	color: var(--accent);
	font: 600 0.8125rem/1.6 var(--font-meta);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (min-width: 64rem) {
	.about__body {
		margin-left: auto;
		margin-right: 8%;
	}
}

/* ------------------------------------------------------------- photo strip */
/* A quiet break before booking: no text, no links. Scrolls sideways
 * (swipe, trackpad, keyboard; arrow buttons on mouse devices). The next
 * photo always peeks in so it reads as scrollable. */

.strip {
	position: relative;
	margin-top: var(--section-pad);
}

.strip__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 72%;
	gap: 4px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.strip__track::-webkit-scrollbar {
	display: none;
}

.strip__item {
	margin: 0;
	scroll-snap-align: start;
}

.strip__item img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 35%;
}

.strip__nav {
	position: absolute;
	top: 50%;
	display: none;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--bg) 80%, transparent);
	color: var(--text);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s, background-color 0.2s;
}

.strip__nav svg {
	width: 1.5rem;
	height: 1.5rem;
}

.strip__nav:hover {
	background: var(--accent);
	color: var(--on-accent);
}

.strip__nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.strip__nav--prev {
	left: var(--gutter);
}

.strip__nav--next {
	right: var(--gutter);
}

@media (min-width: 48rem) {
	.strip__track {
		grid-auto-columns: calc((100% - 4 * 4px) / 4.4);
	}
}

@media (hover: hover) and (pointer: fine) {
	.strip__nav:not([hidden]) {
		display: grid;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.strip__track {
		scroll-behavior: smooth;
	}
}

/* ----------------------------------------------------------------- booking */

.booking {
	padding-bottom: var(--section-pad);
}

.booking__intro {
	max-width: 32rem;
	margin: 0 0 2rem;
	font-size: clamp(1.125rem, 2.6vw, 1.375rem);
	font-weight: 300;
	line-height: 1.4;
}

.booking__form {
	display: grid;
	gap: 1.5rem 2rem;
	max-width: 48rem;
}

@media (min-width: 40rem) {
	.booking__form {
		grid-template-columns: 1fr 1fr;
	}

	.field--wide {
		grid-column: 1 / -1;
	}
}

.field label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--muted);
	font: 500 0.75rem/1 var(--font-meta);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.field input,
.field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--text);
	color-scheme: dark;
	font: inherit;
	font-size: 1.0625rem;
}

[data-theme="light"] .field input,
[data-theme="light"] .field textarea {
	color-scheme: light;
}

.booking__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.booking__status {
	margin: 1rem 0 0;
	font-size: 1rem;
}

.booking__status:empty {
	display: none;
}

.booking__status--sent {
	color: var(--accent);
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter) 2rem;
	box-sizing: border-box;
	border-top: 1px solid var(--line);
}

.site-footer__name {
	margin: 2rem 0;
	color: var(--surface);
	font: 850 clamp(4rem, 22vw, 17rem)/0.8 var(--font-display);
	font-stretch: 62%;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
}

/* When the footer comes into view an orange block sweeps across the name
 * and the letters take the on-orange colour: near-black on dark, white on
 * light (.is-lit, assets/js/site.js). */
.site-footer__name {
	width: fit-content;
	max-width: 100%;
	padding: 0.06em 0.03em 0;
	background: linear-gradient(var(--accent), var(--accent)) no-repeat left / 0% 100%;
	transition: background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1), color 0.45s ease 0.45s;
}

.site-footer__name.is-lit {
	background-size: 100% 100%;
	color: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
	.site-footer__name {
		transition: none;
	}
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.site-footer__links a,
.site-footer__legal {
	color: var(--muted);
	font: 500 0.75rem/1 var(--font-meta);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.site-footer__legal {
	margin: 0;
}

/* Plain pages (404). */
.page-plain {
	min-height: 60vh;
	padding: calc(var(--header-h) + 4rem) var(--gutter) 4rem;
}
