/* inter-200 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 200;
    src: url('/assets/fonts/inter-v13-latin_latin-ext-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/inter-v13-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/inter-v13-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/inter-v13-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-900 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    src: url('/assets/fonts/inter-v13-latin_latin-ext-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* reddit-mono-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Reddit Mono';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/reddit-mono-v1-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* reddit-mono-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Reddit Mono';
    font-style: normal;
    font-weight: 800;
    src: url('/assets/fonts/reddit-mono-v1-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* {
    box-sizing: border-box;
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #e5e9de;

    --primary: #8A9B68;
    --secondary: #868587aa;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body main {
    flex-grow: 1;
}

a, button {
    transition: all .3s ease;
}

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

h2, h3, h4, p, li {
    margin: 0;
    margin-bottom: 1rem;
    line-height: 1.5;
    
    font-family: Inter, Arial, Helvetica, sans-serif;
}

h2, h3, h4 {
    margin-top: 3rem;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

h2 {
    font-size: 2rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0rem 0.5rem 5rem -1rem #0006;
    margin: 0.5rem 0;
}

.container, .splash-container, .header-container {
    max-width: 1248px;
    margin: 0 auto;
}

header {
    background-color: white;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 .125rem .25rem #6666 !important;
    z-index: 100;
    position: sticky;
    top: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.header-container {
    display: flex;
    align-items: center;
}

.header-brand {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-right: 1.25rem;
}

.brand {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    user-select: none;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.35rem;
    border-radius: 0.125rem;
    text-decoration: none;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.brand.first-part {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.brand.second-part {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top: 0.125rem solid;
    border-right: 0.125rem solid;
    border-bottom: 0.125rem solid;
    background-color: white;
    color: var(--primary);
    font-size: 1em;
    padding: 0.4rem 0.5rem;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav a {
    display: block;
    color: black;
    padding: 0.45rem 0.5rem;
    margin: 0 0.5rem;
    background-color: #f0f0f0;
    border-radius: 0.25rem;
    font-size: 1.05rem;
    text-decoration: none;
}
.header-nav a:hover {
    background-color: #e0e0e0;
}

footer {
    padding: 1rem;
    border-top: 1px solid #aaa;
    text-align: center;
}
footer p:last-child {
    margin: 0;
}

h1 {
    margin: 3rem 0;
    padding: 0;
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
}

.splash {
    min-height: calc(100vh - 53px);
    background-color: #8A9B68;
    color: white;
    margin: 0;
    padding: 3rem 0;
}

.splash-container {
    padding: 2rem;
}

.splash h1 {
    margin: 2rem 0;
    padding: 0;
    text-align: center;
    font-size: 6rem;
    font-weight: bold;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.splash .subtitle {
    margin: 2rem 0;
    padding: 0;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    font-family: Inter, Arial, Helvetica, sans-serif; 
}

.splash .ctas {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.splash .ctas .btn {
    margin: 0.5rem;
}

.field {
    min-height: 100vh;
    margin: 0;
    padding: 3rem;
    display: flex;
    align-items: center;
    position: relative;
}

.field-light {
    background-color: #eee;
    color: #333;
}
.field-dark {
    background-color: #222;
    color: #fff;
}
.field-white {
    background-color: #fff;
    color: #000;
}
.field-blue {
    background-color: #00a;
    color: #fff;
}

.field .field-image {
    width: 0;
    flex-grow: 1;
    padding: 2rem;
}
.field .field-image img {
    margin: 0;
    border-radius: 0.5rem;
    box-shadow: 0rem 0.5rem 5rem -2rem #000;
}
.field .field-text {
    width: 0;
    flex-grow: 1;
    padding: 1rem;
}
.field .field-text h2 {
    font-size: 4rem;
    margin: 1rem 0;
    max-width: 800px;
}
.field .field-text p {
    font-size: 1.25rem;
    margin: 1.5rem 0;
    max-width: 800px;
}

.field .field-next {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 2rem;
}
.field .field-next a {
    text-decoration: none;
    opacity: 0.25;
}

.btn {
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    color: black;
    text-decoration: none;
    user-select: none;
    font: inherit;
    border: 2px solid transparent;
    border-radius: 0.125rem;
    font-weight: bold;
    display: inline-block;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.btn.btn-primary {
    background-color: #798a57;
    color: white;
}
.btn.btn-secondary {
    background-color: #ddd;
    color: #000;
}

.btn.btn-inverse-primary {
    background-color: white;
    color: #333333;
}
.btn.btn-inverse-primary:hover {
    background-color: #f0f0f0;
}

.btn.btn-inverse-secondary {
    color: white;
    border-color: white;
}
.btn.btn-inverse-secondary:hover {
    background-color: #fff1;
}

.btn.btn-xl {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.35rem;
}


.card-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.card-grid .card {
    margin: 0 1rem;
    width: 0;
    max-width: 34%;
    flex-grow: 1;

    background-color: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 5rem -3rem #3336;
}

.card-grid .card h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
}
.card .card-body {
    flex-grow: 1;
}

.card .card-footer {
    margin-top: 1rem;
}

.notice {
    padding: 1rem 1.5rem;
    background-color: white;
    border-left: 0.5rem solid;
}

.notice.notice-info {
    border-left-color: #3ad;
}
.notice.notice-danger {
    border-left-color: #d33;
}
.notice.notice-warning {
    border-left-color: #dd3;
}
.notice.notice-success {
    border-left-color: #3d3;
}

.notice p:last-child {
    margin-bottom: 0;
}

code {
    font-size: inherit;
    font-family: 'Reddit Mono', 'Courier New', Courier, monospace;
    background-color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}

pre {
    background-color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    line-height: 1.5;
    font-size: inherit;
    overflow: auto;
}
pre code {
    display: block;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
}



.docs-container {
    display: flex;
    min-height: calc(100vh - 111.8px);
    align-items: stretch;
    max-width: none;
    margin: 0 auto;
    max-width: 1248px;
}

.docs-container nav.docs-nav {
    flex-grow: 1;
    max-width: 350px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.docs-container nav.docs-nav h3 {
    margin: 0.25rem 0;
    margin-top: 0.75rem;
    padding: 0.15rem 0.75rem;
}
.docs-container nav.docs-nav a {
    display: block;
    margin: 0.25rem 0;
    padding: 0.75rem;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 0.125rem;
}
.docs-container nav.docs-nav a.active,
.docs-container nav.docs-nav a:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.docs-container nav.docs-nav a.active {
    box-shadow: 0rem 0.5rem 2rem -1rem #0006;
}


.docs-container .docs-main {
    width: 0;
    padding: 2rem;
    flex-grow: 1;
}

.docs-container .docs-main h1 {
    font-size: 2.5rem;
    text-align: left;
    font-weight: 900;
    margin-top: 0;
}


@media all and (max-width: 812px) {
    .field {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        min-height: none;
    }

    .field .field-text h2 {
        font-size: 2rem;
    }

    .field .field-next {
        display: none;
    }

    .field .field-image { order: 0; width: 100%; flex-grow: 0; }
    .field .field-text { order: 1;  width: 100%; flex-grow: 0; }

    h1 {
        font-size: 2rem;
        margin: 1rem 0;
    }

    h2, h3, h4 {
        margin-top: 2rem;
    }

    .splash {
        padding: 0;
        min-height: calc(100vh - 103px);
    }
    .splash .splash-container {
        padding: 1rem;
    }

    .splash h1 {
        font-size: 3.5rem;
    }

    .splash .subtitle {
        font-size: 2rem;
    }

    .btn.btn-xl {
        font-size: 1.15rem;
    }

    header .header-container {
        flex-direction: column;
        align-items: stretch;
    }

    header .header-brand {
        margin: 0;
        margin-bottom: 0.5rem;
    }

    header .header-nav {
        margin: 0 -0.25rem;
    }

    header .header-nav a {
        width: 0;
        flex-grow: 1;
        margin: 0 0.25rem;
        padding: 0.75rem;
        text-align: center;
    }
    
    .header-nav {
        display: flex;
        align-items: center;
    }
    
    .header-nav a {
        display: block;
        color: black;
        padding: 0.45rem 0.5rem;
        margin: 0 0.5rem;
        background-color: #f0f0f0;
        border-radius: 0.25rem;
        font-size: 0.95rem;
        text-decoration: none;
    }
    .header-nav a:hover {
        background-color: #e0e0e0;
    }

    .container {
        padding: 0.5rem;
    }

    .card-grid {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
    }

    .card-grid .card {
        max-width: none;
        width: initial;
        flex-grow: 0;
        margin: 0;
        margin-bottom: 1rem;
    }

    .container:empty { display: none; }

    .docs-container {
        flex-direction: column;
        max-width: none;
    }
    .docs-container nav.docs-nav {
        max-width: none;
        width: 100%;
    }

    .docs-container .docs-main {
        width: 100%;
    }
}