/*
Theme Name: Alex Haslauer – Geschichten ohne Grenzen
Theme URI: https://www.alexhaslauer.com/
Author: Alex Haslauer
Description: Ein eigenständiges, interaktives Autoren-Theme für Alex Haslauer.
Version: 1.0.17
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: alex-haslauer
*/

@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/bebas-neue-latin.woff2") format("woff2");
}

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

:root {
	--ink: #080808;
	--ink-soft: #101011;
	--ink-raised: #171718;
	--paper: #f2ede5;
	--muted: #aaa29a;
	--line: #342d2b;
	--red: #a5263a;
	--red-bright: #c12e45;
	--green: #67a249;
	--map-gray: #55575a;
	--copper: #a88b70;
	--header-height: 78px;
	--shell: min(1240px, calc(100vw - 64px));
	--display: "Bebas Neue", "Arial Narrow", sans-serif;
	--body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--ink);
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.menu-open {
	overflow: hidden;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration: none;
}

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

p,
h1,
h2,
h3,
h4 {
	margin-top: 0;
}

h1,
h2,
h3,
h4 {
	font-family: var(--display);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 0.96;
}

h2 {
	font-size: clamp(3.8rem, 6vw, 6.7rem);
}

.shell {
	width: var(--shell);
	margin-inline: auto;
}

.section {
	position: relative;
	padding-block: clamp(96px, 11vw, 164px);
}

.eyebrow {
	margin-bottom: 22px;
	color: var(--red-bright);
	font-family: var(--body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.3;
	text-transform: uppercase;
}

.skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 99999;
	padding: 12px 18px;
	transform: translateY(-160%);
	background: var(--paper);
	color: var(--ink);
}

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

:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: 4px;
}

.site-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1001;
	width: 100%;
	height: 2px;
	pointer-events: none;
}

.site-scroll-progress span {
	display: block;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	background: var(--red-bright);
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	height: var(--header-height);
	border-bottom: 1px solid transparent;
	background: rgba(8, 8, 8, 0.82);
	transition: height 240ms ease, border-color 240ms ease, background-color 240ms ease;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

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

.site-header.is-scrolled {
	height: 66px;
	border-color: rgba(242, 237, 229, 0.12);
	background: rgba(8, 8, 8, 0.96);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: var(--shell);
	height: 100%;
	margin-inline: auto;
}

.site-brand {
	display: inline-flex;
	flex-direction: column;
	gap: 1px;
	line-height: 1;
}

.site-brand__name {
	font-family: var(--display);
	font-size: 1.65rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.site-brand__meta {
	color: #bcb5af;
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.05em;
}

.site-navigation {
	display: flex;
	align-items: center;
	gap: 36px;
	height: 100%;
	margin-left: auto;
}

.site-navigation a {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 100%;
	color: #cfc8c1;
	font-size: 0.8rem;
	font-weight: 500;
	transition: color 180ms ease;
}

.site-navigation a::after {
	position: absolute;
	bottom: 17px;
	left: 0;
	width: 100%;
	height: 2px;
	transform: scaleX(0);
	transform-origin: left center;
	background: var(--red-bright);
	content: "";
	transition: transform 200ms ease;
}

.site-navigation a:hover,
.site-navigation a.is-active {
	color: var(--paper);
}

.site-navigation a:hover::after,
.site-navigation a.is-active::after {
	transform: scaleX(1);
}

.language-switch {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 5px;
	padding: 3px;
	border: 1px solid rgba(242, 237, 229, 0.22);
	background: rgba(8, 8, 8, 0.42);
}

.language-switch--desktop {
	margin-left: 24px;
}

.language-switch--mobile {
	display: none;
}

.language-switch a,
.site-navigation .language-switch a {
	display: grid;
	width: 34px;
	height: 30px;
	place-items: center;
	color: #aaa29a;
	font-family: var(--body);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	transition: color 180ms ease, background-color 180ms ease;
}

.language-switch a:hover,
.language-switch a[aria-current="true"] {
	background: var(--paper);
	color: var(--ink);
}

.language-switch span {
	color: #6f6963;
	font-size: 0.64rem;
}

.site-navigation .language-switch a::after {
	display: none;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	border: 0;
	background: transparent;
	color: var(--paper);
	cursor: pointer;
}

.menu-toggle__label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.menu-toggle i {
	font-size: 1.5rem;
}

.hero {
	position: relative;
	display: flex;
	min-height: max(760px, 100svh);
	align-items: center;
	overflow: hidden;
	border-bottom: 1px solid rgba(168, 139, 112, 0.42);
	background: #050505;
}

.hero__travel,
.hero__portrait,
.hero__shade {
	position: absolute;
	inset: 0;
}

.hero__travel {
	overflow: clip;
	contain: paint;
}

.hero__travel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 58%;
	opacity: 0.33;
	transform: scale(1.03);
}

.hero__shade {
	z-index: 1;
	background: rgba(0, 0, 0, 0.66);
}

.hero__portrait {
	z-index: 2;
	top: var(--header-height);
	left: auto;
	width: 53%;
	overflow: hidden;
	contain: paint;
	border-left: 1px solid rgba(168, 139, 112, 0.24);
	background: #111;
}

.hero__portrait::after {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.09);
	content: "";
}

