/*********************************************************
VARIABLES
*********************************************************/

:root {
	/* ---------- Base ---------- */
	--font-body: "Open Sans", Arial, sans-serif;
	--font-display: "Source Code Pro", monospace;

	--container: 1320px;
	--gutter: clamp(2rem, 5vw, 4rem);

	--transition-fast: 180ms ease;
	--transition-base: 300ms ease;
	--transition-slow: 600ms cubic-bezier(.22, 1, .36, 1);

	/* ---------- Theme ---------- */
	--color-bg: #ffffff;
	--color-bg-main: #f8f9f3;
	--color-bg-soft: #eef1e3;
	--color-bg-section: #fcfff3;

	--color-text: #181a14;
	--color-text-soft: #62665a;
	--color-text-faint: #9da196;
	--color-text-invert: #ffffff;

	--color-accent: rgb(154, 193, 0);
	--color-accent-dark: #789600;
	--color-accent-soft: #e6edc2;
	--color-extra: rgb(0, 154, 193);
	--color-dark: #181a14;

	--color-line: #dce2cc;

	/* ---------- Hero ---------- */
	--color-bg-hero: #fbfdf1;
	--color-hero-pixels: rgb(88, 188, 179);
}





/*********************************************************
RESET
*********************************************************/

*,
*::before,
*::after {
    box-sizing: border-box;
}
img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select,
option,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}





/*********************************************************
BASICS
*********************************************************/

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.65;
}

body {
    margin: 0;
    background: var(--color-bg-main);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

::selection {
    background: var(--color-extra);
    color: var(--color-text-invert);
}

:focus, #logo:focus:before, form :focus-within {
    outline: 3px solid var(--color-extra);
    outline-offset: 2px;
}

#logo:focus {
    outline: none;
}

:active, :active::before, :active::after {
    outline-color: transparent !important;
}






/*********************************************************
ACCESSIBILITY
*********************************************************/

.skip-link {
    position: fixed;
    z-index: 9999;
    top: -100px;
    left: 20px;
    padding: 10px 16px;
    background: var(--color-dark);
    color: #fff;
}

.skip-link:focus {
    top: 20px;
}
