body {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.3;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

.container {
    width: 450px;
    max-width: 100%;
    margin: 0 auto;
}

a {
    color: #333;
    text-decoration: none;
}

a:focus,
a:hover {
    color: #f09228;
    text-decoration: none;
}

p {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: justify;
}

.name {
    padding-top: 20px;
    margin: 0 0 5px 0;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.links {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

p + .links {
    margin-top: 2px;
    margin-bottom: 15px;
}

/* research and projects styles */
h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    margin-top: 20px;
    margin-bottom: 12px;
    text-align: center;
}

.project {
    margin-bottom: 16px;
}

.project-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}

.project-meta {
    font-size: 11px;
    margin-bottom: 4px;
    line-height: 1.2;
    position: relative;
    text-align: center;
}

.project-meta strong {
    float: left;
}

.project-meta a {
    font-size: 10px;
    float: right;
}

.project-description {
    font-size: 11px;
    text-align: justify;
    margin-bottom: 6px;
    line-height: 1.3;
    clear: both;
}

.bio-description {
    font-size: 11px;
    text-align: justify;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* warning box styles */
.warning-box {
    width: 450px;
    max-width: 100%;
    background: white;
    background-image: repeating-linear-gradient(
        45deg,
        #f09228 0px,
        #f09228 3px,
        white 3px,
        white 6px
    );
    padding: 0;
    margin: 15px 0;
    border: 1px solid #f09228;
    position: relative;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-text {
    font-family: 'NSimSun', 'SimSun', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
    line-height: 12px;
    padding: 0 4px;
    margin: 0;
    background: white;
    display: inline-block;
    height: auto;
    box-sizing: border-box;
}

/* midder styles */
.midder {
    margin-top: -35px;
    text-align: center;
    padding: 25px 0;
    width: 100%;
}

.midder-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: -10px;
    margin-bottom: 10px;
    width: 100%;
}

.midder-logos img, .footer-logos img {
    height: 100px;
    width: auto;
    transition: filter 0.2s ease;
}

.midder-logos a:hover img, .footer-logos a:hover img {
    filter: invert(61%) sepia(75%) saturate(1548%) hue-rotate(343deg) brightness(101%) contrast(96%);
}

.invert-logo {
    filter: invert(1);
}

.invert-logo:hover {
    filter: invert(61%) sepia(75%) saturate(1548%) hue-rotate(343deg) brightness(101%) contrast(96%) !important;
}

.midder-text {
    font-family: 'NSimSun', 'SimSun', monospace;
    color: #000000;
    font-size: 10px;
    margin: -20px 0 3px 0;
    letter-spacing: 0.5px;  
}

.last-updated-midder {
    font-family: 'NSimSun', 'SimSun', monospace;
    color: #000000;
    font-size: 10px;
    margin: -3px 0 -20px 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* retro footer styles */
.retro-footer {
    margin-top: -10px;
    text-align: center;
    padding: 25px -20px;
    width: 100%;
}

.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: -10px;
    margin-bottom: 10px;
    width: 100%;
}

.footer-text {
    font-family: 'NSimSun', 'SimSun', monospace;
    color: #000000;
    font-size: 10px;
    margin: -20px 0 3px 0;
    letter-spacing: 0.5px;  
}

.footer-cursor {
    margin-top: 10px;
}

.footer-cursor img {
    height: 50px;
    width: auto;
}

/* last updated section */
.last-updated {
    font-family: 'NSimSun', 'SimSun', monospace;
    color: #000000;
    font-size: 10px;
    margin: -3px 0 10px 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* webring widget */
.webring {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 15px;
    margin: -10px auto -18px auto;
    max-width: 180px;
    text-align: center;
}

.webring-prev, .webring-next {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.webring-prev:hover, .webring-next:hover {
    color: #f09228;
}

.webring-icon img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Webring hover effects */
.webring-icon:hover img {
    filter: invert(61%) sepia(75%) saturate(1548%) hue-rotate(343deg) brightness(101%) contrast(96%);
}

/* SVG dithering styles */
.dithered-svg {
    transition: filter 0.2s ease;
}

.footer-logos a:hover .dithered-svg .dithered-pixel[fill="#000000"],
.midder-logos a:hover .dithered-svg .dithered-pixel[fill="#000000"],
.webring-icon:hover .dithered-svg .dithered-pixel[fill="#000000"] {
    fill: #f09228;
}

.footer-logos a:hover .dithered-svg .dithered-pixel[fill="#ffffff"],
.midder-logos a:hover .dithered-svg .dithered-pixel[fill="#ffffff"],
.webring-icon:hover .dithered-svg .dithered-pixel[fill="#ffffff"] {
    fill: #ffffff;
}

/* Links with dithered SVGs */
.has-dithered-svg {
    display: inline-block;
    transition: transform 0.2s ease;
}

.has-dithered-svg:hover {
    transform: scale(1.05);
}

/* font definitions */
@font-face {
    font-family: 'NSimSun';
    src: local('NSimSun');
    /* fallback to similar fonts if NSimSun is not available */
    font-family: 'NSimSun', 'SimSun', monospace;
}

.utfet-footer-img {
    -webkit-filter: grayscale(1) brightness(0.9) contrast(1.2);
    filter: grayscale(1) brightness(0.9) contrast(1.2);
    transition: filter 0.2s, -webkit-filter 0.2s;
}
.utfet-footer-link:hover .utfet-footer-img {
    -webkit-filter: invert(61%) sepia(75%) saturate(1548%) hue-rotate(343deg) brightness(101%) contrast(96%);
    filter: invert(61%) sepia(75%) saturate(1548%) hue-rotate(343deg) brightness(101%) contrast(96%);
}
.utfet-footer-link:hover .utfet-footer-img svg *,
.utfet-footer-link:focus .utfet-footer-img svg * {
    fill: #f09228 !important;
}