/*
Theme Name: Gunilla Backman
Theme URI: https://gunillabackman.com
Author: Sajtfabriken
Author URI: https://sajtfabriken.com
Description: Klassiskt tema för Gunilla Backman på svenska och engelska. Texter och bilder ändras under Utseende → Anpassa → Sidans innehåll; föreställningar, skivor, klipp och Min resa har egna menyer.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: gunilla
*/

/* ---------- Typsnitt ---------- */

@font-face {
	font-family: "Cormorant";
	src: url("assets/fonts/cormorant.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant";
	src: url("assets/fonts/cormorant-italic.woff2") format("woff2");
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Manrope";
	src: url("assets/fonts/manrope-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Färger och mått ---------- */

:root {
	--ink: #161210;
	--ink-2: #211b17;
	--ink-3: #2d2520;
	--paper: #f6f1ea;
	--paper-2: #ede5d9;
	--text: #2a231e;
	--muted: #6c6056;
	--on-dark: #f3ece2;
	--on-dark-muted: #b6a999;
	--gold: #a8834e;
	--gold-light: #d8b98a;
	--line: rgb(42 35 30 / 14%);
	--line-dark: rgb(243 236 226 / 14%);

	--serif: "Cormorant", "Cormorant Garamond", georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1240px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4.5rem, 10vw, 8.5rem);
	--radius: 2px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--header-h: 76px;
}

/* ---------- Grund ---------- */

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

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

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

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open {
	overflow: hidden;
}

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

img {
	height: auto;
}

a {
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.01em;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
}

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

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	padding: .75rem 1.25rem;
	background: var(--paper);
	color: var(--ink);
	font-weight: 600;
}

.skip-link:focus {
	top: 1rem;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

.icon-sm {
	width: .9em;
	height: .9em;
}

/* ---------- Text ---------- */

.eyebrow {
	font-family: var(--sans);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold);
}

.eyebrow a {
	text-decoration: none;
}

.h-display {
	font-size: clamp(2.6rem, 6vw, 4.75rem);
	font-weight: 400;
}

.h-display em,
.hero-title em {
	font-style: italic;
	color: var(--gold);
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose p,
.prose li {
	max-width: 68ch;
}

.prose a {
	color: var(--gold);
	text-underline-offset: .2em;
}

.prose h2 {
	margin-top: 2.2em;
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.prose h3 {
	margin-top: 1.8em;
	font-size: 1.6rem;
}

.prose ul {
	padding-left: 1.2em;
	list-style: disc;
}

.prose blockquote {
	margin: 1.6em 0;
	padding-left: 1.25rem;
	border-left: 1px solid var(--gold);
	font-family: var(--serif);
	font-size: 1.45rem;
	font-style: italic;
	line-height: 1.35;
}

.prose-lg {
	font-size: 1.125rem;
}

.prose-lg > p:first-child {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.4vw, 1.85rem);
	line-height: 1.4;
}

/* ---------- Knappar ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 3.1rem;
	padding: .8rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--sans);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--ink);
	color: var(--on-dark);
}

.btn-primary:hover {
	background: var(--gold);
	color: #fff;
}

.btn-outline {
	border-color: currentcolor;
	background: transparent;
}

.btn-outline:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-dark);
}

.btn-ghost {
	border-color: rgb(255 255 255 / 45%);
	color: #fff;
	backdrop-filter: blur(6px);
}

.btn-ghost:hover {
	background: #fff;
	color: var(--ink);
}

.btn-sm {
	min-height: 2.5rem;
	padding: .55rem 1.15rem;
	font-size: .72rem;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-decoration: none;
	text-transform: uppercase;
	border-bottom: 1px solid currentcolor;
	padding-bottom: .2em;
}

.link-arrow .icon {
	transition: transform .3s var(--ease);
}

.link-arrow:hover .icon {
	transform: translateX(4px);
}

/* ---------- Tona in ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Rubrikrad ---------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--on-dark);
	transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}

.site-header.is-scrolled,
.nav-open .site-header {
	background: rgb(22 18 16 / 88%);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--line-dark);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: var(--header-h);
}

.brand {
	margin-right: auto;
	text-decoration: none;
}

.brand-name {
	font-family: var(--serif);
	font-size: 1.65rem;
	font-weight: 500;
	letter-spacing: .02em;
	white-space: nowrap;
}

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

.nav-list {
	display: flex;
	gap: 1.6rem;
}

.nav-list a {
	position: relative;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.nav-list a::after {
	content: "";
	position: absolute;
	inset: auto 0 -6px;
	height: 1px;
	background: var(--gold-light);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--ease);
}

.nav-list a:hover::after,
.nav-list a[aria-current]::after {
	transform: scaleX(1);
}

.nav-cta:hover {
	background: var(--on-dark);
	border-color: var(--on-dark);
	color: var(--ink);
}

.lang {
	display: flex;
	padding: 3px;
	border: 1px solid var(--line-dark);
	border-radius: 999px;
}

.lang a {
	padding: .3rem .6rem;
	border-radius: 999px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-decoration: none;
	color: var(--on-dark-muted);
	transition: background-color .3s, color .3s;
}

.lang a:hover {
	color: var(--on-dark);
}

.lang a[aria-current] {
	background: var(--on-dark);
	color: var(--ink);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.nav-toggle .icon {
	width: 28px;
	height: 28px;
	margin: auto;
}

.nav-toggle-close,
.nav-open .nav-toggle-open {
	display: none;
}

.nav-open .nav-toggle-close {
	display: block;
}

@media (max-width: 1080px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		flex-direction: column;
		align-items: flex-start;
		gap: min(2.5rem, 4svh);
		padding: min(2.5rem, 4svh) var(--gutter) 2rem;
		background: var(--ink);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-10px);
		transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
	}

	/*
	 * backdrop-filter på rubrikraden gör den till ram för position: fixed, så att
	 * menypanelen klämdes in i raden. Med öppen meny får raden en tät bakgrund i stället,
	 * och sidan bakom står still.
	 */
	.nav-open {
		overflow: hidden;
	}

	.nav-open .site-header {
		background: var(--ink);
		backdrop-filter: none;
	}

	.nav-open .site-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .35s var(--ease), transform .35s var(--ease);
	}

	.nav-list {
		flex-direction: column;
		gap: 1.1rem;
	}

	.nav-list a {
		font-family: var(--serif);
		/* Krymper på låga skärmar så att hela menyn får plats utan att scrolla. */
		font-size: min(2.3rem, 5.2svh);
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
	}

	.nav-list a::after {
		bottom: 0;
	}
}

