/* CSS variables */
:root {
    --color-bg: #fff;
    --color-text: #000;
    --color-selection-bg: #000;
    --color-selection-text: #fff;
    --color-tap-highlight: rgba(0, 0, 0, 0.1);
    --transition-default: 0.3s ease;
    --font-primary: "Alte Haas Grotesk", sans-serif;
    --line-height: 1.2;
}

/* reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--color-bg);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: var(--font-primary);
    overflow-y: hidden;
    line-height: var(--line-height);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

a,
button {
    -webkit-tap-highlight-color: var(--color-tap-highlight);
}

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

/* global button reset to look like links */
button {
    background: none;       
    border: none;           
    color: inherit;           
    font: inherit;            
    cursor: pointer;        
    padding: 0;             
    transition: color var(--transition-default);
}

/* accessibility: visible focus for keyboard navigation */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.header,
.footer {
    font-size: 14px;
}

/* global selection style */
::selection {
    background-color: var(--color-selection-bg);
    color: var(--color-selection-text);
}

/* firefox selection support */
::-moz-selection {
    background-color: var(--color-selection-bg);
    color: var(--color-selection-text);
}

.js-hidden {
    opacity: 0;
}

.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;
}

.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -3rem;
    z-index: 1000;
    background-color: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 0.5rem 0.75rem;
}

.skip-link:focus-visible {
    top: 0.5rem;
}

/* tablet + mobile styles */
@media screen and (max-width: 1024px) {
    body {
        font-family: "Alte Haas Grotesk", sans-serif;
        overflow-y: auto;
        overflow-x: hidden;
    }
}