:root {
	color-scheme: dark;
	--background: #08090d;
	--surface: #111218;
	--surface-raised: #181a21;
	--text: #eeeae2;
	--muted: #9b9ca3;
	--border: #292b32;
	--accent: #d7a06d;
	--accent-bright: #f0c18f;
}

html {
	background: var(--background);
	overflow-x: clip;
}

body {
	background: var(--background);
	color: var(--text);
	font-family: "DM Sans", system-ui, sans-serif;
	min-height: 100vh;
	overflow-x: clip;
}

::selection {
	background: var(--accent);
	color: #160d07;
}

a {
	color: var(--accent);
	text-decoration-color: rgba(215, 160, 109, 0.45);
	text-underline-offset: 0.18em;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
	color: var(--accent-bright);
	text-decoration-color: currentColor;
}

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

hr {
	border-top-color: var(--border);
}

.hero-image {
	background-color: #050608;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
	isolation: isolate;
}

.hero-image::before {
	background: linear-gradient(180deg, rgba(5, 6, 8, 0.34), rgba(5, 6, 8, 0.68));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.hero-image > .container {
	position: relative;
	z-index: 2;
}

.hero-image > .photo-credit {
	z-index: 2;
}

.hero-image.home::before {
	background: linear-gradient(
		180deg,
		rgba(5, 6, 8, 0.04) 0%,
		rgba(5, 6, 8, 0.16) 42%,
		rgba(5, 6, 8, 0.05) 58%,
		rgba(5, 6, 8, 0.22) 100%
	);
}

.hero-image.home {
	box-sizing: border-box;
	height: 100svh;
	margin-bottom: 0;
	min-height: 650px;
	padding-bottom: 0;
}

.hero-image.home > .home-title {
	left: 50%;
	position: absolute;
	text-align: center;
	top: 18%;
	transform: translate(-50%, -50%);
	width: 100%;
	z-index: 2;
}

.type-landscape {
	height: 100%;
	inset: 0;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 48%, transparent 100%);
	-webkit-mask-position: 0 100%;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 100% 250%;
	mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 48%, transparent 100%);
	mask-position: 0 100%;
	mask-repeat: no-repeat;
	mask-size: 100% 250%;
	pointer-events: none;
	position: absolute;
	transition: -webkit-mask-position 1600ms cubic-bezier(0.33, 1, 0.68, 1), mask-position 1600ms cubic-bezier(0.33, 1, 0.68, 1);
	width: 100%;
	z-index: 0;
}

.hero-image.home.type-art-ready .type-landscape {
	-webkit-mask-position: 0 0;
	mask-position: 0 0;
}

.home-scroll {
	position: relative;
}

.home-posts {
	position: relative;
}

.home-post-art {
	align-items: center;
	background-position: center;
	background-size: cover;
	display: grid;
	isolation: isolate;
	justify-items: center;
	min-height: 78svh;
	padding: 6rem 2rem;
	position: relative;
}

.home-post-art::before {
	background:
		radial-gradient(
			ellipse 52% 72% at center,
			rgba(7, 8, 11, 0.7) 0%,
			rgba(7, 8, 11, 0.44) 46%,
			rgba(7, 8, 11, 0.12) 82%,
			transparent 100%
		),
		linear-gradient(180deg, rgba(7, 8, 11, 0.1), rgba(7, 8, 11, 0.34));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.post-type-art {
	height: 100%;
	inset: 0;
	-webkit-mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 48%, transparent 100%);
	-webkit-mask-position: 100% 0;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 250% 100%;
	mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 48%, transparent 100%);
	mask-position: 100% 0;
	mask-repeat: no-repeat;
	mask-size: 250% 100%;
	pointer-events: none;
	position: absolute;
	transition: -webkit-mask-position 1500ms cubic-bezier(0.33, 1, 0.68, 1), mask-position 1500ms cubic-bezier(0.33, 1, 0.68, 1);
	width: 100%;
	z-index: 0;
}

