:root {
    --text-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --bg: #f5efeb;
    --text: #202020;
    --text-secondary: #55504c;
    --text-muted: #77716c;
    --hover: #ebe4df;
    --border: #d8d0ca;

    font-family: var(--text-font);
    background-color: var(--bg);
    color: var(--text);
}

img.favicon, svg {
  image-rendering: pixelated; /* Chrome, Edge, Safari */
  image-rendering: crisp-edges; /* Firefox */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    line-height: 1.6;
}

.container {
    width: min(90vw, 42rem);
    margin: 0 auto;
    padding-top: 2.5rem;
}

header.container {
    padding-top: 2.5rem;
}

section.container {
    padding-top: 1.5rem;
}

/* ---------- Headings ---------- */

h1 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text);
}

h2 {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text);
}

section h2 {
    margin-top: 2rem;
}

/* ---------- General Text ---------- */

.description {
    margin: 0;
    max-width: 40rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ---------- Projects ---------- */

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

.project-item {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 0.35rem;

    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;

    border-radius: 0.65rem;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.project-item:hover,
.project-item:focus-within {
    background-color: var(--hover);
}

.project-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    margin-top: 0.15rem;
}

.project-text {
    min-width: 0;
}

.project-name {
    display: block;

    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;

    color: var(--text);
}

.project-description {
    margin: 0.25rem 0 0;

    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;

    color: var(--text-secondary);
}

/* ---------- Info ---------- */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;

    margin: 0.5rem 0 1rem;
}

.mini-heading {
    margin: 0 0 0.4rem;

    font-size: 0.95rem;
    font-weight: 600;

    color: var(--text);
}

.simple-list {
    margin: 0;
    padding-left: 1rem;

    font-size: 0.9rem;
    line-height: 1.6;

    color: var(--text-secondary);
}

.simple-list li {
    margin: 0.15rem 0;
}

/* ---------- Divider ---------- */

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem 0 1.25rem;
}

/* ---------- Socials ---------- */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 2.25rem;
    height: 2.25rem;

    border-radius: 0.5rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--text);
    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.social-link svg {
    width: 1.3rem;
    height: 1.3rem;
}

.social-link:hover,
.social-link:focus-visible {
    background-color: var(--hover);
    color: #000;
}

/* ---------- Blog ---------- */

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

.blog-item {
    width: 100%;

    padding: 0.9rem;
    margin-bottom: 0.35rem;

    border-radius: 0.65rem;

    cursor: pointer;

    transition: background-color 0.15s ease;
}

.blog-item:hover {
    background-color: var(--hover);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    gap: 1rem;
}

.blog-title {
    font-family: var(--text-font);
    font-size: 1.05rem;
    font-weight: 600;

    color: var(--text);
}

.blog-date {
    font-family: var(--text-font);
    font-size: 0.78rem;
    font-weight: 400;

    color: var(--text-muted);
    white-space: nowrap;
}

.blog-text {
    margin: 0.3rem 0 0;

    font-family: var(--text-font);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;

    color: var(--text-secondary);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    white-space: pre-line;
}

.blog-item.expanded .blog-text {
    display: block;
    white-space: pre-line;
}

.blog-toggle {
    margin-top: 0.4rem;
    padding: 0;

    border: 0;
    background: none;

    font-family: var(--text-font);
    font-size: 0.8rem;
    font-weight: 500;

    color: var(--text-muted);

    cursor: pointer;
}

.blog-toggle:hover {
    color: var(--text);
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
    .container {
        width: 90vw;
        padding-top: 2rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .blog-header {
        flex-direction: column;
        gap: 0.1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}