/*
Theme Name: Yogadass
Theme URI: https://yogadass.ch
Description: One-page theme for the YOGADASS Yogaraum. All content is edited through Advanced Custom Fields (ACF Pro).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: yogadass
License: GPL-2.0-or-later
*/

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */
:root {
	--background: oklch(0.975 0.008 80);
	--foreground: oklch(0.25 0.015 60);
	--card: oklch(0.955 0.012 78);
	--primary: oklch(0.48 0.07 45);
	--primary-foreground: oklch(0.975 0.008 80);
	--muted-foreground: oklch(0.5 0.02 60);
	--border: oklch(0.86 0.015 70);

	--font-display: "Cormorant Garamond", Georgia, serif;
	--font-sans: "Jost", system-ui, sans-serif;

	--gutter: 1.5rem;
	--container-wide: 72rem;
	--container-mid: 64rem;
	--container-narrow: 48rem;
	--ease-rise: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
	:root {
		--gutter: 3rem;
	}
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	border: 0 solid var(--border);
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
	margin: 0;
}

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

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

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

.screen-reader-text {
	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:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--background);
	color: var(--foreground);
}

/* -------------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container-wide);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--mid {
	max-width: var(--container-mid);
}

.container--narrow {
	max-width: var(--container-narrow);
}

.eyebrow {
	font-family: var(--font-sans);
	font-size: 0.7rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.section-title {
	margin-top: 1rem;
	font-size: 2.25rem;
	line-height: 1.1;
}

@media (min-width: 768px) {
	.section-title {
		font-size: 3rem;
		line-height: 1;
	}
}

@keyframes yd-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.animate-rise {
	animation: yd-rise 1.2s var(--ease-rise) both;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	color: var(--foreground);
}

.site-header--overlay {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 10;
	color: var(--primary-foreground);
}

.admin-bar .site-header--overlay {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (min-width: 768px) {
	.site-header {
		padding: 1.5rem 3rem;
	}
}

.site-header__brand {
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1.75rem;
	letter-spacing: 0.35em;
}

.site-nav {
	display: none;
	gap: 2rem;
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.site-nav {
		display: flex;
	}
}

.site-nav a {
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	opacity: 1;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 92vh;
	overflow: hidden;
	background-color: var(--foreground);
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		to top,
		color-mix(in oklab, var(--foreground) 80%, transparent),
		color-mix(in oklab, var(--foreground) 10%, transparent),
		color-mix(in oklab, var(--foreground) 50%, transparent)
	);
}

.hero__content {
	position: relative;
	padding-bottom: 5rem;
}

@media (min-width: 768px) {
	.hero__content {
		padding-bottom: 7rem;
	}
}

.hero__eyebrow {
	color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
}

.hero__title {
	margin-top: 1.5rem;
	max-width: 48rem;
	font-size: 3rem;
	line-height: 1.05;
	color: var(--primary-foreground);
}

@media (min-width: 768px) {
	.hero__title {
		font-size: 4.5rem;
	}
}

/* -------------------------------------------------------------------------
   Intro
   ------------------------------------------------------------------------- */
.intro {
	padding-block: 7rem;
	text-align: center;
}

@media (min-width: 768px) {
	.intro {
		padding-block: 9rem;
	}
}

.intro__text {
	margin-top: 2rem;
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.625;
}

@media (min-width: 768px) {
	.intro__text {
		font-size: 1.875rem;
	}
}

/* -------------------------------------------------------------------------
   Teachers
   ------------------------------------------------------------------------- */
.teachers {
	padding-bottom: 8rem;
}

.teacher {
	display: grid;
	align-items: center;
	gap: 3rem;
}

.teacher + .teacher {
	margin-top: 8rem;
}

@media (min-width: 768px) {
	.teacher {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5rem;
	}

	.teacher--reverse .teacher__media {
		order: 2;
	}

	.teacher--no-photo {
		grid-template-columns: minmax(0, 1fr);
		max-width: var(--container-narrow);
	}
}

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

.teacher__name {
	margin-top: 1rem;
	font-size: 3rem;
	line-height: 1;
}

.teacher__bio {
	margin-top: 1.5rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

.schedule {
	margin-top: 2.5rem;
	border-block-width: 1px;
}

.schedule__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.schedule__row + .schedule__row {
	border-top-width: 1px;
}

.schedule__day {
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

.schedule__time {
	color: var(--muted-foreground);
	text-align: right;
}

.teacher__note {
	margin-top: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-style: italic;
	color: var(--muted-foreground);
}

.teacher__contact {
	display: inline-block;
	margin-top: 2rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid var(--primary);
	font-size: 0.875rem;
	line-height: 1.25rem;
	letter-spacing: 0.025em;
	color: var(--primary);
	transition: opacity 0.2s ease;
}

.teacher__contact:hover,
.teacher__contact:focus-visible {
	opacity: 0.7;
}

/* -------------------------------------------------------------------------
   Prices
   ------------------------------------------------------------------------- */
.prices {
	padding-block: 7rem;
	background-color: var(--card);
	text-align: center;
}

.prices__grid {
	display: grid;
	gap: 1px;
	margin-top: 4rem;
	background-color: var(--border);
}

@media (min-width: 768px) {
	.prices__grid--cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.prices__grid--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.price {
	padding: 3rem 2rem;
	background-color: var(--card);
}

.price__amount {
	margin-top: 1rem;
	font-family: var(--font-display);
	font-size: 3.75rem;
	line-height: 1;
}

.price__description {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--muted-foreground);
}

.prices__note {
	max-width: 28rem;
	margin: 3rem auto 0;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
   Address
   ------------------------------------------------------------------------- */
.address {
	display: grid;
	gap: 3rem;
	padding-block: 7rem;
}

@media (min-width: 768px) {
	.address {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.address__text {
	line-height: 1.625;
	color: var(--muted-foreground);
}

.address__text > * + * {
	margin-top: 1.5rem;
}

.address__text a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
	padding: 2.5rem 1.5rem;
	border-top-width: 1px;
	text-align: center;
}

.site-footer__brand {
	font-family: var(--font-display);
	letter-spacing: 0.35em;
}

/* -------------------------------------------------------------------------
   Fallback (index.php)
   ------------------------------------------------------------------------- */
.page-content {
	padding-block: 5rem 7rem;
}

.page-content .entry + .entry {
	margin-top: 4rem;
}

.entry__title {
	font-size: 2.25rem;
	line-height: 1.1;
}

.entry__content {
	margin-top: 1.5rem;
}

.entry__content > * + * {
	margin-top: 1rem;
}

.entry__content a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}

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

	.animate-rise {
		animation: none;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
