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

:root {
	--max-page-width: 1024px;
	--container-padding: 20px;
	--anim-fade-duration: 160ms;

	--clr-midnight: #212121;
	--clr-shell: #e5ded7;
	--clr-a5purple: #A5A2E0;
	--clr-a5purple-hover: #9283D2;
	--clr-tag-tutorial: #475774;
	--clr-tag-ai: #446c6a;

	--clr-txt-primary: var(--clr-shell);
	--clr-txt-secondary: var(--clr-midnight);
	--clr-bg-accent: var(--clr-a5purple);
	--clr-bg-accent-hover: var(--clr-a5purple-hover);
}

html {	scroll-behavior: smooth;}

a {	text-decoration: none;}

h1, h2, h3, p, a {
    	color: var(--clr-txt-primary);
}

h1, h2, h3, h4 {
	font-family: "Bungee", sans-serif;
  	font-weight: 400;
  	font-style: normal;
    	line-height: 1;
   	margin: 0;
}

h1 {   	font-size: 3em;}

h2 {	font-size: 2.5em;}

h3 {	font-size: 1.5em;}

p, a {
    font-size: 1.25em;
}

a:hover {
    color: gray;
}

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

body {
    	background-color: var(--clr-midnight);
	font-family: 'Iosevka', monospace;
	font-weight: 400;
	margin: 0;
}

.container {
    max-width: var(--max-page-width);
    width: 100%;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    text-align: left;
    padding-bottom: 50px;
}

.section img {
    display: block;
    padding-bottom: 20px;
    margin: 0 auto;
}

.articleelement {
    padding: 10px 0 10px 0;
    border-bottom: 1px dotted #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {

    	display: flex;
    	padding-bottom: 50px;
    	gap: 10px;
	justify-content: center;
}

.socials img {
	transition: opacity var(--anim-fade-duration) ease;
	width: 50px;
}

.socials img:hover {
	opacity: 0.8;
}

.tags {
    display: flex;
}

.tag {
    color: white;
    padding: 5px 10px;
    margin: 0 0px 0 5px;
}

.tutorial {
    background-color: var(--clr-tag-tutorial);
}

.ai {
    background-color: var(--clr-tag-ai);
}

.curated {
    background-color: #404040;
}

.opinion {
    background-color: #394d48;
}

.footer {
    text-align: center;
    opacity: 0.5;
    color: white;
    padding-top: 0px;
}

.about {
    max-width: 720px;
    width: 100%;
    text-align: center;
    margin: 20px auto;
}

.img-avatar {
    width: 180px;
    height: 180px;
    border-radius: 100%;
    object-fit: cover;
    margin: 20px auto;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin: 40px auto 40px auto;
    max-width: 500px;
}

.subscribe-form input[type="email"] {
    	flex: 1;
    	padding: 12px 15px;
    	border: 1px solid #ccc;
    	border-radius: 4px;
    	font-size: 16px;
    	font-family: inherit;
	background-color: var(--clr-txt-primary);
}

.subscribe-form input[type="email"]:focus {
    	outline: none;
    	border-color: #4b35e5;
}

.subscribe-button {
	transition: background-color var(--anim-fade-duration) ease;
    	padding: 12px 24px;
    	background-color: var(--clr-bg-accent);
    	color: var(--clr-text-secondary);
    	border: none;
    	border-radius: 4px;
    	cursor: pointer;
    	font-size: 16px;
    	font-family: inherit;
    	white-space: nowrap;
}

.subscribe-button:hover {
    	background-color: var(--clr-a5purple-hover);
}

@media screen and (max-width: 768px) {
	.subscribe-form {
        	flex-direction: column;
   	}

    	p,
    	a {
        	font-size: 1rem;
    	}
}
