/**
 * Pro Tint Base Styles
 * Global resets and base typography
 */

/* ============================================
   MODERN CSS RESET
============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY BASE
============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-medium);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin-bottom: 1em;
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-medium);
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-medium);
}

h4 {
    font-size: var(--fs-h4);
}

p {
    margin-bottom: 1.5em;
    max-width: 65ch; /* Optimal reading length */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

strong, b {
    font-weight: var(--fw-semibold);
}

/* ============================================
   UTILITY CLASSES
============================================ */

/* Container */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Text Accent Color */
.text-accent {
    color: var(--color-accent);
}

/* Visually Hidden (Accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   IMAGES & MEDIA
============================================ */

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================
   FORM ELEMENTS
============================================ */

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   REMOVE DEFAULT LIST STYLES
============================================ */

ul, ol {
    list-style: none;
}