[data-type-art-container].type-art-ready .post-type-art {
	-webkit-mask-position: 0 0;
	mask-position: 0 0;
}

.article-hero .article-date {
	bottom: 8px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 1.1rem;
	margin: 0;
	position: absolute;
	right: 12px;
	z-index: 2;
}

.article-back-bar {
	margin-bottom: 1.5rem;
	padding-top: 20px;
	position: relative;
	z-index: 2;
}

.article-back {
	align-items: center;
	background: rgba(8, 9, 13, 0.54);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.88);
	display: inline-flex;
	font-size: 1.3rem;
	font-weight: 600;
	gap: 0.55rem;
	letter-spacing: 0.04em;
	padding: 0.65rem 1.15rem;
	text-decoration: none;
}

.article-back:hover,
.article-back:focus-visible {
	background: rgba(8, 9, 13, 0.78);
	border-color: var(--accent-bright);
	color: #fff;
}

.home-post-card {
	box-sizing: border-box;
	color: #fff;
	max-width: 760px;
	padding: clamp(2rem, 5vw, 4rem);
	text-decoration: none;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.72);
	width: min(90vw, 760px);
	z-index: 2;
}

.home-post-card time,
.home-post-card > span {
	color: var(--accent-bright);
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.home-post-card h2 {
	color: #fff;
	font-size: clamp(4rem, 8vw, 7.5rem);
	letter-spacing: -0.045em;
	line-height: 0.98;
	margin: 1.5rem 0 2rem;
}

.home-post-card p {
	color: rgba(255, 255, 255, 0.78);
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(1.7rem, 2.2vw, 2.1rem);
	font-weight: 400;
	line-height: 1.55;
	margin-bottom: 3rem;
}

.home-post-card:hover,
.home-post-card:focus-visible {
	color: #fff;
}

.home-post-card:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 10px;
}

