@font-face{font-family:Minecraft;src:url('https://www.grape.wtf/assets/fonts/Minecraft.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#fff;color:#222;font-family:'Courier New',Courier,monospace}
p{margin:0}a:link,a:visited{color:#222}a:active,button:active{color:greenyellow}button{font-family:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #6a9b38;outline-offset:3px}
.site-header{position:relative;flex:none;width:100%;height:37px;font-size:10px;background:#fff;display:flex;align-items:center;border-bottom:1px solid #e9e9e9;box-shadow:0 1px #f7f7f7;z-index:2}
.header-left{position:absolute;right:10px;display:flex;align-items:center;background:rgba(221,255,199,.914);max-height:26px;gap:6px;padding:0 6px;width:254px}.header-left button{background:#fff;border:0;margin:10px 0;font-size:12px}.disc-icon{width:16px;height:16px;image-rendering:pixelated}.header-right{position:absolute;left:10px;padding-left:6px}.marquee{background:#fff;width:120px;height:14px;display:flex;overflow:hidden;white-space:nowrap;align-items:center}.marquee-item{animation:scroll-text 10s linear infinite;padding-left:30px}@keyframes scroll-text{from{transform:translateX(0)}to{transform:translateX(-100%)}}
.music-menu{position:absolute;right:16px;top:31px;background:#fff;min-width:260px;box-shadow:0 1px 1px #0003;z-index:3;font-size:10px}.music-menu:not([hidden]){display:flex;flex-direction:column}.dropdown-item{display:flex;align-items:center;gap:4px}.dropdown-item button{background:white;border:0;margin:10px 0;font-size:10px;font-weight:600;color:#707070}.dropdown-item a{margin-left:auto;padding-right:10px}
.content{width:min(100% - 48px, 960px);margin:20px auto 120px;flex:1}.page-heading{max-width:850px;margin:0 auto 10px;display:flex;align-items:center;justify-content:space-between;gap:16px}.heading-logo{width:64px;height:64px;object-fit:contain;image-rendering:pixelated;flex:none}.page-heading h1{font-family:Minecraft,'Courier New',monospace;font-size:32px;font-weight:575;margin:0}.social-links{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;margin-top:7px}.projects{max-width:850px;margin:0 auto}.project{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-rows:auto 1fr;grid-template-areas:'title media' 'description media';column-gap:36px;padding:10px 0;border-bottom:1px solid #e9e9e9}.project-title{grid-area:title;font-family:Minecraft,'Courier New',monospace;font-size:22px;font-weight:normal;margin:0 0 10px}.project-description{grid-area:description;font-size:14px;line-height:1.5;max-width:340px}.project-description ul{padding-left:20px;margin:10px 0 0}.gallery{grid-area:media;min-width:0;position:relative;padding:0 30px}.gallery-frame{aspect-ratio:4/3;overflow:hidden;background:#f2f4ed}.slide{width:100%;height:100%;border:0}.slide[hidden]{display:none}.slide img,.slide video,img.slide,video.slide{width:100%;height:100%;object-fit:cover}.placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#59684b;background:#eef4e8;font-size:14px;text-align:center}.placeholder small{font-size:11px}.placeholder-two{background:#e8eee2}.placeholder-three{background:#f0f1e8}.placeholder-four{background:#f2f0ea;color:#706b5d}.placeholder-five{background:#e9eee9}.gallery-controls{display:contents}.gallery-controls button{position:absolute;top:50%;transform:translateY(-50%);width:28px;height:36px;padding:0;border:0;background:transparent;font-size:20px}.previous{left:0}.next{right:0}.gallery-count{display:block;text-align:center;font-size:10px;color:#777;margin-top:10px}
.site-footer{position:fixed;bottom:0;left:0;z-index:2;flex:none;width:100%;min-height:22px;font-size:10px;background:#fff;display:flex;align-items:center}.footer-right{position:absolute;right:10px;display:flex;align-items:center;gap:10px}.footer-left{margin-left:10px;display:flex;align-items:center}.footer-left img{width:16px;height:16px;padding-right:5px;box-sizing:content-box;image-rendering:pixelated}
@media(max-width:650px){.content{width:calc(100% - 40px);margin:20px auto 90px}.page-heading{margin-bottom:10px}.project{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:'title' 'media' 'description';gap:0;padding:10px 0}.project-title{margin-bottom:10px}.project-description{margin-top:12px;max-width:none}.gallery{padding:0 28px}.site-footer{gap:8px;justify-content:space-between;flex-wrap:wrap;padding:4px 10px}.footer-left{margin-left:0}.footer-right{position:static;order:2;gap:6px}.header-right{left:6px}.header-left{right:6px}}
@media(prefers-reduced-motion:reduce){.marquee-item{animation:none}}

/* Project index and the grape.os-inspired detail window */
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-top:10px}.project-card{display:flex;flex-direction:column;gap:10px;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left}.project-card:hover .card-media{outline:3px solid #b9e684;outline-offset:7px}.card-media{display:block;position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#eef4e8}.card-media img{display:block;width:100%;height:100%;object-fit:cover}.card-media .placeholder{height:100%}.card-title{font-family:Minecraft,'Courier New',monospace;font-size:20px}.project-window{width:min(765px,calc((100vw - 48px) * .9));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:0;background:#fff;color:#222;overflow:visible}.project-window::backdrop{background:rgba(0,0,0,.35)}.window-header{height:50px;border-bottom:4px solid #000;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 10px}.window-header h2{margin:0;font-family:Minecraft,'Courier New',monospace;font-size:24px;font-weight:normal}.window-close{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;background:#fff;padding:3px}.window-close img{width:30px;height:auto;image-rendering:pixelated}.window-content{max-height:calc(100dvh - 106px);overflow:auto;padding:10px}.window-content .project{border:0;padding:0;grid-template-rows:1fr;grid-template-areas:'description media'}.window-content .project-title{display:none}.window-corner{position:absolute;width:8px;height:8px;image-rendering:pixelated;pointer-events:none}.corner-0{top:-4px;left:-4px}.corner-1{top:-4px;right:-4px}.corner-2{bottom:-4px;left:-4px}.corner-3{bottom:-4px;right:-4px}
@media(max-width:650px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card-title{font-size:17px}.window-content .project{grid-template-areas:'media' 'description';grid-template-rows:auto auto}.window-content .project-description{margin-top:12px}}
@media(max-width:380px){.project-grid{grid-template-columns:1fr}}

.window-line{position:absolute;display:block;background:#000;pointer-events:none}.line-0,.line-2{left:3px;width:calc(100% - 6px);height:4px}.line-0{top:-4px}.line-2{bottom:-4px}.line-1,.line-3{top:3px;height:calc(100% - 6px);width:4px}.line-1{right:-4px}.line-3{left:-4px}

@media(max-width:650px){.project-window{width:calc((100vw - 40px) * .9)}}

.window-content .gallery{padding-top:10px}

.cv-content{max-width:850px;margin:0 auto;padding:10px 0;font-size:14px;line-height:1.2}.cv-content h2{font-family:Minecraft,"Courier New",monospace;font-size:22px;font-weight:normal;margin:0 0 10px}[hidden]{display:none!important}

.cv-section{margin:0}.cv-section h3{font-family:inherit;font-size:14px;font-weight:bold;color:#666;margin:0 0 8px}.cv-entry{margin-bottom:10px}.cv-entry h4{font-size:14px;margin:0;font-weight:normal}.cv-entry p{margin:0}

a:any-link,a:hover,a:focus,a:active{color:#222;-webkit-tap-highlight-color:transparent}

.home-link{text-decoration:none}

.project-description h3{font-size:14px;margin:14px 0 0}.project-description code{font:inherit;font-weight:bold;overflow-wrap:anywhere}

.project-link{display:block;margin-top:10px;text-align:left;font-size:12px}

/* Match the window frame using the original pixel corner images. */
.card-media{overflow:visible}
.card-media > img:not(.preview-corner){width:100%;height:100%;object-fit:cover}
.card-media .preview-corner{position:absolute;width:8px;height:8px;image-rendering:pixelated;pointer-events:none}
.preview-corner-0{top:-4px;left:-4px}.preview-corner-1{top:-4px;right:-4px}.preview-corner-2{bottom:-4px;left:-4px}.preview-corner-3{bottom:-4px;right:-4px}
.preview-line{position:absolute;display:block;background:#000;pointer-events:none}
.preview-line-0,.preview-line-2{left:3px;width:calc(100% - 6px);height:4px}.preview-line-0{top:-4px}.preview-line-2{bottom:-4px}
.preview-line-1,.preview-line-3{top:3px;height:calc(100% - 6px);width:4px}.preview-line-1{right:-4px}.preview-line-3{left:-4px}
@media(max-width:650px){.window-content .project-description{margin-left:28px;margin-right:28px}}
.window-content .project-link{border-bottom:1px solid #e9e9e9;padding-bottom:8px}

.readme-content ol{padding-left:20px;margin:10px 0 0}.readme-content h3{margin-bottom:6px}
.readme-content pre{overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.readme-content ol,.readme-content ul{list-style-position:inside;padding-left:0}
.window-content .project{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:'media' 'description'}
.window-content .project-description{max-width:none;margin:12px 30px 0}
@media(max-width:650px){.window-content .project-description{margin-left:28px;margin-right:28px}}

.project-card .card-media{width:100%;aspect-ratio:4 / 3;margin:0;padding:12px;background:#fff}
.window-close:hover{background:transparent;outline:none;box-shadow:none}
.project-card .card-media{display:flex;align-items:center;justify-content:center}
.project-card .card-media>img:not(.preview-corner),.project-card .card-media>.placeholder{width:auto;height:100%;max-width:100%;aspect-ratio:1 / 1;object-fit:cover}
.project-card .card-media{display:block;min-height:0}
.project-card .card-media>img:not(.preview-corner),.project-card .card-media>.placeholder{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);max-width:none;aspect-ratio:auto;object-fit:cover}
@media(min-width:651px){.window-content .gallery{width:90%;margin-left:auto;margin-right:auto}}

html.project-open{overflow:hidden;overscroll-behavior:none}
.window-content{overscroll-behavior:contain}
#project-zesty-market .gallery-frame img.slide{object-fit:contain}
.project-card[data-project="project-zesty-market"] .card-media>img:not(.preview-corner){object-fit:contain}
#project-zesty-market .gallery-frame{background:transparent}

.window-content .gallery-frame img.slide,.window-content .gallery-frame video.slide{object-fit:contain}

.project-card[data-project="project-circuit-explorer"] .card-media>img:not(.preview-corner){object-fit:contain}

.project-card[data-project="project-micro-machines"] .card-media>img:not(.preview-corner){object-fit:contain}

.project-card[data-project="project-live-server-maintained"] .card-media>img:not(.preview-corner){object-fit:contain}
.readme-content p+p{margin-top:10px}
#project-micro-machines .gallery-frame{background:transparent}
.window-content .readme-content{width:90%;max-width:none;margin:12px auto 0;padding:0 30px}
@media(max-width:650px){.window-content .readme-content{width:100%;margin:12px auto 0;padding:0 28px}}

#project-auto-chop-saw .gallery-frame{background:transparent}

.project-card[data-project="project-robot-rally"] .card-media>img:not(.preview-corner){object-fit:contain}

.project-card[data-project="project-odell-workers"] .card-media>img:not(.preview-corner){object-fit:contain}


.window-content .gallery-frame img.donna-slide{object-fit:cover;object-position:center top}

.project-card[data-project="project-grblwave"] .card-media>img:not(.preview-corner){object-fit:contain}
/* Keep all project copy aligned with the gallery content and links. */
.window-content .project-description{width:90%;max-width:none;margin:12px auto 0;padding:0 30px;text-align:left}
.window-content .project-description ul,.window-content .project-description ol{padding-left:0;list-style-position:inside}
.window-content .project-description pre{margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){.window-content .project-description{width:100%;margin:12px auto 0;padding:0 28px}}

.private-repo{width:100%;padding:0;background:transparent;border:0;color:inherit;font:inherit;cursor:pointer}.private-repo-label{position:relative;display:inline-block}.private-repo img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:1em;max-height:1em;width:auto;opacity:0;pointer-events:none;image-rendering:pixelated}.private-repo.flash img{animation:private-repo-flash 1s ease-out forwards}@keyframes private-repo-flash{0%,10%{opacity:1}100%{opacity:0}}

.micro-prototype{object-view-box:inset(12px 0 0 6px)}

.project-description p+p{margin-top:10px}
.private-repo{font-size:12px;text-decoration:underline;color:#222}
.window-content .project-description{padding-bottom:20px}
.header-left{left:10px;right:auto}
.header-right{left:auto;right:10px;padding-left:0}
.music-menu{left:16px;right:auto}
@media(max-width:650px){.header-left{left:6px;right:auto}.header-right{left:auto;right:6px}}
.window-content .gallery-frame{background:transparent}

.cv-underlined{text-decoration:underline}
@media(max-width:650px){.site-footer{flex-wrap:nowrap}.footer-right p{display:none}}

.email-link{display:inline-block;font-size:12px;margin-top:7px}
