/* Webority Base Styles */


/* Reset and normalize */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-normal);
    line-height: var(--lh-normal);
    color: var(--text-1);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--heading);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--fs-6xl);
    font-weight: var(--fw-extrabold);
}

h2 {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-bold);
}

h3 {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
}

h4 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-semibold);
}

h5 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
}

h6 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--lh-relaxed);
}


/* Links */

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--primary-30);
}


/* Lists */

ul,
ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
}


/* Images */

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Code */

code,
pre {
    font-family: var(--font-code);
    font-size: var(--fs-sm);
}

code {
    padding: var(--space-1) var(--space-2);
    background-color: var(--bg-light);
    border-radius: var(--radius-base);
    color: var(--text-1);
}

pre {
    padding: var(--space-4);
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--space-4);
}

pre code {
    padding: 0;
    background-color: transparent;
}


/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-4);
}

th,
td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--outline);
}

th {
    font-weight: var(--fw-semibold);
    background-color: var(--bg-light);
}


/* Form elements */

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}


/* Utility classes for accessibility */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* Print styles */

@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }
    pre,
    blockquote {
        page-break-inside: avoid;
    }
    img {
        max-width: 100% !important;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
}