:root {
	--black: #171001;
	--white: #f0ece2;
	--red: #DC2525;
	--orange: #FF8040;
	--purple-ish: #5800FF;
	--yellow-ish: #E9A319;
}

/* FOUC guard: hide anim targets until JS reveals or animates them */
html.js [class*="anim-"]:not(.revealed) {
  opacity: 0;
}

html {
	scroll-behavior: smooth;
}


body {
	font-family: "Mona Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wdth" 75;
	font-size: 16px;
	color: var(--white);
	background-color: #171001;
}


/* ----------- Predefined Classes / Start ----------- */

/*
<weight>: Use a value from 200 to 900
<width>: Use a value from 75 to 125
*/

.mona-sans {
	font-family: "Mona Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wdth" 75;
}

.playwrite-ca {
	font-family: "Playwrite CA", cursive;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

.flex-row {
	display: flex;
	flex-direction: row;
}

.flex-col {
	display: flex;
	flex-direction: column;
}


/* ----------- Predefined Classes / End ----------- */




/* ----------- General / Start ----------- */

::selection {
	background-color: var(--yellow-ish);
	color: var(--black);
}

a {
	color: var(--white);
	text-decoration: none;
}

.site {
    width: calc(100vw - 40px);
    margin: 0 auto;
    max-width: 100vw;
	/* height: 100vh; */

	&::before {
		content: "";
		position: fixed;
		width: 1px;
		height: 100%;
		z-index: -1;
		background-color: var(--white);
		left: 50%;
		top: 0;
		transform: translateX(-50%);
		opacity: 0.2;
	}
}

.site-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
	background-color: rgba(23, 16, 1, 0.5);
}

.structured-lines {
    position: absolute;
    width: calc(100% + 20px);
    height: 100%;
    z-index: -1;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.structured-lines::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: var(--white);
    opacity: 0.2;
    left: 0;
    top: 0;
}

.structured-lines::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: var(--white);
    opacity: 0.2;
    right: 0;
    top: 0;
}

.site-content {
    margin: 0;
}

.screen-reader-text {
	display: none;
}

.site-main {
	gap: 3rem;
	padding: 0;
}

.bg-dots {
    position: fixed;
    inset: 0;
    z-index: -1; /* ensure it sits behind page chrome */
    pointer-events: none;
    opacity: 0.35;
    /* CSS variables for customization */
    --dot-size: 24px;
    --dot-color: var(--yellow-ish);
    --bgx: 0px;
    --bgy: 0px;
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
    background-size: var(--dot-size) var(--dot-size);
    background-position: var(--bgx) var(--bgy);
}

/* ----------- General / End ----------- */


/* ----------- Modal / Start ----------- */
body.modal-open { overflow: hidden; padding-right: var(--sbw, 0); }

.post-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: 1fr;
    visibility: hidden;
}

.post-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
	backdrop-filter: blur(5px);
}

.post-modal__dialog {
    position: relative;
    z-index: 1;
    margin: 0 0 0 auto;
    width: 45vw;
    height: 100vh;
    max-height: 100vh;
    overflow: auto;
    background: hsl(40.91deg 91.67% 5.71%);
    border-radius: 0;
    box-shadow: -15px 0 60px rgba(0, 0, 0, 0.6);
    padding: 0;
    opacity: 0;
    transform: translateX(0);
    backdrop-filter: blur(8px);
}

.post-modal__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgb(233 163 25 / 70%);
    border: 0;
    color: rgb(23 16 1 / 49%);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    display: grid;
    place-items: center;
    backdrop-filter: blur(5px);
}

.post-modal[aria-hidden="false"] { visibility: visible; }

