@font-face {
    font-family: 'MADE Outer Sans';
    src: url('../fonts/MADE Outer Sans Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MADE Outer Sans';
    src: url('../fonts/MADE Outer Sans Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MADE Outer Sans';
    src: url('../fonts/MADE Outer Sans Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MADE Outer Sans';
    src: url('../fonts/MADE Outer Sans Thin.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

:root {
    --text-color: #ffffff;
    --background-color: #010101;
    --card-background-color: #2C2C2C;
    --ease-transition: cubic-bezier(.23, 1, .32, 1);
    --gap: 60px;
}

@media screen and (max-width: 767px) { 
   :root {
        --gap: 32px;
    } 
}

* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
}

html, body {
    color: var(--text-color);
    background-color: var(--background-color);
    font-family: 'MADE Outer Sans';
    font-size: 18px;
    font-weight: 300;
    line-height: 135%;
    letter-spacing: -0.02em;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .small-text {
    font-family: 'MADE Outer Sans';
    line-height: 100%;
    font-weight: 500;
    letter-spacing: -0.02em;;
    text-transform: uppercase;
}

h4, h5, h6 {
    font-weight: 400;
}

h1 {
    font-size: 80px; 
}

h2, .heading-2 {
    font-size: 60px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 28px;
}

h5 {
    font-size: 26px;
}

h6 {
    font-size: 24px;
}

.weight-regular {
    font-weight: 400;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.absolute {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.wide-container {
    max-width: 1440px;
    padding: 0 var(--gap);
    margin-left: auto;
    margin-right: auto;
}

.narrow-container {
    max-width: 996px;
    padding: 0 var(--gap);
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
    z-index: 2;
}

img, figure {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

p {
    font-family: 'MADE Outer Sans';
    font-size: 16px;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: -0.01em;
}

button,
.button {
    font-family: 'MADE Outer Sans';
    color: var(--background-color);
    background-color: var(--ghost-accent-color);
    border-radius: 1000px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 95%;
    padding: 16px 24px;
    transition: opacity .2s ease;
    border: none;
    outline: none;
    cursor: pointer;
}

.button:hover {
    opacity: 0.9;
}

input {
    font-family: 'MADE Outer Sans';
    line-height: 135%;
    font-size: 16px;
    font-weight: 300;
    padding: 13px 20px;
    color: var(--background-color);
    border-radius: 100px;
    background-color: var(--text-color);
    border: none;
    outline: none;
    width: 100%;
}

small {
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 0em;
}

.form-alert {
    display: none;
    margin-top: 12px;
    text-align: center;
}

.error small {
    color: red;
}

form.error .error-alert, 
form.success .success-alert, 
form.loading .loading-alert {
    display: block;
}

input::placeholder {
    opacity: 75%;
}

.paragraph {
    max-width: 794px;
}

.unstyled-button {
    padding: 0;
    border: none;
    outline: none;
    background-color: transparent;
    color: currentColor;
}

.slide-ease-in-animation,
.ease-in-animation {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}

.slide-ease-in-animation *,
.ease-in-animation * {
    transform: none;
}

.opacity-animation {
    opacity: 0;
    will-change: opacity;
}

.slide-image-animation {
    will-change: opacity, scale;
    scale: 1.06;
}

.image-animation {
    opacity: 0;
    will-change: opacity;
}

.section-padding {
    padding: calc(2 * var(--gap)) 0;
}

.section-padding-bottom {
    padding-bottom: calc(2 * var(--gap));
}

.overflow-hidden {
    overflow: hidden;
}

.section-heading {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    margin-bottom: var(--gap);
}

.bigger-paragraph {
    font-size: 20px;
}

.grid {
    justify-items: center;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.placeholder {
    height: 100%;
    width: 100%;
    border: 1px solid #202020;
}

.post-card {
    width: 100%;
    height: 100%;
    max-width: 420px;
    background-color: var(--card-background-color);
    display: flex;
    flex-direction: column;
}

.post-card a {
    color: var(--text-color);
    text-decoration: none;
}

.post-card-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 24px 32px 24px;
    height: 100%;
}

.post-card-image-wrapper img,
.post-card-image-wrapper .placeholder {
    aspect-ratio: 5/3;
}

.hover-image-animation img,
.hover-image-animation svg{
    transform: scale(1);
    will-change: transform;
    transition: transform 1s var(--ease-transition);
}

.hover-image-animation:hover img,
.hover-image-animation:hover svg {
    transform: scale(1.02);
}

.post-card .card-header {
    color: var(--background-color);
    padding: 7px 32px;
    font-size: 16px;
    width: fit-content;
}

.post-card .rhombus-background {
    z-index: -1;
    color: var(--ghost-accent-color);
}

.card-date {
    font-weight: 200;
    opacity: 1;
    font-size: 18px;
}

.three-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.medium-text {
    font-size: 24px;
    line-height: 135%;
}

.card-text-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-excerpt {
    font-weight: 200;
}

.arrow-button {
    color: var(--ghost-accent-color);
    gap: 4px;
    font-size: 16px;
    line-height: 135%;
    font-weight: 200;
    width: fit-content;
    margin-top: auto;
}

.arrow-button span {
    color: var(--ghost-accent-color);
}

.arrow-icon {
    will-change: transform;
    transform: translateX(0px);
    transition: transform .4s var(--ease-transition);
    width: 16px;
    height: 16px;
}

.arrow-button:hover .arrow-icon {
    transform: translateX(3px);
}

.pagination-nav .button {
    margin-top: var(--gap);
    padding-left: 32px;
    padding-right: 32px;
}

.big-text {
    font-weight: 400;
    line-height: 100%;
    font-size: 30px;
    text-transform: uppercase;
    text-align: center;
}

.nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--text-color);
    letter-spacing: 0em;
    opacity: 1;
    transition: opacity .2s ease;
}

.nav a:hover {
    opacity: 0.8;
}

.socials {
    gap: 20px;
    margin-top: 40px;
}

.social {
    position: relative;
    border-radius: 100%;
    width: 44px;
    height: 44px;
    color: var(--ghost-accent-color);
    transition: color .2s ease;
}

.social:hover {
    color: var(--background-color);
}

.social::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--ghost-accent-color);
    opacity: 0.05;
    border-radius: 100%;
    transition: opacity .2s ease;
}

.social:hover::after {
    opacity: 1;
}

.social::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 100%;
    border: 1px solid var(--ghost-accent-color);
}

.social-inner {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
}

.social-inner.smaller {
    width: 14px;
    height: 14px;
}

.social-inner.bigger {
    width: 26px;
    height: 26px;
}

.hero-download-container {
    flex-direction: column;
    gap: 30px;
}

.download-buttons-container {
    gap: 14px;
}

.download-buttons-container a {
    transition: transform .3s ease;
}

.download-buttons-container a:hover {
    transform: translateY(-3px);
}

custom-pagination .pagination-nav {
    flex-direction: column;
}

.pagination-text {
    margin-top: var(--gap);
    letter-spacing: 0em;
    opacity: 0.8;
}

custom-pagination .pagination-nav .button {
    margin-top: 12px;
}

.bg-item {
    opacity: 0.08;
    position: absolute;
    top: 50px;
    right: -3vw;
    z-index: -1;
}

.latest-posts-bg-item {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    max-width: 1440px;
}

.blog-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: calc(3.5 * var(--gap));
    margin-bottom: var(--gap);
}

.blog-hero h1 {
    text-align: center;
}

.blog-section .latest-posts-bg-item {
    top: -200px;
}

.hidden {
    display: none !important;
    opacity: 0;
    z-index: -999;
}

.text-center {
    text-align: center;
}

@media screen and (max-width: 1080px) {
    h1 {
        font-size: 64px; 
    }

    h2, .heading-2 {
        font-size: 54px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 26px;
    }

    h5 {
        font-size: 24px;
    }

    h6 {
        font-size: 22px;
    }

    .wide-container {
        padding: 0 24px;
    }

    .narrow-container {
        padding: 0 24px;
    }

    .button:hover {
        opacity: 1;
    }

    .bigger-paragraph {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-date {
        font-size: 16px;
    }

    .medium-text {
        font-size: 20px;
    }

    .card-excerpt {
        font-size: 14px;
    }

    .latest-posts .post-card:nth-of-type(3) {
        display: none;
    }

    .hover-image-animation:hover img,
    .hover-image-animation:hover svg {
        transform: scale(1);
    }

    .arrow-button:hover .arrow-icon {
        transform: translateX(0px);
    }

    .nav a:hover {
        opacity: 1;
    }

    .social:hover {
        color: var(--ghost-accent-color);
    }

    .social:hover::after {
        opacity: 0.05;
    }

    .download-buttons-container a:hover {
        transform: translateY(0px);
    }

    .bg-item {
        right: -18vw;
    }

    .blog-hero {
        margin-top: calc(2 * var(--gap));
    }

    .blog-section .latest-posts-bg-item {
        top: -180px;
    }
}

@media screen and (max-width: 767px) { 
    html, body {
        font-size: 14px;
    }

    h1, h2, h3, h4, h5, h6 {
        line-height: 120%;
    }

    h1 {
        font-size: 36px; 
    }

    h2, .heading-2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 22px;
    }

    h5 {
        font-size: 20px;
    }

    h6 {
        font-size: 18px;
    }

    .wide-container {
        padding: 0 16px;
    }

    .narrow-container {
        padding: 0 16px;
    }

    p {
        font-size: 12px;
    }

    .section-padding {
        padding: 42px 0;
    }

    .section-padding-bottom {
        padding-bottom: 42px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .latest-posts .post-card:nth-of-type(3) {
        display: flex;
    }

    .big-text {
        font-size: 16px;
    }

    .socials {
        margin-top: 32px;
    }

    .download-buttons-container {
        gap: 8px;
        flex-wrap: wrap;
    }

    .download-buttons-container a > svg {
        width: 126px;
        height: auto;
    }

    .latest-posts-bg-item {
        display: none;
    }

    .bg-item {
        right: auto;
        left: 0;
        top: -60px;
    }

    .blog-hero {
        margin-top: calc(3.5 * var(--gap));
    }
}