.hero__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	transform: scale(1.02);
}

.hero__content {
	position: relative;
	z-index: 3;
	padding-top: var(--header-height);
}

.hero__content > * {
	max-width: 53%;
}

.hero h1 {
	margin-bottom: 26px;
	font-size: clamp(4.6rem, 7.8vw, 8.6rem);
	line-height: 0.88;
	text-wrap: balance;
}

.hero__lead {
	margin-bottom: 38px;
	color: #d8d1ca;
	font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 26px;
	border: 1px solid transparent;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
	background: var(--red);
	color: #fff;
}

.button--primary:hover {
	background: var(--red-bright);
}

.button--ghost,
.button--outline {
	border-color: rgba(242, 237, 229, 0.64);
	background: rgba(8, 8, 8, 0.25);
	color: var(--paper);
}

.button--ghost:hover,
.button--outline:hover {
	border-color: var(--paper);
	background: var(--paper);
	color: var(--ink);
}

.scroll-cue {
	position: absolute;
	bottom: 34px;
	left: max(32px, calc((100vw - min(1240px, calc(100vw - 64px))) / 2));
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	color: #d0c9c2;
	font-size: 0.55rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.scroll-cue i {
	font-size: 1.45rem;
	animation: cue-bob 1.8s ease-in-out infinite;
}

@keyframes cue-bob {
	50% { transform: translateY(5px); }
}

.books {
	background: var(--ink-soft);
}

.books::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--line);
	content: "";
}

.books__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.2vw, 52px);
	align-items: start;
}

.books__intro {
	display: grid;
	position: relative;
	top: auto;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.58fr);
	grid-template-rows: auto auto auto;
	column-gap: clamp(42px, 8vw, 130px);
	margin-bottom: 18px;
	padding-top: 0;
}

.books__intro .eyebrow {
	grid-column: 1;
	grid-row: 1;
}

.books__intro h2 {
	grid-column: 1;
	grid-row: 2 / span 2;
	margin-bottom: 0;
	font-size: clamp(4.5rem, 6vw, 7rem);
}

.books__intro > p:not(.eyebrow) {
	grid-column: 2;
	grid-row: 2;
	max-width: 28rem;
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 0.92rem;
}

.books__intro .text-link {
	grid-column: 2;
	grid-row: 3;
	justify-self: start;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(193, 46, 69, 0.46);
	color: var(--red-bright);
	font-size: 0.78rem;
	font-weight: 500;
	transition: gap 180ms ease, border-color 180ms ease;
}

.text-link:hover {
	gap: 15px;
	border-color: var(--red-bright);
}

.book-card {
	min-width: 0;
}

.book-card__visual {
	display: flex;
	height: clamp(360px, 42vw, 550px);
	align-items: flex-end;
	justify-content: center;
	margin-bottom: 28px;
	overflow: hidden;
	background: #0b0b0c;
}

