/* ==========================================================
   TriSaar Consulting Design System
   Base Styles
========================================================== */

/* ==========================================================
   Reset
========================================================== */

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

* {
    margin: 0;
    padding: 0;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    -webkit-text-size-adjust: 100%;
}

/* ==========================================================
   Body
========================================================== */

body {
    font-family: var(--font-family-base);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: 1.7;

    color: var(--color-body);
    background: var(--color-background);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================
   Headings
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-heading);
    font-family: var(--font-family-heading);
    font-weight: var(--font-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-6xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

/* ==========================================================
   Paragraphs
========================================================== */

p {
    margin-bottom: var(--space-4);
    max-width: 70ch;
}

/* ==========================================================
   Links
========================================================== */

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

a:hover {
    color: var(--color-primary);
}

/* ==========================================================
   Lists
========================================================== */

ul,
ol {
    list-style: none;
}

/* ==========================================================
   Images
========================================================== */

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

/* ==========================================================
   Buttons
========================================================== */

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

/* ==========================================================
   Form Elements
========================================================== */

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* ==========================================================
   Horizontal Rule
========================================================== */

hr {
    border: 0;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================
   Text Selection
========================================================== */

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================
   Focus States
========================================================== */

:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 3px;
}