@font-face{
  font-family:"AltoMono";
  src: local("Courier New"), local("Courier"), local("Menlo"), local("Monaco");
  font-display: swap;
}

:root{
  --bg:#ffffff;
  --fg:#000000;
  --grid:rgba(0,0,0,.06);
  --win:#ffffff;
  --bar:#ffffff;
  --bar-text:#000000;
}

html,body{
  height:100%;
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font:13px/1.3 "AltoMono", monospace;
  -webkit-font-smoothing:none;
  image-rendering: pixelated;
}

body{
  background-image:
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 3px);
  overflow:hidden;
}

.menubar{
  display:flex;
  gap:16px;
  align-items:center;
  padding:6px 8px;
  border-bottom:2px solid var(--fg);
  background:var(--bar);
  user-select:none;
}

.menubar .pill{
  border:1px solid var(--fg);
  padding:2px 6px;
}

.clock{
  margin-left:auto;
  border:1px solid var(--fg);
  padding:2px 6px;
}

.desktop{
  position:relative;
  height:calc(100% - 34px);
  padding:8px 12px 12px;
}

.icon{
  position:absolute;
  width:86px;
  text-align:center;
  user-select:none;
  border:0;
  background:transparent;
  padding:0;
  touch-action:none;
}

.glyph{
  width:64px;
  height:64px;
  margin:0 auto 6px;
  border:2px solid var(--fg);
  background:#fff;
  display:grid;
  place-items:center;
}

.glyph svg{
  width:42px;
  height:42px;
}

.icon .label{
  display:block;
  border:1px solid var(--fg);
  padding:2px 4px;
  background:#fff;
  color:inherit;
}

.window{
  position:absolute;
  background:var(--win);
  border:2px solid var(--fg);
  resize:both;
  overflow:auto;
}

.titlebar{
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--bar);
  color:var(--bar-text);
  border-bottom:2px solid var(--fg);
  padding:3px 6px;
  cursor:move;
  user-select:none;
  touch-action:none;
  height:28px;
}

.btn{
  width:18px;
  height:18px;
  border:1px solid var(--fg);
  background:#fff;
  display:inline-grid;
  place-items:center;
  line-height:1;
  font-weight:700;
  cursor:default;
  touch-action:manipulation;
}

.title{font-weight:600;letter-spacing:.2px;}
.content{padding:10px;}

.window.min{overflow:hidden;resize:none}

a{color:inherit;text-decoration:underline}
::selection{background:#000;color:#fff}

@media (max-width:700px){
  .icon{width:80px}
  .glyph{width:56px;height:56px}
  .glyph svg{width:36px;height:36px}
}
