/* ----------------  */
/* Custom Properties */
/* ----------------  */

:root {
	--clr-900: 0, 0%, 8%;
	--clr-800: 0, 0%, 12%;
	--clr-700: 0, 0%, 20%;
	--clr-100: 0, 0%, 100%;
	--clr-100: 0, 0%, 100%;

	--clr-accent-400: 34, 76%, 52%;
	--clr-accent-100: 27, 82%, 98%;

	--fs-900: clamp(5rem, 8vw + 1rem, 9.375rem);
	--fs-800: 3.5rem;
	--fs-700: 1.5rem;
	--fs-600: 1rem;
	--fs-500: 1rem;
	--fs-400: 1rem;
	--fs-300: 1rem;
	--fs-200: 0.875rem;

	--ff-sans-normal: 'Lato', sans-serif;
	--ff-sans-condensed: 'Oswald', sans-serif;
}

/* ----------------  */
/* Reset             */
/* ----------------  */

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

* {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	font-weight: 400;
}

ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

a {
	text-decoration: none;
	color: hsl(var(--clr-100));
}

body {
	font-family: var(--ff-sans-normal);
	font-size: var(--fs-400);
	background-color: hsl(var(--clr-accent-400));
	color: hsl(var(--clr-accent-100));
	line-height: 1.5;
	letter-spacing: 0.4px;
	min-height: 100vh;
	display: grid;
	place-content: center;
}

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

input,
button,
textarea,
select {
	font: inherit;
}

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

/* -----------------  */
/* Utility Classes    */
/* -----------------  */

/* General */

.flex {
	display: flex;
	gap: var(--gap, 1rem);
}

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

.grid {
	display: grid;
	gap: var(--gap, 1rem);
}

.items-center {
	align-items: center;
}

.d-block {
	display: block;
}

.flow > *:where(:not(:first-child)) {
	margin-top: var(--flow-space, 1rem);
}

.flow--space-small {
	--flow-space: 0.75rem;
}

.wrapper {
	width: min(calc(100vw - 2rem), 30rem);
	margin-inline: auto;
	padding-top: 2rem;
}

header,
main {
	width: 100%;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Colors */

.bg-dark {
	background-color: hsl(var(--clr-900));
}
.bg-accent {
	background-color: hsl(var(--clr-accent-400));
}
.bg-white {
	background-color: hsl(var(--clr-100));
}

.text-dark {
	color: hsl(var(--clr-900));
}
.text-accent {
	color: hsl(var(--clr-accent-100));
}
.text-white {
	color: hsl(var(--clr-100));
}

/* Typography */

.ff-sans-normal {
	font-family: var(--ff-sans-normal);
}

.ff-sans-condensed {
	font-family: var(--ff-sans-condensed);
}

.uppercase {
	text-transform: uppercase;
}

.text-center {
	text-align: center;
}

.fs-900 {
	font-size: var(--fs-900);
}
.fs-800 {
	font-size: var(--fs-800);
}
.fs-700 {
	font-size: var(--fs-700);
}
.fs-600 {
	font-size: var(--fs-600);
}
.fs-500 {
	font-size: var(--fs-500);
}
.fs-400 {
	font-size: var(--fs-400);
}
.fs-300 {
	font-size: var(--fs-300);
}
.fs-200 {
	font-size: var(--fs-200);
}

.fs-900,
.fs-800,
.fs-700,
.fs-600 {
	line-height: 1.1;
}

.fw-300 {
	font-weight: 300;
}

.fw-400 {
	font-weight: 400;
}

.fw-600 {
	font-weight: 600;
}

.fw-700 {
	font-weight: 700;
}

/* ----------------  */
/* Components        */
/* ----------------  */

.profile-img {
	width: 88px;
	aspect-ratio: 1/1;
	border-radius: 100%;
	margin-inline: auto;
	background-color: hsl(var(--clr-100));
}

.social-links--list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.social-links--item svg {
	transition: all ease 0.5s;
}

.social-links--item:hover svg,
.social-links--item:focus svg {
	transform: scale(1.3);
}

.btn {
	cursor: pointer;
	display: block;
	text-align: center;
	font-weight: 400;
	background-color: hsl(var(--clr-accent-100));
	color: hsl(var(--clr-accent-400));
	padding: 1rem 1.25rem;
	border-radius: 8px;
	transition: all ease 0.5s;
	box-shadow: 5px 5px 5px hsla(var(--clr-900), 0.3);
}

.btn:hover,
.btn:focus {
	transform: scale(1.05);
}

/* ---------------------------  */
/* Page Specific                */
/* ---------------------------  */

/* ----------------  */
/* Layout            */
/* ----------------  */

/* Footer */
.attribution {
	margin-top: 1rem;
	font-size: 11px;
	text-align: center;
	padding-bottom: 2rem;
}
.attribution a {
	color: hsl(228, 45%, 44%);
}