.book-card__visual img {
	width: 113%;
	max-width: none;
	filter: drop-shadow(0 25px 24px rgba(0, 0, 0, 0.62));
	transition: transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.book-card__visual--cover {
	align-items: center;
	padding: 28px;
}

.book-card__visual--cover img {
	width: auto;
	height: 92%;
	object-fit: contain;
}

.book-card__visual--soon {
	position: relative;
}

.book-card__badge {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
	padding: 9px 12px;
	background: var(--red-bright);
	color: var(--paper);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.button--disabled {
	opacity: 0.58;
	cursor: default;
	pointer-events: none;
}

.book-card:hover .book-card__visual img {
	transform: translateY(-10px) scale(1.025);
}

.book-card__kicker {
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.book-card h3 {
	margin-bottom: 12px;
	color: var(--red-bright);
	font-family: var(--body);
	font-size: 1.28rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-transform: uppercase;
}

.book-card__body > p:not(.book-card__kicker) {
	min-height: 84px;
	margin-bottom: 18px;
	color: #c7c0b9;
	font-size: 0.88rem;
	line-height: 1.6;
}

.book-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 16px;
	margin-bottom: 24px;
	color: #7f7974;
	font-size: 0.66rem;
	letter-spacing: 0.05em;
}

.book-story {
	--book-open: 0;
	--page-one: 0;
	--page-two: 0;
	--story-progress: 0;
	position: relative;
	height: 340vh;
	background: #09090a;
}

.book-story__sticky {
	position: sticky;
	top: 0;
	display: flex;
	height: 100vh;
	min-height: 760px;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.book-story__heading {
	position: absolute;
	top: 104px;
	left: 50%;
	z-index: 4;
	width: min(760px, calc(100% - 64px));
	transform: translateX(-50%);
	text-align: center;
}

.book-story__heading .eyebrow {
	margin-bottom: 10px;
}

.book-story__heading h2 {
	margin-bottom: 0;
	font-size: clamp(2.5rem, 4vw, 4.8rem);
}

.book-story__title-mobile {
	display: none;
}

.book-story__layout {
	display: grid;
	grid-template-columns: 170px 30px minmax(0, 1fr) 170px;
	gap: 26px;
	align-items: center;
	padding-top: 120px;
}

.chapter {
	position: relative;
	z-index: 3;
	transition: opacity 240ms ease, transform 240ms ease;
}

.chapter--left {
	opacity: calc(0.45 + var(--book-open) * 0.55);
	transform: translateX(calc((1 - var(--book-open)) * -20px));
}

.chapter--right {
	opacity: calc(0.28 + var(--page-two) * 0.72);
	transform: translateX(calc((1 - var(--page-two)) * 20px));
}

.chapter__number {
	display: block;
	margin-bottom: 10px;
	color: var(--red-bright);
	font-size: 0.63rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.chapter h3 {
	margin-bottom: 14px;
	font-size: clamp(2.25rem, 3.1vw, 3.65rem);
}

.chapter p {
	margin-bottom: 0;
	color: #aaa39c;
	font-size: 0.75rem;
	line-height: 1.7;
}

.story-progress {
	display: flex;
	height: 290px;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	color: #7c7671;
	font-size: 0.5rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.story-progress__track {
	position: relative;
	width: 1px;
	height: 220px;
	background: #3b3734;
}

.story-progress__track i {
	position: absolute;
	top: 0;
	left: -1px;
	width: 3px;
	height: 100%;
	transform: scaleY(var(--story-progress));
	transform-origin: top center;
	background: var(--red-bright);
}

.book-scene {
	position: relative;
	height: clamp(400px, 49vw, 650px);
	perspective: 1700px;
}

.book-object {
	position: absolute;
	top: 52%;
	left: 50%;
	width: min(680px, 54vw);
	aspect-ratio: 1.36 / 1;
	transform: translate(-50%, -50%) rotateX(6deg);
	transform-style: preserve-3d;
}

.book-object__shadow {
	position: absolute;
	right: 4%;
	bottom: 1%;
	left: 4%;
	height: 16%;
	transform: translateZ(-20px);
	background: rgba(0, 0, 0, 0.72);
	filter: blur(20px);
}

.book-object__page,
.book-object__cover,
.book-object__turning-page {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	overflow: hidden;
	backface-visibility: hidden;
	transform-style: preserve-3d;
}

.book-object__page {
	z-index: 1;
	padding: clamp(20px, 2.4vw, 34px);
	border: 1px solid #c7beb0;
	background: #d8cfc0;
	color: #28231f;
	box-shadow: inset 0 0 24px rgba(68, 54, 41, 0.18);
}

.book-object__page--left {
	left: 0;
	transform: rotateY(10deg);
	transform-origin: right center;
}

.book-object__page--right {
	right: 0;
	transform: rotateY(-8deg);
	transform-origin: left center;
}

.book-object__page p {
	font-family: Georgia, serif;
	font-size: clamp(0.58rem, 0.74vw, 0.76rem);
	line-height: 1.65;
}

.book-object__page h4 {
	margin: 24px 0 16px;
	font-family: Georgia, serif;
	font-size: clamp(1.1rem, 1.6vw, 1.65rem);
	font-weight: 400;
	line-height: 1.12;
}

.page-photo {
	height: 45%;
	margin: calc(clamp(20px, 2.4vw, 34px) * -1) calc(clamp(20px, 2.4vw, 34px) * -1) 22px;
	overflow: hidden;
}

.page-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.25) contrast(1.14);
}

.page-number,
.page-signature {
	color: #635a51;
	font-size: 0.56rem !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-signature {
	position: absolute;
	right: 28px;
	bottom: 18px;
}

.book-object__cover {
	right: 0;
	z-index: 8;
	transform: rotateY(calc(var(--book-open) * -172deg));
	transform-origin: left center;
	background: #080808;
	box-shadow: -12px 12px 28px rgba(0, 0, 0, 0.62);
}

.book-object__cover img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #080808;
}

.book-object__turning-page {
	right: 0;
	z-index: 5;
	transform-origin: left center;
	background: #d9d0c1;
}

.book-object__turning-page--one {
	transform: rotateY(calc(var(--page-one) * -168deg));
}

.book-object__turning-page--two {
	z-index: 4;
	transform: rotateY(calc(var(--page-two) * -165deg));
}

.turning-page__front,
.turning-page__back {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	backface-visibility: hidden;
	border: 1px solid #c2b9ac;
	background: #d9d0c1;
	color: #28231f;
	font-family: Georgia, serif;
	text-align: center;
}

.turning-page__front span,
.turning-page__back span {
	font-size: clamp(0.8rem, 1.4vw, 1.35rem);
	letter-spacing: 0.06em;
}

.turning-page__back {
	transform: rotateY(180deg);
}

.turning-page__back img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.42) contrast(1.1);
}

.about {
	background: #0c0c0d;
}

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(52px, 8vw, 120px);
	align-items: center;
}