.home-info {
	background: var(--background);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-info-section {
	background-position: center;
	background-size: cover;
	box-sizing: border-box;
	isolation: isolate;
	min-height: clamp(560px, 72svh, 780px);
	padding: clamp(6rem, 8vw, 9rem) 2rem;
	position: relative;
}

.home-info-section::before {
	background:
		radial-gradient(
			ellipse 68% 82% at center,
			rgba(7, 8, 11, 0.78) 0%,
			rgba(7, 8, 11, 0.63) 52%,
			rgba(7, 8, 11, 0.34) 100%
		),
		linear-gradient(180deg, rgba(7, 8, 11, 0.28), rgba(7, 8, 11, 0.56));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.home-info-inner {
	display: grid;
	gap: clamp(3rem, 7vw, 8rem);
	grid-template-columns: minmax(18rem, 0.38fr) minmax(0, 1fr);
	margin: 0 auto;
	max-width: 1100px;
	position: relative;
	z-index: 2;
}

.home-info-section + .home-info-section {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-info-section#about {
	min-height: 0;
	padding-block: clamp(4rem, 5vw, 5rem);
}

.home-info-header {
	align-self: start;
	position: sticky;
	top: 3rem;
}

.home-info-header p {
	color: var(--accent-bright);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0 0 1.2rem;
	text-transform: uppercase;
}

.home-info-header h2 {
	color: #fff;
	font-size: clamp(5rem, 8vw, 8rem);
	font-weight: 300;
	letter-spacing: -0.05em;
	line-height: 0.9;
	margin: 0;
}

.home-info-content {
	color: rgba(238, 234, 226, 0.84);
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(1.9rem, 2.1vw, 2.15rem);
	line-height: 1.75;
}

.home-info-content p {
	margin: 0 0 2.4rem;
}

.home-info-content h3 {
	color: #fff;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 4rem 0 1.4rem;
	text-transform: uppercase;
}

.home-info-content a {
	color: var(--accent-bright);
}

.home-info-content strong {
	color: var(--text);
	font-weight: 500;
}

.hero-image h1 {
	color: #fff;
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 400;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-image.home h1 {
	animation: none;
	font-weight: 300;
	letter-spacing: 0.065em;
	margin-bottom: 0.55rem;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 450ms ease, transform 600ms ease;
}

.hero-image.home .home-title p {
	color: rgba(255, 255, 255, 0.76);
	font-size: clamp(1.2rem, 1.4vw, 1.55rem);
	font-weight: 500;
	letter-spacing: 0.12em;
	margin: 0;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 450ms ease, transform 600ms ease;
}

.hero-image.home.type-art-ready h1 {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 1650ms;
}

.hero-image.home.type-art-ready .home-title p {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 1775ms;
}

.hero-image .photo-credit {
	color: rgba(255, 255, 255, 0.72);
}

.hero-image.home .photo-credit {
	bottom: 10px;
	margin: 0;
}

.hero-image.home .photo-credit a {
	color: inherit;
}

.primary-nav {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.primary-nav li a {
	color: rgba(255, 255, 255, 0.82);
	letter-spacing: 0.06em;
}

.primary-nav li a:hover,
.primary-nav li a:focus-visible,
.primary-nav li.selected a {
	color: #fff;
}

.content {
	color: var(--text);
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(1.95rem, 1.6vw, 2.15rem);
	letter-spacing: 0.002em;
	line-height: 1.78;
}

.content p,
.content li {
	color: #cbc7bf;
}

.content p {
	margin-bottom: 1.65em;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.content strong {
	color: #f4f0e8;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
	font-family: "DM Sans", system-ui, sans-serif;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin-top: 2.4em;
}

.content h2 {
	font-size: clamp(3rem, 4vw, 4.2rem);
}

.content h3 {
	font-size: clamp(2.4rem, 3vw, 3.2rem);
}

.content a {
	text-decoration-thickness: 1px;
}

.content code,
.content pre {
	background: var(--surface-raised);
	border-color: var(--border);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.content blockquote {
	border-left: 2px solid var(--accent);
	color: #d8d2c7;
	font-style: italic;
	margin-left: 0;
	padding-left: 1.5em;
}

.content img {
	border-radius: 3px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	margin: 1.5rem 0 2.5rem;
}

.home-intro {
	padding-bottom: 3rem;
}

.home-intro .lede {
	color: #dddcd7;
	font-size: clamp(2.2rem, 3.2vw, 3.4rem);
	font-weight: 300;
	letter-spacing: -0.025em;
	line-height: 1.45;
	max-width: 26em;
}

.text-link {
	font-weight: 600;
	text-decoration: none;
}

.posts-list {
	background: var(--background);
}

.posts-list li {
	border-bottom: 1px solid var(--background);
	margin-bottom: 0;
}

.posts-list li .list-link::before {
	background: rgba(5, 6, 8, 0.76);
}

.posts-list li .list-link:hover::before,
.posts-list li .list-link:focus-visible::before {
	background: rgba(5, 6, 8, 0.46);
}

.posts-list li .list-link:focus-visible {
	outline-offset: -4px;
}

.posts-list .description {
	color: rgba(255, 255, 255, 0.78);
}

.posts-list time {
	color: rgba(255, 255, 255, 0.64);
}

.sub-footer,
footer {
	color: var(--muted);
}

.sub-footer p {
	font-size: 1.5rem;
}

footer {
	margin-bottom: 3rem;
}

@media (max-width: 550px) {
	.hero-image.home {
		height: 100svh;
		min-height: 600px;
	}

	.hero-image.home > .home-title {
		top: 20%;
	}

	.hero-image {
		padding-bottom: 70px;
	}

	.primary-nav li a {
		font-size: 13px;
	}

	.home-intro .lede {
		font-size: 2.4rem;
	}

	.home-info-inner {
		grid-template-columns: 1fr;
	}

	.home-info-header {
		position: static;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
