/* Style reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Sensible defaults */

* {
    /* give everything the logical box sizing */
    -webkit-box-sizing: border-box;
            box-sizing: border-box;

    /* prevent long words from leaking out of the box */
    /* (browser before 2020) */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* prevent long words from leaking out of the box */
/* (browser after 2020) */
@supports( overflow-wrap: anywhere ) {
    * {
        /* better but implemented in 2020 */
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

:root {
    /* Attempt at preventing samsung internet from ignoring my dark mode colors */
    color-scheme: light dark;

    font-family: "Nunito", "Josefin Sans", sans-serif;
    font-size: 16px;
    letter-spacing: .02rem;
    font-weight: 300;
    color: var(--color-text);

    /* nice font settings */
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

    /* vars */
    --side-padding: 2rem; /*1.25rem;*/
    --min-interactible-size: 3rem;

    --color-primary: #51669a;
    --color-valid: #519a5c;
    --color-valid-bg: #edf5ee;
    --color-error: #b00d0d;
    --color-error-bg: #fbf3f3;
    --color-light-grey: #d7d9df;
    --color-grey: #69728d;
    --color-bg: white;
    --color-bg-layer-1: var(--color-bg);
    --color-bg-layer-2: var(--color-bg);
    --color-text: #081027; 
    --color-text-emphasis: var(--color-grey);
    --color-active: var(--color-primary);
    --color-overlay: var(--color-text);
    
    
}
@media (prefers-color-scheme: dark) {
    :root {
        font-weight: 400;

        --color-primary: #1c2d46;
        --color-valid: #9bd9a4;
        --color-valid-bg: #0d161f;
        --color-error: #db6767;
        --color-error-bg: #18121d;
        --color-light-grey: rgba(255,255,255,.02);
        --color-grey: #0f1a2d; /* TEXT: #99a3bf; */
        --color-bg: #030815;
        --color-bg-layer-1: #0b101d;
        --color-bg-layer-2: #141925;
        --color-text: rgba(255,255,255,.75);
        --color-text-emphasis: #99a3bf;
        --color-active: rgba(255,255,255, 1);
        --color-overlay: var(--color-bg);
        
    }
}
@media (max-width: 500px) {
    :root { 
        --side-padding: 1rem;
        --min-interactible-size: 2.5rem;
    }
}

html {
    /* Attempt at preventing samsung internet from ignoring my dark mode colors */
    background-color: var(--color-bg);
}

body {
    min-height: 100vh;
    padding-bottom: 6rem;
    background-color: var(--color-bg);
}

img, svg, picture, video, iframe {
    /* handles images and svg as blocks */
    display: block;
    max-width: 100%;
    height: auto;
}
@media (prefers-color-scheme: dark) {
    img, svg, picture, video, iframe {
        opacity: .9;
    }
}

img, iframe {
    background-color: var(--color-light-grey);
}

svg {
    fill: currentColor;
    flex-shrink: 0;
}

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

h1, h2, h3, h4, h5, h6, thead {
    font-family: "Yeseva One", serif;
}

/* makes it nicer if title is divided on 2 lines */
/* h1, h2, h3, h4, h5, h6, thead, button {
    text-wrap: balance;
} */

p, li, figcaption {
    /* prevents lonely words on a newline (will try to put 2 at least) */
    text-wrap: pretty;
}

strong {
    font-weight: 600;
}
@media (prefers-color-scheme: dark) {
    strong {
        font-weight: 800;
    }
}

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

button {
    padding: 0;
    border: 0;
    font-size: 1rem;
    letter-spacing: inherit;
    cursor: pointer;
}

/* Disable blue highlight on button click */
button, a {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button:hover, a:hover {
    color: var(--color-active)
}

/* Re-usable classes */

.not-displayed {
    display: none;
}

.base-container {
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    width: 100%;
    max-width: 2000px;
    margin: auto;
}

.title-small {
    font-family: 'Yeseva One', serif;
    font-size: 1.67rem;
    letter-spacing: 0;
    opacity: .8;
}
@media (max-width: 1080px) {
    .title-small {
        font-size: 1.42rem;
    }
}
@media (max-width: 500px) {
    .title-small {
        font-size: 1.25rem;
    }
}

.title-large {
    font-family: 'Yeseva One', serif;
    font-size: 2.7rem;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--color-text-emphasis);
}
@media (max-width:1080px) {
    .title-large {
        font-size: 2.3rem;
    }
}
@media (max-width:500px) {
    .title-large {
        font-size: 1.9rem;
    }
}
@media (max-width:350px) {
    .title-large {
        font-size: 1.7rem;
    }
}

.primary-btn {
    display: block;
    color: var(--color-bg);
    background-color: var(--color-grey);
    padding: .6rem 1.25rem;
    margin-top: 1rem;
    font-weight: 400;
    border-radius: .2rem;
}
@media (prefers-color-scheme: dark) {
    .primary-btn {

        color: var(--color-text);
        border: 1px solid var(--color-text)
    }
}

.primary-btn:hover {
    color: var(--color-bg);
    background-color: var(--color-primary);
    transition: background-color ease-out .2s;
}
@media (prefers-color-scheme: dark) {
    .primary-btn:hover {
        color: var(--color-text);
    }
}