.about__image {
	position: relative;
}

.about__image::before {
	position: absolute;
	top: -18px;
	right: -18px;
	bottom: 18px;
	left: 18px;
	z-index: 0;
	border: 1px solid rgba(168, 139, 112, 0.45);
	content: "";
}

.about__image img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 0.84;
	object-fit: cover;
	filter: contrast(1.03);
}

.about__image-caption {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	margin-top: 14px;
	color: #77716c;
	font-size: 0.62rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.about__content h2 {
	margin-bottom: 30px;
}

.about__lead {
	max-width: 32rem;
	margin-bottom: 26px;
	color: var(--paper);
	font-size: clamp(1.1rem, 1.7vw, 1.35rem);
	line-height: 1.5;
}

.about__content > p:not(.eyebrow):not(.about__lead) {
	max-width: 38rem;
	color: var(--muted);
	font-size: 0.94rem;
}

.about__facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 42px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.about__facts div {
	display: flex;
	min-height: 112px;
	flex-direction: column;
	justify-content: center;
	padding: 16px;
	border-right: 1px solid var(--line);
}

.about__facts div:first-child {
	padding-left: 0;
}

.about__facts div:last-child {
	border-right: 0;
}

.about__facts strong {
	font-family: var(--display);
	font-size: 2.7rem;
	font-weight: 400;
	line-height: 1;
}

.about__facts span {
	color: #807a74;
	font-size: 0.63rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.travel-map {
	overflow: hidden;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: #080909;
}

.travel-map__grid {
	display: grid;
	grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
	gap: clamp(36px, 6vw, 92px);
	align-items: center;
}

.travel-map__intro h2 {
	margin-bottom: 28px;
}

.travel-map__intro > p:not(.eyebrow):not(.travel-map__count) {
	max-width: 28rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.map-legend {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 32px;
	color: #a8a19a;
	font-size: 0.74rem;
}

.map-legend span {
	display: flex;
	align-items: center;
	gap: 12px;
}

.map-legend__swatch {
	display: inline-block;
	width: 25px;
	height: 13px;
}

.map-legend__swatch--open {
	background: var(--map-gray);
}

.map-legend__swatch--visited {
	background: var(--green);
}

.travel-map__count {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 28px 0 0;
	color: #78736e;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.travel-map__count strong {
	color: var(--paper);
	font-family: var(--display);
	font-size: 2.4rem;
	font-weight: 400;
}

.travel-map__canvas {
	position: relative;
	min-width: 0;
}

#travel-world-map {
	width: 100%;
	height: 540px;
}

.map-fallback {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: 0;
	transform: translate(-50%, -50%);
	color: #79736e;
	font-size: 0.72rem;
}

.map-is-ready + .map-fallback {
	display: none;
}

.jvm-container {
	background: transparent !important;
}

.jvm-zoom-btn {
	display: grid !important;
	width: 34px !important;
	height: 34px !important;
	place-items: center;
	border: 1px solid #46413d !important;
	border-radius: 0 !important;
	background: #111 !important;
	color: var(--paper) !important;
	font-family: var(--body) !important;
	line-height: 1 !important;
}

.jvm-tooltip {
	padding: 7px 10px !important;
	border: 1px solid #4a443f !important;
	border-radius: 0 !important;
	background: #111 !important;
	color: var(--paper) !important;
	font-family: var(--body) !important;
	font-size: 0.68rem !important;
}

.travel-gallery {
	padding-top: clamp(88px, 9vw, 130px);
	background: #0c0c0d;
}

.travel-gallery__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 38px;
}

.travel-gallery__heading .eyebrow {
	margin-bottom: 10px;
}

.travel-gallery__heading h2 {
	margin-bottom: 0;
	font-size: clamp(3.4rem, 5vw, 6rem);
}

.travel-gallery__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	height: clamp(300px, 34vw, 520px);
}