@media (max-width: 420px) {
	.brand-name {
		font-size: 1.35rem;
	}

	.header-inner {
		gap: .75rem;
	}
}

/* ---------- Toppen ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background: #3b342e;
	color: #fff;
	isolation: isolate;
}

.hero-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 58% 25%;
	animation: hero-zoom 14s var(--ease) both;
}

/*
 * Vinden i håret: en video med samma utsnitt som bilden, lagd ovanpå den.
 * Den tonar in först när den spelar, så att bilden syns medan den laddas.
 */
.hero-wind {
	opacity: 0;
	transition: opacity 1.2s var(--ease);
}

.hero-wind.is-playing {
	opacity: 1;
}

@keyframes hero-zoom {
	from {
		transform: scale(1.06);
	}

	to {
		transform: scale(1);
	}
}

.hero-shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgb(22 18 16 / 92%) 0%, rgb(22 18 16 / 55%) 32%, rgb(22 18 16 / 0%) 62%),
		linear-gradient(to right, rgb(22 18 16 / 55%) 0%, rgb(22 18 16 / 0%) 55%),
		linear-gradient(to bottom, rgb(22 18 16 / 45%) 0%, rgb(22 18 16 / 0%) 18%);
}

.hero-inner {
	padding-top: calc(var(--header-h) + 4rem);
	padding-bottom: clamp(4rem, 9vw, 7rem);
}

