:root {
	--sp-ink: #172126;
	--sp-deep: #24484f;
	--sp-sage: #7aa095;
	--sp-clay: #b66d4f;
	--sp-gold: #d7a75f;
	--sp-lavender: #7b7fa6;
	--sp-paper: #faf8f3;
	--sp-line: #d8ddd5;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--sp-ink);
	color: var(--sp-ink);
}

body,
input,
select,
textarea {
	font-family: Merriweather, Georgia, serif;
	line-height: 2.1;
}

h1,
h2,
h3,
h4,
h5,
h6,
#nav ul.links,
#header .logo,
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	letter-spacing: 0;
	text-transform: none;
}

p {
	text-align: left;
}

a {
	color: var(--sp-deep);
}

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	border-radius: 999px;
	font-size: 0.85rem;
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
	background-color: var(--sp-clay);
	color: #ffffff !important;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover {
	background-color: var(--sp-deep);
}

#wrapper > .bg {
	background-color: var(--sp-ink);
	background-image:
		url("../../images/overlay.png"),
		linear-gradient(180deg, rgba(23, 33, 38, 0.3), rgba(23, 33, 38, 0.04) 48%, rgba(23, 33, 38, 0.48)),
		url("../../images/hero-meditation.jpg");
	background-position: center, center, top center;
	background-size: auto, cover, 100% auto;
}

#intro {
	justify-content: center;
	min-height: 88vh;
	padding: 6rem 3rem 10rem 3rem;
	text-shadow: 0 0.15rem 1.3rem rgba(0, 0, 0, 0.36);
}

#intro.hidden {
	opacity: 1;
	pointer-events: auto;
	transform: none;
	visibility: visible;
}

#intro h1 {
	font-size: 5.8rem;
	line-height: 0.95;
	margin: 0 0 1.35rem 0;
}

#intro p {
	font-style: normal;
}

.intro-kicker {
	color: #f3d8ac;
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 0.95rem !important;
	font-weight: 900;
	margin: 0 0 0.8rem 0 !important;
	text-transform: uppercase;
}

.intro-copy {
	font-size: 1.18rem !important;
	margin: 0 auto 1.4rem auto !important;
	max-width: 42rem;
	text-align: center !important;
}

.intro-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: center;
	margin: 0 0 1.35rem 0;
}

.intro-metrics span {
	align-items: baseline;
	background: rgba(250, 248, 243, 0.12);
	border: 1px solid rgba(250, 248, 243, 0.28);
	border-radius: 999px;
	display: inline-flex;
	gap: 0.4rem;
	padding: 0.25rem 0.85rem;
}

.intro-metrics strong {
	color: #f3d8ac !important;
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 1.05rem;
}

.hero-practice {
	align-items: center;
	border: 1px solid rgba(250, 248, 243, 0.36);
	border-radius: 999px;
	display: inline-flex;
	gap: 0.75rem;
	margin-bottom: 1.35rem;
	padding: 0.45rem 1rem;
}

.hero-practice__label {
	color: #f3d8ac;
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
}

#heroBreathCue {
	font-size: 0.95rem;
}

.intro-actions {
	margin-top: 0;
}

#intro + #header {
	margin-top: -15rem;
}

#header {
	height: 15rem;
	padding-bottom: 6rem;
}

#header .logo {
	border-width: 2px !important;
	border-radius: 999px;
	font-size: 1.45rem;
	padding: 0.75rem 1.35rem;
}

#nav {
	backdrop-filter: blur(18px);
	background: rgba(23, 33, 38, 0.62);
	border-radius: 1.2rem 1.2rem 0 0;
	box-shadow: inset 0 1px 0 rgba(250, 248, 243, 0.14), inset 1px 0 0 rgba(250, 248, 243, 0.14), inset -1px 0 0 rgba(250, 248, 243, 0.14);
}

#nav ul.links li.active {
	background-color: var(--sp-paper);
}

#nav ul.links li:first-child.active,
#nav ul.links li:first-child.active a {
	border-top-left-radius: 1.2rem;
}

#nav ul.links li.active a {
	color: var(--sp-ink);
}

#nav ul.links li a {
	font-size: 0.75rem;
	padding: 0 1.25rem;
}

