/* @import url('https://fonts.googleapis.com/css2?family=Gabriela&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Kurale&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Medula+One&display=swap'); */
/* nicolette */
@import url("https://use.typekit.net/zqy2kbo.css");

/* @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
	/* vars updated by script */
	--bg-scroll-top: 0;
	--bg-scroll-pct: 0;

	/* fonts */
	--font-family-text: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	/* --font-family-fancy: 'Kurale', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
	/* --font-family-fancy: 'Medula One', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
	/* --font-family-fancy: 'Gabriela', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
	/* --font-family-fancy: 'coquette', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
	/* --font-family-fancy: 'urbana', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
	--font-family-fancy: 'mon-nicolette-variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	
	/* light mode colors */
	--body-text-color: hsla(155, 5%, 17%, 0.85);
	--body-text-color-dark: hsla(195, 25%, 65%, 0.85);

	--nav-bar-text-color: hsl(155, 5%, 17%);
	--nav-bar-text-color-dark: hsl(155, 5%, 75%);

	--nav-bar-bg-color: #dbe6dd;
	--nav-bar-bg-color-dark: hsl(224, 27%, 25%);

	--nav-bar-active-cat-bg-color: #fffa;
	--nav-bar-active-cat-bg-color-dark: #223a;

	--bg-gradient-color-top: hsl(213, 100%, 70%);
	--bg-gradient-color-top-dark: hsl(213, 100%, 20%);
	
	--bg-gradient-color-bottom: hsl(114, 52%, 40%);
	--bg-gradient-color-bottom-dark: hsl(114, 52%, 15%);

	/* (light mode) transluscent card */
	--transluscent-card-bg-color: hsla(165, 5%, 80%, 0.15);
	--transluscent-card-bg-color-dark: hsla(160, 52%, 70%, 0.05);

	--transluscent-card-border-color: hsla(165, 5%, 80%, 0.25);
	--transluscent-card-border-color-dark: hsla(160, 52%, 70%, 0.15);

	/* (light mode) uncategorized */
	--glint-anim-fx-color: hsl(0, 0%, 100%);
	--glint-anim-fx-color-dark: hsl(214, 100%, 89%);

	--debug-dark-mode-indicator-color: white;
	--debug-dark-mode-indicator-color-dark: black;

	/* uncategorized */
	--first-section-top-margin: 12rem;
}

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

* {
	margin: 0;
	padding: 0;
	/* font: inherit; */
}

/* respect user preference scheme */
html {
	/* hanging-punctuation: first last; */
	color-scheme: light dark;
	/* interpolate-size: allow-keywords; */
}

body {
	min-height: 100svh;
	font-family: var(--font-family-text);
	color: var(--body-text-color);
	user-select: none;
}

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

a:visited {
	color: inherit;
}

/* prevent unbalanced header text */
h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/* prevent unreadable text sections */
p,
li,
figcaption {
	max-width: 66ch;
	text-wrap: pretty;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
}

/* background scroll */
.bg-scroll {
	--swirl-opacity: 0.25;

	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
}

.bg-scroll > div.content {
	content: "";
	width: 100%;
	height: 200vh;
	position: absolute;
	top: calc(-1% * var(--bg-scroll-pct));
	left: 0;
	filter: blur(50px);
	background: linear-gradient(to bottom, var(--bg-gradient-color-top), var(--bg-gradient-color-bottom));
}

/* background swirls & twirls */
.bg-scroll > div.content > div.swirl,
.bg-scroll > div.content > div.twirl {
	aspect-ratio: 1;
	position: absolute;

	& > * {
		width: 50%;
		height: 50%;
		position: absolute;
		/* border: 1px solid red; */
	}
}

/* upper left corner swirl */
.bg-scroll > div.content > div.swirl {
	--falloff: 70%;

	width: 100%;
	animation: swirl-rotate 45s linear infinite;
	opacity: var(--swirl-opacity);
	
	& > *:nth-child(1) {
		background: radial-gradient(ellipse at center, hsl(146, 88%, 81%), transparent var(--falloff), transparent);
	}

	& > *:nth-child(2) {
		left: 50%;
		background: radial-gradient(ellipse at center, hsl(37, 99%, 58%), transparent var(--falloff), transparent);
	}

	& > *:nth-child(3) {
		top: 50%;
		background: radial-gradient(ellipse at center, hsl(226, 98%, 65%), transparent var(--falloff), transparent);
	}

	& > *:nth-child(4) {
		left: 50%;
		top: 50%;
		background: radial-gradient(ellipse at center, hsl(321, 97%, 66%), transparent var(--falloff), transparent);
	}
}

