/* Font faces */
@font-face {
    font-family: customfontm;
    src: url(/fonts/marck.ttf);
    font-display: block;
}

@font-face {
    font-family: customfontz;
    src: url(/fonts/zeyada.ttf);
    font-display: swap;
}

/* Base styles */
body {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: background-color 0.5s, color 0.5s;
}

/* Theme colors */
html[data-theme="light"] body {
    background-color: #474440;
    color: #000000;
}

html[data-theme="light"] .main-message {
    color: #1c1c1c;
}

html[data-theme="black"] body {
    background-color: #1F1F1F;
    color: #83B44A;
}

html[data-theme="black"] .main-message {
    color: #7aa545;
}

/* Layout */
.container {
    width: 100%;
    padding-top: 5.7vh;
    display: flex;
    justify-content: center;
}

.welcome-text {
    text-align: center;
    margin: 22.8px auto;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    width: 55%;
    min-width: 323px;
    max-width: min(656px, 95%);
    height: 100%;
    align-items: center;
    justify-content: center;
}

.welcome-text p {
    margin: 11.4px 0;
    font-family: customfontm;
}

.welcome-text .main-message {
    font-size: clamp(29.6px, 7.2vw, 35.9px);
    margin: 12.4px;
    margin-top: 18.1px;
    max-width: 752px;
}

/* Site name */
.site-name {
    font-family: customfontm;
    font-size: clamp(33.1px, 8.0vw, 39.9px);
    font-weight: normal;
    font-style: italic;
    color: #d4764a;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Divider */
.divider {
    width: clamp(6.1px, 16.0vw, 70.8px);
    height: 1.0px;
    background-color: #b98936;
    opacity: 0.5;
    margin: 3px auto 20.9px auto;
}

/* Bio */
.welcome-text .bio {
    font-family: customfontm;
    font-size: clamp(19.4px, 4.6vw, 22.8px);
    color: #b98936;
    text-align: justify;
    margin: 0 auto 29.5px auto;
    max-width: 352px;
    line-height: 1.4;
    user-select: none;
    -webkit-user-select: none;
}

.welcome-text .bio a {
    color: #c0867a;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, color 0.3s ease;
}

.welcome-text .bio a:hover {
    transform: scale(1.05);
    color: #d0968a;
}

.bio-line-first {
    display: block;
}

.bio-line {
    display: block;
    margin-top: 12.4px;
}

.bio-line-small {
    display: block;
    margin-top: 7.6px;
}

.handle {
    position: relative;
    display: inline-block;
}

.handle::after {
    content: '';
    position: absolute;
    bottom: 6.7px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1.0px;
    background-color: #6a9a8a;
    opacity: 0.5;
    z-index: -1;
}

/* Social links */
.social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(9.1px, 2.1vw, 10.3px);
    flex-wrap: wrap;
    user-select: none;
    -webkit-user-select: none;
}

.social-row .separator {
    color: #6a9a8a;
    opacity: 0.5;
    font-size: clamp(12.5px, 2.9vw, 14.8px);
}

.social-media-link {
    font-family: customfontm;
    font-size: clamp(17.1px, 4.1vw, 20.5px);
    color: #6a9a8a;
    font-weight: normal;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.3s ease;
}

.social-media-link:hover {
    transform: scale(1.05);
    color: #8abcac;
}

/* Toggle button */
.toggle-container {
    display: inline-block;
    margin: 20.9px auto 0 auto;
}

.toggle-button {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.3s;
}

.toggle-button:hover {
    transform: scale(1.155);
}

/* Responsive: no overrides needed — base clamp() floors hold at all sizes */
