/*
Theme Name: Tinitus Photographie
Theme URI: https://www.instagram.com/tinitus.photographie/
Author: Robert Marass
Description: Bildstarkes, vollständig über den Customizer bearbeitbares Portfolio-Theme für Tier-, Portrait- und Streetfotografie.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tinitus-photographie
*/

@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/cormorant-garamond-400.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/cormorant-garamond-500.ttf") format("truetype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/cormorant-garamond-italic-400.ttf") format("truetype");
	font-style: italic;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/cormorant-garamond-italic-500.ttf") format("truetype");
	font-style: italic;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Karla";
	src: url("assets/fonts/karla-400.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Karla";
	src: url("assets/fonts/karla-500.ttf") format("truetype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Karla";
	src: url("assets/fonts/karla-600.ttf") format("truetype");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

:root {
	--color-background: #171612;
	--color-surface: #24211c;
	--color-text: #f2eee6;
	--color-muted: #aaa196;
	--color-accent: #b98a58;
	--color-border: #4b4238;
	--font-display: "Cormorant Garamond", Georgia, serif;
	--font-body: "Karla", Arial, sans-serif;
	--header-height: 82px;
	--layout: min(1280px, calc(100vw - 96px));
	--ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

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

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

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

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

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: .98;
}

h1 em,
h2 em {
	color: var(--color-accent);
	font-weight: 400;
}

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

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

.screen-reader-text:focus {
	z-index: 10000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	margin: 0;
	clip: auto;
	background: var(--color-text);
	color: var(--color-background);
}

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

.site-header {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	border-bottom: 1px solid transparent;
	background: linear-gradient(to bottom, rgba(10, 9, 8, .68), rgba(10, 9, 8, .05));
	transition: height .35s var(--ease-out), background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

.site-header.is-scrolled {
	height: 68px;
	border-color: color-mix(in srgb, var(--color-border) 72%, transparent);
	background: color-mix(in srgb, var(--color-background) 88%, transparent);
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
}

.site-header__inner {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: space-between;
}

.brand {
	font-family: var(--font-display);
	font-size: 27px;
	font-weight: 500;
	letter-spacing: -.02em;
}

.brand span {
	color: var(--color-accent);
	font-style: italic;
}

.nav-list {
	display: flex;
	gap: clamp(22px, 3vw, 46px);
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	position: relative;
	display: block;
	padding: 8px 0;
	color: color-mix(in srgb, var(--color-text) 84%, transparent);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.nav-list a::after {
	position: absolute;
	bottom: 2px;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--color-accent);
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .4s var(--ease-out);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
	transform: scaleX(1);
	transform-origin: left;
}

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

.hero::before {
	position: absolute;
	z-index: -3;
	inset: -7%;
	background-image: var(--hero-image);
	background-position: center 48%;
	background-size: cover;
	content: "";
	filter: saturate(.88) contrast(1.03);
	transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.04);
	will-change: transform;
}

.hero__shade {
	position: absolute;
	z-index: -2;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 7, 6, .78) 0%, rgba(8, 7, 6, .4) 45%, rgba(8, 7, 6, .08) 80%),
		linear-gradient(0deg, rgba(8, 7, 6, .68) 0%, transparent 50%, rgba(8, 7, 6, .15) 100%);
}

.hero__content {
	padding-bottom: clamp(78px, 11vh, 130px);
}