/* In-card loading spinner */
.post-card__media { position: relative; }
.post-card__spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(0,0,0,0.25);
}
.post-card__spinner::after {
  content: '';
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal content styles */
article.modal-post {
    gap: 2rem;
}

.modal-post__title {
    margin: 0;
    font-size: 2.8rem;
    letter-spacing: -1px;
}

.modal-post__media {
    margin: 0;
    height: 50vh;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
}

.modal-post__img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

header.modal-post__header {
    padding: 0 3rem;
}

.modal-post__meta {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 1.4rem;
}

.modal-post__meta-item { margin: 0; }

.modal-post__content {
	font-size: 1.2rem;
	line-height: 1.8;
	padding: 0 3rem;

	> * {
		margin: 0 0 1rem;
	}

	ul {
		list-style: disc;
		padding: 0 0 10px 50px;
	}

	ol {
		list-style: decimal;
		padding: 0 0 10px 50px;
	}

	blockquote {
		width: 100%;
		margin: 2rem auto 2rem !important;
		background: rgb(233 163 25 / 10%);
		padding: 8rem 2rem 2rem;
		border-radius: 24px;
		line-height: 1.9;
		font-size: 1.2rem;
		border: 1px solid rgb(233 163 25 / 20%);
		position: relative;

		&::before {
			content: '';
			background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0iI2ZmZmZmZiIgdmlld0JveD0iMCAwIDI1NiAyNTYiPjxwYXRoIGQ9Ik0xMDAsNTZINDBBMTYsMTYsMCwwLDAsMjQsNzJ2NjRhMTYsMTYsMCwwLDAsMTYsMTZoNjB2OGEzMiwzMiwwLDAsMS0zMiwzMiw4LDgsMCwwLDAsMCwxNiw0OC4wNSw0OC4wNSwwLDAsMCw0OC00OFY3MkExNiwxNiwwLDAsMCwxMDAsNTZabTAsODBINDBWNzJoNjBaTTIxNiw1NkgxNTZhMTYsMTYsMCwwLDAtMTYsMTZ2NjRhMTYsMTYsMCwwLDAsMTYsMTZoNjB2OGEzMiwzMiwwLDAsMS0zMiwzMiw4LDgsMCwwLDAsMCwxNiw0OC4wNSw0OC4wNSwwLDAsMCw0OC00OFY3MkExNiwxNiwwLDAsMCwyMTYsNTZabTAsODBIMTU2VjcyaDYwWiI+PC9wYXRoPjwvc3ZnPg==');
			position: absolute;
			top: 2rem;
			left: 2rem;
			width: 74px;
			height: 74px;
			background-size: 100%;
			background-repeat: no-repeat;
		}
	}

	.wp-caption {
		max-width: 100%;
		height: auto;

		img {
			max-width: 100%;
			height: auto;
			object-fit: cover;
			object-position: center;
		}
	}

	img {
		height: auto;
	}
}

/* ----------- Modal / End ----------- */


/* ----------- Header / Start ----------- */

.home {
	.site-header {
		height: 75px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		max-width: 1400px;
		width: 720px;
		margin: -120px auto 0;
		left: 50%;
		transform: translate(-50%, -200px); /* hidden by default and centered */
		transition: transform 0.4s ease;
		will-change: transform;
		box-sizing: border-box; /* include padding in width for accurate centering */
		position: sticky;
		top: 20px;
		background: rgb(0 0 0 / 80%);
		border-radius: 114px;
		backdrop-filter: blur(5px);
		padding: 0 30px;
		z-index: 100;
		transition: transform 0.8s linear(0, 0.402 7.4%, 0.711 15.3%, 0.929 23.7%, 1.008 28.2%, 1.067 33%, 1.099 36.9%, 1.12 41%, 1.13 45.4%, 1.13 50.1%, 1.111 58.5%, 1.019 83.2%, 1.004 91.3%, 1);
		box-shadow: 0 4px 45px -8px #000;

		&.header-scrolled {
			transform: translate(-50%, 0);
		}

		.site-title-tagline {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			gap: 0;


			h1 {
				font-size: 1.4rem;
				letter-spacing: -1px;
				font-weight: 900;
				font-variation-settings: "wdth" 100;
			}

			p.site-description {
				font-family: "Playwrite CA", cursive;
				font-weight: 400;
				font-style: normal;
				font-size: 0.8rem;
				word-spacing: 0px;
				color: var(--yellow-ish);
				line-height: 1;
				align-self: start;
				margin: 0 -10px 0 0;
				position: relative;
				top: -9px;
			}
		}

		#primary-menu {
			gap: 30px;

			li {
				a {
					display: grid;
					place-items: center;
					width: 24px;
					height: 24px;
					position: relative;

					&::before {
						content: '';
						width: 160%;
						height: 160%;
						background: var(--yellow-ish);
						border-radius: 100%;
						opacity: 0;
						position: absolute;
						transition: all 0.5s linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
						z-index: 1;
						top: 50%;
						left: 50%;
						transform: translate(-50%, -50%);
					}

					&:hover::before {
						opacity: 1;
					}

					img {
						margin: 0;
						width: 100%;
						height: 100%;
						position: relative;
						z-index: 2;
					}

					span {
						display: none;
					}
				}
			}
		}
	}
}