.gallery-item {
	position: relative;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-right: 1px solid rgba(242, 237, 229, 0.26);
	background: #111;
	color: var(--paper);
	cursor: zoom-in;
}

.gallery-item--wide {
	grid-column: span 2;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.75) contrast(1.06);
	transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 300ms ease;
}

.gallery-item span {
	position: absolute;
	bottom: 18px;
	left: 18px;
	z-index: 2;
	padding: 6px 9px;
	background: rgba(8, 8, 8, 0.76);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gallery-item:hover img {
	transform: scale(1.055);
	filter: saturate(1) contrast(1.03);
}

.contact {
	position: relative;
	min-height: 540px;
	overflow: hidden;
	background: var(--ink);
}

.contact__photo,
.contact__shade {
	position: absolute;
	inset: 0;
}

.contact__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 65%;
	opacity: 0.32;
}

.contact__shade {
	background: rgba(0, 0, 0, 0.72);
}

.contact__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 0.85fr;
	gap: clamp(48px, 10vw, 140px);
	align-items: center;
}

.contact__content h2 {
	margin-bottom: 18px;
	font-size: clamp(4.3rem, 7vw, 7.6rem);
}

.contact__content > p:not(.eyebrow) {
	max-width: 34rem;
	margin-bottom: 32px;
	color: #c0b9b2;
}

.contact__links {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-left: clamp(0px, 4vw, 58px);
	border-left: 1px solid rgba(242, 237, 229, 0.19);
}

.contact__links > a,
.contact__location {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #d0c9c2;
}

.contact__links > a {
	transition: color 180ms ease, transform 180ms ease;
}

.contact__links > a:hover {
	transform: translateX(4px);
	color: #fff;
}

.contact__links i,
.contact__location > i {
	width: 32px;
	font-size: 1.35rem;
}

.contact__links span span,
.contact__location span {
	display: flex;
	flex-direction: column;
	font-size: 0.86rem;
}

