/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    min-height: 100dvh;
    overflow-x: hidden;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

/* Font faces — Priestacy (claim) */
@font-face {
    font-family: 'Priestacy';
    src: url('../fonts/Priestacy.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

/* Font faces — DIN 2014 */
@font-face {
    font-family: 'DIN 2014';
    src: url('../fonts/DIN-2014_Light.woff2') format('woff2'),
         url('../fonts/DIN-2014_Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'DIN 2014';
    src: url('../fonts/DIN-2014_Regular.woff2') format('woff2'),
         url('../fonts/DIN-2014_Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'DIN 2014';
    src: url('../fonts/DIN-2014_Demi.woff2') format('woff2'),
         url('../fonts/DIN-2014_Demi.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'DIN 2014';
    src: url('../fonts/DIN-2014_Bold.woff2') format('woff2'),
         url('../fonts/DIN-2014_Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* App layout */
#app {
    padding-top: var(--header-height);
    min-height: 100dvh;
}

/* Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