/* ----------- Header / End ----------- */






/* ----------- Hero / Start ----------- */

.hero {
    height: 80vh;
    display: flex;
    align-items: center;
	justify-content: flex-start;
}

.hero-inner {
    display: flex;
    align-items: start;
    gap: 5rem;
}

.hero-heading {
	align-items: center;
    gap: 0;
    width: 100%;
    justify-content: space-between;

	h2 {
		font-size: 2.2rem;
		letter-spacing: -2px;
		font-weight: 900;
	}

	p {
		font-family: "Playwrite CA", cursive;
		font-weight: 400;
		font-style: normal;
		font-size: 1.3rem;
		word-spacing: 0px;
		color: var(--yellow-ish);
		line-height: 1;
		align-self: start;
		margin: -18px -10px 0 0;
	}

	.hero-heading__right {
		ul {
			display: flex;
			gap: 2rem;

			a {
				display: grid;
				place-items: center;
				position: relative;

				&::before {
					content: '';
					width: 160%;
					height: 160%;
					background: var(--yellow-ish);
					border-radius: 100%;
					opacity: 0;
					position: absolute;
					transition: all 0.5s linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
					z-index: 1;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}

				&:hover::before {
					opacity: 1;
				}

				i {
					font-size: 1.8rem;
					position: relative;
					z-index: 2;
				}
			}
		}
	}
}

.hero-text {
	text-align: left;
    font-size: 1.2rem;
    gap: 0.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-cta a.btn {
    align-items: center;
    gap: 10px;
    border: 2px solid var(--white);
    padding: 12px 22px;
    border-radius: 114px;
    font-size: 1.1rem;
	transition: all 0.5s linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
	font-weight: 700;
	height: 55px;


	&:hover {
		border-color: var(--yellow-ish);
		color: var(--yellow-ish);
		gap: 20px;
	}

	i {
		font-size: 1.4rem;
	}
}

.thumbnails-stack {
    display: flex;
    align-items: center;

	.thumbnail {
		width: 55px;
		height: 55px;
		border-radius: 100%;
		overflow: hidden;
		border: 4px solid var(--black);

		&:not(:first-child) {
			margin-left: -1rem;
		}
	}
}

/* ----------- Hero / End ----------- */











/* ----------- Post Cards / Start ----------- */
.post-cards {
    padding: 3rem 0 3rem;
	height: fit-content;
}

.post-cards-inner {
    display: grid;
    gap: 3rem;
    grid-template: auto / 1fr 1fr 1fr;
}

.post-card {
    position: relative;
    overflow: visible;
    background: rgba(255,255,255,0.04);

	@media (hover: hover) {
		&:hover {
	
			.post-card__inner {
				transform: scale(1.05);
			}
	
			.post-card__overlay {
				opacity: 1;
				transform: translateY(0);
				
				.post-card__title {
					transform: translateY(0);
				}	
	
				.post-card__meta {
					transform: translateY(0);
				}
			}
		}
	}

}

.post-card__inner {
    position: relative;
	transition: all 0.7s linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
}

.post-card__link { display: block; }

.post-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.post-card__img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.post-card__placeholder {
    width: 100%;
    height: 650px;
    background: rgba(255,255,255,0.06);
}

.post-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
    opacity: 0;
    transform: translateY(0);
    justify-content: flex-end;
    gap: 5px;
    transition: all 0.8s linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
}

.post-card__title {
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--white);
    margin: 0;
    transform: translateY(300px);
    transition: all 1s linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
}

.post-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: rgb(255 255 255 / 60%);
    transform: translateY(300px);
    transition: all 1s linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1) 0.1s;
}

/* ----------- Post Cards / End ----------- */









.about-me {
    padding: 10rem 0;
}

.about-me-inner {
    gap: 4rem;
    align-items: center;
}

