/* ==========================================================
   CLICKIN LABS — GLOBAL STYLES
   ----------------------------------------------------------
   Global HTML / element-level styling only.
   Design tokens are managed in theme.css.
   ========================================================== */


/* ==========================================================
   01. GLOBAL RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ==========================================================
   02. HTML / BODY
   ========================================================== */

html,
body {
    margin: 0;
    padding: 0;

    background-color: var(--color-bg);
    color: var(--color-body);

    font-family: var(--font-primary);
    font-size: var(--body-size);
    font-weight: var(--body-weight);
    line-height: var(--body-line-height);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================
   03. BODY
   ========================================================== */

body {
    min-width: 320px;
    overflow-x: hidden;
}


/* ==========================================================
   04. HEADINGS
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--space-4);

    color: var(--color-heading);

    font-family: var(--font-primary);
    font-weight: var(--heading-weight);

    line-height: var(--heading-line-height);
    letter-spacing: var(--heading-letter-spacing);
}


/* Standard Heading */

h1,
h2 {
    font-size: var(--heading-size);
}


/* Smaller Heading Levels */

h3 {
    font-size: 28px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}


/* ==========================================================
   05. PARAGRAPHS
   ========================================================== */

p {
    margin-top: 0;
    margin-bottom: var(--space-4);

    color: var(--color-body);

    font-size: var(--body-size);
    font-weight: var(--body-weight);
    line-height: var(--body-line-height);
}


/* ==========================================================
   06. LINKS
   ========================================================== */

a {
    color: inherit;
    text-decoration: none;

    transition:
        color var(--transition-normal),
        opacity var(--transition-normal);
}

a:hover {
    color: var(--color-accent);
}


/* ==========================================================
   07. IMAGES / MEDIA
   ========================================================== */

img,
svg,
video {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
}


/* ==========================================================
   08. BUTTONS
   ========================================================== */

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* ==========================================================
   09. FORM ELEMENTS
   ========================================================== */

input,
textarea,
select {
    color: var(--color-body);
    background-color: var(--color-surface);

    border:
        var(--border-width)
        var(--border-style)
        var(--color-border);

    border-radius: var(--input-radius);

    outline: none;

    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        background-color var(--transition-normal),
        color var(--transition-normal);
}


/* Focus */

input:focus,
textarea:focus,
select:focus {
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}


/* Placeholder */

input::placeholder,
textarea::placeholder {
    color: var(--color-placeholder);
    opacity: 1;
}


/* ==========================================================
   10. HR
   ========================================================== */

hr {
    margin: var(--space-6) 0;

    border: 0;
    border-top:
        var(--border-width)
        var(--border-style)
        var(--color-border);
}


/* ==========================================================
   11. LISTS
   ========================================================== */

ul,
ol {
    margin-top: 0;
    margin-bottom: var(--space-4);
}


/* ==========================================================
   12. TABLE
   ========================================================== */

table {
    width: 100%;
    border-collapse: collapse;
}


/* ==========================================================
   13. ACCESSIBILITY
   ========================================================== */

:focus-visible {
    outline:
        var(--focus-width)
        solid
        var(--color-accent);

    outline-offset: var(--focus-offset);
}
