/* =====================================================
   KASI MATTRESS
   RESET & BASE STYLES
   Version: 1.0.0
   ===================================================== */

/* ==========================================
   UNIVERSAL RESET
========================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   HTML
========================================== */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ==========================================
   BODY
========================================== */

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height);

    color: var(--text);
    background: var(--background-color);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   MEDIA
========================================== */

img,
picture {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: auto;
}

video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

svg {
    overflow: hidden;
}

/* ==========================================
   LINKS
========================================== */

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

/* ==========================================
   LISTS
========================================== */

ul,
ol {
    list-style: none;
}

/* ==========================================
   TABLES
========================================== */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================
   TYPOGRAPHY
========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--text);
}

p {
    color: var(--text-light);
    margin-bottom: var(--space-4);
}

/* ==========================================
   FORMS
========================================== */

input,
button,
textarea,
select {
    font: inherit;
}

input,
textarea,
select {
    outline: none;
    background: var(--white);
    border: 1px solid var(--border);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

button {
    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    border: none;
    background: none;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ==========================================
   TEXT SELECTION
========================================== */

::selection {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================
   HORIZONTAL RULE
========================================== */

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--space-8) 0;
}

/* ==========================================
   UTILITIES
========================================== */

.hidden {
    display: none !important;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.w-100 {
    width: 100%;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}