/* Core layout */
body {
    background-color: black;
    color: white;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Unified layout */
.layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
    padding: 2rem;
    gap: 2rem;
}

/* Sidebar navigation */
.sidebar {
    flex: 0 0 120px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1rem;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted #888;
}

.sidebar a:hover {
    color: #ccc;
}

/* Main content block */
.main-block {
    flex: 1;
    max-width: 700px;
}

/* Header inside main block */
.site-header {
    margin-bottom: 1.5rem;
}

.site-header h1 {
    margin: 0;
}

.site-header p {
    margin-top: 0.25rem;
    font-size: 1rem;
    color: #ccc;
}

/* Main content */
main {
    flex: 1;
    max-width: 700px;
}

/* Typography */
a {
    color: white;
    text-decoration: underline;
}

a:visited {
    color: white;
}

h1,
h2,
h3,
h4 {
    color: white;
    margin-top: 2rem;
}

time,
.post-date {
    font-size: 0.9rem;
    color: #bbb;
}

ul {
    padding-left: 1em;
}

article {
    margin-bottom: 3rem;
}

/* Images and captions */
img {
    display: block;
    max-width: 55%;
    height: auto;
    margin: 2rem 0 0.5rem;
    border: 1px solid #444;
    padding: 0.25rem;
    background-color: #111;
}

em {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 2rem;
    font-style: italic;
    text-align: left;
    max-width: 55%;
}

.sidebar {
    flex: 0 0 140px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* align to the left */
    margin-top: 1rem;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-label {
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #aaa;
    margin-bottom: 0.25rem;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    margin: 0.25rem 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted #666;
}

.sidebar a:hover {
    color: #ccc;
}
