@import url("themes.css");
@import url("html.css");
@import url("sidebar.css");

@import url("lib.css");
@import url("functional.css");

:root {
    --monospace: "DM Mono", monospace;
    --serif:     "Lora", serif;
    --font-size: 1.25em;

    --readable-width-frac: 60%;
    --readable-width-min:  40rem;

    --sidebar-width: 20rem;
}

html {
    min-height: 100%;
}

body {
    color:       var(--foreground-1);
    background:  var(--background-1);
    font-family: var(--monospace);
    font-size:   var(--font-size);
    margin: 0px;
    min-height: 100vh;
}

main {
    min-width: 0;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}

.layout {
    display: flex;
    flex-direction: column;
}

h1 {
    color: var(--h1);
    margin-block: 1rem;
}

a {
    text-decoration: none;
}

input {
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.func__no-js .func__js-only {
    display: none;
}

.func__no-js .func__js-visible {
    visibility: hidden;
}

.func__js noscript {
    display: none;
}

@media (max-width: 60rem) {
    main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size: 1rem;
    }
}

