/* VARIABLES GENERATED WITH TAILWIND CONFIG ON 7/16/2022.
    Tokens location: ./tailwind.config.js */

:root {
    --color-primary: #ff5400;
    --color-secondary: #86c7f0;
    --color-light: #f3f3f3;
    --color-dark: #252525;
    --space-size-0: clamp(0.83rem, 0.9rem + -0.32vw, 0.67rem);
    --space-base: clamp(1rem, 1rem + 0vw, 1rem);
    --space-size-1: clamp(1.2rem, 1.08rem + 0.59vw, 1.5rem);
    --space-size-2: clamp(1.44rem, 1.12rem + 1.58vw, 2.25rem);
    --space-size-3: clamp(1.73rem, 1.09rem + 3.21vw, 3.38rem);
    --space-size-4: clamp(2.07rem, 0.91rem + 5.83vw, 5.06rem);
    --space-size-5: clamp(2.49rem, 0.5rem + 9.96vw, 7.59rem);
    --space-size-6: clamp(5rem, 0.5rem + 9.96vw, 13rem);
    --size-size-0: clamp(0.83rem, 0.9rem + -0.32vw, 0.67rem);
    --size-base: clamp(1rem, 1rem + 0vw, 1rem);
    --size-size-1: clamp(1.2rem, 1.08rem + 0.59vw, 1.5rem);
    --size-size-2: clamp(1.44rem, 1.12rem + 1.58vw, 2.25rem);
    --size-size-3: clamp(1.73rem, 1.09rem + 3.21vw, 3.38rem);
    --size-size-4: clamp(2.07rem, 0.91rem + 5.83vw, 5.06rem);
    --size-size-5: clamp(2.49rem, 0.5rem + 9.96vw, 7.59rem);
}

/* Modern reset: https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing rules */

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

/* Remove default margin */

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */

html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */

a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */

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

/* Inherit fonts for inputs and buttons */

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

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Global styles */

body {
    padding: var(--space-size-2) var(--space-size-1);
    --tw-bg-opacity: 1;
    background-color: rgb(243 243 243 / var(--tw-bg-opacity));
    font-family: "futura-pt", sans-serif;
    font-size: clamp(1.20rem, 1.08rem + 0.59vw, 1.50rem);
    --tw-text-opacity: 1;
    color: rgb(87 87 87 / var(--tw-text-opacity));
}

h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 900;
}

h1 {
    font-size: clamp(2.07rem, 0.91rem + 5.83vw, 5.06rem);
}

h2 {
    font-size: clamp(1.73rem, 1.09rem + 3.21vw, 3.38rem);
}

h3 {
    font-size: clamp(1.44rem, 1.12rem + 1.58vw, 2.25rem);
}

p,
li {
    max-width: 70ch;
}

h1 {
    max-width: 15ch;
}

h2,
h3 {
    max-width: 30ch;
}

a {
    color: currentcolor;
    text-decoration-color: rgba(17, 17, 17, .2);
}

a:hover {
    text-decoration-color: currentcolor;
}

/* Prose */

h2,
h3 {
    --flow-space: var(--space-size-3);
}

h2+*,
h3+* {
    --flow-space: var(--space-base);
}

/* So text scale renders nicely */

div[class*='text-'] {
    --flow-space: 1rem;
    line-height: 1;
    font-weight: 700;
}