body {
    margin: 0;
    background: #fff;
    color: #2e2e2e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    position: sticky;
    top: 24px;
    z-index: 10;
    display: flex;
    gap: 20px;
    width: fit-content;
    margin: 24px auto 0;
    padding: 10px 16px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

    background: rgba(229, 229, 234, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

nav a {
    color: #2e2e2e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a.active {
    font-weight: 600;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
}

h1 {
    font-weight: 600;
}

p {
    font-weight: 400;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 8%;
    object-fit: cover;
    object-position: center 100%;
}

.intro {
    display: flex;
    justify-content: space-between;
}

.interactive-word {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(4px);
    margin-right: 0.25em;
    animation: word-reveal 0.4s ease forwards;
}

@keyframes word-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.messages {
    display: flex;
    flex-direction: column;
}

.message {
    display: inline-block;
    position: relative;
    max-width: 75%;
    padding: 10px 14px;
    margin: 4px 0;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message1 {
    background-color: #007aff;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message2 {
    background-color: #e5e5ea;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.message a {
    color: inherit;
    text-decoration: none;
}

.message a:hover {
    text-decoration: underline;
}

.email-short {
    display: none;
}

@media (max-width: 600px) {
    .email-full {
        display: none;
    }

    .email-short {
        display: inline;
    }
}

/* Theme-Toggle */
html[data-theme="light"] body {
    background: #fff;
    color: #2e2e2e;
}

html[data-theme="light"] nav {
    background: rgba(229, 229, 234, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] nav a {
    color: #2e2e2e;
}

html[data-theme="light"] .message2 {
    background-color: #e5e5ea;
    color: #000;
}

html[data-theme="dark"] body {
    background: #141416;
    color: #f5f5f7;
}

html[data-theme="dark"] nav {
    background: rgba(44, 44, 46, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] nav a {
    color: #f5f5f7;
}

html[data-theme="dark"] .message2 {
    background-color: #2c2c2e;
    color: #fff;
}

#theme-toggle {
    border: none;
    background: none;
    padding: 0;
    margin-left: 4px;
    color: inherit;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

#theme-toggle:hover {
    opacity: 0.6;
}