.contact__links small {
	margin-bottom: 2px;
	color: #77716c;
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-footer {
	border-top: 1px solid #292624;
	background: #080808;
}

.site-footer__inner {
	display: grid;
	min-height: 118px;
	grid-template-columns: 1fr auto 1fr;
	gap: 34px;
	align-items: center;
}

.site-footer__inner > div:first-child {
	display: flex;
	flex-direction: column;
}

.site-footer strong {
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer span,
.site-footer a {
	color: #74706b;
	font-size: 0.63rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-footer__legal {
	display: flex;
	gap: 24px;
}

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

.back-to-top {
	justify-self: end;
}

.travel-dialog {
	position: fixed;
	width: min(1100px, calc(100vw - 48px));
	max-height: calc(100vh - 48px);
	padding: 0;
	overflow: hidden;
	border: 1px solid #4f4944;
	background: #080808;
	color: var(--paper);
}

.travel-dialog::backdrop {
	background: rgba(0, 0, 0, 0.9);
}

.travel-dialog > img {
	width: 100%;
	max-height: calc(100vh - 48px);
	object-fit: contain;
}

.travel-dialog__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid rgba(242, 237, 229, 0.45);
	background: rgba(8, 8, 8, 0.82);
	color: var(--paper);
	cursor: pointer;
}

.travel-dialog__close i {
	font-size: 1.45rem;
}

.has-js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

@media (max-width: 1120px) {
	:root {
		--shell: min(100% - 48px, 1080px);
	}

	.hero__content > * {
		max-width: 58%;
	}

	.books__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.books__intro {
		position: relative;
		top: auto;
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
		padding-top: 0;
	}

	.books__intro h2 br {
		display: none;
	}

	.book-story__layout {
		grid-template-columns: 150px minmax(0, 1fr) 150px;
	}

	.story-progress {
		display: none;
	}

	.book-object {
		width: min(610px, 57vw);
	}
}

@media (max-width: 900px) {
	:root {
		--header-height: 70px;
		--shell: min(100% - 38px, 820px);
	}

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

	.menu-toggle {
		display: flex;
	}

	.site-navigation {
		position: fixed;
		top: var(--header-height);
		right: 0;
		left: 0;
		display: none;
		height: calc(100vh - var(--header-height));
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 10px;
		padding: 42px;
		margin-left: 0;
		transform: translateX(100%);
		visibility: hidden;
		background: #080808;
		pointer-events: none;
		transition: transform 280ms ease, visibility 0s linear 280ms;
	}

	.admin-bar .site-navigation {
		top: calc(var(--header-height) + 46px);
		height: calc(100vh - var(--header-height) - 46px);
	}

	.site-navigation.is-open {
		display: flex;
		transform: none;
		visibility: visible;
		pointer-events: auto;
		transition-delay: 0s;
	}

	.site-navigation a {
		height: auto;
		font-family: var(--display);
		font-size: 3.2rem;
		line-height: 1.15;
	}

	.site-navigation a::after {
		bottom: 0;
	}

	.language-switch--desktop {
		display: none;
	}

	.language-switch--mobile {
		display: inline-flex;
		margin-top: 24px;
	}

	.site-navigation .language-switch a {
		display: grid;
		width: 54px;
		height: 42px;
		font-family: var(--body);
		font-size: 0.76rem;
		line-height: 1;
	}

	.hero__portrait {
		width: 58%;
		opacity: 0.64;
	}

	.hero__shade {
		background: rgba(0, 0, 0, 0.74);
	}

	.hero__content > * {
		max-width: 72%;
	}

	.hero h1 {
		font-size: clamp(4.2rem, 13vw, 7rem);
	}

	.about__grid,
	.travel-map__grid,
	.contact__grid {
		grid-template-columns: 1fr;
	}

	.about__image {
		max-width: 620px;
	}

	.about__image img {
		aspect-ratio: 1 / 0.78;
	}

	#travel-world-map {
		height: 470px;
	}

	.travel-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		height: auto;
	}

	.gallery-item,
	.gallery-item--wide {
		grid-column: auto;
		aspect-ratio: 1 / 0.78;
	}

	.contact__links {
		padding-top: 34px;
		padding-left: 0;
		border-top: 1px solid rgba(242, 237, 229, 0.19);
		border-left: 0;
	}

	.site-footer__inner {
		grid-template-columns: 1fr auto;
	}

	.site-footer__legal {
		order: 3;
	}

	.back-to-top {
		grid-row: span 2;
	}
}

