p, h1, body {
    margin: 0;
}
html {
    font: 16px/1 monospace;
}

body {
    position: relative;
    background: #b59679;
    height: 100vh;
    border: 3px solid black;
    box-shadow: inset 2px 2px #835a46, inset -2px -2px #835a46, inset -2px 2px #835a46, inset 2px -2px #835a46;
    box-sizing: border-box;
}
header {
    text-align: center;
    margin: 1em;
}

main {
    margin: auto;
    padding: 10px 5px;
    max-height: calc(100% - 95px);
    height: 100%;
    width: fit-content;
    display: flex;
    flex-direction: row-reverse;
}
nav {
    width: 155px;
    overflow: auto;
    max-height: calc(100% - 20px);
}
nav > div {
    padding: 5px;
    background: black;
    color: yellow;
    margin: 10px 10px 10px 0;
    border: 3px solid;
    border-color: #835a46 #f5f5d4 #f5f5d4 #835a46;
    height: fit-content;
}
nav p {
    font-style: italic;
    margin-top: 5px;
}
nav  a {
    color: #eae5b9;
    text-decoration-style: dashed;
}
nav a:hover {
    color: black;
    background: beige;
}

nav ul {
    padding-left: 1em;
    margin: 5px 10px 10px 5px;
}
block {
    width: 250px;
    margin: 10px;
}
block > div {
    margin-top: 5px;
}
block article {
    width: calc(100% - 10px);
    display: block;
    border: 3px solid;
    border-color: #835a46 #f5f5d4 #f5f5d4 #835a46;
    padding: 2px;
    margin: 5px 0;
    color: #e9e4b9;
}
h3 {
    color: yellow;
    text-align: right;
    margin: 0;
}
block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
main > div {
    max-width: 606px;
    width: calc(100% - 150px);
    overflow: auto;
    padding-right: 14px;
}
section {
    margin-bottom: 18px;
}
section hr, block hr {
    margin-bottom: -14px;
    border: unset;
    border-bottom: 3px dotted #9a785f;
}
h2 {
    background: #b59679;
    width: fit-content;
    margin-bottom: 1em;
    margin: 0 auto 8px;
    padding: 0 11px;
}
article {
    background: black;
    color: #edeacb;
    display: flex;
    width: 100%;
    border-left: 3px solid #835a46;
    border-right: 3px solid #f5f5d4;
}
section > article:nth-child(3) {
  border-top: 3px solid #835a46;
}
section > article:last-child {
  border-bottom: 3px solid #f5f5d4;
}
section article:hover {
    color: black;
    background: #edeacb;
}
article img {
    filter: invert(92%) sepia(7%) saturate(966%) hue-rotate(345deg) brightness(108%) contrast(86%);
    width: 16px;
    padding: 8px;
    height: 16px;
}
section article:hover img {
    filter: none;
}

article p {
    padding: 5px 10px;
}
article > p, article > details {
    border-left: 6px solid #b59679;

}

summary {
  list-style: none;
  display: flex;
}

summary img {
  padding: unset;
  width: 32px;
  height: 32px;
}

details p {
  border-left: none;
}
details > p {
  margin: 0 10px;
}

details {
  cursor: pointer;
}

@media screen and (max-width: 480px) {
    main {
        flex-direction: column;
        overflow: auto;
        box-sizing: border-box;
    }
    main > div {
        padding-right: 10px;
        width: calc(100% - 10px);
        overflow: unset;
    }
    nav {
        overflow: unset;
        width: 100%;
        max-height: unset;
    }
}