@keyframes swirl-rotate {
	from {
		transform: translate(-25%, -50%) rotateZ(0deg);
	}
	to {
		transform: translate(-25%, -50%) rotateZ(360deg);
	}
}

/* right side twirl */
.bg-scroll > div.content > div.twirl {
	--falloff: 70%;

	width: 150%;
	animation: twirl-rotate 60s linear infinite;
	opacity: var(--swirl-opacity);

	& > *:nth-child(1) {
		background: radial-gradient(ellipse at center, hsl(146, 88%, 81%), transparent var(--falloff), transparent);
	}

	& > *:nth-child(2) {
		left: 50%;
		background: radial-gradient(ellipse at center, hsl(37, 99%, 58%), transparent var(--falloff), transparent);
	}

	& > *:nth-child(3) {
		top: 50%;
		background: radial-gradient(ellipse at center, hsl(226, 98%, 65%), transparent var(--falloff), transparent);
	}

	& > *:nth-child(4) {
		left: 50%;
		top: 50%;
		background: radial-gradient(ellipse at center, hsl(321, 97%, 66%), transparent var(--falloff), transparent);
	}
}

@keyframes twirl-rotate {
	from {
		transform: translate(15%, -25%) rotateZ(0deg);
	}
	to {
		transform: translate(15%, -25%) rotateZ(360deg);
	}
}

/* main */
main.content {
	margin-inline: auto;
	margin-block-end: 8rem;
	padding-inline: 1.5rem;
	width: 100%;
	display: flex;
	flex-direction: column;
	color: var(--body-text-color);
}

main > section:first-of-type {
	margin-block-start: var(--first-section-top-margin);
}

/* header */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	/* border: 1px dotted orange; */
}

/* footer */
footer {
	margin-block-start: 8rem;
	margin-inline: auto;
	width: 75%;
	display: grid;
	grid-template-columns: 70fr 30fr;
	font-size: clamp(0.875rem, 0.8rem + 0.33vw, 1.25rem);
	/* border: 1px dashed palegreen; */
}

.footer-lists {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.footer-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	/* this right-aligns the footer lists and it looks kinda cool */
	/* align-items: flex-end; */
	list-style: none;
}

.footer-list > li:first-child {
	font-weight: 600;
}

/* navbar */
.navbar {
	--nav-block-padding: 0.5rem;
	--full-opacity-height: 200;

	margin: 1.25rem auto 0;
	padding: 0.625rem 0.825rem;
	width: fit-content;
	display: flex;
	flex-direction: row;
	justify-content: center;
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--nav-bar-text-color);
	position: relative;
}

.navbar::before {
	content: "";
	/* width: 100%; */
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
	border-radius: 50vh;
	background-color: var(--nav-bar-bg-color);
	opacity: clamp(0.0, calc(var(--bg-scroll-top) / var(--full-opacity-height)), 0.95);
}

.navbar > * {
	/* border: 1px dashed salmon; */
}

.nav-cat {
	padding: 0.375rem 1rem;
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 0.5rem;

	&.active {
		background-color: var(--nav-bar-active-cat-bg-color);
		border-radius: 50vh;
	}
}

/* main section */
section {
	/* border: 1px dashed #777; */
}

/* hero */
.hero {
	width: 80%;
	margin-inline: auto;
	margin-block-end: 4rem;
	display: flex;
	flex-direction: column;
	align-items: center;

	/* border: 1px dashed cyan; */
}

.hero > .heavy {
	font-family: var(--font-family-fancy);
	font-size: clamp(3rem, 7.5vw, 6.125rem);
	font-variation-settings: 'opsz' 12, 'wght' 800;
}

.hero > .heavy > span.gr1 {
	--glint-pos: 40%;
	--glint-half-width: 4%;

	/* background-color: var(--body-text-color); */
	/* background-image: linear-gradient(-225deg,
		var(--body-text-color) 0%,
		var(--body-text-color) calc(var(--glint-pos) - var(--glint-half-width) - 10%),
		var(--glint-anim-fx-color) var(--glint-pos),
		var(--body-text-color) calc(var(--glint-pos) + var(--glint-half-width)),
		var(--body-text-color) 100%
		);
	background-clip: text;
	color: transparent; */
}

