:root {
    --bg: #0c0c0c;
    --fg: #c8c8c8;
    --fg-dim: #666;
    --fg-bright: #e8e8e8;
    --accent: #ff6600;
    --link: #88aaff;
    --link-hover: #bbddff;
    --link-visited: #551a8b;
    --red: #cc4444;
    --red-hover: #ee5555;
    --border: #222;
    --tag-bg: #1a1a1a;
    --input-bg: #111;
    --btn-bg: #1a1a1a;
    --font: monospace, monospace;
    --font-big: 1.35rem;
    --font-normalbig: 1.15rem;
    --font-normal: 1rem;
    --font-normalsmall: 0.75rem;
    --font-small: 0.65rem;
    --main-width: 700px;
}

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

html {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    margin: auto;
    max-width: var(--main-width);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

p {
    color: var(--fg-dim);
}

main {
    color: var(--fg);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

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

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

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

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

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

header p {
    padding: 0;
}


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

header .meta {
    margin-right: auto;
    margin-left: .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(--fg-dim);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

aside.options {
    display: flex;
    flex-direction: row;
    height: fit-content;
}

.entry {
    max-width: 100vw;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--border);
}

.entry:hover {
    background: var(--tag-bg);
}

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

.entry .feed-tag {
    background: var(--tag-bg);
    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(--fg-dim);
    white-space: nowrap;
}

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

.tag {
    background: var(--tag-bg);
    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 {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    max-width: 1rem;
    position: relative;
    top: 0.3rem;
}

.entry-tags {
    flex: 0 1 auto;
    min-width: 0;
    overflow-x: auto;
}

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

input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--fg-bright);
    padding: 0.5rem 0.75rem;
    font-size: var(--font-small);
    outline: none;
}

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

input::placeholder {
    color: var(--fg-dim);
}

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

input[type="checkbox"] {
    accent-color: var(--accent);
    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-item:hover {
    background: var(--input-bg);
}

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

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

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

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

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

a.btn,
button.btn {
    width: fit-content;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

a,
a:visited,
a.visited {
    color: var(--fg-dim);
    text-decoration: none;
}

a:hover,
a:hover svg {
    color: var(--link-hover);
    fill: var(--link-hover);
    text-decoration: underline;
}

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

.btn:hover,
.btn.active {
    color: var(--accent);
    border-color: var(--accent);
}

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

.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;
}

a.regular {
    color: var(--link);
}

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

a.comments {
    margin-left: auto;
}

div.comments {
    padding-top: 1rem;
    padding-left: 1rem;
}

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

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

.tree li {
    padding-left: 0.75rem;
    border-left: 1px solid var(--fg-dim);
    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(--fg-dim);
    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 {
    color: var(--fg-dim);
}

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;
}
