body {
    font-family: 'Onest', system-ui, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #FAF9F7;
    color: #2D2D2D;
}

html,
body {
    transition-property: color, background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

h1 {
    font-weight: 900;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #EEEBE8;

    border-radius: 9999px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #334155;

}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #9B9791;

}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #475569;

}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.dark .custom-scrollbar {
    scrollbar-color: #334155 transparent;
}

.selection-coral::selection {
    background-color: rgba(15, 118, 110, 0.2);
    color: #2D2D2D;
}

.dark .selection-coral::selection {
    background-color: rgba(15, 118, 110, 0.3);
    color: #FFFFFF;
}

*:focus-visible {
    outline: 2px solid #0F766E;

    outline-offset: 4px;
    border-radius: 0.25rem;
}

.dark *:focus-visible {
    outline-color: #0F766E;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

nav a {
    transition: all 0.2s ease;
}

.font-mono {
    font-family: 'ui-monospace', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #6B6662;

    background-color: #FFFFFF;

    border: 1px solid #EEEBE8;

    border-radius: 4px;
    box-shadow: 0 1px 0 #EEEBE8;
}

.dark .kbd {
    background-color: #1e293b;
    border-color: #334155;
    color: #94a3b8;
    box-shadow: 0 1px 0 #334155;
}

@media print {
    @page {
        margin: 1cm;
        size: auto;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    aside,
    header,
    footer,
    .no-print,
    button,
    input[type="text"] {
        display: none !important;
    }

    main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    .overflow-y-auto,
    .overflow-auto {
        overflow: visible !important;
        height: auto !important;
    }

    pre,
    .font-mono {
        white-space: pre-wrap !important;
        border: 1px solid #ccc !important;
        color: black !important;
        background: transparent !important;
        padding: 1rem !important;
    }

    textarea {
        border: 1px solid #ccc !important;
        resize: none;
        height: auto;
    }
}
