/* ==== TOKENS ==== */
:root {
    --amber: #dd9a31;
    --ink: #141b28;
    --midnight: #1c2b4d;
    --muted: #5d6674;
    --paper: #f7f8fa;
    --paper-soft: #eef1f6;
    --border: #dcdfe6;
    --border-dark: #33436b;
    --font-display: "Chivo", "Helvetica Neue", Arial, sans-serif;
    --font-text: "Manrope", "Segoe UI", Arial, sans-serif;
    --container: 75rem;
    --gutter: 1.5rem;
    --radius: 0.25rem;
    --line: 0.0625rem;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==== FONT FACES ==== */
@font-face {
    font-display: swap;
    font-family: "Chivo";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/chivo-latin.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Chivo";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/chivo-latin.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Chivo";
    font-style: normal;
    font-weight: 900;
    src: url("../fonts/chivo-latin.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
}

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

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

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

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

table {
    border-collapse: collapse;
    width: 100%;
}

input,
select,
textarea {
    font: inherit;
}

/* ==== BASE ==== */
html {
    color-scheme: light;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 6.5rem);
}

h2 {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

p {
    color: var(--muted);
}

strong {
    color: var(--ink);
    font-weight: 700;
}

::selection {
    background-color: var(--amber);
    color: var(--midnight);
}

:focus-visible {
    outline: 0.125rem solid var(--amber);
    outline-offset: 0.1875rem;
}