.eyebrow {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 27px;
	color: var(--color-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .24em;
	line-height: 1.4;
}

.eyebrow::before {
	width: 39px;
	height: 1px;
	background: currentColor;
	content: "";
}

.hero h1 {
	max-width: 930px;
	margin-bottom: 27px;
	font-size: clamp(64px, 8.4vw, 128px);
	letter-spacing: -.048em;
}

.hero__text {
	max-width: 590px;
	margin-bottom: 38px;
	color: color-mix(in srgb, var(--color-text) 80%, transparent);
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.75;
}

.text-link {
	display: inline-flex;
	gap: 22px;
	align-items: center;
	padding: 11px 0;
	border-bottom: 1px solid var(--color-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2em;
	transition: gap .35s var(--ease-out), color .35s ease;
}

.text-link span {
	color: var(--color-accent);
	font-size: 18px;
}

.text-link:hover {
	gap: 32px;
	color: var(--color-accent);
}

.scroll-mark {
	position: absolute;
	right: clamp(26px, 5vw, 78px);
	bottom: 46px;
	display: grid;
	width: 28px;
	height: 48px;
	place-items: start center;
	border: 1px solid color-mix(in srgb, var(--color-text) 42%, transparent);
	border-radius: 30px;
}

.scroll-mark span {
	width: 3px;
	height: 8px;
	margin-top: 9px;
	border-radius: 9px;
	background: var(--color-accent);
	animation: scroll-dot 2.1s ease-in-out infinite;
}

@keyframes scroll-dot {
	0%, 100% { opacity: .25; transform: translateY(0); }
	50% { opacity: 1; transform: translateY(19px); }
}

.section {
	padding-block: clamp(100px, 13vw, 190px);
}

.section-heading--split {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
	gap: 70px;
	align-items: end;
	margin-bottom: 78px;
}

.section-heading h2,
.services-section h2,
.about-copy h2,
.contact-section h2 {
	margin-bottom: 0;
	font-size: clamp(50px, 6.2vw, 94px);
	letter-spacing: -.04em;
}

.section-heading--split > p {
	max-width: 470px;
	margin-bottom: 4px;
	color: var(--color-muted);
}

.portfolio-grid {
	display: grid;
	grid-auto-rows: minmax(250px, 24vw);
	grid-template-columns: repeat(12, 1fr);
	gap: 18px;
}

.portfolio-card {
	position: relative;
	min-height: 360px;
	background: var(--color-surface);
	isolation: isolate;
	overflow: hidden;
}

.portfolio-card--1 { grid-column: 1 / 6; grid-row: 1 / 3; }
.portfolio-card--2 { grid-column: 6 / 9; grid-row: 1; }
.portfolio-card--3 { grid-column: 9 / 13; grid-row: 1 / 3; }
.portfolio-card--4 { grid-column: 6 / 9; grid-row: 2; }
.portfolio-card--5 { grid-column: 1 / 13; grid-row: 3; min-height: 440px; }

.portfolio-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter .9s ease, transform 1.1s var(--ease-out);
}

.portfolio-card--1 img { object-position: center 36%; }
.portfolio-card--3 img { object-position: center 34%; }
.portfolio-card--5 img { object-position: center 58%; }

.portfolio-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 7, 6, .82), transparent 53%);
	transition: opacity .6s ease;
}

.portfolio-card__copy {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	padding: clamp(25px, 3vw, 44px);
	transition: transform .55s var(--ease-out);
}

.portfolio-card__copy p {
	margin-bottom: 6px;
	color: var(--color-accent);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .2em;
}

.portfolio-card__copy h3 {
	margin-bottom: 0;
	font-size: clamp(30px, 3vw, 46px);
}

.portfolio-card:hover img {
	filter: saturate(1.08) contrast(1.04);
	transform: scale(1.045);
}

.portfolio-card:hover .portfolio-card__copy {
	transform: translateY(-8px);
}

.services-section {
	border-top: 1px solid var(--color-border);
	background: var(--color-surface);
}

.services-section h2 {
	margin-bottom: clamp(60px, 8vw, 110px);
}

.services-list {
	border-top: 1px solid var(--color-border);
}

.service-row {
	position: relative;
	display: grid;
	grid-template-columns: 110px minmax(250px, .75fr) minmax(310px, 1fr);
	gap: 38px;
	align-items: start;
	padding-block: 50px;
	border-bottom: 1px solid var(--color-border);
	isolation: isolate;
}

.service-row::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: color-mix(in srgb, var(--color-accent) 6%, transparent);
	content: "";
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform .45s var(--ease-out);
}

.service-row:hover::before {
	transform: scaleY(1);
}

.service-row__number {
	padding-top: 10px;
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: 17px;
	font-style: italic;
}

.service-row h3 {
	margin-bottom: 0;
	font-size: clamp(38px, 4.2vw, 63px);
}

