:root {
    --bg: #ffffff;
    --fg: #1a1a1a;
    --fg-muted: #666666;
    --link: #1a1a1a;
    --link-accent: #2a5db0;
    --border: #cccccc;
    --border-dashed: #bbbbbb;
}

body.dark {
    --bg: #1a1a1a;
    --fg: #d4d4d4;
    --fg-muted: #888888;
    --link: #d4d4d4;
    --link-accent: #8ab4f8;
    --border: #333333;
    --border-dashed: #444444;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: monospace;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

a {
    color: var(--link-accent);
}

a:visited {
    color: var(--link-accent);
}

.container {
    display: flex;
    min-height: 100vh;
}

aside {
    width: 150px;
    border-right: 1px dashed var(--border-dashed);
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#theme-toggle {
    margin-top: auto;
    background: none;
    border: 1px dashed var(--border-dashed);
    color: var(--fg);
    font-family: monospace;
    font-size: 14px;
    padding: 6px 0;
    cursor: pointer;
}

#theme-toggle:hover {
    text-decoration: underline;
}

.print-btn {
    position: absolute;
    right: 50px;
    top: 50px;
    background: none;
    border: 1px dashed var(--border-dashed);
    color: var(--fg);
    font-family: monospace;
    font-size: 14px;
    padding: 4px 10px;
    cursor: pointer;
}

.print-btn:hover {
    text-decoration: underline;
}

aside h1 {
    font-size: 20px;
    margin-bottom: 32px;
}

aside nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

aside nav a {
    color: var(--link);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
}

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

aside nav a.active {
    font-weight: bold;
}

main {
    position: relative;
    padding: 40px;
    flex: 1;
    max-width: 800px;
    margin-left: calc(150px + (100vw - 150px - 800px) / 2);
}

footer {
    margin-left: calc(150px + (100vw - 150px - 800px) / 2);
    max-width: 800px;
    padding: 20px 40px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--fg-muted);
}



.site-header {
    text-align: center;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.site-header h1 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.02em;
    margin: 0 0 4px;
}

.site-header .tagline {
    font-size: 14px;
    font-style: italic;
    margin: 0 0 16px;
}

.copyable {
    cursor: pointer;
}

.copyable:hover {
    text-decoration: underline dotted;
}

.section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.section p {
    margin: 0 0 10px;
    line-height: 1.55;
}

.exp-list,
.edu-list,
.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exp-list li,
.edu-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-dashed);
    line-height: 1.5;
}

.exp-list li:last-child,
.edu-list li:last-child {
    border-bottom: none;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.exp-role {
    font-weight: bold;
    font-size: 15px;
}

.exp-date {
    font-size: 12px;
    color: var(--fg-muted);
    font-style: italic;
    white-space: nowrap;
}

.exp-company {
    font-size: 13px;
    color: var(--fg-muted);
    margin-top: 1px;
    font-style: italic;
}

.exp-desc {
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.55;
}

.home-intro {
    margin-bottom: 28px;
}

.home-img {
    width: 100%;
    border-radius: 4px;
}

.home-img-caption {
    font-size: 14px;
    color: var(--fg-muted);
    margin: 6px 0 0;
}

.home-intro p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.all-posts-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
}

.recent-heading {
    font-size: 14px;
    color: var(--fg-muted);
    text-transform: lowercase;
    margin: 0 0 6px;
    font-weight: normal;
}

#recent-post .blog-item {
    font-size: 12px;
}

#recent-post .blog-desc {
    font-size: 11px;
}

.blog-item {
    padding: 3px 0;
    line-height: 1.4;
    font-size: 14px;
}

.blog-date {
    color: var(--fg-muted);
    font-size: 13px;
    margin-right: 8px;
}

.blog-desc {
    color: var(--fg-muted);
    font-size: 13px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
}

article {
    line-height: 1.6;
}

article h2 {
    margin-bottom: 4px;
}

.post-header {
    margin-bottom: 20px;
}

.post-header .post-date,
.post-header .post-desc {
    display: inline;
    font-size: 12px;
    color: var(--fg-muted);
    margin: 0;
}

.post-header .post-date {
    font-style: italic;
}

.post-meta {
    font-size: 12px;
    color: var(--fg-muted);
    font-style: italic;
    margin-bottom: 20px;
}

article h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 16px;
}

article ul {
    margin-left: 20px;
}

@media print {

    aside,
    .print-btn {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        display: block;
    }

    a {
        color: black;
        text-decoration: none;
    }

    .exp-list li,
    .edu-list li {
        break-inside: avoid;
    }
}