@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: Newt Serif Bold Regular;
    src: url(/fonts/NewtSerifBold.woff2) format('woff2');
    font-display: swap
}

@font-face {
    font-family: Newt Serif Demi Regular;
    src: url(/fonts/NewtSerifDemi-Italic.woff2) format('woff2');
    font-display: swap
}

:root {
    /* Color palette */
    --color-dark: #1b110c;
    --color-light: #e8e2d9;
    --color-cream: #e2d5c0;
    --color-gold: #eab347;
    --color-white: #ffffff;
    --color-light-brown: #8a7e72;
    --color-dark-brown: #59544d;
    --header-height: 0;

    /* Elements */
    --section-secondary-background: var(--color-dark);
    --section-secondary-text: var(--color-light);
    --section-primary-background: var(--color-light);
    --section-primary-text: var(--color-dark);
    --section-brand-background: var(--color-cream);
    --section-primary-text-highlight: var(--color-gold);
    --web-font: "Montserrat", sans-serif;
    --body-font: "EB Garamond", Garamond, serif;
    --primary-title-font: "Newt Serif Bold Regular", serif;
    --secondary-title-font: "Newt Serif Demi Regular", serif;
}

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

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

html {
    scroll-behavior: smooth
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--body-font);
    font-weight: normal;
    color: var(--section-primary-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    line-height: 1.5;
}

img {
    color: transparent;
}

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

iframe {
    border: none;
    display: block;
    max-width: 100%;
}

main {
    flex-direction: column;
    display: flex
}

main > section {
    width: 100%;
}

main > section:first-of-type {
    padding-top: var(--header-height, 0);
    margin-top: calc(-1 * var(--header-height, 0))
}

@media screen and (max-width:920px) {
    main > section:first-of-type {
        padding-top: var(--header-height-mobile, var(--header-height, 0));
        margin-top: calc(-1 * var(--header-height-mobile, var(--header-height, 0)))
    }
}

h1 {
    font-family: var(--primary-title-font);
    font-size: 3rem;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: normal;
    text-align: center;
}

h2 {
    font-family: var(--secondary-title-font);
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
}

.section-content {
    max-width: 76.5rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 920px) {
    h2 {
        font-size: 1.8rem;
    }
    .section-content {
        max-width: 22.5rem;
        padding: 1rem;
    }
}

.section-brand {
    background-color: var(--section-brand-background);
}
.section-primary {
    background-color: var(--section-primary-background);
    color: var(--section-primary-text);
}
.section-secondary {
    background-color: var(--section-secondary-background);
    color: var(--section-secondary-text);
}

/* Footer Section */

.footer-section {
    width: 100%;
    padding: 2rem 1.5rem;
    margin-top: auto;
    font-family: var(--body-font);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 68rem;
    margin: 0 auto;
    gap: 3rem;
}

.footer-logo-block img {
    display: block;
    width: auto;
    height: 68px;
    margin-bottom: 1rem;
}

.footer-brand-column {
    flex: 1;
}

.footer-copyright {
    font-size: 0.95rem;
    color: var(--color-dark-brown);
    margin: 0;
}

.footer-section h3 {
    font-family: var(--body-font);
    font-size: 1.25rem;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a:link, .footer-nav a:visited {
    color: var(--color-dark-brown);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-dark);
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon {
    display: block;
    fill: var(--color-dark-brown);
    transition: fill 0.2s ease, transform 0.2s ease;
    transform-origin: center center;
}

.footer-socials a:hover .social-icon {
    fill: var(--color-dark);
    transform: translateY(-2px);
}

@media screen and (max-width: 920px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
    }

    .footer-brand-column {
        order: 3;
    }
}
