@import "tailwindcss";

@theme {
    --color-our-white: #fafafa;
    --color-our-black: #262421;
    --color-darker-black: #21201c;
    --color-darker-white: #f5f5f4;
    --color-brighter-white: #ffffff;
    --color-borders: #e9e9e7;
    --color-brand-red: #ba1f33;
    --color-brighter-brand: #fa3252;

    --max-width-larger-prose: 75ch;

    --docs-columns: 0.17fr 0.72fr 0.15fr;
}

html,
body {
    background-color: var(--color-our-black);
    color: var(--color-our-black);
    height: 100%;
}

body {
    font-family: Charter, "Bitstream Charter", Cambria, serif;
}

a:hover {
    color: var(--color-brand-red);
}

.btn {
    color: var(--color-brand-red);
    font-size: 1.55rem;
    font-weight: bold;
}

.btn:hover {
    color: var(--color-brighter-brand);
}

.card {
    border-color: var(--color-borders);
    border-width: 1px;
    border-style: solid;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0 0.25rem 0 rgba(0, 0, 0, 0.025);
}

.card:hover {
    box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.05);
    background-color: var(--color-brighter-white);
}

.banner {
    background-color: var(--color-brand-red);
    color: var(--color-our-white);
}

.hero-background {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHZpZXdCb3g9IjAgMCA0NjYgNDY1Ij48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiIGNsaXBQYXRoVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMjMgMTRoNDc2djQ3NUgyM1ptMjQ3IDU4Yy0yOCAwLTU1IDYtODEgMjBhMTY0IDE2NCAwIDAgMC03MCAyMjRjNDUgODEgMTQ3IDExMSAyMjkgNjggODMtNDMgMTE0LTE0NCA3MC0yMjRsLTEzIDdjNDAgNzMgMTIgMTY0LTY0IDIwNC03NSAzOS0xNjggMTEtMjA4LTYyLTQxLTc0LTEyLTE2NSA2My0yMDRzMTY5L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gZD0iTTQ1NyA0MTFjLTcgMC0xNSAyLTIxIDctMzUgMjYtMTAgNzUgMzEgNDEgMzMtMjcgMTQtNDktMTAtNDhaTTI5MCAxOWMtMzEgMC02NyAxNC04NyAyNS0xNSA4LTY0IDM3LTEwNyA0Ni01NSAxMC04NyA2My01NSA5MCA1NCA0NCA1NiAxMDEgMTYgMTQzLTQ0IDQ2IDEgMTEzIDY0IDEwNiA2My04IDg5IDAgMTIxIDMyIDQxIDQxIDEzMiAyNSAxNTQtMzMgMTAtMjYgMjQtNTYgNTgtNjggNDEtMTQgNTMtNTkgMjYtOTEtMTktMjMtMjEtNDcgNS05NSAyMi00MCA1LTg0LTU2LTgxLTQ1IDMtNjQtMjctOTctNTlhNTkgNTkgMCAwIDAtNDItMTV6IiBjbGlwLXBhdGg9InVybCgjYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yOCAtMTkpIi8+PC9zdmc+");
    background-repeat: no-repeat;
    background-position-x: calc(50%);
    background-position-y: calc(100%);
    background-size: 175px;
}

@media (max-width: 1250px) {
    .hero-background {
        background-size: 100px;
        background-position-y: calc(50%);
    }
}

.prose {
    font-size: 1.125rem;
    line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5 {
    font-weight: bold;
}

.prose h1 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 2.25rem;
    line-height: 1.11111;
}

.prose h2 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-size: 1.66667em;
    line-height: 1.33333;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-size: 1.5rem;
    line-height: 1.4;
}

.prose h4 {
    margin-top: 0.8em;
    margin-bottom: 0.3em;
    font-size: 1.25rem;
    line-height: 1.5;
}

.prose h5 {
    margin-top: 0.8em;
    margin-bottom: 0.3em;
    font-size: 1.125rem;
    line-height: 1.55556;
}

.prose a {
    text-decoration: underline;
}

.prose p {
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.75;
}

.prose blockquote {
    border-left: 4px solid var(--color-borders);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1rem;
    color: var(--color-darker-black);
    font-style: italic;
    margin-top: 1em;
    margin-bottom: 1em;
}

.prose code,
.intro-code code {
    font-family:
        ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas,
        "DejaVu Sans Mono", monospace;
    font-size: 0.888889em;
}

.prose code:not(pre code) {
    font-weight: bold;
}

.prose code:not(pre code):before {
    content: "`";
}

.prose code:not(pre code):after {
    content: "`";
}

.prose pre,
.intro-code pre {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.prose pre,
.intro-code pre {
    background-color: var(--color-darker-black);
    overflow-x: auto;
    padding-top: 1em;
    padding-inline-end: 1.5em;
    padding-bottom: 1em;
    border-radius: 0.375rem;
    margin-top: 2em;
    margin-bottom: 2em;
    padding-inline-start: 1.5em;
    font-size: 0.888889em;
}

.prose ul {
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    .prose pre,
    .intro-code pre {
        border-radius: 0;
    }
}

.prose hr {
    border-color: var(--color-borders);
    margin-top: 2em;
    margin-bottom: 2em;
}