.service-row p {
	max-width: 570px;
	margin-bottom: 0;
	color: var(--color-muted);
}

.about-section {
	overflow: hidden;
}

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	gap: clamp(70px, 10vw, 150px);
	align-items: center;
}

.about-image {
	position: relative;
	margin-bottom: 0;
}

.about-image::before {
	position: absolute;
	z-index: -1;
	top: -30px;
	right: -30px;
	width: 55%;
	height: 45%;
	border-top: 1px solid var(--color-accent);
	border-right: 1px solid var(--color-accent);
	content: "";
}

.about-image img {
	width: 100%;
	aspect-ratio: .78;
	object-fit: cover;
	object-position: center;
	filter: saturate(.72) contrast(1.05);
}

.about-image figcaption {
	margin-top: 18px;
	color: var(--color-muted);
	font-size: 10px;
	letter-spacing: .22em;
	text-align: right;
}

.about-copy h2 {
	margin-bottom: 46px;
}

.about-copy > p:not(.eyebrow) {
	max-width: 630px;
	margin-bottom: 24px;
	color: var(--color-muted);
}

.about-copy blockquote {
	max-width: 580px;
	margin: 47px 0 0;
	padding: 0 0 0 29px;
	border-left: 1px solid var(--color-accent);
	color: var(--color-text);
	font-family: var(--font-display);
	font-size: clamp(25px, 2.6vw, 38px);
	font-style: italic;
	line-height: 1.28;
}

.contact-section {
	position: relative;
	border-top: 1px solid var(--color-border);
	background:
		radial-gradient(circle at 76% 30%, color-mix(in srgb, var(--color-accent) 9%, transparent), transparent 35%),
		var(--color-surface);
	overflow: hidden;
}

.contact-section::after {
	position: absolute;
	right: -5vw;
	top: 50%;
	color: color-mix(in srgb, var(--color-text) 2.7%, transparent);
	content: "RM";
	font-family: var(--font-display);
	font-size: min(46vw, 650px);
	font-style: italic;
	line-height: .6;
	pointer-events: none;
	transform: translateY(-50%);
}

.contact-section__inner {
	position: relative;
	z-index: 1;
}

.contact-section h2 {
	font-size: clamp(62px, 8.4vw, 128px);
}

.contact-section__text {
	max-width: 600px;
	margin: 40px 0 44px;
	color: var(--color-muted);
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.button {
	display: inline-flex;
	min-width: 174px;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 23px;
	border: 1px solid var(--color-border);
	background: transparent;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s var(--ease-out);
}

.button--accent {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-background);
}

a.button:hover {
	border-color: var(--color-accent);
	background: var(--color-text);
	color: var(--color-background);
	transform: translateY(-3px);
}

.button.is-disabled {
	cursor: not-allowed;
	opacity: .45;
}

.contact-note {
	margin: 22px 0 0;
	color: var(--color-muted);
	font-size: 12px;
}

.site-footer {
	padding-block: 50px;
	border-top: 1px solid var(--color-border);
}

.site-footer__inner {
	display: flex;
	gap: 50px;
	align-items: flex-end;
	justify-content: space-between;
}

.brand--footer {
	display: inline-block;
	margin-bottom: 6px;
}

.site-footer p {
	margin-bottom: 0;
	color: var(--color-muted);
	font-size: 9px;
	letter-spacing: .2em;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	justify-content: flex-end;
	font-size: 11px;
	letter-spacing: .08em;
}

.footer-links a {
	color: var(--color-muted);
	transition: color .3s ease;
}

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

.content-page {
	min-height: 70vh;
	padding-block: calc(var(--header-height) + 80px) 110px;
}

.content-page h1 {
	font-size: clamp(50px, 7vw, 90px);
}

.entry-content {
	max-width: 820px;
	color: var(--color-muted);
}

/* Elements become animated only after JavaScript explicitly prepares them. */
.js .will-reveal {
	opacity: 0;
	transform: translate3d(0, 46px, 0);
	transition: opacity .95s ease, transform 1.05s var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}

