@font-face {
    font-family: 'EB Garamond';
    src: url('/assets/fonts/eb-garamond-latin.woff2') format('woff2');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/assets/fonts/eb-garamond-latin-ext.woff2') format('woff2');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg-color: #0E0E0E;
    --text-color: #DADADA;
    --font-main: 'EB Garamond', serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

/* Main Container Logic */
.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    padding: 160px 160px 80px 160px;
    background: var(--bg-color);
}

/* =========================================== */
/* DESKTOP (Default)                           */
/* =========================================== */

.main-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 960px;
}

.top-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.logo {
    font-size: 48px;
    line-height: 52px;
    letter-spacing: 0.48px;
    font-weight: 400;
}

.description {
    font-size: 22px;
    line-height: 32px;
    font-weight: 400;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Figma Gap between Title, Note, and Email */
    max-width: 720px;
}

.contact-title {
    font-size: 24px;
    line-height: 28px;
    font-weight: 400;
}
.contact-text-group {
    display: flex;
    flex-direction: column;
    gap: 24px; /* This creates the 24px space specifically after the title */
}
.contact-note {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.16px;
}

.email-link {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .email-link:hover {
        text-decoration-color: var(--text-color);
    }
}

.email-link:focus-visible {
    outline: 1px solid var(--text-color);
    outline-offset: 4px;
}

.footer {
    width: 100%;
    text-align: center;
    padding-top: 40px;
}

.copyright {
    font-size: 15px;
}

/* =========================================== */
/* TABLET (834px)                              */
/* =========================================== */
@media (max-width: 834px) {
    .container {
        padding: 96px 64px 64px 64px;
    }

    .main-content-wrapper {
        gap: 72px; /* Figma Tablet Gap */
        max-width: 600px;
    }

    .top-section {
        gap: 24px; /* Figma Tablet Gap */
    }

    .logo {
        font-size: 44px;
        line-height: 64px;
        letter-spacing: 0.64px;
    }

    .description {
        font-size: 20px;
        line-height: 40px;
    }

    .contact-section {
        gap: 16px;
    }

    .contact-text-group {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .contact-title {
        font-size: 22px;
        font-weight: 500; /* Increased per Figma */
    }

    .contact-note {
        font-size: 16px;
        line-height: 22px;
    }

    .email-link {
        font-size: 16px;
    }
}

/* =========================================== */
/* MOBILE (390px)                              */
/* =========================================== */
@media (max-width: 430px) { /* Adjusted to catch most modern phones */
    .container {
        padding: 64px 24px 48px 24px;
    }

    .main-content-wrapper {
        gap: 88px; /* Specific Figma Mobile Gap */
        width: 100%;
    }

    .top-section {
        gap: 28px;
    }

    .logo {
        font-size: 40px;
        line-height: 52px;
    }

    .description {
        font-size: 20px;
        line-height: 30px;
    }

    .contact-section {
        gap: 16px;
    }

    .contact-text-group {
        gap: 12px;
    }

    .contact-title {
        font-size: 22px;
        font-weight: 500;
    }

    .contact-note {
        font-size: 16px;
        line-height: 20px;
    }

    .email-link {
        font-size: 18px;
    }

    .copyright {
        font-size: 12px;
    }
}

/* Landscape on short screens (phones rotated sideways) */
/* Android nav bar overlaps bottom of 100vh — use dvh to account for it */
.android .container {
    min-height: 100dvh;
}

@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .footer {
        padding-top: 24px;
    }
}
