/* ═══════════════════════════════════════════════════════════════
   base.css — Reset, Typography & Font Faces
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#home,
#hero,
#about,
#services,
#projects,
#contact {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    #home,
    #hero,
    #about,
    #services,
    #projects,
    #contact {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 640px) {
    #home,
    #hero,
    #about,
    #services,
    #projects,
    #contact {
        scroll-margin-top: 70px;
    }
}

@media (max-width: 375px) {
    #home,
    #hero,
    #about,
    #services,
    #projects,
    #contact {
        scroll-margin-top: 65px;
    }
}

body {
    font-family: var(--font-body);
    margin: 0;
    background: var(--color-bg-page);
    overflow-x: hidden;
    min-width: 320px;
}

/* Offset scroll for fixed navbar */
section[id] {
    scroll-margin-top: 100px;
}

/* ── Font Faces ── */
@font-face {
    font-family: "inter";
    src: url("../font/inter.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Kanit";
    src: url("../font/kanit-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Big Shoulders Display";
    src: url("../font/bigshoulders-black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}