.hero-roles {
	color: var(--gold-light);
	animation: fade-up 1s .2s var(--ease) both;
}

.hero-title {
	margin-top: 1rem;
	font-size: clamp(4.2rem, 9.5vw, 8.75rem);
	font-weight: 400;
	line-height: .86;
	letter-spacing: -.02em;
}

.hero-title span {
	display: block;
	animation: fade-up 1.1s var(--ease) both;
}

.hero-title span:first-child {
	animation-delay: .3s;
}

.hero-title span:last-child {
	padding-left: clamp(1.5rem, 8vw, 7rem);
	font-style: italic;
	animation-delay: .45s;
}

.hero-text {
	max-width: 34rem;
	margin-top: 2rem;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: rgb(255 255 255 / 85%);
	animation: fade-up 1s .6s var(--ease) both;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .9rem;
	margin-top: 2.25rem;
	animation: fade-up 1s .75s var(--ease) both;
}

.hero .btn-primary {
	background: var(--on-dark);
	color: var(--ink);
}

.hero .btn-primary:hover {
	background: var(--gold-light);
}

.hero-scroll {
	position: absolute;
	right: var(--gutter);
	bottom: 2rem;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgb(255 255 255 / 35%);
	border-radius: 50%;
	animation: bob 2.4s ease-in-out infinite;
}

@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes bob {
	50% {
		transform: translateY(6px);
	}
}

/*
 * På mobil ligger porträttet överst och texten under det, i stället för text rakt
 * över ansiktet. Bilden tonar ut i den mörka bakgrunden där namnet börjar.
 */
@media (max-width: 700px) {
	.hero {
		--hero-photo: min(66svh, 34rem);

		min-height: 0;
		background: var(--ink);
	}

	/* Bilden tonar ut själv; en övertoning ovanpå räcker inte när den zoomar ut. */
	.hero-img {
		height: var(--hero-photo);
		object-position: 57% 30%;
		transform-origin: 50% 0;
		mask-image: linear-gradient(to bottom, #000 45%, rgb(0 0 0 / 35%) 75%, transparent 96%);
	}

	.hero-shade {
		bottom: auto;
		height: var(--hero-photo);
		background: linear-gradient(to bottom, rgb(22 18 16 / 55%) 0%, rgb(22 18 16 / 0%) 22%);
	}

	.hero-inner {
		padding-top: calc(var(--hero-photo) - 7.5rem);
		padding-bottom: 3.5rem;
	}

	.hero-scroll {
		display: none;
	}
}

/* ---------- Sektioner ---------- */

.section {
	padding-block: var(--section);
}

.section-head {
	max-width: 52rem;
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head .eyebrow {
	margin-bottom: 1rem;
}

.section-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	max-width: none;
}

.dark {
	background: var(--ink);
	color: var(--on-dark);
}

/* ---------- Aktuellt ---------- */

.news-list {
	display: grid;
	gap: clamp(4rem, 9vw, 7.5rem);
}

.news-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
}

.news-item:nth-child(even) .news-media {
	order: 2;
}

.news-media {
	position: relative;
	justify-self: center;
	width: fit-content;
	max-width: 100%;
}

.news-media::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 1px solid var(--gold);
	opacity: .5;
	z-index: -1;
}

.news-item:nth-child(even) .news-media::before {
	inset: 1.25rem 1.25rem -1.25rem -1.25rem;
}

/* Affischer visas hela: höga bilder blir smalare i stället för att beskäras. */
.news-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 80vh;
	box-shadow: 0 30px 60px -30px rgb(22 18 16 / 45%);
}

.news-body .eyebrow {
	margin-bottom: .9rem;
}

.news-title {
	font-size: clamp(2.3rem, 4.5vw, 3.6rem);
	font-weight: 400;
}

.news-text {
	margin-block: 1.5rem 2rem;
	color: var(--muted);
}

.news-text p:first-child {
	color: var(--text);
	font-size: 1.15rem;
}

