/* retro windows-95 desktop app look. menu bar = nav. */
body {
  background: #008080;
  margin: 0;
  padding: 2rem 1rem;
  font-family: "Times New Roman", Times, serif;
  color: #000;
}

.window {
  max-width: 40rem;
  margin: 0 auto;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}

/* title bar */
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 3px 4px;
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: bold;
}
.titlebar a { color: #fff; text-decoration: none; }
.titlebar .controls b {
  display: inline-block;
  width: 16px; height: 14px;
  line-height: 12px;
  text-align: center;
  background: #c0c0c0;
  color: #000;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  font-size: 10px;
  font-weight: bold;
  margin-left: 2px;
}

/* menu bar = the nav */
.menubar {
  display: flex;
  flex-wrap: wrap;
  background: #c0c0c0;
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 13px;
  padding: 1px 0;
}
.menubar a {
  color: #000;
  text-decoration: none;
  padding: 2px 9px;
}
.menubar a:hover { background: #000080; color: #fff; }

/* content pane */
.content {
  background: #fff;
  margin: 3px;
  padding: 14px 18px 22px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  font-size: 18px;
  line-height: 1.5;
  min-height: 12rem;
}
.content h1 { font-size: 1.6rem; margin: 0 0 .3rem; }
.content h2 { font-size: 1.2rem; margin: 1.4rem 0 .4rem; }
.content ul { padding-left: 1.4rem; margin: .4rem 0; }
.content li { margin: .25rem 0; }
.content p { margin: 0 0 1rem; }
.tag, .meta { color: #555; font-style: italic; font-size: .92rem; }

/* phone: make it a maximized window that fills the screen, with thumb-friendly menus */
@media (max-width: 640px) {
  body { padding: 6px; }

  .window {
    max-width: none;
    min-height: calc(100vh - 12px);
    display: flex;
    flex-direction: column;
    box-shadow: 1px 1px 0 rgba(0,0,0,.5);
  }

  .titlebar { padding: 7px 8px; font-size: 15px; }
  .titlebar .controls b { width: 20px; height: 18px; line-height: 16px; }

  .menubar { font-size: 16px; }
  .menubar a { padding: 10px 14px; }

  .content {
    flex: 1;
    font-size: 18px;
    line-height: 1.55;
    padding: 18px 16px 28px;
  }
  .content h1 { font-size: 1.7rem; }
}