#main {
	background: var(--sp-paper);
	box-shadow: 0 2rem 6rem rgba(7, 15, 18, 0.22);
}

#main > * {
	border-color: var(--sp-line);
}

#main > .post header.major > h1,
#main > .post header.major h2,
#main .major h2 {
	color: var(--sp-ink);
	font-size: 3.2rem;
	line-height: 1;
	margin-bottom: 1.2rem;
}

#main header.major .date {
	color: var(--sp-clay);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-weight: 900;
	text-transform: uppercase;
}

#main header.major .date:before,
#main header.major .date:after {
	display: none;
}

#main > .post.featured {
	padding-bottom: 4rem;
}

.image.main,
.image.fit {
	border-radius: 0.45rem;
	overflow: hidden;
}

.image.main img,
.image.fit img {
	display: block;
	filter: saturate(0.96) contrast(1.02);
	transition: transform 0.65s ease, filter 0.65s ease;
}

a.image:hover img {
	filter: saturate(1.06) contrast(1.04);
	transform: scale(1.025);
}

.today-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 2rem 0;
	text-align: left;
}

.today-grid section {
	border-left: 3px solid var(--sp-sage);
	padding: 0 0 0 1rem;
}

.today-grid h3,
.rhythm-grid h3 {
	color: var(--sp-deep);
	font-size: 1rem;
	margin-bottom: 0.4rem;
}

.today-grid p,
.rhythm-grid p,
.practice-notes {
	color: #4e5c5d;
	font-size: 0.9rem;
	line-height: 1.8;
	margin-bottom: 0;
}

.practice-section {
	background: #ffffff;
}

.practice-console {
	align-items: stretch;
	background: linear-gradient(135deg, #ffffff 0%, #f3f7f2 100%);
	border: 1px solid var(--sp-line);
	border-radius: 0.5rem;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
	padding: 2rem;
}

.breath-stage {
	align-items: center;
	display: grid;
	gap: 1.7rem;
	grid-template-columns: 14rem minmax(0, 1fr);
	min-height: 15rem;
}

.breath-orb {
	align-items: center;
	aspect-ratio: 1;
	background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.92), rgba(122, 160, 149, 0.28) 34%, rgba(36, 72, 79, 0.86) 100%);
	border: 1px solid rgba(36, 72, 79, 0.22);
	border-radius: 50%;
	box-shadow: 0 1rem 3rem rgba(36, 72, 79, 0.24);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 14rem;
	min-width: 10rem;
	transform: scale(0.9);
	transition: transform 1s ease, background 0.8s ease;
	width: 100%;
}

.breath-orb.is-inhale {
	transform: scale(1);
}

.breath-orb.is-hold {
	background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.92), rgba(215, 167, 95, 0.32) 34%, rgba(36, 72, 79, 0.9) 100%);
	transform: scale(1.04);
}

.breath-orb.is-exhale {
	background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.88), rgba(123, 127, 166, 0.28) 34%, rgba(23, 33, 38, 0.9) 100%);
	transform: scale(0.82);
}

.breath-orb span {
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 1.1rem;
	font-weight: 900;
}

.breath-orb strong {
	color: #ffffff;
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 3rem;
	line-height: 1;
}

.session-label {
	color: var(--sp-clay);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 0.95rem;
	font-weight: 900;
	margin: 0 0 0.35rem 0;
	text-transform: uppercase;
}

.session-cue {
	color: var(--sp-ink);
	font-size: 1.2rem;
	line-height: 1.7;
	margin-bottom: 0.65rem;
}

.session-time {
	color: var(--sp-deep);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 2.4rem;
	font-weight: 900;
	line-height: 1;
	margin: 0;
}

.practice-controls {
	align-self: center;
}

.segmented-control {
	background: #edf1ec;
	border: 1px solid var(--sp-line);
	border-radius: 999px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-bottom: 1.2rem;
	padding: 0.25rem;
}

.segmented-control button {
	box-shadow: none;
	color: var(--sp-deep) !important;
	height: 2.6rem;
	line-height: 2.6rem;
	padding: 0 0.7rem;
}

.segmented-control button.is-active {
	background: var(--sp-deep);
	color: #ffffff !important;
}

