@font-face {
    font-family: "Space Mono";
    src: url("../fonts/SpaceMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Space Mono";
    src: url("../fonts/SpaceMono-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: block;
}

@font-face {
    font-family: "Space Mono";
    src: url("../fonts/SpaceMono-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Space Mono";
    src: url("../fonts/SpaceMono-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: block;
}

/* Self-hosted so the umbrella logo renders identically everywhere, rather
   than however each OS/browser happens to pick a fallback symbol font. */
@font-face {
    font-family: "Noto Symbols";
    src: url("../fonts/NotoSansSymbols2-Umbrella.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

:root {
    font-family: "Space Mono", monospace;
    color-scheme: light dark;
    --bg: #ffffff;
    --fg: #000000;
    --grey: #1a1a1a;
    --grey-light: #999999;
    --blue: #00bfff;
    --red: #ff6b4a;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d0d0d;
        --fg: #ffffff;
        --grey: #f0f0f0;
        --grey-light: #707070;
    }
}

html {
    display: flex;
    justify-content: center;
    background-color: var(--bg);
    color: var(--grey);
}

body {
    font-family: inherit;
    font-size: min(calc((100vw - 2rem) / 27), 13px);
    line-height: 1.618;
    width: 45ch;
    margin: 0;
    padding: 0 1rem;
    white-space: nowrap;
}

p {
    margin: 0;
}

.bold {
    color: var(--fg);
}

.italic {
    font-style: italic;
}

.divider {
    border: none;
    border-top: 1px dashed var(--grey);
    margin: 1rem 0;
}

.divider-strong {
    border: none;
    border-top: 1px solid var(--grey);
    margin: 1rem 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    white-space: normal;
}

.nav {
    white-space: pre;
}

.footer {
    white-space: normal;
}

.text-wrap {
    white-space: normal;
}

#recent-locations-list,
#search-results-list {
    white-space: normal;
}

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

.text-blue {
    color: var(--blue);
}

.text-grey {
    color: var(--grey-light);
}

.logo {
    font-family: "Noto Symbols", sans-serif;
    font-size: min(calc((100vw - 2rem) / 5), 100px);
    line-height: 0.8;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    height: 0.85em;
    color: var(--grey-light);
}

a.text-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--red);
}

a.text-grey {
    text-decoration: underline;
    text-decoration-color: var(--red);
}

.text-center {
    text-align: center;
}

code,
pre {
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    white-space: pre;
}

input[type="text"] {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: var(--bg);
    border: none;
    border-bottom: 1px solid var(--grey-light);
    padding: 0.2rem 0.4rem;
    width: 100%;
    box-sizing: border-box;
}