.past-title {
	margin: clamp(5rem, 10vw, 8rem) 0 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
	font-size: clamp(1.9rem, 3vw, 2.4rem);
	font-weight: 400;
}

.past-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 2.5rem 1.75rem;
	align-items: start;
}

.past-card summary {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .45rem;
	cursor: pointer;
	list-style: none;
}

.past-card summary::-webkit-details-marker {
	display: none;
}

.past-img {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: .6rem;
	overflow: hidden;
	background: var(--paper-2);
}

.past-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(.35);
	transition: transform .8s var(--ease), filter .5s;
}

.past-card summary:hover img {
	transform: scale(1.04);
	filter: none;
}

.badge {
	position: absolute;
	top: .75rem;
	left: .75rem;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: rgb(22 18 16 / 80%);
	color: var(--on-dark);
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.past-name {
	font-family: var(--serif);
	font-size: 1.75rem;
	line-height: 1.1;
}

.past-more {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}

.past-more .icon {
	transition: transform .3s;
}

.past-card details[open] .past-more .icon {
	transform: rotate(180deg);
}

.past-text {
	margin-top: 1rem;
	font-size: .97rem;
	color: var(--muted);
}

/* På mobil blev varje avslutad föreställning ett helbreddskort där affischerna beskars
   upptill och nedtill. En kompakt lista med liten bild bredvid texten håller ihop delen. */
@media (max-width: 700px) {
	.past-grid {
		gap: 0;
	}

	.past-card + .past-card {
		border-top: 1px solid var(--line);
	}

	.past-card summary {
		justify-content: center;
		gap: .3rem;
		min-height: calc(6.5rem * 5 / 4 + 2.2rem);
		padding: 1.1rem 0 1.1rem 7.6rem;
	}

	.past-card summary > .past-img {
		position: absolute;
		top: 1.1rem;
		left: 0;
		width: 6.5rem;
		aspect-ratio: 4 / 5;
		margin: 0;
	}

	.past-card .badge {
		display: none;
	}

	.past-card .eyebrow {
		font-size: .62rem;
	}

	.past-name {
		font-size: 1.35rem;
	}

	.past-text {
		margin: 0 0 1.25rem;
	}
}

@media (max-width: 860px) {
	.news-item {
		grid-template-columns: 1fr;
	}

	.news-item:nth-child(even) .news-media {
		order: 0;
	}

	.news-media::before {
		display: none;
	}
}

/* ---------- Om ---------- */

.about {
	background: var(--ink);
	color: var(--on-dark);
}

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(3rem, 7vw, 7rem);
	align-items: start;
}

.about-media {
	position: sticky;
	top: calc(var(--header-h) + 2rem);
}

.about-img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.quote {
	position: relative;
	margin: -3.5rem 0 0 clamp(1rem, 4vw, 3rem);
	padding: 2rem 2rem 1.75rem;
	background: var(--ink-3);
	border-left: 2px solid var(--gold-light);
}

.quote blockquote {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.45rem, 2.2vw, 1.8rem);
	font-style: italic;
	line-height: 1.3;
}

.quote blockquote p::before {
	content: "”";
}

.quote blockquote p::after {
	content: "”";
}

.quote figcaption {
	margin-top: 1rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-light);
}

.about .eyebrow,
.about .h-display em {
	color: var(--gold-light);
}

.about .h-display {
	margin: 1rem 0 2rem;
}

.about .prose {
	color: var(--on-dark-muted);
}

.about .prose p:first-child {
	font-family: var(--serif);
	font-size: clamp(1.4rem, 2.2vw, 1.7rem);
	line-height: 1.45;
	color: var(--on-dark);
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 3rem 0;
	padding-block: 2rem;
	border-block: 1px solid var(--line-dark);
}

.stat dt {
	font-family: var(--serif);
	font-size: clamp(2.4rem, 4vw, 3.2rem);
	line-height: 1;
	color: var(--gold-light);
	font-variant-numeric: tabular-nums;
}

