html {
    background: #ffffff !important;
    color-scheme: light;
}

body {
    font-family: 'Nunito', sans-serif;
    text-align: left;
    background: #ffffff !important;
    color: #777777;
    max-width: 720px;
    margin-top: 120px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* Headline */
h1 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
    color: #000000;
}

/* Typing effect styles */
.emoji {
    margin-right: 8px;
}

#typed-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s infinite;
    font-weight: 100;
    opacity: 0.8;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Navigation bar */
.navbar {
    display: none;
    margin: 0;
    margin-left: 24px;
}

body.color-mode .navbar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar a {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: #000000;
    text-decoration: none;
    margin-right: 20px;
}


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

/* Paragraphs + list text */
p,
ul li {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Links */
a {
    color: #000000;
}

body.color-mode {
    color: #000000;
}

body.color-mode a {
    color: #FBBB62;
}

/* Text link that matches body text color */
a.text-link {
    color: inherit;
    text-decoration: none;
}

/* Contact links - no underline */
a.contact-link {
    text-decoration: none;
    margin-right: 5px;
}

/* Bullet markers */
ul li::marker {
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
}

/* Image */
img {
    width: 150px;
    height: 150px;
    border-radius: 59%;
    margin: 0;
    padding: 0;
    display: block;
}

.container {
    margin: 0;
    padding: 0;
}

.image {
    margin: 0;
    padding: 0;
}



/* Side-by-side layout */
.page-layout {
    display: flex;
    align-items: center;
    gap: 32px;
}

.emo-cube {
    font-family: 'Nunito', sans-serif;
    font-size: 5.5px;
    line-height: 1.1;
    white-space: pre;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    color: #FBBB62;
}

.text-col {
    flex: 1;
    min-width: 0;
}

img.casual-photo {
    width: 300px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Bold */
strong {
    color: #000000;
}

body.color-mode strong {
    color: #FBBB62;
}

/* Top bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 24px;
    color: #000000;
}

body.dark-mode .top-bar {
    background: #1a1a1a;
}

/* Color mode button */
.color-mode-btn {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    padding: 0;
    animation: shine 2.4s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { color: #FBBB62; text-shadow: 0 0 6px rgba(251,187,98,0.3); }
    50%       { color: #f0a020; text-shadow: 0 0 14px rgba(251,187,98,0.7); }
}

body.color-mode .color-mode-btn {
    animation: none;
    color: #888;
}

body.color-mode .color-mode-btn:hover {
    color: #444;
}

/* Top-bar logo image */
img.top-bar-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
}

/* Dark mode toggle — hidden */
.dark-mode-toggle-wrapper {
    display: none;
}

/* Dark mode toggle switch */
.dark-mode-toggle-wrapper {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 1000;
}

.dark-mode-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
}

.dark-mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dark-mode-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d0d0d0;
    transition: 0.3s;
    border-radius: 18px;
}

.dark-mode-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.dark-mode-toggle input:checked + .dark-mode-toggle-slider {
    background-color: #888;
}

.dark-mode-toggle input:checked + .dark-mode-toggle-slider:before {
    transform: translateX(18px);
}
