@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

:root {
    --bg: #2b2b2b;
    --text: #eeeeeeb7;
    --accent: #daa35c;
    --sidebar-bg: #363636;
    --card-bg: #2b2b2b;
    --link-hover: #e7b877;
    padding-top: 12px;
}

html,
body {
    font-family: "Press Start 2P", cursive;
    font-size: 16px;
    background: var(--bg) !important;
    color: var(--text);
    min-height: 100%;
}

strong {
    color: var(--accent);
}

@media (min-width: 48em) {
    html {
        font-size: 18px;
    }
}
@media (min-width: 58em) {
    html {
        font-size: 20px;
    }
}

/* ── Sidebar ── */
.sidebar {
    overflow-y: auto;
    padding: 1rem;
    color: var(--accent);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.sidebar-default {
    background: var(--bg);
}

@media (min-width: 48em) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 19rem;
        text-align: left;
        padding: 1.5rem 1rem;
    }
    .content {
        margin-left: 21rem;
        margin-right: 2rem;
    }
}

@media (min-width: 64em) {
    .content {
        margin: 0 3rem 0 22rem;
    }
}

.site-title {
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 5px #0008;
}

.sidebar a {
    color: white;
    text-decoration: none;
}

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

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

.sidebar li {
    padding-left: 2em;
}

.sidebar .navigation {
    flex: 1 0 auto;
}

.sidebar .version,
.sidebar .version small {
    font-size: 50%;
    text-align: center;
    display: block;
    line-height: 0.1;
}

.external-title {
    margin-top: 2em;
    font-size: 120%;
}
nav.external {
    font-size: 80%;
}

/* ── Admonition blocks ── */
.block {
    margin: 1em 0;
    padding: 0 5px 5px;
    border-top: 34px solid;
    position: relative;
}

.block::before {
    position: absolute;
    top: -32px;
    left: 10px;
    color: white;
}

/* ── Main content ── */
section.page {
    margin-bottom: 3em;
}

section.page h1,
section.page h1 a {
    color: #363636;
    margin-bottom: 0;
    text-decoration: none;
}

section.page h1,
section.page h2,
section.page h3 {
    color: var(--text) !important;
}

section.page h2 {
    color: var(--accent) !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.2em;
}

section.page .content ul li {
    margin-bottom: 0.8em;
    line-height: 2.55;
}

section.page h3 {
    margin: 2em 0 0.2em;
    color: #2f353b;
}

section.page h3:first-of-type {
    border-left: 4px solid var(--accent);
    padding-left: 10px;
    margin-left: -14px;
}

section.page a {
    color: var(--accent) !important;
    font-weight: 600;
}

/* Skills tags */
section.page h4 + ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

section.page h4 + ul li {
    background: #444;
    padding: 4px 12px;
    border-left: 3px solid var(--accent);
    font-size: 0.75rem;
    transition: all 0.2s ease;
    cursor: default;
}

section.page h4 + ul li:hover {
    transform: translateY(-2px);
    background: #daa35c;
    border-left-color: #2f353b;
}

/* Profile card */
.profile-card {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    color: #eee;
}

.profile-card .profile-photo {
    width: 350px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 1rem;
}

.profile-card .profile-name {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: white;
}

.profile-card .profile-title {
    color: var(--accent);
}

.profile-card ul.profile-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    color: #ccc;
}

.profile-card .profile-links a {
    display: block;
    background: var(--accent);
    padding: 6px;
    margin-top: 6px;
    color: #222;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.profile-card .profile-links a:hover {
    background: var(--link-hover);
}

/* Misc */
section img {
    width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

section div pre {
    overflow: auto;
}
section code {
    background: #fafafa;
}

table,
th,
td {
    border: 1px solid black;
    border-collapse: collapse;
}

td {
    padding: 5px;
}

.content p small,
.content small {
    display: block;
    text-align: center;
    width: 100%;
    padding-bottom: 12px;
}
