@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&display=swap");

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

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("materials/photo/background.jpg");
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

body {
    font-family: sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
}

.page {
    border: 3px solid #111;
    border-radius: 4px;
    padding: 56px 64px 64px;
    max-width: 700px;
    width: 100%;
    box-shadow: 8px 8px 0 #111;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.6);
}

.heading {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #111;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.card {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.avatar-wrapper {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    background: #4caf50;
    border: 3px solid #111;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.name {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.field {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    display: flex;
    gap: 6px;
}

.field .label {
    color: #777;
    font-weight: 400;
}

.redacted {
    display: inline-block;
    background: #111;
    border-radius: 50px;
    width: 80px;
    height: 1em;
    vertical-align: middle;
    margin-left: 2px;
    position: relative;
    top: -1px;
}

.section {
    margin-top: 36px;
    border-top: 2px solid #eee;
    padding-top: 28px;
}

.section-title {
    font-family: "Unbounded", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.section-text a {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section .field {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section .field a {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 480px) {
    .page {
        padding: 36px 28px 44px;
    }

    .card {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .info {
        align-items: center;
        text-align: center;
    }
}

.table-of-contents {
    margin-top: 28px;
    border: 2px solid #111;
    border-radius: 4px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 4px 4px 0 #111;
}

.toc-heading {
    font-family: "Unbounded", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 12px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        padding-left 0.15s ease;
    overflow: hidden;
}

.toc-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #111;
    transform: scaleY(0);
    transition: transform 0.15s ease;
}

.toc-list a:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #111;
    color: #111;
    padding-left: 16px;
}

.toc-list a:hover::before {
    transform: scaleY(1);
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.lang-hint {
    font-size: 0.92rem;
    color: #111;
    font-style: italic;
}

.lang-btn {
    font-family: "Unbounded", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #111;
    text-decoration: none;
    padding: 8px 14px;
    border: 2px solid #111;
    border-radius: 4px;
    background: transparent;
    box-shadow: 3px 3px 0 #111;
    position: relative;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.lang-btn:hover {
    background: #111;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #111;
}

@media (max-width: 480px) {
    .toc-list {
        grid-template-columns: 1fr 1fr;
    }
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}
