/* ============================================
   GLOBAL STYLES - Base styles and resets
   ============================================ */
   
/* Note: variables.css must be imported/linked before this file */

/* ============================================
   HTML & BODY RESET
   ============================================ */
html {
    font-size: 16px;
    font-family: var(--font-family), sans-serif;
    font-weight: 400;
    line-height: var(--line-height-normal);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Keep 1rem = 16px on iOS; prevents Safari from inflating rem for "readability" */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family), sans-serif;
    font-weight: 400;
    line-height: var(--line-height-normal);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   COMMON ELEMENT STYLES
   ============================================ */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: var(--font-family), sans-serif;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   SEMANTIC HTML RESETS
   ============================================ */
figure,
header,
time,
h1, h2, h3, h4, h5, h6,
dl, dt, dd,
article, section, aside, nav,
main, footer {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding: 0;
    unicode-bidi: normal;
}

figure {
    display: block;
}

time {
    display: block;
}

/* ============================================
   SELECTION STYLES
   ============================================ */
::selection {
    background-color: rgba(0, 0, 0, 0.10);
    color: inherit;
}

::-moz-selection {
    background-color: rgba(0, 0, 0, 0.10);
    color: inherit;
}

/* ============================================
   ACCESSIBILITY - SCREEN READER ONLY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