.stat dd {
	margin: .6rem 0 0;
	font-size: .85rem;
	line-height: 1.5;
	color: var(--on-dark-muted);
}

.about-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem 2rem;
}

.about .btn-primary {
	background: var(--on-dark);
	color: var(--ink);
}

.about .btn-primary:hover {
	background: var(--gold-light);
}

@media (max-width: 900px) {
	.about-grid {
		grid-template-columns: 1fr;
	}

	.about-media {
		position: static;
	}

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

/* ---------- Musik ---------- */

.music-teaser {
	background: var(--paper-2);
}

.album-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.5rem 1.75rem;
}

.album {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	text-decoration: none;
}

.album-cover {
	position: relative;
	display: block;
	margin-bottom: .9rem;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--ink-2);
	box-shadow: 0 24px 40px -24px rgb(22 18 16 / 55%);
}

.album-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--ease);
}

.album-play {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--on-dark);
	color: var(--ink);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.album-play .icon {
	width: 1.1rem;
	height: 1.1rem;
	margin-left: 3px;
	fill: currentcolor;
}

a.album:hover .album-cover img {
	transform: scale(1.05);
}

a.album:hover .album-play,
a.album:focus-visible .album-play {
	opacity: 1;
	transform: none;
}

.album-title {
	font-family: var(--serif);
	font-size: 1.45rem;
	line-height: 1.15;
}

.album-meta {
	font-size: .8rem;
	letter-spacing: .04em;
	color: var(--muted);
}

@media (max-width: 960px) {
	.album-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.group-title {
	margin-bottom: 2.25rem;
	font-size: clamp(2.2rem, 4vw, 3rem);
	font-weight: 400;
}

.album-grid + .group-title {
	margin-top: clamp(4rem, 8vw, 6rem);
}

.music-more {
	margin-top: 4rem;
	text-align: center;
}

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

.media-teaser {
	background: var(--ink-2);
	color: var(--on-dark);
}

.media-teaser .eyebrow,
.media-teaser .h-display em {
	color: var(--gold-light);
}

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

.video {
	margin: 0;
}

.video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.video-frame video,
.video-frame iframe,
.video-facade {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: #000;
}

.video-facade {
	position: relative;
	display: block;
	padding: 0;
	cursor: pointer;
}

.video-facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: auto;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	color: var(--ink);
}

.video-play .icon {
	margin-left: 4px;
	fill: currentcolor;
}

.video figcaption {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	margin-top: 1.1rem;
}

.video-title {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold);
}

.media-teaser .video-title {
	color: var(--gold-light);
}

.video-song {
	font-family: var(--serif);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.2;
}

.video-sub {
	font-size: .85rem;
	color: var(--muted);
}

.media-teaser .video-sub {
	color: var(--on-dark-muted);
}

@media (max-width: 960px) {
	.video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.video-grid {
		grid-template-columns: 1fr;
	}
}

.press {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 3rem;
	margin-top: clamp(5rem, 10vw, 8rem);
}

.press .group-title {
	margin-bottom: 1rem;
}

.press-text {
	max-width: 32rem;
	margin-bottom: 2rem;
	color: var(--muted);
}

/* ---------- Bildgalleri och ljuslåda ---------- */

.gallery-grid {
	columns: 4 220px;
	column-gap: 1rem;
}

.gallery-grid li {
	margin-bottom: 1rem;
	break-inside: avoid;
}

.gallery-item {
	display: block;
	overflow: hidden;
	background: var(--paper-2);
}

.gallery-item img {
	width: 100%;
	transition: transform .8s var(--ease), opacity .4s;
}

.gallery-item:hover img {
	transform: scale(1.04);
}

.gallery-compact {
	columns: 4 140px;
	column-gap: .75rem;
	margin-top: 2rem;
}

.gallery-compact li {
	margin-bottom: .75rem;
}

.gallery-press {
	columns: 3 260px;
}

.lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: clamp(1rem, 4vw, 4rem);
	border: 0;
	background: rgb(12 10 9 / 96%);
	color: #fff;
}

