/* Document defaults, local font faces and shared typography. */
@font-face  {
    font-family: Inter;
    src: url("../fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face  {
    font-family: Inter;
    src: url("../fonts/inter-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face  {
    font-family: Inter;
    src: url("../fonts/inter-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face  {
    font-family: Inter;
    src: url("../fonts/inter-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --bs-font-sans-serif: var(--app-font);
    --bs-body-font-family: var(--app-font);
    --bs-primary: var(--app-primary);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-padding-top: calc(var(--header) + 16px);
}

body {
    margin: 0;
    color: var(--app-text);
    background: var(--app-body-bg);
    min-height: 100dvh;
    min-width: 0;
}

code {
    font-family: var(--app-font);
}

a {
    color: var(--app-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,a,input,select,textarea {
    touch-action: manipulation;
}

h1,h2,h3,h4,p {
    margin: 0;
}

strong,b {
    font-weight: 600;
}

small {
    color: var(--app-muted);
}

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

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--app-card-bg);
}

.skip-link:focus {
    top: 8px;
}

:root {
    --type-micro: calc(var(--app-small) * .9286);
    --type-caption: calc(var(--app-small) * .9643);
    --type-small: var(--app-small);
    --type-body: var(--app-font-size);
    --type-section: calc(var(--app-font-size) * 1.1429);
    --type-title: calc(var(--app-font-size) * 1.7857);
    --line-body: 1.6;
}
