/*TODO add minify and integrity */
body {
    font-family: -apple-system,BlinkMacSystemFont,segoe ui,Roboto,Oxygen,Ubuntu,Cantarell,open sans,helvetica neue,sans-serif;
    font-size: 18px;
    line-height: 1.6;
    word-break: break-word;
}


a, button, body, h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
}

.list {
    background: var(--code-bg);
}

body{
    display: block;
}

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

#menu li + li {
    margin-inline-start: var(--gap);
}

li {
    display: list-item;
    text-align: match-parent;
}

::marker {
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    white-space: pre;
    text-transform: none;
}

#menu {
    list-style: none;
    word-break: keep-all;
    overflow-x: auto;
    white-space: nowrap;
}

#menu a {
    font-size: 16px;
}

a {
    text-decoration: none;
    cursor: pointer;
}

.first-entry .entry-header h1 {
    font-size: 34px;
    line-height: 1.3;
}

h1 {
    margin-top:0;
    margin-bottom:0;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

.first-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    margin: var(--gap)0 calc(var(--gap) * 2);
}

.entry-content {
    margin: 8px 0;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
/*    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;*/
}

.first-entry .entry-header {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-info .entry-content {
    -webkit-line-clamp: unset;
}

.first-entry .entry-content {
    margin: 14px 0;
    font-size: 16px;
    -webkit-line-clamp: 3;
}

.logo, #menu {
    display: flex;
    margin: auto var(--gap);
}

.main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) * 2);
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: var(--gap);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: calc(var(--nav-width) + var(--gap) * 2);
    margin-inline-start: auto;
    margin-inline-end: auto;
    line-height: var(--header-height);
}

.dark {
    --theme: rgb(29, 30, 32);
    --entry: rgb(46, 46, 51);
    --primary: rgb(218, 218, 219);
    --secondary: rgb(155, 156, 157);
    --tertiary: rgb(65, 66, 68);
    --content: rgb(196, 196, 197);
    --hljs-bg: rgb(46, 46, 51);
    --code-bg: rgb(55, 56, 62);
    --border: rgb(51, 51, 51);
}

.dark.list {
    background: var(--theme);
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    margin-bottom: 0;
}

.post-entry {
    position: relative;
    margin-bottom: var(--gap);
    padding: var(--gap);
    background: var(--entry);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--border);
}

.entry-header h2 {
    font-size: 24px;
    line-height: 1.3;
}

.footer {
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: calc((var(--footer-height) - var(--gap))/2)var(--gap);
    text-align: center;
    line-height: 24px;
}

.footer, .top-link {
    font-size: 12px;
    color: var(--secondary);
}

.list-items {
    display: inline-block;
    min-width: 30px;
    min-height: 30px;
    margin: 10px;
}

.list-items a.title {
    text-align: left;
    display: inline-block;
    min-width: 30px;
    min-height: 30px;
    margin:10px;
}

.list-items a.title p {
    font-weight: bold;
}

ul.pagination {
    text-align: center;
}

ul.pagination li.page-item {
    display: inline;
    margin: 0 10px;
}

ul.pagination li.page-item.active {
    font-weight: bold;
}

.list-parent {
    margin: 20px 0;
}

.single-page span.title {
    font-weight: bold;
}

.single-map {
    font-weight: bold;
    font-size: x-large;
    margin: 20px 0;
}
