/* =========================================================
   Sail & Hunt Chapter I
   File : assets/css/reset.css
   ========================================================= */

/* ===========================
   RESET
=========================== */

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

/* ===========================
   HTML
=========================== */

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ===========================
   BODY
=========================== */

body {
    font-family: var(--font-body);
    background: var(--body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   TYPOGRAPHY
=========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

small { font-size: .8rem; }

strong { font-weight: 700; }

/* ===========================
   LINKS
=========================== */

a {
    text-decoration: none;
    color: inherit;
    transition: var(--fast);
}

a:hover { text-decoration: none; }

/* ===========================
   LIST
=========================== */

ul,
ol { list-style: none; }

/* ===========================
   IMAGE
=========================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
}

svg { display: block; }

/* ===========================
   BUTTON
=========================== */

button {
    border: none;
    outline: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

/* ===========================
   FORM
=========================== */

input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: #fff;
    outline: none;
    border: none;
}

textarea { resize: vertical; }

input::placeholder,
textarea::placeholder {
    color: var(--text-soft);
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
}

/* ===========================
   TABLE
=========================== */

table {
    width: 100%;
    border-collapse: collapse;
}

/* ===========================
   IFRAME
=========================== */

iframe {
    border: 0;
    width: 100%;
}

/* ===========================
   SELECTION
=========================== */

::selection {
    background: var(--azM);
    color: #fff;
}

/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--azG);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--azM), var(--og));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--az), var(--ogD));
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--azM) var(--azG);
}

/* ===========================
   HORIZONTAL RULE
=========================== */

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ===========================
   UTILITIES
=========================== */

.hidden { display: none !important; }
.invisible { visibility: hidden !important; }

.d-block { display: block; }
.d-flex { display: flex; }

.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }
.bg-white { background: #fff; }

.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.pt-1 { padding-top: .25rem; }
.pt-2 { padding-top: .5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 2rem; }

.pb-1 { padding-bottom: .25rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 2rem; }

/* ===========================
   ANIMATION BASE
=========================== */

.fade-in { animation: fadeIn .35s ease; }
.slide-up { animation: slideUp .35s ease; }
.scale-in { animation: scaleIn .25s ease; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================
   FOCUS ACCESSIBILITY
=========================== */

:focus-visible {
    outline: 3px solid rgba(58, 155, 240, .25);
    outline-offset: 2px;
}