:root {
    /* ─────────────────────────────────────────
        Theme
       ───────────────────────────────────────── */

    --font-main: "Segoe UI", sans-serif;

    --color-background: #735A52;
    --color-surface: #554228;
    --color-surface-dark: #412f1a;
    --color-surface-hover: #4b381e;

    --color-border: #30200b;

    --color-text: #c4bc9b;
    --color-text-muted: #a09564;
    --color-link-active: #a09463;
    --color-link-hover: #c0ad68;
    --color-link-visited: #998c59;

    --border: 3px solid var(--color-border);
    --radius: 8px;

    --font-size-body: 14px;
    --font-size-small: 12px;
    --font-size-label: 16px;
    --font-size-heading: 20px;
}


/* ─────────────────────────────────────────
    Global
   ───────────────────────────────────────── */

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

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--font-main);

    background: var(--color-background);
    background-image: url("assets/texture.png");
    background-repeat: repeat;

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

a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

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

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


/* ─────────────────────────────────────────
    Shared components
   ───────────────────────────────────────── */

.site-header {
    background: var(--color-surface);
    border-bottom: var(--border);
}

.profile,
.about,
.wip-card {
    background: var(--color-surface);
    border: var(--border);
}

.profile-label,
.projects h2 {
    color: var(--color-text-muted);
}

.profile-value,
.about p,
.wip-card p {
    color: var(--color-text);
}

.profile-label {
    font-size: var(--font-size-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-value {
    font-size: var(--font-size-body);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.about h2 {
    font-size: var(--font-size-heading);
    font-weight: 500;
}

.about p {
    font-size: var(--font-size-body);
    line-height: 1.8;
    white-space: pre-line;
}

.about-quote {
    border-left: 3px solid #a09564;
    background-color: #a0956444;
    color: var(--color-text-muted);
}

.about-quote p {
    font-size: var(--font-size-body);
    font-style: italic;
    line-height: 1.7;
}

.about-quote cite {
    font-size: var(--font-size-small);
    font-style: normal;
    font-weight: bold;
    color: var(--color-text);
}

.projects h2 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects-list {
    list-style: none;
}

.projects-list a {
    background: var(--color-surface-dark);
    border: var(--border);
    font-size: var(--font-size-body);
}

.projects-list a:hover {
    background: var(--color-surface-hover);
}

.wip-card {
    text-align: center;
}

.wip-card h2 {
    font-size: 22px;
    font-weight: 500;
}

.wip-card p {
    font-size: var(--font-size-body);
    line-height: 1.7;
}

.beans-bg {
    position: relative;
    overflow: hidden;
}

.beans-bg::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("assets/beans.jpg");
    background-size: 200px;
    background-position: center;

    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.beans-bg>* {
    position: relative;
    z-index: 1;
}


/* ═════════════════════════════════════════
    Desktop
   ═════════════════════════════════════════ */

@media (min-width: 1025px) {
    .site-header h1 {
        font-size: 24px;
    }

    .site-header {
        height: 72px;
        display: flex;
        align-items: center;
        padding: 0 2rem;
    }

    .page-layout {
        display: flex;
        height: calc(100vh - 72px);
    }

    .content {
        flex: 1;
        padding: 2rem;
        overflow-y: auto;
    }

    .content-card {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 2rem;

        width: 100%;
        min-height: 100%;

        padding: 1rem;
    }

    .profile {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;

        min-width: 0;
        padding: 1.5rem;
    }

    .profile-image {
        width: 100%;
        height: 250px;

        display: block;

        object-fit: cover;
        object-position: center 30%;

        border: var(--border);
        border-radius: var(--radius);
    }

    .profile-info {
        flex: 1;

        display: flex;
        flex-direction: column;
        gap: 1.25rem;

        padding: 1.5rem;
    }

    .profile-field {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .about {
        min-width: 0;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .about h2 {
        margin-bottom: 1rem;
    }

    .about p {
        margin-bottom: 1rem;
    }

    .about-quote {
        margin-left: 15%;
        margin-right: 15%;
        padding: 1.25rem;
    }

    .about-quote cite {
        display: block;
        margin-top: 0.75rem;
    }

    .projects {
        width: 200px;
        flex-shrink: 0;

        padding: 1.5rem;
        overflow-y: auto;

        display: flex;
        flex-direction: column;
        justify-content: center;

        transform: translateY(-30px);
    }

    .projects h2 {
        margin-bottom: 1rem;
        text-align: center;
        color: var(--color-text);
        font-size: 30px;
        text-transform: uppercase;
        letter-spacing: 0.5px;

        text-decoration: underline;
    }

    .projects-list li {
        margin-bottom: 0.5rem;
    }

    .projects-list a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 100%;
        text-align: center;
    }

    .wip-page {
        min-height: calc(100vh - 72px);

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

        padding: 2rem;
    }

    .wip-card {
        width: 100%;
        max-width: 500px;
        padding: 3rem;
    }

    .wip-icon {
        display: block;
        margin-bottom: 1.5rem;
        font-size: 40px;
    }

    .wip-card h2 {
        margin-bottom: 1rem;
    }

    .wip-card p {
        margin-bottom: 0.75rem;
    }

    .back-link {
        display: inline-block;
        margin-top: 1.5rem;
        font-size: var(--font-size-body);
    }
}


/* ═════════════════════════════════════════
    Mobile
   ═════════════════════════════════════════ */

@media (max-width: 1024px) {

    .site-header {
        min-height: 60px;

        display: flex;
        align-items: center;

        padding: 0 1rem;
    }

    .site-header h1 {
        font-size: 17px;
    }

    .page-layout {
        display: block;
        min-height: calc(100vh - 60px);
    }

    .content {
        padding: 1rem;
    }

    .content-card {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        width: 100%;
        min-height: auto;

        padding: 0.75rem;
    }

    .profile {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        padding: 1rem;
    }

    .profile-image {
        width: 100%;
        height: 220px;

        display: block;

        object-fit: cover;
        object-position: center 30%;

        border: var(--border);
        border-radius: var(--radius);
    }

    .profile-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        padding: 0;
    }

    .profile-field {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .about {
        padding: 1rem;
    }

    .about h2 {
        margin-bottom: 1rem;
    }

    .about p {
        margin-bottom: 1rem;
        line-height: 1.7;
    }

    .about-quote {
        margin-left: 10%;
        margin-right: 10%;
        padding: 1rem;
    }

    .about-quote cite {
        display: block;
        margin-top: 0.75rem;
    }

    .projects {
        width: auto;
        padding: 1rem;

        border-top: var(--border);
        background: var(--color-surface);
    }

    .projects h2 {
        margin-bottom: 0.75rem;
    }

    .projects-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .projects-list li {
        margin-bottom: 0;
    }

    .projects-list a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 6px;
    }

    .wip-page {
        min-height: calc(100vh - 60px);

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

        padding: 1rem;
    }

    .wip-card {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .wip-icon {
        display: block;
        margin-bottom: 1.25rem;
        font-size: 36px;
    }

    .wip-card h2 {
        margin-bottom: 1rem;
    }

    .wip-card p {
        margin-bottom: 0.75rem;
    }

    .back-link {
        display: inline-block;
        margin-top: 1.25rem;
    }
}