:root {
    /* Color Palette */
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #888888;
    --border-color: #333333;

    /* Typography */
    --font-name: komu-a, sans-serif;
    --font-default: dita-wd, sans-serif;

    /* Spacing & Transitions */
    --spacing-main: 4rem;
    --transition-fast: 0.2s ease;
}

/* 1. Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-default);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Layout Structure */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1 0 auto;
    width: 100%;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-main);
}

/* 3. Portrait Component */
.portrait-container {
    flex: 0 0 auto;
    width: 40vw;
    max-width: 600px;
}

.portrait {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(110%);
}

/* 4. Text Content */
.text-container {
    flex: 1;
    padding: 10vw var(--spacing-main) var(--spacing-main) 0;
}

.intro {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.intro-hello {
    font-weight: 400;
}

.intro-name {
    font-family: var(--font-name);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    font-weight: normal;
}

.description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 300;
    color: var(--accent-color);
    max-width: 520px;
}

.description p {
    margin-bottom: 1.5rem;
}

.description p:last-child {
    margin-bottom: 0;
}

.description a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.description a:hover {
    border-bottom-color: var(--text-color);
}

/* 5. Footer */
.footer {
    flex-shrink: 0;
    padding: 1rem var(--spacing-main);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 300;
    text-align: right;
}

/* 6. Responsive (Narrow Desktop) */
@media (min-width: 769px) and (max-width: 940px) {
    .content-wrapper {
        gap: 0;
    }
}

/* 7. Responsive (Mobile) */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .portrait-container {
        width: 80%;
        max-width: none;
    }

    .text-container {
        padding: 0 2rem 2rem 2rem;
        text-align: right;
        margin-top: -10vh;
        position: relative;
        z-index: 10;
    }

    .description {
        margin-left: auto;
    }

    .footer {
        padding: 1rem 2rem;
    }
}