html, body {
    font-family: "Courier New", Courier, monospace;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    background-color: #232634;
    color: #ffffff;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    display: block;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    background: linear-gradient(90deg, rgba(26, 38, 54, 0.9) 0%, rgba(34, 49, 66, 0.95) 50%, rgba(23, 55, 66, 0.9) 100%);
    border-bottom: 2px solid #4a5272;
    box-shadow: 0 4px 12px rgba(10, 13, 20, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.page-portfolio .main-header,
body.page-projects .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

body.page-portfolio .main-portfolio,
body.page-projects .main-projects {
    padding-top: 84px;
}

.main-header .title-text {
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    color: #cfd3ff;
}

.main-header .ascii-small {
    font-size: 1.5em;
    cursor: pointer;
    display: block;
    padding: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.main-header .ascii-small:hover {
    color: #86e1fc;
}

.main-header nav,
.main-header .nav-links {
    display: flex;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

.main-header h2 {
    margin: 0;
    cursor: pointer;
    padding: 8px 16px;
    background-color: rgba(74, 82, 114, 0.35);
    border: 1px solid #4a5272;
    border-radius: 8px;
    color: #cfd3ff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.main-header h2:hover {
    background-color: rgba(134, 225, 252, 0.15);
    border-color: #86e1fc;
    color: #86e1fc;
    transform: translateY(-1px);
}

.main-header h2.nav-active,
.main-header .ascii-small.nav-active {
    background-color: rgba(134, 225, 252, 0.25);
    border-color: #86e1fc;
    color: #86e1fc;
    box-shadow: 0 0 12px rgba(134, 225, 252, 0.3);
}

a.rounded-border {
    color: #cfd3ff;
    background-color: rgba(74, 82, 114, 0.4);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

a.rounded-border:visited {
    color: #b299cc;
}

a.rounded-border:hover {
    background-color: rgba(74, 82, 114, 0.6);
}

.body {
    text-align: center;
    padding: 20px;
}

.spacer {
    margin: 80px;
}

.spacerbig {
    margin: 160px;
}

.spacerhome {
    margin: 240px;
}

.title-text {
    margin: 0;
    display: flex;
    color: #cfd3ff;
}

.main-header .ascii-small {
    font-size: 1.5em;
    cursor: pointer;
    display: block;
    padding: 10px;
}

.content {
    padding: 20px;
    text-align: left;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.logo {
    width: 50px;
    animation: spin 1s ease-in-out;
}

.fronttitle {
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.75s ease-in-out;
}

.main-home .content {
    animation: fadeInDelay 1s ease-in-out;
}

.home-body {
    width: min(1100px, 92%);
    margin: 0 auto;
    text-align: left;
    padding-bottom: 56px;
}

.home-hero {
    border: 1px solid #4a5272;
    border-radius: 16px;
    padding: 30px;
    background: linear-gradient(125deg, #2b3f52 0%, #1f2a40 55%, #1f3448 100%);
    animation: fadeIn 0.9s ease-in-out;
}

.main-home-index .home-hero {
    padding: 34px 30px 52px;
    border-color: #4f6a7b;
    background:
        radial-gradient(circle at 15% 20%, rgba(120, 232, 255, 0.3) 0%, rgba(120, 232, 255, 0) 38%),
        radial-gradient(circle at 85% 80%, rgba(255, 145, 189, 0.25) 0%, rgba(255, 145, 189, 0) 40%),
        linear-gradient(130deg, #1a2636 0%, #223142 48%, #173742 100%);
    background-size: 180% 180%, 170% 170%, 140% 140%;
    background-position: 0% 0%, 100% 100%, 50% 50%;
    animation: fadeIn 0.9s ease-in-out, homeHeroBackgroundFlow 14s ease-in-out infinite;
}

.home-eyebrow {
    margin: 0 0 8px;
    color: #86e1fc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.home-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.home-lead {
    margin: 0;
    max-width: 72ch;
    color: #cfd3ff;
    line-height: 1.65;
}

.home-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-button {
    display: inline-block;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    border: 1px solid transparent;
    color: #0a0d14;
    background-color: #86e1fc;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-button:hover {
    transform: translateY(-2px);
    background-color: #a5ecff;
}

.home-button-secondary {
    color: #ffffff;
    background-color: rgba(74, 82, 114, 0.45);
    border-color: #4a5272;
}

.home-button-secondary:hover {
    background-color: rgba(74, 82, 114, 0.75);
}

.home-quick-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-quick-links a {
    text-decoration: none;
    color: #86e1fc;
    background-color: rgba(74, 82, 114, 0.35);
    border: 1px solid #4a5272;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.home-quick-links a:visited {
    color: #b299cc;
}

.home-quick-links a:hover {
    background-color: rgba(74, 82, 114, 0.6);
}

.home-section {
    margin-top: 24px;
}

.main-home-index .home-body > .home-section {
    opacity: 0;
    transform: translateY(12px);
    animation: homeSectionFadeIn 0.7s ease forwards;
}

.main-home-index .home-body > .home-section:nth-of-type(2) {
    animation-delay: 0.18s;
}

.main-home-index .home-body > .home-section:nth-of-type(3) {
    animation-delay: 0.34s;
}

.main-home-index .home-body > .home-section:nth-of-type(4) {
    animation-delay: 0.5s;
}

.home-panel {
    background-color: #2a2e40;
    border: 1px solid #4a5272;
    border-radius: 14px;
    padding: 18px;
}

.home-panel p {
    color: #cfd3ff;
    line-height: 1.65;
}

.home-status {
    margin-top: 12px;
}

.home-status strong {
    color: #86e1fc;
}

.home-link-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.home-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.home-update-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-update-list > li {
    border-bottom: 1px solid #3e4561;
    padding: 10px 0;
    color: #cfd3ff;
    line-height: 1.55;
}

.home-update-list > li:last-child {
    border-bottom: 0;
}

.home-update-list span {
    color: #86e1fc;
    font-weight: 700;
    margin-right: 8px;
}

.home-update-points {
    margin: 8px 0 0 20px;
    padding: 0;
}

.home-update-points li {
    color: #cfd3ff;
    margin: 4px 0;
}

.site-colors {
    margin-bottom: 6px;
}

.site-color-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.site-color-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #3e4561;
    border-radius: 10px;
    background-color: rgba(74, 82, 114, 0.2);
}

.site-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex: 0 0 auto;
}

.site-color-name {
    color: #cfd3ff;
}

.site-color-list code {
    margin-left: auto;
    border: 1px solid #4a5272;
    border-radius: 6px;
    padding: 2px 6px;
    color: #cfd3ff;
    background-color: rgba(20, 24, 34, 0.45);
    font-family: inherit;
    font-size: 0.9rem;
}

.projects-wiki-callout {
    margin-bottom: 22px;
    border-left: 4px solid #86e1fc;
}

.projects-wiki-callout h2 {
    margin-top: 0;
}

.projects-wiki-callout p {
    margin-bottom: 16px;
}

.project-block {
    position: relative;
    border-color: #5a6690;
    background: linear-gradient(180deg, rgba(45, 53, 77, 0.95) 0%, rgba(38, 44, 63, 0.95) 100%);
    box-shadow: 0 12px 24px rgba(10, 13, 20, 0.25);
    overflow: hidden;
}

.project-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #86e1fc 0%, #cfd3ff 50%, #86e1fc 100%);
}

.project-kicker {
    display: inline-block;
    margin: 0 0 10px;
    padding: 3px 10px;
    border: 1px solid #4a5272;
    border-radius: 999px;
    background-color: rgba(74, 82, 114, 0.35);
    color: #86e1fc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-media-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.project-media-card {
    border: 1px solid #4a5272;
    border-radius: 12px;
    padding: 12px;
    background-color: rgba(74, 82, 114, 0.14);
}

.project-media-card h3 {
    margin-top: 0;
    color: #cfd3ff;
}

.project-separator {
    height: 2px;
    margin: 30px 6px 6px;
    background: linear-gradient(90deg, rgba(134, 225, 252, 0) 0%, rgba(134, 225, 252, 0.95) 50%, rgba(134, 225, 252, 0) 100%);
}

.mushncav-image {
    max-width: 650px;
    max-height: 400px;
    width: 100%;
    height: auto;
    border: 4px solid #dddddd;
    border-radius: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(360deg); }
    100% { transform: rotate(720deg); }
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

@keyframes slideIn {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInDelay {
    0% { opacity: 0; }
    66% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes homeSectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeHeroBackgroundFlow {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    50% {
        background-position: 100% 20%, 0% 80%, 50% 60%;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
}

@media (max-width: 640px) {
    .home-body {
        width: min(1100px, 94%);
    }

    .home-hero {
        padding: 22px;
    }

    .main-home-index .home-hero {
        padding: 24px 22px 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero,
    .main-home-index .home-body > .home-section {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
