/**
 * ============================================================================
 * GudStories Framework
 * ============================================================================
 *
 * File
 * ----
 * gs-framework-base.css
 *
 * Version
 * -------
 * 1.0.0
 *
 * Status
 * ------
 * FRAMEWORK FOUNDATION
 *
 * Purpose
 * -------
 * Global base styling for every GudStories
 * Framework module.
 *
 * Responsibilities
 * ----------------
 * • Reset
 * • HTML
 * • Body
 * • Typography
 * • Forms
 * • Media
 * • Links
 * • Scrollbars
 * • Selection
 * • Focus
 *
 * NOTE
 * ----
 * Uses Framework Tokens only.
 *
 * ============================================================================
 */


/* ==========================================================================
   Universal Reset
   ========================================================================== */

*,
*::before,
*::after {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


/* ==========================================================================
   HTML
   ========================================================================== */

html {

    font-size: 16px;

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;

}


/* ==========================================================================
   Body
   ========================================================================== */

body {

    background: var(--gs-color-background);

    color: var(--gs-color-text);

    font-family: var(--gs-font-family);

    font-size: var(--gs-font-size-md);

    line-height: var(--gs-line-height-normal);

    overflow-x: hidden;

    min-height: 100vh;

}


/* ==========================================================================
   Headings
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-weight: var(--gs-font-weight-bold);

    color: inherit;

    line-height: var(--gs-line-height-tight);

}


/* ==========================================================================
   Paragraphs
   ========================================================================== */

p {

    color: var(--gs-color-text-muted);

    line-height: var(--gs-line-height-normal);

}


/* ==========================================================================
   Links
   ========================================================================== */

a {

    color: inherit;

    text-decoration: none;

    transition: var(--gs-transition-fast);

}

a:hover {

    color: var(--gs-color-primary);

}


/* ==========================================================================
   Images
   ========================================================================== */

img {

    display: block;

    max-width: 100%;

    height: auto;

    user-select: none;

}


/* ==========================================================================
   Lists
   ========================================================================== */

ul,
ol {

    list-style: none;

}


/* ==========================================================================
   Buttons
   ========================================================================== */

button {

    border: none;

    outline: none;

    background: none;

    color: inherit;

    font: inherit;

    cursor: pointer;

    transition: var(--gs-transition-fast);

}


/* ==========================================================================
   Inputs
   ========================================================================== */

input,
textarea,
select {

    font: inherit;

    color: inherit;

    background: transparent;

    border: var(--gs-border);

    outline: none;

}


/* ==========================================================================
   Placeholder
   ========================================================================== */

::placeholder {

    color: var(--gs-color-text-muted);

}


/* ==========================================================================
   Tables
   ========================================================================== */

table {

    border-collapse: collapse;

    width: 100%;

}


/* ==========================================================================
   Horizontal Rule
   ========================================================================== */

hr {

    border: none;

    border-top: var(--gs-border);

}


/* ==========================================================================
   Selection
   ========================================================================== */

::selection {

    background: var(--gs-color-primary);

    color: #ffffff;

}


/* ==========================================================================
   Focus
   ========================================================================== */

:focus-visible {

    outline: 2px solid var(--gs-color-primary);

    outline-offset: 2px;

}


/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar {

    width: 10px;

    height: 10px;

}

::-webkit-scrollbar-track {

    background: var(--gs-color-surface);

}

::-webkit-scrollbar-thumb {

    background: var(--gs-color-primary);

    border-radius: var(--gs-radius-round);

}

::-webkit-scrollbar-thumb:hover {

    background: var(--gs-color-primary-hover);

}


/* ==========================================================================
   Containers
   ========================================================================== */

.gs-container {

    width: 100%;

    max-width: 1600px;

    margin-inline: auto;

    padding-inline: var(--gs-space-6);

}


/* ==========================================================================
   Section
   ========================================================================== */

.gs-section {

    padding-block: var(--gs-space-7);

}


/* ==========================================================================
   Hidden
   ========================================================================== */

[hidden] {

    display: none !important;

}