.hero > .heavy:nth-child(2) {
	margin-block-start: -1rem;
}

.card > .subtitle,
.hero > .subtitle {
	margin-block-start: 2rem;
	width: 70%;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
	letter-spacing: 1px;
	text-align: center;
}

/* card component behavior/appearance */
.card.transluscent {
	background: var(--transluscent-card-bg-color);
	backdrop-filter: blur(10px) saturate(1.3);
	border: 1px solid var(--transluscent-card-border-color);
	border-radius: 1rem;
}

/* portfolio pages */
.port-card-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;

	/* border: 1px dotted red; */
}

.port-card {
	padding: 2rem;
	width: 80%;
	min-height: 20rem;
	font-family: var(--font-family-text);
	transition: all 200ms ease-in-out;
	cursor: pointer;
}

.port-card:nth-child(even) {
	align-self: flex-end;
}

.port-card:hover {
	transform: translate3d(0, -4px, 0);
	filter: saturate(1.1);
}

.port-card > h3 {
	margin-block-end: 1rem;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
	font-weight: 400;
}

.port-card > p {
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.375rem);
	font-weight: 300;
}

/* sketches page */
.sketch-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;

	/* border: 1px dotted red; */
}

.sketch-card {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sketch-card > h4 {
	font-size: clamp(1.25rem, 0.9rem + 0.4vw, 1.75rem);
	font-weight: 400;
	line-height: 1.05;
}

.sketch-card > p {
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.375rem);
	font-weight: 300;
	line-height: 1.1;
}

.sketch-card > div.canvas {
	margin-block-start: 2rem;
	width: 80%;
	aspect-ratio: 1;
	align-self: center;

	/* border: 1px dashed plum; */
}

/* soon card */
.soon-card {
	min-height: 600px;
	padding-block: 8rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 2rem;
}

.soon-card h2 {
	font-size: 3rem;
	font-weight: 500;
}

.soon-card p {
	max-width: 40%;
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.375rem);
}

/* responsiveness */
/* all larger than tablet */
@media	screen and (orientation: portrait) and (width > 1040px),
		screen and (orientation: landscape) and (height > 1040px) {

	main.content {
		width: 90rem;
		padding-inline: 0;
	}
	
}

/* all non-phones */
@media	screen and ((orientation: portrait) and (width >= 480px)),
		screen and ((orientation: landscape) and (height >= 480px)) {
	.phone-only {
		display: none;
	}
}

/* all phones */
@media	screen and ((orientation: portrait) and (width < 480px)),
		screen and ((orientation: landscape) and (height < 480px)) {
	.phone-hide {
		display: none;
	}

	.nav-cat {
		padding: 0.375rem 0.625rem;
		gap: 0.25rem;
	}
}

/* all portrait phones */
@media	screen and (orientation: portrait) and (width < 480px) {

	footer {
		width: 90%;
		display: flex;
		flex-direction: column-reverse;
		gap: 3rem;
	}

	.hero {
		width: 100%;
	}

	.hero > .subtitle {
		width: 90%;
	}

	.port-card {
		width: 100%;
	}
}

/* dark mode */
@media (prefers-color-scheme: dark) {
	:root {
		--body-text-color: var(--body-text-color-dark);

		--nav-bar-text-color: var(--nav-bar-text-color-dark);
		--nav-bar-bg-color: var(--nav-bar-bg-color-dark);
		--nav-bar-active-cat-bg-color: var(--nav-bar-active-cat-bg-color-dark);

		--bg-gradient-color-top: var(--bg-gradient-color-top-dark);
		--bg-gradient-color-bottom: var(--bg-gradient-color-bottom-dark);

		--transluscent-card-bg-color: var(--transluscent-card-bg-color-dark);
		--transluscent-card-border-color: var(--transluscent-card-border-color-dark);

		--glint-anim-fx-color: var(--glint-anim-fx-color-dark);
		--debug-dark-mode-indicator-color: var(--debug-dark-mode-indicator-color-dark);
	}
}

/* testing/debug */
section > p {
	font-family: var(--font-family-fancy);
	font-size: 3rem;
	font-weight: 400;
}

.debug {
	--size: 100px;
	width: var(--size);
	height: var(--size);
	background-color: var(--debug-dark-mode-indicator-color);
	position: fixed;
	top: 0;
	left: 0;
}
