/* weyd blog */

:root {
    --black: #1a1a1a;
    --rule: #999;
    --mid: #555;
    --bg: #FAF9F6;
    --max: 680px;
}

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

body {
    background: var(--bg);
    color: var(--black);
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    padding: 3rem 1.5rem;
}

.page {
    max-width: var(--max);
    margin: 0 auto;
}

/* Header */
header {
    border-bottom: 2px solid var(--black);
    padding-bottom: 0.75rem;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 1rem;
    font-weight: normal;
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

header h1 a {
    color: var(--black);
    text-decoration: none;
}

header nav {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    color: var(--mid);
    margin-top: 0.25rem;
}

header nav a {
    color: var(--mid);
    text-decoration: none;
    margin-right: 1.5rem;
}

header nav a:hover {
    text-decoration: underline;
}

/* Post list (index) */
.post-list {
    list-style: none;
}

.post-list li {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0 1.5rem;
    margin-bottom: 0.6rem;
    align-items: baseline;
}

.post-list .date {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    color: var(--mid);
    white-space: nowrap;
}

.post-list a {
    color: var(--black);
    text-decoration: none;
}

.post-list a:hover {
    text-decoration: underline;
}

/* Individual post */
article header {
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2rem;
}

article header h2 {
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 0.3rem;
}

article header .meta {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    color: var(--mid);
}

article .body p {
    margin-bottom: 1.2rem;
    text-align: justify;
    hyphens: auto;
}

article .body h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 1.8rem 0 0.5rem;
    font-family: "Courier New", Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

article .body pre,
article .body code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
}

article .body pre {
    background: #f0ede8;
    border-left: 3px solid var(--rule);
    padding: 0.75rem 1rem;
    margin: 1rem 0 1.2rem;
    overflow-x: auto;
    line-height: 1.4;
}

article .body code {
    background: #f0ede8;
    padding: 0.1em 0.3em;
}

article .body ul,
article .body ol {
    margin: 0 0 1.2rem 1.8rem;
}

article .body li {
    margin-bottom: 0.3rem;
}

article .body blockquote {
    border-left: 3px solid var(--rule);
    padding-left: 1rem;
    color: var(--mid);
    margin: 1rem 0;
}

article .body a {
    color: var(--black);
    text-decoration: underline;
}

article .body a:hover {
    color: var(--mid);
}

/* Footer */
footer {
    border-top: 1px solid var(--rule);
    margin-top: 3rem;
    padding-top: 0.75rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem;
    color: var(--mid);
}

footer a {
    color: var(--mid);
}

/* Back link on post pages */
.back {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    display: block;
    color: var(--mid);
    text-decoration: none;
}

.back:hover {
    text-decoration: underline;
}
