/* Reset + base typography */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ideo-font-body);
    font-size: var(--ideo-fs-base);
    line-height: var(--ideo-lh-normal);
    color: var(--ideo-color-text);
    background: var(--ideo-color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, picture, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ideo-color-primary-dark);
    text-decoration: none;
    transition: color var(--ideo-dur-fast) var(--ideo-ease);
}
a:hover, a:focus-visible { color: var(--ideo-color-secondary); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ideo-font-display);
    font-weight: var(--ideo-fw-display, 500);
    line-height: var(--ideo-lh-tight);
    margin: 0 0 var(--ideo-sp-4);
    color: var(--ideo-color-text);
}

h1 { font-size: var(--ideo-fs-h1); }
h2 { font-size: var(--ideo-fs-h2); }
h3 { font-size: var(--ideo-fs-h3); }

p { margin: 0 0 var(--ideo-sp-4); }

ul, ol { margin: 0 0 var(--ideo-sp-4); padding-left: var(--ideo-sp-5); }

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    color: inherit;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

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

.screen-reader-text {
    position: absolute !important;
    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;
    top: -100px;
    left: 0;
    padding: var(--ideo-sp-3) var(--ideo-sp-4);
    background: var(--ideo-color-secondary);
    color: var(--ideo-color-text-inverse);
    z-index: var(--ideo-z-modal);
}
.skip-link:focus { top: 0; }

.container {
    width: 100%;
    max-width: var(--ideo-container-max);
    margin: 0 auto;
    padding: 0 var(--ideo-container-pad);
}
.container--narrow { max-width: var(--ideo-container-narrow); }