.lightbox[open] {
	display: grid;
	place-items: center;
}

.lightbox::backdrop {
	background: transparent;
}

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.lightbox-btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 30%);
	border-radius: 50%;
	background: rgb(0 0 0 / 40%);
	cursor: pointer;
}

.lightbox-btn:hover {
	background: #fff;
	color: var(--ink);
}

.lightbox-close {
	top: 1rem;
	right: 1rem;
}

.lightbox-prev,
.lightbox-next {
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-prev {
	left: 1rem;
}

.lightbox-next {
	right: 1rem;
}

.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next {
	display: none;
}

/* ---------- Bokning ---------- */

.contact {
	background:
		radial-gradient(ellipse at 50% 0%, rgb(168 131 78 / 14%), transparent 60%),
		var(--paper);
	text-align: center;
}

.contact-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.contact .h-display {
	margin-top: 1rem;
}

.contact-text {
	max-width: 36rem;
	margin-top: 1.5rem;
	font-size: 1.15rem;
	color: var(--muted);
}

.contact-card {
	margin-top: 3rem;
	padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
	border: 1px solid var(--line);
	background: rgb(255 255 255 / 45%);
}

.contact-label {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

.contact-name {
	margin-top: .3rem;
	font-family: var(--serif);
	font-size: 2rem;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .9rem;
	margin-top: 1.75rem;
}

.contact-actions .btn {
	letter-spacing: .04em;
	text-transform: none;
	font-size: .95rem;
}

/* ---------- Undersidor ---------- */

.page-hero {
	padding: calc(var(--header-h) + clamp(4rem, 10vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
	background:
		radial-gradient(ellipse at 85% 0%, rgb(216 185 138 / 16%), transparent 55%),
		var(--ink);
	color: var(--on-dark);
}

.page-hero .eyebrow {
	color: var(--gold-light);
}

.page-title {
	margin-top: 1.25rem;
	font-size: clamp(3.5rem, 10vw, 8rem);
	font-weight: 400;
	line-height: .92;
}

.page-lead {
	max-width: 36rem;
	margin-top: 1.75rem;
	font-family: var(--serif);
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	font-style: italic;
	line-height: 1.4;
	color: var(--on-dark-muted);
}

.page-narrow {
	max-width: calc(48rem + var(--gutter) * 2);
}

.page-split {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
}

.page-aside {
	position: sticky;
	top: calc(var(--header-h) + 2rem);
}

.page-portrait {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.page-gallery {
	margin-top: clamp(4rem, 8vw, 6rem);
}

.signature {
	width: min(100%, 320px);
	height: auto;
}

.signature-dark {
	margin-top: 3rem;
	filter: invert(1) brightness(.25);
}

@media (max-width: 860px) {
	.page-split {
		grid-template-columns: 1fr;
	}

	.page-aside {
		position: static;
		max-width: 420px;
	}
}

/* CV: listor där årtalet står i en egen kolumn. */
.page-cv .prose h2 {
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.page-cv .prose h2:first-child {
	margin-top: 0;
}

.page-cv .prose ul {
	padding: 0;
	list-style: none;
}

.page-cv .prose li {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
	max-width: none;
}

.page-cv .prose li:has(> strong:empty) {
	grid-template-columns: 1fr;
}

.page-cv .prose li strong:empty {
	display: none;
}

.page-cv .prose li strong {
	font-family: var(--serif);
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--gold);
}

.page-cv .prose li em {
	display: block;
	font-style: normal;
	font-size: .92rem;
	color: var(--muted);
}

@media (max-width: 560px) {
	.page-cv .prose li {
		grid-template-columns: 1fr;
		gap: .2rem;
	}
}

/* ---------- Min resa ---------- */

.journey-intro {
	margin-bottom: 4rem;
}

.year-nav {
	position: sticky;
	top: var(--header-h);
	z-index: 10;
	margin: 0 calc(var(--gutter) * -1) clamp(3rem, 6vw, 5rem);
	padding: .75rem var(--gutter);
	background: rgb(246 241 234 / 92%);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.year-nav ul {
	display: flex;
	gap: .35rem;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: .25rem;
}

.year-nav a {
	display: block;
	padding: .35rem .7rem;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	color: var(--muted);
	transition: background-color .25s, color .25s;
}

.year-nav a:hover {
	background: var(--ink);
	color: var(--on-dark);
}

.timeline {
	position: relative;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 11rem;
	width: 1px;
	background: var(--line);
}

.year {
	position: relative;
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: 0 3rem;
	padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.year::before {
	content: "";
	position: absolute;
	top: 1.35rem;
	left: calc(11rem - 4px);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 6px var(--paper);
}

.year-label {
	position: sticky;
	top: calc(var(--header-h) + 5rem);
	align-self: start;
	padding-right: 1.5rem;
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	font-weight: 400;
	font-style: italic;
	color: var(--gold);
}

.year-body {
	max-width: 54rem;
}

.year-body .prose p:first-child {
	font-family: var(--serif);
	font-size: 1.4rem;
	line-height: 1.45;
}

@media (max-width: 760px) {
	.timeline::before,
	.year::before {
		display: none;
	}

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

	.year-label {
		position: static;
		margin-bottom: 1rem;
		padding-bottom: .5rem;
		border-bottom: 1px solid var(--line);
	}
}

/* ---------- Sidfot ---------- */

.site-footer {
	padding-top: clamp(4rem, 8vw, 6rem);
	background: var(--ink);
	color: var(--on-dark-muted);
	font-size: .95rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 3rem;
	padding-bottom: 4rem;
}

.footer-brand .signature {
	width: min(100%, 360px);
	opacity: .92;
}

.footer-tagline {
	margin-top: 1.25rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold-light);
}

.footer-heading {
	margin-bottom: 1.1rem;
	font-family: var(--sans);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--on-dark);
}

.footer-nav li + li,
.footer-contact p + p {
	margin-top: .45rem;
}

.site-footer a {
	text-decoration: none;
	transition: color .25s;
}

.site-footer a:hover {
	color: var(--on-dark);
}

.socials {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
}

.socials-footer {
	margin-top: 2rem;
}

.social {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	transition: background-color .3s, color .3s, border-color .3s;
}

.site-footer .social:hover {
	background: var(--on-dark);
	border-color: var(--on-dark);
	color: var(--ink);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 2rem;
	padding-block: 1.75rem 2.25rem;
	border-top: 1px solid var(--line-dark);
	font-size: .82rem;
}

.footer-credit {
	margin-left: auto;
}

.footer-top {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

@media (max-width: 860px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

	.footer-credit {
		margin-left: 0;
	}
}

@media (max-width: 480px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Cookies ---------- */

.footer-cookie {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.footer-cookie:hover {
	color: var(--gold-light);
}

/* Knappen gör ingenting utan JavaScript. */
html:not(.js) .footer-cookie {
	display: none;
}

.cookie {
	position: fixed;
	inset: auto 0 0;
	z-index: 90;
	display: flex;
	padding: 1rem;
	pointer-events: none;
}

.cookie[hidden] {
	display: none;
}

.cookie-card {
	width: 100%;
	max-width: 30rem;
	max-height: calc(100dvh - 2rem);
	padding: 1.5rem;
	overflow-y: auto;
	border: 1px solid var(--line-dark);
	border-top: 2px solid var(--gold);
	border-radius: var(--radius);
	background: var(--ink-2);
	color: var(--on-dark);
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 60%);
	pointer-events: auto;
	animation: cookie-in .6s var(--ease) both;
}

@keyframes cookie-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.cookie.is-leaving .cookie-card {
	animation: cookie-out .3s var(--ease) both;
}

@keyframes cookie-out {
	to {
		opacity: 0;
		transform: translateY(16px);
	}
}

.cookie-head {
	display: flex;
	align-items: center;
	gap: .8rem;
}

.cookie-icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--gold);
	border-radius: 50%;
	color: var(--gold-light);
}

.cookie-icon .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.cookie-title {
	font-size: 1.7rem;
	font-weight: 500;
	line-height: 1.1;
}

.cookie-text {
	margin-top: .9rem;
	font-size: .9rem;
	line-height: 1.6;
	color: var(--on-dark-muted);
}

.cookie-text a {
	color: var(--gold-light);
	text-underline-offset: .2em;
}

.cookie-prefs fieldset {
	display: grid;
	gap: .5rem;
	margin: 1.1rem 0 0;
	padding: 0;
	border: 0;
}

.cookie-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .8rem .9rem;
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	cursor: pointer;
}

.cookie-option-text {
	display: grid;
	gap: .2rem;
	font-size: .8rem;
	line-height: 1.5;
	color: var(--on-dark-muted);
}

.cookie-option-text strong {
	font-size: .92rem;
	color: var(--on-dark);
}

.switch {
	position: relative;
	flex-shrink: 0;
	width: 2.75rem;
	height: 1.6rem;
	margin: 0;
	border-radius: 999px;
	background: rgb(243 236 226 / 18%);
	cursor: pointer;
	transition: background-color .25s;
	appearance: none;
}

.switch::after {
	content: "";
	position: absolute;
	top: .2rem;
	left: .2rem;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--on-dark);
	transition: transform .3s var(--ease);
}

.switch:checked {
	background: var(--gold);
}

.switch:checked::after {
	transform: translateX(1.15rem);
}

.switch:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.switch:focus-visible {
	outline: 2px solid var(--gold-light);
	outline-offset: 2px;
}

.cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1.2rem;
}

.cookie-actions .btn {
	flex: 1 1 auto;
}

/* Godkänn och neka är lika tydliga, så att det inte är lättare att säga ja än nej. */
.btn-cookie-accept,
.btn-cookie-reject {
	background: var(--on-dark);
	color: var(--ink);
}

.btn-cookie-accept:hover,
.btn-cookie-reject:hover {
	background: var(--gold-light);
}

.btn-cookie-plain {
	border-color: var(--line-dark);
	background: transparent;
	color: var(--on-dark);
}

/* .btn sätter display, som annars tar över hidden-attributet på Anpassa och Spara. */
.cookie-actions .btn[hidden] {
	display: none;
}

.btn-cookie-plain:hover {
	border-color: var(--on-dark);
}

@media (max-width: 599px) {
	.cookie {
		padding: .6rem;
	}

	.cookie-card {
		max-width: none;
		padding: 1.2rem;
	}

	.cookie-actions .btn {
		flex-basis: calc(50% - .25rem);
	}

	.cookie-actions .btn-cookie-plain {
		flex-basis: 100%;
	}
}

/* Cookietabellen i cookiepolicyn. */
.prose .cookie-table {
	margin-inline: 0;
	overflow-x: auto;
}

.prose table {
	width: 100%;
	min-width: 34rem;
	border-collapse: collapse;
	font-size: .9rem;
}

.prose th,
.prose td {
	padding: .7rem .75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	font-weight: 600;
}

.prose code {
	padding: .1rem .35rem;
	border-radius: var(--radius);
	background: var(--paper-2);
	font-size: .88em;
}

/* På mobil blir varje rad ett litet kort i stället för en tabell som måste scrollas i sidled. */
@media (max-width: 599px) {
	.prose .cookie-table table {
		min-width: 0;
	}

	.prose .cookie-table thead {
		display: none;
	}

	.prose .cookie-table tr {
		display: grid;
		gap: .35rem;
		padding: .9rem 0;
		border-bottom: 1px solid var(--line);
	}

	.prose .cookie-table td {
		position: relative;
		display: block;
		padding: 0 0 0 6.5rem;
		border: 0;
	}

	.prose .cookie-table td::before {
		content: attr(data-label);
		position: absolute;
		top: .1rem;
		left: 0;
		font-size: .8rem;
		color: var(--muted);
	}

	.prose .cookie-table code {
		overflow-wrap: anywhere;
	}
}
