@font-face {
    font-family: "Instrument Sans";
    src: url("fonts/InstrumentSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("fonts/InstrumentSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("fonts/InstrumentSans-Bold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("fonts/InstrumentSerif-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("fonts/InstrumentSerif-italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/*RESET*/
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
    max-width: 80ch;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
    isolation: isolate;
}

:root {
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --p-size: 1rem;
    --bigp-size: 1.5rem;
    --footer-size: 0.875rem;

    --main-family: "Instrument Sans", sans-serif;
    --secondary-family: "Instrument Serif", serif;

    --dark: #2b211e;
    --light: #fffef0;
}

body {
    margin: 0 clamp(1rem, 5vw, 5rem);
    font-family: var(--main-family);
    font-size: var(--p-size);
    background-color: var(--light);
    line-height: 1.5;
    color: var(--dark);
}
.container {
    max-width: 60rem;
    margin: 0 auto;
}
h1 {
    font-family: var(--secondary-family);
    font-size: var(--h1-size);
    font-weight: 400;
    line-height: 1;
}

h2 {
    font-size: var(--h2-size);
    font-family: var(--secondary-family);
    font-weight: 400;
    line-height: 1;
}

a {
    color: inherit;
    text-decoration: underline;
    font-size: inherit;
}
a:hover {
    text-decoration: none;
}

header {
    margin-top: 1.5rem;
}
.header_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.header_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.header_image {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    float: right;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
nav ul li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}
nav ul li a {
    font-family: var(--main-family);
    font-weight: 500;
    font-size: var(--footer-size);
    color: var(--dark);
}
nav svg {
    max-width: 0.875rem;
}

.intro_section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--dark);
}
.intro_txt {
    font-size: var(--bigp-size);
    font-weight: 500;
    line-height: 1.3;
}

.main_content {
    margin-top: 3rem;
}
.main_content h2 {
    margin-bottom: 0.5rem;
}
footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.footer_content_wrap {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark);
}
.footer_text {
    font-family: var(--main-family);
    font-weight: 500;
    font-size: var(--footer-size);
    color: var(--dark);
}

.icon_frieze_wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.reverse {
    transform: scale(-1, 1);
}

.footer_marquee {
    width: 100%;
    overflow: hidden;
}

.footer_marquee span svg {
    position: relative;
    animation: scroll 3s infinite;
    animation-timing-function: steps(8, end);
    width: 100%;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/*MOBILE*/
@media (max-width: 770px) {
    .header_grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .header_image {
        float: left;
    }
}