@media (max-width: 720px) {
	:root {
		--shell: calc(100% - 32px);
	}

	body {
		font-size: 15px;
	}

	.section {
		padding-block: 88px;
	}

	.hero {
		display: grid;
		min-height: 0;
		grid-template-rows: auto auto;
		align-items: stretch;
		padding: var(--header-height) 0 0;
	}

	.hero__portrait {
		position: relative;
		inset: auto;
		grid-row: 1;
		width: 100%;
		height: clamp(280px, 76vw, 340px);
		opacity: 1;
		border-left: 0;
		border-bottom: 1px solid rgba(168, 139, 112, 0.28);
	}

	.hero__portrait img {
		object-position: 50% 32%;
	}

	.hero__portrait::after {
		background: linear-gradient(180deg, transparent 66%, rgba(8, 8, 8, 0.28));
	}

	.hero__travel img,
	.hero__portrait img {
		transform: none;
	}

	.hero__travel,
	.hero__shade {
		display: none;
	}

	.hero__content {
		grid-row: 2;
		width: 100%;
		margin: 0;
		padding: 30px 16px 40px;
		background: linear-gradient(180deg, #0d0d0e, #080808);
	}

	.hero__content > * {
		max-width: 100%;
	}

	.hero__eyebrow {
		margin-bottom: 14px;
	}

	.hero h1 {
		margin-bottom: 18px;
		font-size: clamp(3.25rem, 14.4vw, 4.1rem);
		line-height: 0.9;
	}

	.hero__lead {
		max-width: 28rem;
		margin-bottom: 24px;
		font-size: 1rem;
		line-height: 1.55;
	}

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

	.hero__actions .button {
		width: 100%;
		min-height: 48px;
		padding-inline: 8px;
		font-size: 0.65rem;
		letter-spacing: 0.06em;
	}

	.scroll-cue {
		display: none;
	}

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

	.books__intro {
		display: block;
		margin-bottom: 4px;
	}

	.books__intro h2 {
		margin-bottom: 24px;
	}

	.books__intro > p:not(.eyebrow) {
		margin-bottom: 26px;
	}

	.book-card__visual {
		height: min(118vw, 560px);
	}

	.book-story {
		height: auto;
		padding-block: 90px;
	}

	.book-story__sticky {
		position: relative;
		top: auto;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.book-story__heading {
		position: relative;
		top: auto;
		left: auto;
		width: var(--shell);
		margin: 0 auto 46px;
		transform: none;
	}

	.book-story__title-desktop {
		display: none;
	}

	.book-story__title-mobile {
		display: inline;
	}

	.book-story__layout {
		display: flex;
		flex-direction: column;
		gap: 32px;
		padding-top: 0;
	}

	.book-scene {
		order: -1;
		width: 100%;
		height: min(126vw, 520px);
	}

	.book-object {
		width: min(320px, 78vw);
		aspect-ratio: 1036 / 1518;
		transform: translate(-50%, -50%);
	}

	.book-object__shadow,
	.book-object__page,
	.book-object__turning-page {
		display: none;
	}

	.book-object__cover {
		inset: 0;
		width: 100%;
		height: 100%;
		transform: none;
		box-shadow: 0 28px 48px rgba(0, 0, 0, 0.58);
	}

	.book-object__cover img {
		object-fit: cover;
	}

	.chapter {
		max-width: 32rem;
		align-self: flex-start;
		opacity: 1;
		transform: none;
	}

	.chapter--right {
		align-self: flex-end;
		text-align: right;
	}

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

	.about__facts div,
	.about__facts div:first-child {
		min-height: 82px;
		padding-left: 0;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.about__facts div:last-child {
		border-bottom: 0;
	}

	#travel-world-map {
		height: 330px;
	}

	.travel-gallery__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.travel-gallery__grid {
		grid-template-columns: 1fr;
	}

	.gallery-item {
		aspect-ratio: 1.2 / 1;
		border-right: 0;
		border-bottom: 1px solid rgba(242, 237, 229, 0.24);
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		padding-block: 30px;
	}

	.site-footer__legal {
		order: initial;
	}

	.back-to-top {
		grid-row: auto;
		justify-self: start;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

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

	.book-story {
		--book-open: 1;
		--page-one: 0.76;
		--page-two: 0.42;
	}
}
