@import url('tokens.css');

@font-face {
    font-family: "Cabin Condensed";
    src: url("../fonts/cabin-condensed/CabinCondensed-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cabin Condensed";
    src: url("../fonts/cabin-condensed/CabinCondensed-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Cabin Condensed";
    src: url("../fonts/cabin-condensed/CabinCondensed-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Cabin Condensed";
    src: url("../fonts/cabin-condensed/CabinCondensed-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Trebuchet MS", "Cabin Condensed", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-family: "Trebuchet MS", "Cabin Condensed", Arial, sans-serif;
    line-height: 1.2;
}

h1 {
    color: #075E6B;
}

html[data-theme="dark"] h1 {
    color: #20B8C5;
}

p,
li,
span,
a,
input,
select,
textarea,
button {
    font-family: inherit;
}

a {
    color: var(--essayfi-teal);
}

img {
    max-width: 100%;
    height: auto;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--essayfi-ink);
    font-family: "Cabin Condensed", sans-serif;
    text-decoration: none;
}

.site-brand img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand-name {
    color: var(--essayfi-ink);
    font-family: "Cabin Condensed", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand-fi {
    position: relative;
    color: var(--essayfi-teal);
}

.brand-fi::before,
.brand-fi::after {
    position: absolute;
    height: 2px;
    content: "";
}

.brand-fi::before {
    bottom: -2px;
    left: 0;
    width: 100%;
    background: var(--essayfi-teal);
    transform: skewX(-20deg);
}

.brand-fi::after {
    bottom: -15px;
    left: 10%;
    width: 80%;
    margin-bottom: 10px;
    background: var(--essayfi-ink);
    opacity: 0.2;
}

html[data-theme="dark"] .site-brand img,
html[data-theme="dark"] .essayfi-brand-logo,
html[data-theme="dark"] .essayfi-brand-medallion,
html[data-theme="dark"] .essayfi-brand-medallion img {
    border: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 28px, 1120px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