.about-me-heading {
    text-align: center;
	
	h2 {
		font-size: 2.5rem;
		letter-spacing: -1px;
	}

	span {
		font-size: 1.1rem;
		color: var(--yellow-ish);
	}
}


.about-me-content {
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.about-me-img {
    width: 200px;
    height: 200px;
    border-radius: 100%;
    overflow: hidden;
}

.about-me-text {
    width: 50%;
    gap: 1rem;
    font-size: 1.2rem;
}








.site-footer {
	height: 25vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;

	.hero-heading__right {
		ul {
			display: flex;
			gap: 2rem;

			a {
				display: grid;
				place-items: center;
				position: relative;

				&::before {
					content: '';
					width: 160%;
					height: 160%;
					background: var(--yellow-ish);
					border-radius: 100%;
					opacity: 0;
					position: absolute;
					transition: all 0.5s linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
					z-index: 1;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}

				&:hover::before {
					opacity: 1;
				}

				i {
					font-size: 1.8rem;
					position: relative;
					z-index: 2;
				}
			}
		}
	}
}

.site-info {
    display: flex;
    flex-direction: column;
    text-align: center;

	h4 {
		font-size: 1.5rem;
		letter-spacing: -1px;
		font-weight: 900;
	}

	p {
		font-family: "Playwrite CA", cursive;
		font-weight: 400;
		font-style: normal;
		font-size: 0.9rem;
		word-spacing: 0px;
		color: var(--yellow-ish);
		line-height: 1;
		align-self: start;
		margin: -7px -10px 0 0;
	}
}










@media (max-width: 899px) {

	.home {
		.site-header {
			width: calc(100vw - 40px); /* align with .site width for perfect centering */
			margin-left: auto;
			margin-right: auto;
			transform: translate(0, -200px);

			&.header-scrolled {
				transform: translate(0, 0);
			}

			.site-title-tagline {
				h1 {
					font-size: 1rem;
					letter-spacing: -1px;
					font-weight: 900;
					font-variation-settings: "wdth" 100;
				}

				p.site-description {
					font-family: "Playwrite CA", cursive;
					font-weight: 400;
					font-style: normal;
					font-size: 0.6rem;
					word-spacing: 0px;
					color: var(--yellow-ish);
					line-height: 1;
					align-self: start;
					margin: 0 -10px 0 0;
					position: relative;
					top: -5px;
				}
			}
		}
	}

	.hero {
		height: fit-content;
		margin: 4rem 0 0;
	}

	.hero-inner {
		display: flex;
		align-items: start;
		gap: 2rem;
	}

	.hero-heading {
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem;

		h2 {
			font-size: 1.6rem;
			letter-spacing: -2px;
			font-weight: 900;
		}

		p {
			font-family: "Playwrite CA", cursive;
			font-weight: 400;
			font-style: normal;
			font-size: 0.9rem;
			word-spacing: 0px;
			color: var(--yellow-ish);
			line-height: 1;
			align-self: start;
			margin: -7px -10px 0 0;
		}
	}

	.hero-heading__right {
		display: none;
	}

	.hero-text {
		font-size: 1rem;
		line-height: 1.3;
		font-weight: 500;
	}

	.hero-cta {
		display: flex;
		gap: 2rem;
		align-items: self-start;
		flex-direction: column;
	}

	.post-cards-inner {
		display: grid;
		gap: 1rem;
		grid-template: auto / 1fr 1fr;
	}

	.post-card__img {
		display: block;
		width: 100%;
		height: 250px;
		object-fit: cover;
	}

	.post-modal__dialog {
		width: 100vw;
		border-radius: 0;
		height: 95vh;
		bottom: 0;
		position: absolute;
	}

	header.modal-post__header {
		padding: 0 2rem;
	}

	.modal-post__title {
		margin: 0;
		font-size: 1.8rem;
		letter-spacing: -0.5px;
	}

	.modal-post__content {
		font-size: 1.1rem;
		line-height: 1.8;
		padding: 0 2rem;
	}

	.about-me-img {
		width: 150px;
		height: 150px;
		border-radius: 100%;
		overflow: hidden;
	}

	.about-me-text {
		width: 95%;
		gap: 1rem;
		font-size: 1.1rem;
	}
}