:root {
    --bg: #030303;
    --text: #e8e8e8;
    --muted: #666;
    --link: #88aaff;
    --link-hover: #bbddff;
    --link-visited: #551a8b;
    --red: #cc4444;
    --red-hover: #D86F6F;
    --green: #43CC4F;
    --green-hover: #6FD878;
    --font: sans-serif;
    --font-title: serif;
    --font-accent: monospace, monospace;
    --font-big: 1.35rem;
    --font-normalbig: 1.15rem;
    --font-normal: 1rem;
    --font-normalsmall: 0.85rem;
    --font-small: 0.65rem;
    --main-width: 900px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
}

html {
    height: 100%;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.25;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    margin: auto;
    max-width: var(--main-width);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

main {
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    width: 100%;
}

p.small {
    font-size: var(--font-small);
}

a {
    text-decoration: none;
    color: var(--link);
}

a:visited {
    color: var(--link-visited);
}

h1 {
    font-size: var(--font-big);
    letter-spacing: 0.05em;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-title);
    color: var(--text)
}

h2 {
    font-size: var(--font-normalbig);
    letter-spacing: 0.05em;
    text-decoration: none;
    font-weight: normal;
    padding-bottom: 1rem;
}

h3 {
    font-size: var(--font-normalbig);
    letter-spacing: 0.05em;
    text-decoration: none;
    font-weight: normal;
    padding-top: 1rem;
}

footer {
    padding: 0.5rem 1rem 0 1rem;
    border-top: 1px solid var(--border);
    font-size: var(--font-small);
    margin-top: auto;
}

#pagination {
    display: flex;
    flex-direction: row;
    margin-bottom: 5rem;
    justify-content: space-evenly;
    width: 100%;
}

header {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 1rem 0.5rem 0 0.5rem;
}

header p {
    padding: 0;
}

header .subtitle {
    font-size: var(--font-small);
}

header .meta {
    margin-right: auto;
    margin-left: 0.5rem;
}

.margin-left {
    margin-left: auto;
}

.content {
    display: flex;
    flex-direction: row;
    height: fit-content;
    width: 100%;
    margin: 0;
    padding: 0;
}

.meta {
    font-size: var(--font-normalsmall);
    color: var(--muted);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

aside.options {
    display: flex;
    flex-direction: row;
    height: fit-content;
    font-size: var(--font-normalsmall);
}

.entry {
    max-width: 100vw;
    padding: 0.5rem;
}

.entry:hover {
    box-shadow: var(--muted) 0px 0px 1px;
}

.entry.visited {
    opacity: .5;
}

.entry-main {
    display: flex;
    flex-direction: row;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
}

.entry-main > form {
    flex-shrink: 0;
}

.entry .feed-tag {
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--border);
}

.entry .date,
.entry .visits,
.entry .feed-tag,
.eye,
.tag,
.author {
    font-size: var(--font-small);
    color: var(--muted);
    white-space: nowrap;
}

.entry-tags {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    height: fit-content;
    overflow: scroll;
}

.tag {
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--border);
}

.author {
    font-style: italic;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-info {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    min-width: 0;
}

.favicon,
p svg,
button svg {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    max-width: 1rem;
    vertical-align: middle;
    display: inline-block;
}

.entry .date,
.entry .visits,
.entry .feed-tag {
    flex-shrink: 0;
}

input {
    flex: 1;
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    font-size: var(--font-small);
    outline: none;
    background-color: var(--bg);
    color: var(--text);
    border: 1px solid var(--muted);
    border-radius: 0;
}

input:focus {
    border-color: var(--text);
}

input::placeholder {
    color: var(--muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: var(--font-small);
    white-space: nowrap;
    cursor: pointer;
}

input[type="checkbox"] {
    cursor: pointer;
}

.actions-bar {
    margin-bottom: 2rem;
}

.feed-list {
    list-style: none;
}

.feed-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.feed-item .feed-count {
    margin-left: auto;
}

.feed-title {
    font-size: var(--font-normal);
}

.feed-url {
    color: var(--muted);
    font-size: var(--font-small);
    word-break: break-all;
}

.feed-count {
    color: var(--muted);
    font-size: var(--font-small);
    white-space: nowrap;
}

.feed-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.empty {
    color: var(--muted);
    padding: 2rem 0;
    font-style: italic;
    text-align: center;
}

form.inline {
    display: inline;
    margin: 0;
    padding: 0;
}

.options form.inline {
    width: 100%;
    min-width: 5em;
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}

form.inline input {
    min-width: 0;
}

form.inline button {
    display: inline;
    background: none;
    border: 0;
    box-shadow: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    vertical-align: baseline;
    color: var(--text);
}

a.btn,
button.btn {
    color: var(--text);
    width: fit-content;
    white-space: nowrap;
}

a:hover,
a:hover svg,
form.inline button:hover,
form.inline button:hover svg {
    text-decoration: underline;
}

.btn {
    color: var(--muted);
    background: none;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    font-size: var(--font-normalsmall);
}

.btn:hover,
.btn.active {
    color: var(--text);
    text-decoration: underline solid;
}

.btn-danger {
    color: var(--red);
}

button.visited.dislike {
    color: var(--red);
}

button.visited.dislike:hover, button.visited.dislike:hover svg {
    color: var(--red-hover);
}

button.visited.like {
    color: var(--green);
}

button.visited.like:hover, button.visited.like:hover svg {
    color: var(--green-hover);
}

.entry-title {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
    font-size: var(--font-normal);
    margin-right: auto;
    max-height: 3rem;
    overflow: hidden;
}

.tree,
.tree ul {
    list-style: none;
}

.tree ul {
    margin-left: 0.75rem;
}

.tree li {
    padding-left: 0.75rem;
    border-left: 1px solid var(--muted);
    position: relative;
}
.tree li::before {
    display: block;
    content: "";
    position: absolute;
    top: 0.8rem;
    left: -1px;
    height: 100%;
    width: 0.5rem;
    border-top: 1px solid var(--muted);
    margin-top: -1px;
    border-radius: 1px 0 0 0;
}
.tree li:last-child::before {
    background-color: var(--bg);
    height: 1rem;
}
.tree > li,
.tree > li::before {
    border: 0;
}

form,
button {
    background-color: unset;
    text-align: center;
}

form.vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
    margin-bottom: 1rem;
}

body#extension {
    padding: 1rem;
}

body#extension form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body#extension input {
    flex: unset;
}

body#extension label.checkbox-label {
    padding-left: 1rem;
}

body#extension button {
    width: fit-content;
}

body#extension h1 {
    padding-bottom: 1rem;
}

.muted {
    color: var(--muted);
}
