:root {
    --silver: #c0c0c0;
    --dark: #000;
    --navy: #000080;
    --teal: #008080;
    --aqua: #00ffff;
    --yellow: #ffff00;
    --lime: #00ff00;
    --purple: #7700aa;
    --desktop: #006f75;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding: 22px;
    color: #000;
    background-color: var(--desktop);
    background-image:
        linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,.06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.06) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { color: #ff0000; background: var(--yellow); }
button, input { font: inherit; }
img { max-width: 100%; }
::selection { color: white; background: var(--navy); }

.skip-link {
    position: fixed;
    top: 4px;
    left: 4px;
    z-index: 999;
    padding: 8px;
    color: #000;
    background: var(--yellow);
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.browser-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 3px;
    background: var(--silver);
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    border-right: 3px solid #222;
    border-bottom: 3px solid #222;
    box-shadow: 10px 12px 0 rgba(0,0,0,.28);
}
.browser-titlebar, .window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding: 3px 4px 3px 7px;
    color: #fff;
    background: linear-gradient(90deg, #000080, #1084d0);
    font-weight: bold;
}
.browser-title { display: flex; align-items: center; gap: 7px; }
.page-icon { display: grid; place-items: center; width: 19px; height: 19px; background: #fff; font-size: 13px; }
.window-controls { display: flex; gap: 3px; }
.window-controls span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 19px;
    color: #000;
    background: var(--silver);
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    font: bold 13px/1 monospace;
}
.browser-menu { display: flex; gap: 24px; padding: 7px 10px 4px; }
.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-top: 1px solid #777;
    border-bottom: 1px solid #fff;
}
.browser-toolbar button {
    min-width: 48px;
    border: 0;
    background: transparent;
    font-size: 27px;
    line-height: .8;
}
.browser-toolbar button small { display: block; margin-top: 7px; font-size: 10px; }
.browser-toolbar .disabled { color: #777; text-shadow: 1px 1px #fff; }
.toolbar-divider { width: 2px; height: 40px; margin-left: 5px; border-left: 1px solid #777; border-right: 1px solid #fff; }
.ie-logo { margin-left: auto; color: #1b79bc; font: italic bold 46px/1 Georgia; text-shadow: 2px 2px #fff; }
.address-row { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-top: 1px solid #777; }
.address-field {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 5px 7px;
    overflow: hidden;
    white-space: nowrap;
    background: #fff;
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}
.address-row button, .retro-button {
    padding: 4px 12px;
    color: #000;
    background: var(--silver);
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #222;
    border-bottom: 2px solid #222;
    box-shadow: 1px 1px 0 #000;
}
.address-row button:active, .retro-button:active, .send-button:active {
    border-top-color: #222;
    border-left-color: #222;
    border-right-color: #fff;
    border-bottom-color: #fff;
    transform: translate(1px, 1px);
}

.webpage {
    position: relative;
    overflow: hidden;
    border: 2px inset #fff;
    background: #f5f3df;
}
.webpage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,0,0,.025) 3px, rgba(0,0,0,.025) 4px);
}
.top-strip {
    display: flex;
    justify-content: space-between;
    padding: 5px 12px;
    color: var(--lime);
    background: #000;
    font: 18px "VT323", monospace;
    letter-spacing: 1px;
}
.page-header {
    padding: 16px 20px 0;
    color: #fff;
    text-align: center;
    background-color: #000066;
    background-image:
        radial-gradient(#fff 1px, transparent 1px),
        radial-gradient(#ff0 1px, transparent 1px);
    background-position: 0 0, 17px 13px;
    background-size: 29px 29px, 37px 37px;
    border-bottom: 5px ridge #ddd;
}
.construction {
    display: inline-block;
    padding: 5px 12px;
    color: #000;
    background: repeating-linear-gradient(135deg, var(--yellow) 0 10px, #000 10px 20px);
    border: 3px outset var(--silver);
    box-shadow: inset 0 0 0 50px rgba(255,255,0,.86);
    font: bold 12px "Press Start 2P", monospace;
    animation: construction-blink 1.2s steps(2) infinite;
}
.logo-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(15px, 4vw, 48px);
    padding: 35px 0 31px;
}
.pixel-avatar {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    color: #000;
    background: var(--aqua);
    border: 7px ridge #fff;
    box-shadow: 8px 8px 0 #ff00ff;
    font: 28px "Press Start 2P", monospace;
}
.welcome { margin: 0 0 10px; color: var(--aqua); font: 17px "VT323", monospace; letter-spacing: 2px; }
h1 {
    margin: 0;
    color: var(--yellow);
    font: bold clamp(35px, 6vw, 78px)/.9 "Times New Roman", serif;
    letter-spacing: -3px;
    text-shadow: 3px 3px #f0f, 6px 6px #008080;
}
h1 span { color: #fff; }
.aka { margin: 16px 0 0; color: var(--lime); font: 19px "VT323", monospace; letter-spacing: 1px; }
.scroll-banner {
    overflow: hidden;
    margin: 0 -20px;
    padding: 6px 0;
    color: #000;
    background: var(--yellow);
    border-top: 3px ridge #fff;
    font: 21px "VT323", monospace;
    white-space: nowrap;
}
.scroll-banner div { display: inline-block; padding-left: 100%; animation: marquee 18s linear infinite; }

.page-grid {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr) 180px;
    gap: 10px;
    padding: 10px;
    background-image:
        linear-gradient(rgba(255,255,255,.68), rgba(255,255,255,.68)),
        repeating-linear-gradient(45deg, #b7d9d6 0 2px, #eff9ef 2px 5px);
}
.sidebar { display: flex; flex-direction: column; gap: 10px; }
.win-box, .content-window {
    background: var(--silver);
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    box-shadow: 2px 2px 0 #777;
}
.win-box > h2 {
    margin: 2px;
    padding: 5px 6px;
    overflow: hidden;
    color: #fff;
    background: var(--navy);
    font: bold 12px Arial, sans-serif;
    white-space: nowrap;
}
.win-box > p, .win-box > dl, .win-box > a, .win-box > button, .win-box > div:not(.image-frame):not(.badge) { margin-left: 9px; margin-right: 9px; }
.retro-nav { display: flex; flex-direction: column; padding: 5px; background: #fff; border: 2px inset #fff; }
.retro-nav a { padding: 7px 3px; font: 20px "VT323", monospace; }
.retro-nav a span { display: inline-block; width: 25px; font-size: 14px; }
.image-frame { margin: 8px; padding: 4px; background: #fff; border: 2px inset #fff; }
.image-frame img { display: block; width: 100%; aspect-ratio: 1/1.13; object-fit: cover; filter: contrast(1.25) saturate(.55); image-rendering: auto; }
.center { text-align: center; }
.profile-card p { font-size: 11px; line-height: 1.45; }
.profile-card .blink-slow { color: #008000; font-weight: bold; }
.badge {
    width: calc(100% - 18px);
    margin: 7px 9px;
    padding: 3px;
    color: white;
    text-align: center;
    border: 2px outset white;
    font: 10px Arial, sans-serif;
    line-height: .9;
}
.badge b { font-size: 16px; }
.badge-blue { background: #0043a8; }
.badge-red { background: #c00000; }
.badge-black { background: #111; }
.tiny { font-size: 9px; }
.status-box dl { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 4px 0; font: 17px "VT323", monospace; }
.status-box dt { color: #555; }
.status-box dd { margin: -3px 0 4px; font-weight: bold; }
.status-box .online { color: green; animation: blink 1s steps(2) infinite; }
.counter {
    padding: 4px 2px;
    color: #f00;
    text-align: center;
    background: #000;
    border: 3px inset #aaa;
    font: 24px "Press Start 2P", monospace;
    letter-spacing: -2px;
}
.updates p { padding-bottom: 8px; border-bottom: 1px dotted #555; font-size: 11px; }
.updates > a, .links a { display: block; margin-bottom: 8px; }
.guestbook { padding-bottom: 10px; }
.guestbook p { font-size: 11px; }
#guestbook-message { min-height: 0; color: green; font-weight: bold; font-size: 10px; }

main { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.content-window { scroll-margin-top: 10px; }
.window-bar { margin: 2px; font-size: 12px; }
.window-bar.purple { background: linear-gradient(90deg, #510080, #bb31d4); }
.window-bar.teal { background: linear-gradient(90deg, #00605f, #00aaa6); }
.window-bar.orange { background: linear-gradient(90deg, #a84000, #ff9c1a); }
.window-bar.red { background: linear-gradient(90deg, #860000, #e64242); }
.mini-controls { letter-spacing: 7px; }
.window-body {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    margin: 7px;
    padding: 23px;
    background: #fff;
    border: 2px inset #fff;
}
.dialog-icon { font-size: 45px; }
.window-body h2, .window-inner h2 { margin: 0 0 12px; font: bold 29px "Times New Roman", serif; }
.window-body p { line-height: 1.55; }
.window-body .lead { font-size: 17px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 19px; }
.window-inner { margin: 7px; padding: 15px; background: #fff; border: 2px inset #fff; }
.section-heading { display: flex; align-items: center; gap: 15px; padding-bottom: 12px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading p { color: #666; font-size: 11px; }
.folder-icon { font-size: 40px; }
.file-list { border: 1px solid #aaa; }
.file-row {
    display: grid;
    grid-template-columns: 1.55fr .7fr .5fr;
    gap: 12px;
    min-width: 0;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}
.file-row:hover { color: white; background: var(--navy); }
.file-row:last-child { border: 0; }
.file-row p { margin: 5px 0 0 24px; color: #555; font-size: 11px; line-height: 1.35; }
.file-row:hover p { color: #fff; }
.file-head { padding: 4px 8px; color: #000 !important; background: var(--silver) !important; border-bottom: 2px groove #fff; font-size: 11px; }
.file-icon { margin-right: 7px; }
.file-row time, .file-row > span { font-size: 11px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.project-file {
    min-width: 0;
    padding: 7px;
    border: 1px dotted #777;
    outline: none;
}
.project-file:hover, .project-file:focus { color: #fff; background: var(--navy); border-style: solid; }
.project-screen { position: relative; padding: 3px; background: #000; border: 3px ridge #aaa; }
.project-screen img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(.4) contrast(1.4); }
.project-screen span { position: absolute; right: 2px; bottom: 2px; padding: 2px 4px; color: var(--lime); background: #000; font: 13px "VT323", monospace; }
.project-file h3 { margin: 9px 0 3px; color: #0000ee; font: bold 11px monospace; text-decoration: underline; overflow-wrap: anywhere; }
.project-file:hover h3, .project-file:focus h3 { color: var(--yellow); }
.project-file > strong { display: block; font-size: 12px; }
.project-file small { color: #666; font-size: 9px; text-transform: uppercase; }
.project-file:hover small, .project-file:focus small { color: #fff; }
.project-file p { margin: 7px 0 0; font-size: 10px; line-height: 1.35; }
.pixel-heading { color: var(--navy); font: 16px "Press Start 2P", monospace !important; text-shadow: 2px 2px #9fd; }
.skill-list { display: grid; gap: 9px; margin-top: 22px; }
.skill-row { display: grid; grid-template-columns: 130px 1fr 40px; gap: 8px; align-items: center; font: 16px "VT323", monospace; }
.progress { height: 18px; padding: 2px; background: #fff; border: 2px inset #fff; }
.progress i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 10px); }
.system-note { margin: 18px 0 0; color: #555; font-size: 10px; }
.quote-box {
    position: relative;
    padding: 24px 20px;
    color: var(--yellow);
    text-align: center;
    background: #000;
    border: 6px double #f0f;
}
.quote-face { color: var(--aqua); font: 31px "Press Start 2P"; }
.quote-box blockquote { margin: 17px 0 10px; font: 23px "VT323", monospace; }
.quote-box cite { color: #fff; font: 13px Arial; }
.contact-form { padding: 8px; }
.form-row { display: grid; grid-template-columns: 55px 1fr; align-items: center; margin-bottom: 5px; }
.form-row label { font-size: 11px; }
.form-row input { width: 100%; padding: 4px; background: #fff; border: 2px inset #fff; }
.message-area { min-height: 240px; margin-top: 8px; padding: 38px 20px; text-align: center; background: #fff url("data:image/gif;base64,R0lGODlhAgACAIAAAP///+bm5iH5BAAAAAAALAAAAAACAAIAAAICRAoAOw=="); border: 2px inset #fff; }
.message-area p { font: 21px "VT323", monospace; }
.message-area h2 { color: var(--navy); font: bold clamp(32px, 5vw, 56px) "Times New Roman", serif; text-shadow: 2px 2px #0ff; }
.send-button {
    display: inline-block;
    padding: 9px 15px;
    color: #000 !important;
    background: var(--silver) !important;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    border-right: 3px solid #222;
    border-bottom: 3px solid #222;
    box-shadow: 2px 2px 0 #000;
    font-weight: bold;
    text-decoration: none;
}
.page-footer {
    padding: 35px 18px 28px;
    color: #fff;
    text-align: center;
    background: #000066;
    border-top: 4px ridge #fff;
    font: 14px "VT323", monospace;
}
.email-gif { display: inline-block; padding: 5px 9px; color: #000; background: var(--yellow); border: 3px outset #fff; font: bold 12px "Press Start 2P"; animation: rainbow 1.1s steps(2) infinite; }
.browser-statusbar { display: grid; grid-template-columns: 1fr 160px; gap: 3px; padding-top: 4px; }
.browser-statusbar span { padding: 3px 7px; border: 2px inset #fff; font-size: 11px; }

@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes construction-blink { 50% { filter: invert(1); } }
@keyframes rainbow {
    0% { color: #f00; background: #ff0; }
    50% { color: #0ff; background: #800080; }
}

@media (max-width: 980px) {
    body { padding: 8px; }
    .page-grid { grid-template-columns: 165px minmax(0, 1fr); }
    .right-sidebar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; }
    .right-sidebar .links { display: none; }
    .project-grid { grid-template-columns: 1fr; }
    .project-file { display: grid; grid-template-columns: 140px 1fr; gap: 7px 12px; }
    .project-screen { grid-row: 1 / 6; }
    .project-file h3, .project-file p { margin: 0; }
}

@media (max-width: 650px) {
    body { padding: 0; font-size: 13px; }
    .browser-shell { border-width: 2px; box-shadow: none; }
    .browser-title { max-width: calc(100vw - 90px); overflow: hidden; white-space: nowrap; }
    .browser-menu, .browser-toolbar { display: none; }
    .address-row > span, .address-row button { display: none; }
    .logo-line { flex-direction: column; padding: 28px 0 25px; }
    .pixel-avatar { width: 70px; height: 70px; font-size: 20px; }
    h1 { font-size: clamp(36px, 13vw, 60px); letter-spacing: -2px; }
    .construction { font-size: 8px; line-height: 1.7; }
    .page-grid { display: flex; flex-direction: column; }
    #content { order: 1; }
    .left-sidebar { order: 2; display: grid; grid-template-columns: 1fr 1fr; }
    .left-sidebar .mini-box { display: none; }
    .right-sidebar { order: 3; grid-template-columns: 1fr 1fr; }
    .right-sidebar .updates, .right-sidebar .links { display: none; }
    .window-body { grid-template-columns: 1fr; padding: 15px; }
    .dialog-icon { display: none; }
    .file-row { grid-template-columns: 1fr; gap: 3px; }
    .file-head { display: none; }
    .file-row p { margin-left: 24px; }
    .project-file { display: block; }
    .project-file h3 { margin-top: 8px; }
    .skill-row { grid-template-columns: 95px 1fr 34px; }
    .skill-row b { font-size: 12px; }
    .browser-statusbar { grid-template-columns: 1fr 105px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
