@import url("./reset.css");

@font-face {
    font-family: "Pretendard";
    src: url("https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

* {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --bg: #FFFFFF;
    --surface: #F8F9FA;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --border: #E5E7EB;
    --dark: #1A1A2E;
    --dark-text: #FFFFFF;
    --dark-text-secondary: #B8B8D1;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --nav-offset: 80px;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-offset);
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: keep-all;
    font-size: 16px;
    line-height: 1.6;
}

section {
    padding: 120px 40px;
    max-width: var(--max-width);
    margin: auto;
}

h1:focus {
    outline: none;
}

@media(max-width:1199px) {
    section {
        padding: 100px 32px;
    }
}

@media(max-width:767px) {
    section {
        padding: 80px 20px;
    }

    :root {
        --nav-offset: 60px;
    }
}

/* Toast */
.toast {
    position: absolute;
    z-index: 10;
    background: #1f2325cc;
    color: white;
    border-radius: 8px;
    padding: 15px 25px;
    min-width: 200px;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    animation: fadein 0.3s ease, fadeout 0.3s ease 1s;
}

    .toast p {
        font-size: 24px;
    }

    .toast.top {
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
    }

    .toast.middle {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .toast.bottom {
        left: 50%;
        bottom: 40px;
        transform: translateX(-50%);
    }

/* 스크롤 트리거 애니메이션 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