.practice-controls .actions {
	margin-bottom: 1.1rem;
}

.practice-notes {
	list-style: none;
	padding-left: 0;
}

.practice-notes li {
	border-top: 1px solid var(--sp-line);
	padding: 0.55rem 0;
}

#main > .posts > article {
	background: #ffffff;
	border-color: var(--sp-line);
}

#main > .posts > article .date {
	color: var(--sp-lavender);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-weight: 900;
	text-transform: uppercase;
}

#main > .posts > article h2 {
	color: var(--sp-ink);
}

#main > .posts > article p {
	color: #4e5c5d;
	font-size: 0.92rem;
	line-height: 1.85;
}

.studio-rhythm {
	background: var(--sp-deep);
	color: #ffffff;
}

.studio-rhythm h2,
.studio-rhythm h3,
.studio-rhythm p,
.studio-rhythm .date {
	color: #ffffff !important;
}

.studio-rhythm header.major .date:before,
.studio-rhythm header.major .date:after {
	border-top-color: rgba(255, 255, 255, 0.25) !important;
}

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

.rhythm-grid > div {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	padding-top: 1.4rem;
}

.rhythm-number {
	color: #f3d8ac;
	display: block;
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 0.9rem;
	font-weight: 900;
	margin-bottom: 0.8rem;
}

#footer {
	background-color: #eef1ec;
	color: #546060;
}

#footer h3,
#footer label {
	color: var(--sp-deep);
}

#footer a {
	overflow-wrap: anywhere;
}

#footer input[type="submit"],
#footer input[type="reset"],
#footer input[type="button"],
#footer button,
#footer .button {
	box-shadow: inset 0 0 0 2px var(--sp-deep);
	color: var(--sp-deep) !important;
}

#footer input[type="submit"] {
	background-color: var(--sp-deep);
	box-shadow: none;
	color: #ffffff !important;
}

#footer input[type="submit"]:hover {
	background-color: var(--sp-clay);
}

.form-status {
	color: var(--sp-deep);
	font-size: 0.85rem !important;
	font-style: italic;
	min-height: 1.6rem;
}

#copyright {
	color: rgba(255, 255, 255, 0.58);
}

#navPanelToggle {
	border-radius: 999px;
}

@media screen and (max-width: 980px) {
	#intro {
		min-height: 84vh;
		padding: 5rem 2rem 7rem 2rem;
	}

	#intro h1 {
		font-size: 4.4rem;
	}

	#intro + #header {
		margin-top: -11rem;
	}

	#header {
		height: 11rem;
		padding-bottom: 4rem;
	}

	.practice-console,
	.breath-stage {
		grid-template-columns: 1fr;
	}

	.breath-orb {
		justify-self: center;
	}

	.today-grid,
	.rhythm-grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 736px) {
	#intro {
		min-height: 82vh;
		padding: 4.5rem 1.35rem 5.5rem 1.35rem;
	}

	#intro h1 {
		font-size: 3.35rem;
	}

	.intro-copy {
		font-size: 1rem !important;
	}

	.intro-metrics {
		display: none;
	}

	.hero-practice {
		max-width: 100%;
	}

	#intro .actions {
		align-items: center;
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	#intro .actions li {
		margin: 0.35rem 0 0 0;
		padding-left: 0;
		width: min(18rem, 100%);
	}

	#intro .actions .button {
		width: 100%;
	}

	#main > .post header.major > h1,
	#main > .post header.major h2,
	#main .major h2 {
		font-size: 2.25rem;
	}

	.practice-console {
		padding: 1.25rem;
	}

	.breath-stage {
		min-height: 0;
	}

	.session-cue {
		font-size: 1rem;
	}

	.segmented-control {
		border-radius: 0.45rem;
	}

	.segmented-control button {
		font-size: 0.75rem;
		padding: 0 0.35rem;
	}
}

@media screen and (max-width: 480px) {
	#intro h1 {
		font-size: 3rem;
	}

	#main,
	#footer {
		width: 100%;
	}

	.today-grid section {
		padding-left: 0.8rem;
	}

	.practice-controls .actions li {
		width: 100%;
	}

	.practice-controls .actions .button,
	.practice-controls .actions button {
		width: 100%;
	}
}