.js .will-reveal.reveal-from-left {
	transform: translate3d(-48px, 0, 0);
}

.js .will-reveal.reveal-from-right {
	transform: translate3d(48px, 0, 0);
}

.js .will-reveal.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.hero .eyebrow,
.hero h1,
.hero__text,
.hero .text-link {
	opacity: 0;
	animation: hero-enter .9s var(--ease-out) forwards;
}

.hero h1 { animation-delay: .15s; }
.hero__text { animation-delay: .3s; }
.hero .text-link { animation-delay: .43s; }

@keyframes hero-enter {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
	:root { --layout: min(100% - 56px, 1280px); }
	.portfolio-grid { grid-auto-rows: minmax(300px, 39vw); }
	.portfolio-card--1 { grid-column: 1 / 7; }
	.portfolio-card--2 { grid-column: 7 / 13; }
	.portfolio-card--3 { grid-column: 7 / 13; grid-row: 2 / 4; }
	.portfolio-card--4 { grid-column: 1 / 7; grid-row: 3; }
	.portfolio-card--5 { grid-column: 1 / 13; grid-row: 4; }
	.service-row { grid-template-columns: 65px minmax(220px, .7fr) 1fr; }
	.about-grid { gap: 70px; }
}

@media (max-width: 780px) {
	:root {
		--header-height: 69px;
		--layout: calc(100% - 40px);
	}
	body { font-size: 16px; }
	.main-navigation { display: none; }
	.brand { font-size: 24px; }
	.hero { min-height: 820px; }
	.hero::before { background-position: 62% center; }
	.hero__shade {
		background:
			linear-gradient(90deg, rgba(8, 7, 6, .68), rgba(8, 7, 6, .12)),
			linear-gradient(0deg, rgba(8, 7, 6, .84), transparent 65%);
	}
	.hero__content { padding-bottom: 80px; }
	.hero h1 { font-size: clamp(57px, 17vw, 90px); }
	.hero h1 em {
		display: block;
		max-width: 100%;
		overflow-wrap: normal;
	}
	.hero__text { width: 100%; }
	.scroll-mark { display: none; }
	.section { padding-block: 100px; }
	.section-heading--split { grid-template-columns: 1fr; gap: 31px; margin-bottom: 52px; }
	.section-heading--split > p { max-width: 590px; }
	.portfolio-grid { display: grid; grid-auto-rows: auto; grid-template-columns: 1fr; gap: 14px; }
	.portfolio-card,
	.portfolio-card--1,
	.portfolio-card--2,
	.portfolio-card--3,
	.portfolio-card--4,
	.portfolio-card--5 {
		grid-column: 1;
		grid-row: auto;
		min-height: 0;
		aspect-ratio: 1 / 1.08;
	}
	.portfolio-card--2,
	.portfolio-card--4,
	.portfolio-card--5 { aspect-ratio: 1.25 / 1; }
	.services-section h2 { margin-bottom: 55px; }
	.service-row { grid-template-columns: 45px 1fr; gap: 12px 19px; padding-block: 40px; }
	.service-row__number { grid-row: 1 / 3; }
	.service-row p { grid-column: 2; }
	.about-grid { grid-template-columns: 1fr; gap: 76px; }
	.about-image { width: calc(100% - 23px); }
	.about-copy h2 { margin-bottom: 36px; }
	.contact-section h2 { font-size: clamp(59px, 18vw, 100px); }
	.site-footer__inner { align-items: flex-start; flex-direction: column; }
	.footer-links { justify-content: flex-start; }
}

@media (max-width: 430px) {
	:root { --layout: calc(100% - 30px); }
	.hero { min-height: 730px; }
	.hero h1 { font-size: clamp(48px, 13.4vw, 58px); }
	.eyebrow { letter-spacing: .17em; }
	.section-heading h2,
	.services-section h2,
	.about-copy h2 { font-size: 48px; }
	.service-row { grid-template-columns: 34px 1fr; }
	.service-row h3 { font-size: 36px; }
	.button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
	.js .will-reveal {
		opacity: 1;
		transform: none;
	}
}
