:root {
    --accent-color: #b3e6ff;
    --accent-color-yellow: #ffe997;
    --accent-color-red: #ff4444;
}

body {
    color: #d0d0d0;
    background: #1e2123;
    font-family: Consolas, Monospace, Courier;
    max-width: 40%;
    margin: 0 auto;
    padding: 0;
    letter-spacing: -0.01em;
    word-spacing: -0.15em;
}

header {
    text-align: center;
    margin: 2rem auto;
}

article,
.content-wrapper {
    margin: 0 auto;
    padding: 2rem;
    background: #313437;
}

hr {
    border: 1px dashed #d0d0d0;
    margin: 2rem auto;
}

p {
    text-align: justify;
    hyphens: none;
    line-height: 1.6rem;
    margin-bottom: 1.5rem;
}

h1 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 0 auto;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h2 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

h3 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

strong {
    color: var(--accent-color-yellow);
    font-weight: 700;
    font-size: 1rem;
}

a {
    /*color: var(--accent-color-red);*/
    color: #e3e3e3;
    text-decoration: none;
    font-weight: 700;
    text-decoration: underline;
}

/* Code blocks */
pre {
    font-size: 1rem;
    line-height: 1.3rem;
    overflow-x: auto;
    width: 100%;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    padding: 1rem;
    -moz-tab-size: 4;
    tab-size: 4;
    background: #26292c;
    counter-reset: line;
    position: relative;
    letter-spacing: normal;
    word-spacing: normal;
    box-sizing: border-box;
}

pre[class*="language-"] {
    color: #f8f8f2;
}

pre code {
    background: none;
    padding: 0;
    counter-reset: line;
    display: block;
    padding-left: 1em;
    padding-right: 1em;
}

code {
    font-family: Consolas, Monospace, Courier;
    background: #26292c;
    padding: 2px 6px;
    color: #f8f8f2;
    letter-spacing: normal;
    word-spacing: normal;
}

/* Line numbers */
pre code .line {
    display: block;
    position: relative;
    padding-left: 0.5em;
}

pre code .line::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: -3em;
    width: 2.5em;
    text-align: right;
    color: #7f7f7f;
    border-right: 1px solid #444;
    padding-right: 0.5em;
    user-select: none;
}

/* Syntax Highlighting (Monokai) */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #75715e;
}

.token.punctuation {
    color: #f8f8f2;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f92672;
}

.token.boolean,
.token.keyword {
    color: #66d9ef;
}

.token.number {
    color: #ae81ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #e6db74;
}

.token.operator,
.token.entity,
.token.url {
    color: #f92672;
}

.language-css .token.string,
.style .token.string {
    color: #e6db74;
}

.token.atrule {
    color: #e6db74;
}

.token.attr-value {
    color: #e6db74;
}

.token.function,
.token.class-name {
    color: #a6e22e;
}

.token.regex,
.token.important {
    color: #f92672;
}

.token.variable {
    color: #f8f8f2;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* Images and videos */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Tables */
table {
    color: #000;
    border-collapse: collapse;
    max-width: 100%;
    margin: 0 auto;
}

th {
    border-width: 2px;
    padding: 4px;
    border-style: solid;
    background-color: #ccc;
}

td {
    border-width: 2px;
    padding: 2px;
    border-style: solid;
    background-color: #d0d0d0;
}

/* Lists */
ul,
ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

ul {
    list-style-type: "- ";
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    margin: 1rem 0;
    padding: 10px;
    border-left: 3px solid var(--accent-color);
    background-color: #3b404a;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.4rem;
    color: var(--accent-color-red);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 1rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Post styling */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #d0d0d0;
}

.post-header time {
    color: var(--accent-color-yellow);
    font-size: 0.9rem;
    font-weight: 700;
}

.tags {
    margin-top: 1rem;
}

.tag {
    background: #3b404a;
    border: 1px dashed #d0d0d0;
    padding: 4px 10px;
    font-size: 0.85rem;
    margin-right: 8px;
    color: #d0d0d0;
    display: inline-block;
}

/* Post list */
.post-list {
    list-style: none;
    margin-left: 0;
}

.post-list li {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #d0d0d0;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.post-list time {
    color: var(--accent-color-yellow);
    font-size: 0.9rem;
    font-weight: 700;
}

.post-list p {
    margin-top: 0.5rem;
    color: #d0d0d0;
}

/* Footer */
footer {
    margin: 2rem auto 1rem;
    text-align: center;
    color: #d0d0d0;
    font-size: 0.9rem;
}

/* Responsive breakpoints from reference */
@media (max-width: 599px) {
    body {
        max-width: 80%;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    body {
        max-width: 80%;
    }
}

@media (min-width: 900px) and (max-width: 1439px) {
    body {
        max-width: 80%;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    body {
        max-width: 60%;
    }
}

@media (min-width: 1920px) and (max-width: 2559px) {
    body {
        max-width: 40%;
    }
}

@media (min-width: 2560px) {
    body {
        max-width: 30%;
    }
}
