/* ================================================================
     LINKS AND BUTTONS
     ================================================================ */

.wordmark {
    display: inline-block;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.08em;
    transition: color 0.2s ease;
}

.wordmark span {
    color: var(--color-coral);
}

.wordmark:hover {
    color: var(--color-coral);
}

.profile-nav .text-link,
.social-links a {
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.profile-nav .text-link:hover,
.social-links a:hover {
    color: var(--color-coral-text);
}

.social-links a:hover {
    border-color: var(--color-coral-text);
    transform: translateY(-2px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid;
}

.social-links a {
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--color-line);
}

.text-link {
    font-size: 0.82rem;
    font-weight: 700;
}

.button {
    min-width: 210px;
    display: inline-flex;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 1rem 1.2rem;
    color: white;
    background: var(--color-coral);
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    background: #9f3022;
    transform: translateY(-2px);
}

.button--dark {
    color: white;
    background: var(--color-ink);
}

.button--dark:hover {
    background: #324239;
}


/* ================================================================
     AVATAR
     ================================================================ */

.avatar {
    width: clamp(120px, 12vw, 176px);
    margin-bottom: 2rem;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: #d9d3c6;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
}


/* ================================================================
     PORTFOLIO CARDS
     ================================================================ */

.project-open {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #ddd5c7;
    cursor: zoom-in;
}

.project-open::after {
    content: "View  ↗";
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.65rem 0.8rem;
    color: var(--color-ink);
    background: var(--color-paper);
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-open:hover::after,
.project-open:focus-visible::after {
    opacity: 1;
    transform: none;
}

.project img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project--landscape img {
    aspect-ratio: 3 / 2;
}

.project--square img {
    aspect-ratio: 1;
}

.project-open:hover img {
    transform: scale(1.015);
}

.project figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.8rem;
    font-size: 0.76rem;
}

.project figcaption span:first-child {
    font-weight: 700;
}


/* ================================================================
     FULL-SIZE IMAGE PREVIEW
     ================================================================ */

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 3rem;
    border: 0;
    color: white;
    background: rgba(12, 15, 13, 0.95);
}

.lightbox::backdrop {
    background: transparent;
}

.lightbox figure {
    height: 100%;
    display: grid;
    place-items: center;
    margin: 0;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
}

.lightbox figcaption {
    position: absolute;
    left: 1.5rem;
    bottom: 1.25rem;
}

.lightbox-close {
    position: fixed;
    z-index: 1;
    top: 1.25rem;
    right: 1.5rem;
    padding: 0.5rem;
    border: 0;
    color: white;
    background: none;
    cursor: pointer;
}
